This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: -malign on Pentiums


> 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]