diff options
author | Martin Liska <mliska@suse.cz> | 2018-07-17 11:19:57 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-07-17 09:19:57 +0000 |
commit | 3f1a2e5765d0eee0b4e6f2675e5ed9147f457bfb (patch) | |
tree | 766351274c156f1ed6bf3771147329c8fb9cef88 /gcc | |
parent | e6de53356769e13178975c18b4ce019a800ea946 (diff) | |
download | gcc-3f1a2e5765d0eee0b4e6f2675e5ed9147f457bfb.zip gcc-3f1a2e5765d0eee0b4e6f2675e5ed9147f457bfb.tar.gz gcc-3f1a2e5765d0eee0b4e6f2675e5ed9147f457bfb.tar.bz2 |
Fix coding style of ASM_OUTPUT_ALIGN.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 14 | ||||
-rw-r--r-- | gcc/config/i386/att.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/cygming.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/gas.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/x86-64.h | 2 | ||||
-rw-r--r-- | gcc/config/iq2000/iq2000.h | 2 | ||||
-rw-r--r-- | gcc/config/pa/pa.h | 2 | ||||
-rw-r--r-- | gcc/config/sparc/sol2.h | 2 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.h | 2 | ||||
-rw-r--r-- | gcc/config/visium/visium.h | 4 |
10 files changed, 24 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8051255..fe754fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/i386/att.h b/gcc/config/i386/att.h index 8e4bc2e..7dd359b 100644 --- a/gcc/config/i386/att.h +++ b/gcc/config/i386/att.h @@ -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. */ diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 80a0a37..cfe563f 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -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 diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h index e149ab1..eb30db5 100644 --- a/gcc/config/i386/gas.h +++ b/gcc/config/i386/gas.h @@ -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)); \ diff --git a/gcc/config/i386/x86-64.h b/gcc/config/i386/x86-64.h index 66bbd5e..bc97454 100644 --- a/gcc/config/i386/x86-64.h +++ b/gcc/config/i386/x86-64.h @@ -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)); \ diff --git a/gcc/config/iq2000/iq2000.h b/gcc/config/iq2000/iq2000.h index 87c4114..1dff91f 100644 --- a/gcc/config/iq2000/iq2000.h +++ b/gcc/config/iq2000/iq2000.h @@ -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)) /* Macros Affecting all Debug Formats. */ diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 67b3c71..024e7b8 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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", \ diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index b84f218..1bd4d61 100644 --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -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 diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 4199954..032a91d 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -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)) diff --git a/gcc/config/visium/visium.h b/gcc/config/visium/visium.h index edfe3fc..5bd56a0 100644 --- a/gcc/config/visium/visium.h +++ b/gcc/config/visium/visium.h @@ -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)); \ |