https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92671

            Bug ID: 92671
           Summary: gcc/c/c-parser.c: minor ( and ) tidyup
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

trunk/gcc/c/c-parser.c:1374:42: style: Clarify calculation precedence for '&'
and '?'. [clarifyCalculation]
trunk/gcc/c/c-parser.c:1375:42: style: Clarify calculation precedence for '&'
and '?'. [clarifyCalculation]
trunk/gcc/c/c-parser.c:1376:43: style: Clarify calculation precedence for '&'
and '?'. [clarifyCalculation]

Diff is

Index: gcc/c/c-parser.c
===================================================================
--- gcc/c/c-parser.c    (revision 278700)
+++ gcc/c/c-parser.c    (working copy)
@@ -1382,9 +1382,9 @@
   warn_cxx_compat = (flags >> 5) & 1;
   warn_overlength_strings = (flags >> 6) & 1;
   /* See above for why is this needed.  */
-  warn_c90_c99_compat = (flags >> 7) & 1 ? 1 : ((flags >> 8) & 1 ? -1 : 0);
-  warn_c99_c11_compat = (flags >> 9) & 1 ? 1 : ((flags >> 10) & 1 ? -1 : 0);
-  warn_c11_c2x_compat = (flags >> 11) & 1 ? 1 : ((flags >> 12) & 1 ? -1 : 0);
+  warn_c90_c99_compat = ((flags >> 7) & 1) ? 1 : (((flags >> 8) & 1) ? -1 :
0);
+  warn_c99_c11_compat = ((flags >> 9) & 1) ? 1 : (((flags >> 10) & 1) ? -1 :
0);
+  warn_c11_c2x_compat = ((flags >> 11) & 1) ? 1 : (((flags >> 12) & 1) ? -1 :
0);
 }

 /* Helper data structure for parsing #pragma acc routine.  */

Reply via email to