Commit 3f1a2e57 by Martin Liska Committed by Martin Liska

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
parent e6de5335
2018-07-17 Martin Liska <mliska@suse.cz> 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. * align.h: New file.
* config/alpha/alpha.c (alpha_align_insns_1): Use align_functions directly. * config/alpha/alpha.c (alpha_align_insns_1): Use align_functions directly.
* config/i386/i386.c (ix86_avoid_jump_mispredicts): Use new return type * config/i386/i386.c (ix86_avoid_jump_mispredicts): Use new return type
......
...@@ -57,7 +57,7 @@ do \ ...@@ -57,7 +57,7 @@ do \
to a multiple of 2**LOG bytes. */ to a multiple of 2**LOG bytes. */
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #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 /* This is how to output an assembler line
that says to advance the location counter by SIZE bytes. */ that says to advance the location counter by SIZE bytes. */
......
...@@ -290,7 +290,7 @@ do { \ ...@@ -290,7 +290,7 @@ do { \
#undef ASM_OUTPUT_ALIGN #undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #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. */ /* Windows uses explicit import from shared libraries. */
#define MULTIPLE_SYMBOL_SPACES 1 #define MULTIPLE_SYMBOL_SPACES 1
......
...@@ -69,7 +69,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -69,7 +69,7 @@ along with GCC; see the file COPYING3. If not see
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
# define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \ # define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
if ((LOG) != 0) { \ 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)); \ fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
else \ else \
fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \ fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
......
...@@ -77,7 +77,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -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) \ #define ASM_OUTPUT_MAX_SKIP_PAD(FILE, LOG, MAX_SKIP) \
if ((LOG) != 0) \ 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)); \ fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
else \ else \
fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \ fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
......
...@@ -489,7 +489,7 @@ while (0) ...@@ -489,7 +489,7 @@ while (0)
#define ASM_OUTPUT_ALIGN(STREAM,LOG) \ #define ASM_OUTPUT_ALIGN(STREAM,LOG) \
if ((LOG) != 0) \ if ((LOG) != 0) \
fprintf (STREAM, "\t.balign %d\n", 1<<(LOG)) fprintf (STREAM, "\t.balign %d\n", 1 << (LOG))
/* Macros Affecting all Debug Formats. */ /* Macros Affecting all Debug Formats. */
......
...@@ -1187,7 +1187,7 @@ do { \ ...@@ -1187,7 +1187,7 @@ do { \
location counter to a multiple of 2**LOG bytes. */ location counter to a multiple of 2**LOG bytes. */
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #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) \ #define ASM_OUTPUT_SKIP(FILE,SIZE) \
fprintf (FILE, "\t.blockz " HOST_WIDE_INT_PRINT_UNSIGNED"\n", \ fprintf (FILE, "\t.blockz " HOST_WIDE_INT_PRINT_UNSIGNED"\n", \
......
...@@ -413,7 +413,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); ...@@ -413,7 +413,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
with GNU as. */ with GNU as. */
#define ASM_OUTPUT_ALIGN_WITH_NOP(FILE,LOG) \ #define ASM_OUTPUT_ALIGN_WITH_NOP(FILE,LOG) \
if ((LOG) != 0) \ 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. */ /* Use Solaris ELF section syntax with Sun as. */
#undef TARGET_ASM_NAMED_SECTION #undef TARGET_ASM_NAMED_SECTION
......
...@@ -1659,7 +1659,7 @@ do { \ ...@@ -1659,7 +1659,7 @@ do { \
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #define ASM_OUTPUT_ALIGN(FILE,LOG) \
if ((LOG) != 0) \ 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) \ #define ASM_OUTPUT_SKIP(FILE,SIZE) \
fprintf (FILE, "\t.skip " HOST_WIDE_INT_PRINT_UNSIGNED"\n", (SIZE)) fprintf (FILE, "\t.skip " HOST_WIDE_INT_PRINT_UNSIGNED"\n", (SIZE))
......
...@@ -1486,7 +1486,7 @@ do \ ...@@ -1486,7 +1486,7 @@ do \
POWER bytes. POWER will be a C expression of type `int'. */ POWER bytes. POWER will be a C expression of type `int'. */
#define ASM_OUTPUT_ALIGN(STREAM,LOG) \ #define ASM_OUTPUT_ALIGN(STREAM,LOG) \
if ((LOG) != 0) \ 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)` /* `ASM_OUTPUT_MAX_SKIP_ALIGN (STREAM, POWER, MAX_SKIP)`
...@@ -1497,7 +1497,7 @@ do \ ...@@ -1497,7 +1497,7 @@ do \
expression of type `int'. */ expression of type `int'. */
#define ASM_OUTPUT_MAX_SKIP_ALIGN(STREAM,LOG,MAX_SKIP) \ #define ASM_OUTPUT_MAX_SKIP_ALIGN(STREAM,LOG,MAX_SKIP) \
if ((LOG) != 0) { \ 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)); \ fprintf ((STREAM), "\t.p2align %d\n", (LOG)); \
else \ else \
fprintf ((STREAM), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \ fprintf ((STREAM), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment