This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13807] cc1 segfaults compiling specific thumb code
- From: "travis at danger dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2004 20:02:13 -0000
- Subject: [Bug target/13807] cc1 segfaults compiling specific thumb code
- References: <20040122024818.13807.travis@danger.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From travis at danger dot com 2004-01-22 20:02 -------
FWIW here's the backtrace at the time of crash using gdb:
#0 0x080ec234 in asm_fprintf (file=0x8338660, p=0x827ec8f ", #%d]")
at ../../gcc-3.3.2/gcc/final.c:3774
#1 0x080ebc2d in output_address (x=0x401932ac) at ../../gcc-
3.3.2/gcc/final.c:3534
#2 0x081f7ffa in arm_print_operand (stream=0x827ec8f, x=0xbfffef91, code=0)
at ../../gcc-3.3.2/gcc/config/arm/arm.c:8773
#3 0x080ebb55 in output_operand (x=0x401932b8, code=1075379704) at ../../gcc-
3.3.2/gcc/final.c:3522
#4 0x080eb79e in output_asm_insn (template=0xbfffef91 "2\031@ðïÿ¿¸ïÿ¿³±\016\b´2
\031@`\2063\b", operands=0x830c900)
at ../../gcc-3.3.2/gcc/final.c:3445
#5 0x080ea60b in final_scan_insn (insn=0x827ec8f, file=0x8338660, optimize=2,
prescan=0, nopeepholes=0)
at ../../gcc-3.3.2/gcc/final.c:2814
#6 0x080e9ff7 in final (first=0x827ec8f, file=0x8338660, optimize=2,
prescan=0) at ../../gcc-3.3.2/gcc/final.c:1904
#7 0x081d0f61 in rest_of_compilation (decl=0x827ec8f) at ../../gcc-
3.3.2/gcc/toplev.c:3590
#8 0x0805a016 in c_expand_body (fndecl=0x40179bd0, nested_p=0, can_defer_p=1)
at ../../gcc-3.3.2/gcc/c-decl.c:6705
#9 0x08059d97 in finish_function (nested=0, can_defer_p=1075379704)
at ../../gcc-3.3.2/gcc/c-decl.c:6537
#10 0x08049e24 in yyparse () at c-parse.y:431
#11 0x080509f9 in c_common_parse_file (set_yydebug=1075379704) at ../../gcc-
3.3.2/gcc/c-lex.c:159
#12 0x081cfb2a in compile_file () at ../../gcc-3.3.2/gcc/toplev.c:2130
#13 0x081d4db5 in do_compile () at ../../gcc-3.3.2/gcc/toplev.c:5402
#14 0x081d4e5d in toplev_main (argc=1075379704, argv=0x0) at ../../gcc-
3.3.2/gcc/toplev.c:5432
#15 0x08088bfb in main (argc=1075379704, argv=0x4018fdf8) at ../../gcc-
3.3.2/gcc/main.c:35
#16 0x4002e90b in __libc_start_main () from /lib/libc.so.6
Looks like it goes south when it calls output_operand (x=0x401932b8 is totally
invalid)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13807