From: nickc Date: Sun, 30 May 1999 12:04:01 +0000 (+0000) Subject: Sat May 29 19:08:10 1999 Philip Blundell X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42118a501f0175d77263d1030f03e32fb3cceeb1;p=platform%2Fupstream%2Flinaro-gcc.git Sat May 29 19:08:10 1999 Philip Blundell * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already defined. * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define. (MAX_OFILE_ALIGNMENT): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27246 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 80b55d7..3d46c82 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Sat May 29 19:08:10 1999 Philip Blundell + + * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already + defined. + * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define. + (MAX_OFILE_ALIGNMENT): Define. + Fri May 28 21:40 1999 Robert Lipe * fixincl.c: Replace local include scheme with #includes of diff --git a/gcc/config/arm/aout.h b/gcc/config/arm/aout.h index 2e341b7..df1694a 100644 --- a/gcc/config/arm/aout.h +++ b/gcc/config/arm/aout.h @@ -236,6 +236,7 @@ do { char dstr[30]; \ fprintf (STREAM, "\t.space\t%d\n", NBYTES) /* Align output to a power of two. Horrible /bin/as. */ +#ifndef ASM_OUTPUT_ALIGN #define ASM_OUTPUT_ALIGN(STREAM, POWER) \ do \ { \ @@ -245,7 +246,9 @@ do { char dstr[30]; \ fprintf (STREAM, "\t.even\n"); \ else if (amount != 1) \ fprintf (STREAM, "\t.align\t%d\n", amount - 4); \ - } while (0) + } \ + while (0) +#endif /* Output a common block */ #ifndef ASM_OUTPUT_COMMON diff --git a/gcc/config/arm/elf.h b/gcc/config/arm/elf.h index b282004..63ec125 100644 --- a/gcc/config/arm/elf.h +++ b/gcc/config/arm/elf.h @@ -341,4 +341,14 @@ do { \ /* The ELF assembler handles GOT addressing differently to NetBSD. */ #define GOT_PCREL 0 +/* Biggest alignment supported by the object file format of this + machine. Use this macro to limit the alignment which can be + specified using the `__attribute__ ((aligned (N)))' construct. If + not defined, the default value is `BIGGEST_ALIGNMENT'. */ +#define MAX_OFILE_ALIGNMENT (32768*8) + +/* Align output to a power of two. */ +#define ASM_OUTPUT_ALIGN(STREAM, POWER) \ + fprintf (STREAM, "\t.align\t%d\n", POWER) + #include "arm/aout.h"