This is the mail archive of the gcc-bugs@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]

Build problem with i686-coff target


Version: 3.3.1
Configuration: --target=i686-coff 
System: cygwin (on XP)

I was trying to build a GCC cross compiler with a target of "i686-coff". 
It failed with "Error: Alignment not a power of 2"

I found various references to this, e.g.
http://sources.redhat.com/ml/crossgcc/2001-03/msg00176.html
 from Kai Ruottu <kai.ruottu@luukku.com>

The fix given there was to add lines as follows to i386-coff.h:
#undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG)    \
    if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))

This worked.

As this seems to be an old chestnut (it was already one in 2001) could the
fix be added to the reference source, so that everyone making a
cross-compiler doesn't have to patch?

Cheers,
Richard


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