public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch] tree-parloops.c (eliminate_local_variables): Add braces to suppress warnings
@ 2012-04-10 12:15 JonY
  2012-04-10 12:37 ` Richard Guenther
  0 siblings, 1 reply; 15+ messages in thread
From: JonY @ 2012-04-10 12:15 UTC (permalink / raw)
  To: Gcc Patch List

[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]

Hi,

Patch OK?

ChangeLog:
tree-parloops.c (eliminate_local_variables): Add braces to suppress warnings.

Index: tree-parloops.c
===================================================================
--- tree-parloops.c     (revision 186243)
+++ tree-parloops.c     (working copy)
@@ -723,13 +723,15 @@
   FOR_EACH_VEC_ELT (basic_block, body, i, bb)
     if (bb != entry_bb && bb != exit_bb)
       for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi))
-       if (is_gimple_debug (gsi_stmt (gsi)))
-         {
-           if (gimple_debug_bind_p (gsi_stmt (gsi)))
-             has_debug_stmt = true;
-         }
-       else
-         eliminate_local_variables_stmt (entry, &gsi, decl_address);
+        {
+         if (is_gimple_debug (gsi_stmt (gsi)))
+           {
+             if (gimple_debug_bind_p (gsi_stmt (gsi)))
+               has_debug_stmt = true;
+           }
+         else
+           eliminate_local_variables_stmt (entry, &gsi, decl_address);
+        }

   if (has_debug_stmt)
     FOR_EACH_VEC_ELT (basic_block, body, i, bb)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-04-14  2:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-10 12:15 [Patch] tree-parloops.c (eliminate_local_variables): Add braces to suppress warnings JonY
2012-04-10 12:37 ` Richard Guenther
2012-04-10 13:06   ` JonY
2012-04-10 14:38     ` Richard Guenther
2012-04-10 19:08       ` NightStrike
2012-04-11  8:46         ` Richard Guenther
2012-04-13 12:30           ` NightStrike
2012-04-13 14:20             ` Mike Stump
2012-04-13 14:35               ` Bernd Schmidt
2012-04-13 14:44                 ` Jakub Jelinek
2012-04-13 14:52                   ` Bernd Schmidt
2012-04-13 20:16                     ` Mike Stump
2012-04-14  2:20                     ` Magnus Fromreide
2012-04-13 15:19                 ` NightStrike
2012-04-13 15:17               ` NightStrike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).