Commit 72579062 by Nick Clifton Committed by Nick Clifton

Prevent emission of "a.lign 0" directives

From-SVN: r32052
parent a0f4cca6
2000-02-18 Nick Clifton <nickc@cygnus.com>
* config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
anything for an alignment of zero.
* config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
anything for an alignment of zero.
2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de> 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
* gcc.texi (Bug Reporting): Refer to bugs.html. * gcc.texi (Bug Reporting): Refer to bugs.html.
......
...@@ -356,8 +356,14 @@ dtors_section () \ ...@@ -356,8 +356,14 @@ dtors_section () \
not defined, the default value is `BIGGEST_ALIGNMENT'. */ not defined, the default value is `BIGGEST_ALIGNMENT'. */
#define MAX_OFILE_ALIGNMENT (32768 * 8) #define MAX_OFILE_ALIGNMENT (32768 * 8)
/* Align output to a power of two. */ /* Align output to a power of two. Note ".align 0" is redundant,
#define ASM_OUTPUT_ALIGN(STREAM, POWER) \ and also GAS will treat it as ".align 2" which we do not want. */
fprintf (STREAM, "\t.align\t%d\n", POWER) #define ASM_OUTPUT_ALIGN(STREAM, POWER) \
do \
{ \
if ((POWER) > 0) \
fprintf (STREAM, "\t.align\t%d\n", POWER); \
} \
while (0)
#include "arm/aout.h" #include "arm/aout.h"
...@@ -139,13 +139,18 @@ extern int target_flags; ...@@ -139,13 +139,18 @@ extern int target_flags;
#define ASM_OUTPUT_SKIP(STREAM, NBYTES) \ #define ASM_OUTPUT_SKIP(STREAM, NBYTES) \
fprintf ((STREAM), "\t.space\t%u\n", (NBYTES)) fprintf ((STREAM), "\t.space\t%u\n", (NBYTES))
/* This is how to output an assembler line /* This is how to output an assembler line that says to advance the
that says to advance the location counter location counter to a multiple of 2**LOG bytes. Advancing to the
to a multiple of 2**LOG bytes. */ nearest 1 byte boundary is redundant, and anyway the assembler would
#define ASM_OUTPUT_ALIGN(STREAM,LOG) \ treat it as meaning "advance to nearest 4 byte boundary", which we do
{ \ not want. */
fprintf (STREAM, "\t.align\t%d\n", (LOG)); \ #define ASM_OUTPUT_ALIGN(STREAM,LOG) \
} do \
{ \
if ((LOG) > 0) \
fprintf (STREAM, "\t.align\t%d\n", LOG); \
} \
while (0)
/* Output a common block */ /* Output a common block */
#define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \ #define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \
......
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