Fix coding style of ASM_OUTPUT_ALIGN.
authorMartin Liska <mliska@suse.cz>
Tue, 17 Jul 2018 09:19:57 +0000 (11:19 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 17 Jul 2018 09:19:57 +0000 (09:19 +0000)
2018-07-17  Martin Liska  <mliska@suse.cz>

* config/i386/att.h (ASM_OUTPUT_ALIGN): Fix spacing
        in order to fulfil coding style.
* config/i386/cygming.h (ASM_OUTPUT_ALIGN): Likewise.
* config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
* config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
* config/iq2000/iq2000.h (ASM_OUTPUT_ALIGN): Likewise.
* config/pa/pa.h (ASM_OUTPUT_ALIGN): Likewise.
* config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): Likewise.
* config/sparc/sparc.h (ASM_OUTPUT_ALIGN): Likewise.
* config/visium/visium.h (ASM_OUTPUT_ALIGN): Likewise.
(ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.

From-SVN: r262805

gcc/ChangeLog
gcc/config/i386/att.h
gcc/config/i386/cygming.h
gcc/config/i386/gas.h
gcc/config/i386/x86-64.h
gcc/config/iq2000/iq2000.h
gcc/config/pa/pa.h
gcc/config/sparc/sol2.h
gcc/config/sparc/sparc.h
gcc/config/visium/visium.h

index 8051255..fe754fa 100644 (file)
@@ -1,5 +1,19 @@
 2018-07-17  Martin Liska  <mliska@suse.cz>
 
+       * config/i386/att.h (ASM_OUTPUT_ALIGN): Fix spacing
+        in order to fulfil coding style.
+       * config/i386/cygming.h (ASM_OUTPUT_ALIGN): Likewise.
+       * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
+       * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
+       * config/iq2000/iq2000.h (ASM_OUTPUT_ALIGN): Likewise.
+       * config/pa/pa.h (ASM_OUTPUT_ALIGN): Likewise.
+       * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): Likewise.
+       * config/sparc/sparc.h (ASM_OUTPUT_ALIGN): Likewise.
+       * config/visium/visium.h (ASM_OUTPUT_ALIGN): Likewise.
+       (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
+
+2018-07-17  Martin Liska  <mliska@suse.cz>
+
        * align.h: New file.
        * config/alpha/alpha.c (alpha_align_insns_1): Use align_functions directly.
        * config/i386/i386.c (ix86_avoid_jump_mispredicts): Use new return type
index 8e4bc2e..7dd359b 100644 (file)
@@ -57,7 +57,7 @@ do                                                            \
    to a multiple of 2**LOG bytes.  */
 
 #define ASM_OUTPUT_ALIGN(FILE,LOG)     \
-    if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
+    if ((LOG) != 0) fprintf ((FILE), "\t.align %d\n", 1 << (LOG))
 
 /* This is how to output an assembler line
    that says to advance the location counter by SIZE bytes.  */
index 80a0a37..cfe563f 100644 (file)
@@ -290,7 +290,7 @@ do {                                                \
 
 #undef ASM_OUTPUT_ALIGN
 #define ASM_OUTPUT_ALIGN(FILE,LOG)     \
-    if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
+    if ((LOG) != 0) fprintf ((FILE), "\t.align %d\n", 1 << (LOG))
 
 /* Windows uses explicit import from shared libraries.  */
 #define MULTIPLE_SYMBOL_SPACES 1
index e149ab1..eb30db5 100644 (file)
@@ -69,7 +69,7 @@ along with GCC; see the file COPYING3.  If not see
 #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
 #  define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
     if ((LOG) != 0) { \
-      if ((MAX_SKIP) == 0 || (MAX_SKIP) >= (1<<(LOG))-1)               \
+      if ((MAX_SKIP) == 0 || (MAX_SKIP) >= (1 << (LOG)) - 1)           \
        fprintf ((FILE), "\t.p2align %d\n", (LOG));                     \
       else                                                             \
        fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));     \
index 66bbd5e..bc97454 100644 (file)
@@ -77,7 +77,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #define ASM_OUTPUT_MAX_SKIP_PAD(FILE, LOG, MAX_SKIP)                   \
   if ((LOG) != 0)                                                      \
     {                                                                  \
-      if ((MAX_SKIP) == 0 || (MAX_SKIP) >= (1<<(LOG))-1)               \
+      if ((MAX_SKIP) == 0 || (MAX_SKIP) >= (1 << (LOG)) - 1)           \
         fprintf ((FILE), "\t.p2align %d\n", (LOG));                    \
       else                                                             \
         fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));    \
index 87c4114..1dff91f 100644 (file)
@@ -489,7 +489,7 @@ while (0)
 
 #define ASM_OUTPUT_ALIGN(STREAM,LOG)                                   \
   if ((LOG) != 0)                                                      \
-    fprintf (STREAM, "\t.balign %d\n", 1<<(LOG))
+    fprintf (STREAM, "\t.balign %d\n", 1 << (LOG))
 
 \f
 /* Macros Affecting all Debug Formats.  */
index 67b3c71..024e7b8 100644 (file)
@@ -1187,7 +1187,7 @@ do {                                                                           \
    location counter to a multiple of 2**LOG bytes.  */
 
 #define ASM_OUTPUT_ALIGN(FILE,LOG)     \
-    fprintf (FILE, "\t.align %d\n", (1<<(LOG)))
+    fprintf (FILE, "\t.align %d\n", (1 << (LOG)))
 
 #define ASM_OUTPUT_SKIP(FILE,SIZE)  \
   fprintf (FILE, "\t.blockz " HOST_WIDE_INT_PRINT_UNSIGNED"\n",                \
index b84f218..1bd4d61 100644 (file)
@@ -413,7 +413,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
    with GNU as. */
 #define ASM_OUTPUT_ALIGN_WITH_NOP(FILE,LOG)   \
   if ((LOG) != 0)                             \
-    fprintf (FILE, "\t.align %d,0x1000000\n", (1<<(LOG)))
+    fprintf (FILE, "\t.align %d,0x1000000\n", (1 << (LOG)))
 
 /* Use Solaris ELF section syntax with Sun as.  */
 #undef TARGET_ASM_NAMED_SECTION
index 4199954..032a91d 100644 (file)
@@ -1659,7 +1659,7 @@ do {                                                                      \
 
 #define ASM_OUTPUT_ALIGN(FILE,LOG)     \
   if ((LOG) != 0)                      \
-    fprintf (FILE, "\t.align %d\n", (1<<(LOG)))
+    fprintf (FILE, "\t.align %d\n", (1 << (LOG)))
 
 #define ASM_OUTPUT_SKIP(FILE,SIZE)  \
   fprintf (FILE, "\t.skip " HOST_WIDE_INT_PRINT_UNSIGNED"\n", (SIZE))
index edfe3fc..5bd56a0 100644 (file)
@@ -1486,7 +1486,7 @@ do                                                                        \
    POWER bytes.  POWER will be a C expression of type `int'. */
 #define ASM_OUTPUT_ALIGN(STREAM,LOG)      \
   if ((LOG) != 0)                       \
-    fprintf (STREAM, "\t.align  %d\n", (1<<(LOG)))
+    fprintf (STREAM, "\t.align  %d\n", (1 << (LOG)))
 
 /* `ASM_OUTPUT_MAX_SKIP_ALIGN (STREAM, POWER, MAX_SKIP)`
 
@@ -1497,7 +1497,7 @@ do                                                                        \
    expression of type `int'. */
 #define ASM_OUTPUT_MAX_SKIP_ALIGN(STREAM,LOG,MAX_SKIP)                 \
   if ((LOG) != 0) {                                                    \
-    if ((MAX_SKIP) == 0 || (MAX_SKIP) >= (1<<(LOG))-1)                 \
+    if ((MAX_SKIP) == 0 || (MAX_SKIP) >= (1 << (LOG)) - 1)             \
       fprintf ((STREAM), "\t.p2align %d\n", (LOG));                    \
     else                                                               \
       fprintf ((STREAM), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));    \