This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/48385] x86-64: Tail call recursion optimization with -mcmodel=large can generate invalid assembly (immediate operand illegal with absolute jump)
- From: "martin at decky dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 1 Jul 2011 02:57:22 +0000
- Subject: [Bug target/48385] x86-64: Tail call recursion optimization with -mcmodel=large can generate invalid assembly (immediate operand illegal with absolute jump)
- Auto-submitted: auto-generated
- References: <bug-48385-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48385
Martin Decky <martin at decky dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #23836|0 |1
is obsolete| |
--- Comment #7 from Martin Decky <martin at decky dot cz> 2011-07-01 02:57:21 UTC ---
Created attachment 24651
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24651
Preprocessed file for the short test case
Output of /usr/local/cross/amd64/bin/amd64-linux-gnu-gcc -v:
Using built-in specs.
COLLECT_GCC=/usr/local/cross/amd64/bin/amd64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/local/cross/amd64/libexec/gcc/amd64-linux-gnu/4.6.1/lto-wrapper
Target: amd64-linux-gnu
Configured with: /root/install/cross/amd64/gcc-4.6.1/configure
--target=amd64-linux-gnu --prefix=/usr/local/cross/amd64
--program-prefix=amd64-linux-gnu- --with-gnu-as --with-gnu-ld --disable-nls
--disable-threads --enable-languages=c,objc,c++,obj-c++ --disable-multilib
--disable-libgcj --without-headers --disable-shared --enable-lto
Thread model: single
gcc version 4.6.1 (GCC)
Command line that triggered the bug:
/usr/local/cross/amd64/bin/amd64-linux-gnu-gcc -DKERNEL -DRELEASE=0.4.3
"-DNAME=Sashimi" -D__64_BITS__ -D__LE__ -Igeneric/include -O3 -imacros
../config.h -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32LE
-finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc
-std=gnu99 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes
-Werror-implicit-function-declaration -Wwrite-strings -pipe -Werror -m64
-mcmodel=large -mno-red-zone -fno-unwind-tables -fno-omit-frame-pointer
-march=opteron -Itest/ -mno-sse -mno-sse2 -c -o genarch/src/mm/page_pt.o
genarch/src/mm/page_pt.c
Compiler output:
{standard input}: Assembler messages:
{standard input}:284: Error: immediate operand illegal with absolute jump