diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-26 03:32:13 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-26 03:32:13 +0000 |
commit | f082efb4eb2445e6f1b296b9f0d2659011be22b1 (patch) | |
tree | 464eb6c0aa6be2085e430e33f0206246a2dcdf44 /gcc/config/rs6000/rs6000-c.c | |
parent | e226f54f012e5cd2ddc9d27040968c93efbcaa6b (diff) | |
download | gcc-f082efb4eb2445e6f1b296b9f0d2659011be22b1.tar.gz |
2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR target/31588
* config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
error_mark_node's.
2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR target/31588
* g++.dg/ext/altivec-15.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133541 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/rs6000-c.c')
-rw-r--r-- | gcc/config/rs6000/rs6000-c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c index 08537117628..d0830bba7e0 100644 --- a/gcc/config/rs6000/rs6000-c.c +++ b/gcc/config/rs6000/rs6000-c.c @@ -2421,6 +2421,8 @@ rs6000_builtin_type_compatible (tree t, int id) { tree builtin_type; builtin_type = rs6000_builtin_type (id); + if (t == error_mark_node) + return false; if (INTEGRAL_TYPE_P (t) && INTEGRAL_TYPE_P (builtin_type)) return true; else |