OSDN Git Service

Workaround for Itanium A/B step errata
[pf3gnuchains/gcc-fork.git] / gcc / c-semantics.c
index ccc3c7d..8988680 100644 (file)
@@ -283,7 +283,7 @@ make_rtl_for_local_static (decl)
 
   /* If the DECL_ASSEMBLER_NAME is not the same as the DECL_NAME, then
      either we already created RTL for this DECL (and since it was a
-     local variable, its DECL_ASSMEMBLER_NAME got hacked up to prevent
+     local variable, its DECL_ASSEMBLER_NAME got hacked up to prevent
      clashes with other local statics with the same name by a previous
      call to make_decl_rtl), or the user explicitly requested a
      particular assembly name for this variable, using the GNU
@@ -486,8 +486,12 @@ genrtl_do_stmt (t)
      not emit the loop widgetry in this case.  In particular this
      avoids cluttering the rtl with dummy loop notes, which can affect
      alignment of adjacent labels.  */
-  if (cond == integer_zero_node)
-    expand_stmt (DO_BODY (t));
+  if (integer_zerop (cond))
+    {
+      expand_start_null_loop ();
+      expand_stmt (DO_BODY (t));
+      expand_end_null_loop ();
+    }
   else
     {
       emit_nop ();