Article View: gnu.gcc.bug
Article #1477Gnu GCC 2.3.2 dumps core on some invalid "asm" directives.
From: Arthur David Olson
Date: Sat, 26 Dec 1992 17:42
Date: Sat, 26 Dec 1992 17:42
43 lines
2131 bytes
2131 bytes
(We're running SunOS 4.1.1 on a Sun 4/75 and a Sun 3/280.)
Description:
Gnu GCC 2.3.2 dumps core on some invalid "asm" directives.
Repeat-By:
The core dump occurs for the "fails.c" file on both Sun3's and Sun4's;
here are details for the Sun4:
Script started on Sat Dec 26 12:40:08 1992
bossie$ cat fails.c
f() { asm("oops %0" : "=o" (0)); }
bossie$ dbx cc1
Reading symbolic information...
Read 81441 symbols
(dbx) stop in abort
(2) stop in abort
(dbx) run -version fails.c -o fails.o
Running: cc1 -version fails.c -o fails.o
GNU C version 2.3.2 (sparc) compiled by CC.
enabled: -fdefer-pop -fpeephole -ffunction-cse -fcommon -mfpu -mepilogue
fstopped in abort at 0xf7774310
abort: save %sp, -96, %sp
Current function is push_reload
694 abort ();
(dbx) where
abort() at 0xf7774310
push_reload(in = (nil), out = 0x1afdf8, inloc = (nil), outloc = 0x1b2aec, class = NO_REGS, inmode = VOIDmode, outmode = VOIDmode, strict_low = 0, optional = 0, needed_for = (nil)), line 694 in "reload.c"
find_reloads(insn = 0x1b2af8, replace = 0, ind_levels = 0, live_known = 0, reload_reg_p = 0x1aaf84), line 2997 in "reload.c"
reload(first = 0x1b2818, global = 0, dumpfile = (nil)), line 1024 in "reload1.c"
rest_of_compilation(decl = 0x1bf298), line 2543 in "toplev.c"
finish_function(nested = 0), line 6092 in "c-decl.c"
yyparse(), line 289 in "c-parse.y"
compile_file(name = 0xf7ffff81 "fails.c"), line 1809 in "toplev.c"
main(argc = 5, argv = 0xf7ffff3c, envp = 0xf7ffff54), line 3291 in "toplev.c"
(dbx) quit
bossie$ exit
script done on Sat Dec 26 12:40:54 1992
--
Arthur David Olson ado@elsie.nci.nih.gov
ADO and Elsie are Ampex and Borden trademarks
Technical Details
Message-ID:
<9212261742.AA08269@elsie.nci.nih.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!elsie.nci.nih.gov!adoShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!elsie.nci.nih.gov!ado From: ado@elsie.nci.nih.gov (Arthur David Olson) Subject: Gnu GCC 2.3.2 dumps core on some invalid "asm" directives. Message-ID: <9212261742.AA08269@elsie.nci.nih.gov> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sat, 26 Dec 1992 17:42:30 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 44