This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

config/i386/i386-coff.h patch for .align problem


If you manage to configure an i386-coff toolchain wrong such that gas
isn't found at configure time, and hence we can't perform any configure
time tests on the assembler, then an i386-coff toolchain build will
fail.  This is because gcc by default assumes that the .align directive
takes the log of the number of bytes, whereas gas requires the number of
bytes.  The result is that you get an assembler warning complaining
about a non-power of 2 argument to the .align directive while building
libgcc.

The following patch fixes this.  I think you can only get in this state
if there is a problem during configure, but it is easy enough to fix
that we might as well do so.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

Attachment: patch.align
Description: Text document


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