public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/49656] New: internal compiler error on Mac OS 10.7.0
@ 2011-07-05 23:54 andreas at galauner dot de
  2011-07-06  8:09 ` [Bug target/49656] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: andreas at galauner dot de @ 2011-07-05 23:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49656

           Summary: internal compiler error on Mac OS 10.7.0
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: andreas@galauner.de


Created attachment 24698
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24698
Preprocessed main.c

Target: x86_64-elf
Configured with: --target=x86_64-elf --without-headers --enable-languages=c,c++
--disable-nls
And then build with: make all-gcc
Version: 4.6.1

Command line: x86_64-elf-gcc -m32 -g -nostdlib -nostdinc -fno-builtin
-fno-stack-protector -std=gnu99 -Wall -Wextra -pedantic -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes
-Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline
-Wno-long-long -Wstrict-prototypes  -DARCH_X86 -DDEBUG -Iinclude -c src/main.c
-o obj/main.o

Error message:
src/main.c:30:1: internal compiler error: in execute_ipa_pass_list, at
passes.c:2426
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [obj/main.o] Error 1

main.i is attached

I also tried this with GCC 4.6.0 and 4.5.0. Same error.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/49656] internal compiler error on Mac OS 10.7.0
  2011-07-05 23:54 [Bug c/49656] New: internal compiler error on Mac OS 10.7.0 andreas at galauner dot de
@ 2011-07-06  8:09 ` rguenth at gcc dot gnu.org
  2011-07-06  8:31 ` andreas at galauner dot de
  2011-07-13 22:09 ` andreas at galauner dot de
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-07-06  8:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49656

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-06 08:08:57 UTC ---
Works for me on native x86_64.

Also passes.c from 4.6.1 does only have 2052 lines, so your version information
cannot be correct.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/49656] internal compiler error on Mac OS 10.7.0
  2011-07-05 23:54 [Bug c/49656] New: internal compiler error on Mac OS 10.7.0 andreas at galauner dot de
  2011-07-06  8:09 ` [Bug target/49656] " rguenth at gcc dot gnu.org
@ 2011-07-06  8:31 ` andreas at galauner dot de
  2011-07-13 22:09 ` andreas at galauner dot de
  2 siblings, 0 replies; 4+ messages in thread
From: andreas at galauner dot de @ 2011-07-06  8:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49656

--- Comment #2 from andreas at galauner dot de 2011-07-06 08:30:52 UTC ---
(In reply to comment #1)
> Also passes.c from 4.6.1 does only have 2052 lines, so your version information
> cannot be correct.

Oh, I'm sorry. You are totally right.
I accidentally used a 4.7 snapshot which, obviously, breaks for me in the same
manner.

Here is the error with a real 4.6.1:
x86_64-elf-gcc -m32 -g -nostdlib -nostdinc -fno-builtin -fno-stack-protector
-std=gnu99 -Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
-Wnested-externs -Winline -Wno-long-long -Wstrict-prototypes  -DARCH_X86
-DDEBUG -Iinclude -c src/main.c -o obj/main.o
src/main.c:30:1: internal compiler error: in execute_ipa_pass_list, at
passes.c:1921
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [obj/main.o] Error 1

Everything else is the same.
I just downloaded 4.6.1, build it and executed it and this is result.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/49656] internal compiler error on Mac OS 10.7.0
  2011-07-05 23:54 [Bug c/49656] New: internal compiler error on Mac OS 10.7.0 andreas at galauner dot de
  2011-07-06  8:09 ` [Bug target/49656] " rguenth at gcc dot gnu.org
  2011-07-06  8:31 ` andreas at galauner dot de
@ 2011-07-13 22:09 ` andreas at galauner dot de
  2 siblings, 0 replies; 4+ messages in thread
From: andreas at galauner dot de @ 2011-07-13 22:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49656

--- Comment #3 from andreas at galauner dot de 2011-07-13 22:09:11 UTC ---
I just compiled GCC 4.6.1 again without clang after I found out how to do that.

By defining
CC = /usr/bin/gcc-4.2
CPP = /usr/bin/cpp-4.2
CXX = /usr/bin/g++-4.2
LD = /usr/bin/gcc-4.2
before the configure step the Apple GCC is used for compilation.

If you don't do that, clang will be used on Mac OS with XCode >4 and this leads
to this "internal compiler error".
So, it doesn't seem to be a GCC issue.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-13 22:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-05 23:54 [Bug c/49656] New: internal compiler error on Mac OS 10.7.0 andreas at galauner dot de
2011-07-06  8:09 ` [Bug target/49656] " rguenth at gcc dot gnu.org
2011-07-06  8:31 ` andreas at galauner dot de
2011-07-13 22:09 ` andreas at galauner dot de

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).