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]

egcs: bad asm generated


Hallo egcs developers,
in attachment I'm sending code which generates bug.

Machine:
egcs-2.91.66 (sorry I do not use latest shapshot, but latest release)
GNU assembler 2.9.1 (2.9.1.0.25)
glibc-2.1.1
linux-2.2
targets tested: i486-pc-linux-gnu, i686-pc-linux-gnu (Cyrix i686)

Command line argument:
gcc -c -Os -fPIC egcs.c 

egcs configure arguments:
tar -y -x -f /dist/egcs/egcs-1.1.1.tar.bz2
mkdir Build ; cd Build
CFLAGS="-O69 -fomit-frame-pointer" CXXFLAGS="-O69 -fomit-frame-pointer" ../configure --prefix=/usr --enable-shared --disable-static --enable-threads=posix --with-gnu-as --with-gnu-ld --with-stabs --with-fast-fixincludes --verbose --enable-haifa
make
make install
strip --preserve-dates /usr/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.66/{c[cop]*,f771}
rm /usr/lib/libstdc++.a /usr/i686-pc-linux-gnu/lib/libiberty.a

notes:
- The bug is generated when compiling shared glibc with additional -Os optimizing.
- I am sending preprocessed file to simplify reproducing a bug.

messages:
strptime.c: In function `strptime_internal':
strptime.c:818: fixed or forbidden register 3 (bx) was spilled for class GENERAL_REGS.
This may be due to a compiler bug or to impossible asm
statements or clauses.

-- Stanislav Brabec

egcs.c.gz


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