This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -malign on Pentiums
- To: robertl at dgii dot com (Robert Lipe)
- Subject: Re: -malign on Pentiums
- From: hjl at lucon dot org (H.J. Lu)
- Date: Tue, 2 Jun 1998 16:01:38 -0700 (PDT)
- Cc: tori at prosolvia dot se, egcs at cygnus dot com, crux at pool dot informatik dot rwth-aachen dot de
> Bernd, do you think that this:
>
> /* A C statement to output to the stdio stream FILE an assembler
> command to advance the location counter to a multiple of 1<<LOG
> bytes if it is within MAX_SKIP bytes.
>
> This is used to align code labels according to Intel recommendations. */
>
> #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
> # define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
> if ((LOG)!=0) \
> if ((MAX_SKIP)==0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
> else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP))
> #endif
>
> should be wrenched out of i386/gas.h and slammed into i386.h? This
> would get the code used in targets that had this facility but that didn't
> Agreed. The list of targets that would pluck the code out of gas.h
> seems to be pretty inconsistent.
Since gas.h includes i386/bfd.h, it is more restrictive than generic
gas support. The name is kind of misleading. It really is meant for
BSDs using gas, not any Unix OSes using gas.
--
H.J. Lu (hjl@gnu.org)