[Bug c/15790] New: Alignment error building gcc with i686-coff target
richard dot parratt at netiq dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 2 23:15:00 GMT 2004
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?
--
Summary: Alignment error building gcc with i686-coff target
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: richard dot parratt at netiq dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-coff
GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15790
More information about the Gcc-bugs
mailing list