]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/17827 (ICE: in make_decl_rtl, at varasm.c:752)
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 7 Dec 2004 07:54:00 +0000 (07:54 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 7 Dec 2004 07:54:00 +0000 (07:54 +0000)
PR middle-end/17827
* c-semantics.c (expand_unreachable_if_stmt): Invoke
expand_cond on the condition.

From-SVN: r91806

gcc/ChangeLog
gcc/c-semantics.c
gcc/testsuite/ChangeLog

index e3587959bce8bc9633f8b9e66c2336984a838077..15d0e6fc2cdff9405e036b5992c4de8f0fc56c54 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR middle-end/17827
+       * c-semantics.c (expand_unreachable_if_stmt): Invoke
+       expand_cond on the condition.
+
 2004-12-06  Aldy Hernandez  <aldyh@redhat.com>
 
        * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
index 080f0c66fa0381e08023b630c8a22c25c78c9913..692adfcde26bd3f2e12eba86d1f6bb5b0c1a47bc 100644 (file)
@@ -937,6 +937,9 @@ expand_unreachable_if_stmt (tree t)
       return true;
     }
 
+  /* Account for declarations as conditions.  */
+  expand_cond (IF_COND (t));
+
   if (THEN_CLAUSE (t) && ELSE_CLAUSE (t))
     {
       n = expand_unreachable_stmt (THEN_CLAUSE (t), 0);
index f36371a813bdf3c342f04790e39b6b2df9faae6b..478bbcefa661a642446855bd2873b32ad4886455 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-07  Volker Reichelt  <reichelt@gcc.gnu.org>
+
+       * g++.dg/other/unreachable-1.C: New test.
+
 2004-12-04  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/17011, c++/17971