diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-11-29 20:36:36 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-11-29 12:36:36 -0800 |
commit | 5e23162d1a2ebf9f9a765f5d8c1c8a1b99a3dfa2 (patch) | |
tree | c16c9b04d0ecc49c673a5c2d32c958d2872017ea /gcc | |
parent | 3798c21bd808c30b1cdc1c4b23e1e599b05c981c (diff) | |
download | gcc-5e23162d1a2ebf9f9a765f5d8c1c8a1b99a3dfa2.zip gcc-5e23162d1a2ebf9f9a765f5d8c1c8a1b99a3dfa2.tar.gz gcc-5e23162d1a2ebf9f9a765f5d8c1c8a1b99a3dfa2.tar.bz2 |
re PR middle-end/18725 (another ICE on trivial invalid asm)
2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/18725
* gcc.dg/pr18725.c: New test.
2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/18725
* tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
shared always.
From-SVN: r91487
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr18725.c | 9 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 3 |
4 files changed, 22 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e124204..5433409 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-11-29 Andrew Pinski <pinskia@physics.uc.edu> + + PR middle-end/18725 + * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be + shared always. + 2004-11-29 Diego Novillo <dnovillo@redhat.com> PR tree-optimization/18712 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4830621..a9faf59 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-11-29 Andrew Pinski <pinskia@physics.uc.edu> + + PR middle-end/18725 + * gcc.dg/pr18725.c: New test. + 2004-11-29 Hans-Peter Nilsson <hp@bitrange.com> PR target/18488 diff --git a/gcc/testsuite/gcc.dg/pr18725.c b/gcc/testsuite/gcc.dg/pr18725.c new file mode 100644 index 0000000..0282d3b --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr18725.c @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-options "" } */ + +void +f (void) +{ + int x = 1; + asm ("" : "" (x), "" (x)); /* { dg-error "output operand constraint lacks" } */ +} diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index f206083..692e746 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -3426,7 +3426,8 @@ tree_node_can_be_shared (tree t) gimple invariants if they overflowed. */ || CONSTANT_CLASS_P (t) || is_gimple_min_invariant (t) - || TREE_CODE (t) == SSA_NAME) + || TREE_CODE (t) == SSA_NAME + || t == error_node_mark) return true; if (TREE_CODE (t) == CASE_LABEL_EXPR) |