public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@physics.uc.edu>
To: gcc-gnats@gcc.gnu.org
Subject: objc/4975: gcc 3.1 ICE on legal ObjC code (-O3)
Date: Thu, 22 Nov 2001 14:06:00 -0000	[thread overview]
Message-ID: <200111302136.fAULaRO21475@earth.phy.uc.edu> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 8623 bytes --]


>Number:         4975
>Category:       objc
>Synopsis:       gcc 3.1 ICE on legal ObjC code (-O3)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 30 13:46:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Pinski
>Release:        3.1 20011130 (experimental)
>Organization:
Children's Hospital Medical Center of Cincinnati
>Environment:
System: Linux earth.phy.uc.edu 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /lhome/src/gnu/gcc/gcc3.1/src/configure --prefix=/home/linux --with-gnu-as=/home/linux/bun/as --with-gnu-ld=/home/linux/bin/ld --enable-threads=posix --enable-shared
>Description:
	When compiling my code with -O3 and -mcpu=pentiumpro I get the following:
gcc Gene.m -c   -DGNUSTEP -DGNUSTEP_VERSION= -DGNUSTEP_MAJOR_VERSION= -DGNUSTEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT  -fPIC -DGSWARN -v -save-temps -O3 -V3.1 -D__OBJC__ -Wall -mcpu=pentiumpro -fpic -Wno-import -I/home/linux/include -fgnu-runtime     -I. -I/home/linux/System/Headers -I/home/linux/System/Headers -I/home/rodent/pinskia/GNUstep/Library/Headers -I/home/linux/Local/Library/Headers -I/home/linux/Network/Library/Headers -I/home/linux/System/Library/Headers -I/home/linux/Network/Headers/gnustep -I/home/rodent/pinskia/GNUstep/Headers/gnustep -I/home/linux/Local/Headers/gnustep -I/home/linux/System/Headers/gnustep  -I/home/linux/Network/Headers/ix86/linux-gnu -I/home/rodent/pinskia/GNUstep/Headers/ix86/linux-gnu -I/home/linux/Local/Headers/ix86/linux-gnu -I/home/linux/System/Headers/ix86/linux-gnu -I/home/rodent/pinskia/GNUstep/Headers -I/home/linux/Local/Headers -I/home/linux/Network/Headers -I/home/linux/System!
/Headers  -o shared_obj/ix86/linux-gnu/gnu-gnu-gnu-xgps/Gene.o
Reading specs from /home/rodent/pinskia/gcc-linux/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /lhome/src/gnu/gcc/gcc3.1/src/configure --prefix=/home/linux --with-gnu-as=/home/linux/bun/as --with-gnu-ld=/home/linux/bin/ld --enable-threads=posix --enable-shared
Thread model: posix
gcc version 3.1 20011130 (experimental)
 /home/rodent/pinskia/gcc-linux/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.1/cpp0 -lang-objc -v -I/home/linux/include -I. -I/home/linux/System/Headers -I/home/linux/System/Headers -I/home/rodent/pinskia/GNUstep/Library/Headers -I/home/linux/Local/Library/Headers -I/home/linux/Network/Library/Headers -I/home/linux/System/Library/Headers -I/home/linux/Network/Headers/gnustep -I/home/rodent/pinskia/GNUstep/Headers/gnustep -I/home/linux/Local/Headers/gnustep -I/home/linux/System/Headers/gnustep -I/home/linux/Network/Headers/ix86/linux-gnu -I/home/rodent/pinskia/GNUstep/Headers/ix86/linux-gnu -I/home/linux/Local/Headers/ix86/linux-gnu -I/home/linux/System/Headers/ix86/linux-gnu -I/home/rodent/pinskia/GNUstep/Headers -I/home/linux/Local/Headers -I/home/linux/Network/Headers -I/home/linux/System/Headers -iprefix /home/rodent/pinskia/gcc-linux/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.1/ -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D_!
_linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Wall -Wno-import -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D__PIC__ -D__pic__ -D__PIC__ -D__pic__ -DGNUSTEP -DGNUSTEP_VERSION= -DGNUSTEP_MAJOR_VERSION= -DGNUSTEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -DGSWARN -D__OBJC__ Gene.m Gene.mi
ignoring nonexistent directory "/home/rodent/pinskia/GNUstep/Library/Headers"
ignoring nonexistent directory "/home/linux/Local/Library/Headers"
ignoring nonexistent directory "/home/linux/Network/Library/Headers"
ignoring nonexistent directory "/home/linux/System/Library/Headers"
ignoring nonexistent directory "/home/linux/Network/Headers/gnustep"
ignoring nonexistent directory "/home/rodent/pinskia/GNUstep/Headers/gnustep"
ignoring nonexistent directory "/home/linux/Local/Headers/gnustep"
ignoring nonexistent directory "/home/linux/Network/Headers/ix86/linux-gnu"
ignoring nonexistent directory "/home/rodent/pinskia/GNUstep/Headers/ix86/linux-gnu"
ignoring nonexistent directory "/home/linux/Local/Headers/ix86/linux-gnu"
ignoring nonexistent directory "/home/rodent/pinskia/GNUstep/Headers"
ignoring nonexistent directory "/home/linux/Local/Headers"
ignoring nonexistent directory "/home/linux/Network/Headers"
GNU CPP version 3.1 20011130 (experimental) (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "/usr/local/include"
ignoring duplicate directory "/home/linux/System/Headers"
ignoring duplicate directory "/home/linux/System/Headers"
cpp0: warning: changing search order for system directory "/home/linux/include"
cpp0: warning:   as it has already been specified as a non-system directory
ignoring duplicate directory "/home/linux/include"
ignoring duplicate directory "/home/linux/lib/gcc-lib/i686-pc-linux-gnu/3.1/include"
ignoring duplicate directory "/home/linux/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/linux/include
 .
 /home/linux/System/Headers
 /home/linux/System/Headers/gnustep
 /home/linux/System/Headers/ix86/linux-gnu
 /home/rodent/pinskia/gcc-linux/lib/gcc-lib/i686-pc-linux-gnu/3.1/include
 /home/rodent/pinskia/gcc-linux/i686-pc-linux-gnu/include
 /usr/include
End of search list.
 /home/rodent/pinskia/gcc-linux/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.1/cc1obj -fpreprocessed Gene.mi -quiet -dumpbase Gene.m -mcpu=pentiumpro -O3 -Wall -Wno-import -version -fPIC -fpic -fgnu-runtime -o Gene.s
GNU CPP version 3.1 20011130 (experimental) (cpplib) (i386 Linux/ELF)
GNU Objective-C version 3.1 20011130 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.1 20011130 (experimental).
Gene.m: In function `_GLOBAL__I_Gene.mTpeqgb':
Gene.m:152: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

I did a little investingating and found this is where it dies:
(gdb) bt
#0  append_random_chars (
    template=0xbfffe910 "\020?32@¸sq\b\020\000\000\000!\000\000\000../sysdeps/i386/sysdep.h\000\213\004@1", '\000' <repeats 43 times>, "°\213\004@i\000\000\000h\002n\bcv\b10 \"\\020?032@¸sq\\b\\020\\000\\000\\000!\\000\\000\\000../sysdeps/i386/sysdep.h\\000\\213\\004@1\",h\000\000\000 \000\000\000../sysdeps/generic/bp-sym.h\0001", '\000' <repeats 43 times>...)
    at /lhome/src/gnu/gcc/gcc3.1/src/gcc/tree.c:4470
#1  0x08240759 in get_file_function_name_long (
    type=0xbfffe946 "\020?32@\b?b\020\000\000\000!\000\000\000../include/fpu_control.h\000\217\004@1", '\000' <repeats 43 times>, "p\220\004@I\000\000\000../linuxthreads/sysdeps/unix/sysv/linux/i386/bits/posix_opt.h\000\000\000(?32@!\000\000\0000Â¥i\bp1d\b\000\000\000\000\000\000\000\000\001\001?\b\000\000\000\000 \000\000\000(\000\000\000../sysdeps/i386/fpu_control.h\000\000\000?..) at /lhome/src/gnu/gcc/gcc3.1/src/gcc/tree.c:4544
#2  0x08240799 in get_file_function_name (kind=73) at /lhome/src/gnu/gcc/gcc3.1/src/gcc/tree.c:4576
#3  0x08051ffd in build_module_descriptor () at /lhome/src/gnu/gcc/gcc3.1/src/gcc/objc/objc-act.c:1773
#4  0x08061ae1 in finish_objc () at /lhome/src/gnu/gcc/gcc3.1/src/gcc/objc/objc-act.c:8168
#5  0x0804f78f in finish_file () at /lhome/src/gnu/gcc/gcc3.1/src/gcc/objc/objc-act.c:644
#6  0x08049c25 in yyparse_1 () at /usr/lib/bison.simple:315
#7  0x08230784 in compile_file () at /lhome/src/gnu/gcc/gcc3.1/src/gcc/toplev.c:2127
#8  0x08235b29 in do_compile () at /lhome/src/gnu/gcc/gcc3.1/src/gcc/toplev.c:5146
#9  0x08235b88 in toplev_main (argc=17, argv=0xbfffeff4) at /lhome/src/gnu/gcc/gcc3.1/src/gcc/toplev.c:5176
#10 0x080aaccb in main (argc=17, argv=0xbfffeff4) at /lhome/src/gnu/gcc/gcc3.1/src/gcc/main.c:35
#11 0x40041f31 in __libc_start_main (main=0x80aacb0 <main>, argc=17, ubp_av=0xbfffeff4, init=0x8049038 <_init>, fini=0x82f0284 <_fini>, rtld_fini=0x4000e274 <_dl_fini>, 
    stack_end=0xbfffefec) at ../sysdeps/generic/libc-start.c:129
>How-To-Repeat:
	Compile with -O3 and -mcpu=pentiumpro the preprocessed code which I will be sending seperately because gccbug does not allow atachments(at least I cannot find a way to do that)
>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2001-11-30 21:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-22 14:06 Andrew Pinski [this message]
2001-11-22 14:17 Andrew Pinski
2001-11-23  1:46 Andrew Pinski
2002-07-13  2:16 neil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200111302136.fAULaRO21475@earth.phy.uc.edu \
    --to=pinskia@physics.uc.edu \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).