During the build of glibc (2.3.6) there is a file (csu/initfini.c) that has
several asm statements. After compiling, the resulting asm file will be the
source of some sed scripts that generates crti.S and crtn.S.
Using gcc-trunk snapshot from 20060828, and gcc-4.0.2, the generated files
initfini.s differs to a point that the sed scripts gets totaly lost.
Attached is initfini.i, the file generated by 4.0.2 (initfini.s) (which is what
sed scripts expects), and the file generated with gcc-trunk (initfini-BAD.s)
Both compilers in question were configured with:
--target=powerpc-unkown-linux-gnuspe --enable-e500_double
The initfini.s file is obtained with:
gcc -g -g0 -fpic -finhibit-size-directive -fno-exceptions -O1 -S initfini.i
--
Summary: [4.2.0] regression
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: edmar at freescale dot com
GCC host triplet: powerpc-unknown-linux-gnuspe
GCC target triplet: powerpc-unknown-linux-gnuspe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28930