public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/12808] New: [tree-ssa] sh-elf build failure.
@ 2003-10-28 10:26 naveens at noida dot hcltech dot com
  2003-10-28 10:45 ` [Bug target/12808] " naveens at noida dot hcltech dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: naveens at noida dot hcltech dot com @ 2003-10-28 10:26 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [tree-ssa] sh-elf build failure.
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: naveens at noida dot hcltech dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh-unknown-elf

I get this error while building tree-ssa branch for sh-elf.

/export/naveens/tree-ssa/objs/gcc/xgcc -B/export/naveens/tree-ssa/objs/gcc/ 
-B/export/naveens/sh-cross/sh-elf/bin/ -B/export/naveens/sh-cross/sh-elf/lib/ 
-isystem /export/naveens/sh-cross/sh-elf/include -isystem 
/export/naveens/sh-cross/sh-elf/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   -W 
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem .
/include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I -I..
/../gcc/gcc -I../../gcc/gcc/ -I../../gcc/gcc/../include -I../../gcc/gcc/..
/libbanshee/libcompat -I../../gcc/gcc/../libbanshee -I../../gcc/gcc/..
/libbanshee/points-to  -ml -m2e -fexceptions -c ../../gcc/gcc/unwind-dw2.c -o 
libgcc/ml/m2e/unwind-dw2.o
../../gcc/gcc/unwind-dw2.c: In function `_Unwind_GetGR':

../../gcc/gcc/unwind-dw2.c:189: warning: comparison between signed and unsigned
../../gcc/gcc/unwind-dw2.c: In function `_Unwind_SetGR':

../../gcc/gcc/unwind-dw2.c:227: warning: comparison between signed and unsigned
../../gcc/gcc/unwind-dw2.c: In function `extract_cie_info':

../../gcc/gcc/unwind-dw2.c:320: warning: implicit declaration of function 
`strlen'
../../gcc/gcc/unwind-dw2.c: In function `uw_frame_state_for':

../../gcc/gcc/unwind-dw2.c:1005: warning: implicit declaration of function 
`memset'
../../gcc/gcc/unwind-dw2.c: In function `uw_install_context_1':

../../gcc/gcc/unwind-dw2.c:1333: warning: implicit declaration of function 
`memcpy'
In file included from ../../gcc/gcc/unwind-dw2.c:1364:
../../gcc/gcc/unwind.inc: In function `_Unwind_Backtrace':

../../gcc/gcc/unwind.inc:313: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [libgcc/ml/m2e/unwind-dw2.o] Error 1
make[2]: Leaving directory `/export/naveens/tree-ssa/objs/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/export/naveens/tree-ssa/objs/gcc'
make: *** [all-gcc] Error 2


Here is the output of sh-elf-gcc -v

../gcc/configure --target=sh-elf --prefix=/export/naveens/sh-cross 
--with-as=/home/gnu/cross-tools/bin/sh-elf-as 
--with-ld=/home/gnu/cross-tools/bin/sh-elf-ld 
--with-libs=/home/gnu/local/sh-elf/lib --enable-languages=c --enable-checking
Thread model: single
gcc version 3.5-tree-ssa 20031022 (merged 20031017)

Additional Information:

$ uname -a
Linux peacock 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown

I am not able to create the crash with a pre-processed file.(don't know
why?) So can't give a pre-processed file. Any ideas?


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

* [Bug target/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
@ 2003-10-28 10:45 ` naveens at noida dot hcltech dot com
  2003-10-28 10:58 ` naveens at noida dot hcltech dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: naveens at noida dot hcltech dot com @ 2003-10-28 10:45 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From naveens at noida dot hcltech dot com  2003-10-28 10:37 -------
OK, Here is the stack trace at the point of SIGSEGV.

Program received signal SIGSEGV, Segmentation fault.
0x082ad253 in eliminate_regs (x=0x409b2378, mem_mode=VOIDmode, insn=0x0)
    at ../../gcc/gcc/reload1.c:2567
2567          if (*fmt == 'e')
(gdb) where
#0  0x082ad253 in eliminate_regs (x=0x409b2378, mem_mode=VOIDmode, insn=0x0)
    at ../../gcc/gcc/reload1.c:2567
#1  0x082a9d69 in reload (first=0x4099cf60, global=1) at ../../gcc/gcc/reload1.
c:912
#2  0x08356bb6 in global_alloc (file=0x0) at ../../gcc/gcc/global.c:582
#3  0x082dd1cb in rest_of_handle_old_regalloc (decl=0x4012a6cc, 
insns=0x4099cf60,
    rebuild_notes=0xbfffecd8) at ../../gcc/gcc/toplev.c:2297
#4  0x082defb8 in rest_of_compilation (decl=0x4012a6cc)
    at ../../gcc/gcc/toplev.c:3461
#5  0x080eacd1 in tree_rest_of_compilation (fndecl=0x4012a6cc, nested_p=false)
    at ../../gcc/gcc/tree-optimize.c:364
#6  0x0805f947 in c_expand_body_1 (fndecl=0x4012a6cc, nested_p=0)
    at ../../gcc/gcc/c-decl.c:6199
#7  0x0805faa4 in c_expand_body (fndecl=0x4012a6cc) at ../../gcc/gcc/c-decl.c:
6229
#8  0x083230c2 in cgraph_expand_function (node=0x4098da6c)
    at ../../gcc/gcc/cgraphunit.c:494
#9  0x08322787 in cgraph_assemble_pending_functions ()
    at ../../gcc/gcc/cgraphunit.c:141
#10 0x083228ae in cgraph_finalize_function (decl=0x4012a6cc, nested=false)
    at ../../gcc/gcc/cgraphunit.c:217
#11 0x0805f843 in finish_function () at ../../gcc/gcc/c-decl.c:6155
#12 0x0804a6fd in yyparse () at c-parse.y:386
#13 0x0804fddf in c_parse_file () at c-parse.y:3033
#14 0x080902bc in c_common_parse_file (set_yydebug=0) at ../../gcc/gcc/c-opts.c:
1221
#15 0x082dc82e in compile_file () at ../../gcc/gcc/toplev.c:1855
#16 0x082e0997 in do_compile () at ../../gcc/gcc/toplev.c:4574
#17 0x082e0a1e in toplev_main (argc=31, argv=0xbffff6f4)
    at ../../gcc/gcc/toplev.c:4614
#18 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6


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

* [Bug target/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
  2003-10-28 10:45 ` [Bug target/12808] " naveens at noida dot hcltech dot com
@ 2003-10-28 10:58 ` naveens at noida dot hcltech dot com
  2003-10-30  5:47 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: naveens at noida dot hcltech dot com @ 2003-10-28 10:58 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From naveens at noida dot hcltech dot com  2003-10-28 10:53 -------
On an unrelated note. -fnew-ra is no better for this

In file included from ../../gcc/gcc/unwind-dw2.c:37:
../../gcc/gcc/unwind-pe.h: In function `base_of_encoded_value':

../../gcc/gcc/unwind-pe.h:120: error: Abnormal edges for no purpose in bb 14
../../gcc/gcc/unwind-pe.h:120: error: Abnormal edges for no purpose in bb 13
../../gcc/gcc/unwind-pe.h:120: error: Abnormal edges for no purpose in bb 12
../../gcc/gcc/unwind-pe.h:120: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

But that surely is a seperate bug.

Regards,
Naveen Sharma.


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

* [Bug target/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
  2003-10-28 10:45 ` [Bug target/12808] " naveens at noida dot hcltech dot com
  2003-10-28 10:58 ` naveens at noida dot hcltech dot com
@ 2003-10-30  5:47 ` pinskia at gcc dot gnu dot org
  2003-10-30  5:55 ` naveens at noida dot hcltech dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-30  5:47 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |tree-ssa


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-30 05:47 -------
What version of the compiler are you using to build the tree with?


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

* [Bug target/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
                   ` (2 preceding siblings ...)
  2003-10-30  5:47 ` pinskia at gcc dot gnu dot org
@ 2003-10-30  5:55 ` naveens at noida dot hcltech dot com
  2003-10-30  5:57 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: naveens at noida dot hcltech dot com @ 2003-10-30  5:55 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From naveens at noida dot hcltech dot com  2003-10-30 05:54 -------
I am building the sources with 

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)


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

* [Bug target/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
                   ` (3 preceding siblings ...)
  2003-10-30  5:55 ` naveens at noida dot hcltech dot com
@ 2003-10-30  5:57 ` pinskia at gcc dot gnu dot org
  2003-10-30  6:04 ` naveens at noida dot hcltech dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-30  5:57 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-30 05:56 -------
Can you build a more recent native compiler like 3.3.2 and then try again?


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

* [Bug target/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
                   ` (4 preceding siblings ...)
  2003-10-30  5:57 ` pinskia at gcc dot gnu dot org
@ 2003-10-30  6:04 ` naveens at noida dot hcltech dot com
  2003-10-30  6:09 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: naveens at noida dot hcltech dot com @ 2003-10-30  6:04 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From naveens at noida dot hcltech dot com  2003-10-30 06:03 -------
OK I will try building with 3.3 release as a native compiler.

Do you think it is related to some 2.96 bug or is it 
because you have a recent build environment for confirming bugs
and this does not occur in your environment or something else?


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

* [Bug target/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
                   ` (5 preceding siblings ...)
  2003-10-30  6:04 ` naveens at noida dot hcltech dot com
@ 2003-10-30  6:09 ` pinskia at gcc dot gnu dot org
  2003-11-03  8:13 ` naveens at noida dot hcltech dot com
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-30  6:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-30 06:08 -------
The former, I have not tried to build sh-elf yet with the tree-ssa on i686-pc-linux-gnu but since 
2.96 is not a support GCC release, I want to eliminate that variable.


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

* [Bug target/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
                   ` (6 preceding siblings ...)
  2003-10-30  6:09 ` pinskia at gcc dot gnu dot org
@ 2003-11-03  8:13 ` naveens at noida dot hcltech dot com
  2003-12-07  7:44 ` [Bug optimization/12808] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: naveens at noida dot hcltech dot com @ 2003-11-03  8:13 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


naveens at noida dot hcltech dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1


------- Additional Comments From naveens at noida dot hcltech dot com  2003-11-03 08:13 -------
This is to confirm the crash, when sources are compiled:

$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with: ../gcc/configure --enable-languages=c,c++
Thread model: posix
gcc version 3.3.1


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

* [Bug optimization/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
                   ` (7 preceding siblings ...)
  2003-11-03  8:13 ` naveens at noida dot hcltech dot com
@ 2003-12-07  7:44 ` pinskia at gcc dot gnu dot org
  2004-01-29  1:30 ` rth at gcc dot gnu dot org
  2004-01-30 13:18 ` naveens at noida dot hcltech dot com
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-07  7:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-07 07:44 -------
Can you attach the preprocessed source?

-- 


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


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

* [Bug optimization/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
                   ` (8 preceding siblings ...)
  2003-12-07  7:44 ` [Bug optimization/12808] " pinskia at gcc dot gnu dot org
@ 2004-01-29  1:30 ` rth at gcc dot gnu dot org
  2004-01-30 13:18 ` naveens at noida dot hcltech dot com
  10 siblings, 0 replies; 12+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-01-29  1:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-01-29 01:30 -------
Works for me today.  Try again perhaps?



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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


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

* [Bug optimization/12808] [tree-ssa] sh-elf build failure.
  2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
                   ` (9 preceding siblings ...)
  2004-01-29  1:30 ` rth at gcc dot gnu dot org
@ 2004-01-30 13:18 ` naveens at noida dot hcltech dot com
  10 siblings, 0 replies; 12+ messages in thread
From: naveens at noida dot hcltech dot com @ 2004-01-30 13:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From naveens at noida dot hcltech dot com  2004-01-30 13:18 -------
The bug seems to be fixed or buried as of now. I don't get this problem
anymore. I hope it doesn't show up again. Please close the PR for now.
Thanks !!

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-01-30 13:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-28 10:26 [Bug target/12808] New: [tree-ssa] sh-elf build failure naveens at noida dot hcltech dot com
2003-10-28 10:45 ` [Bug target/12808] " naveens at noida dot hcltech dot com
2003-10-28 10:58 ` naveens at noida dot hcltech dot com
2003-10-30  5:47 ` pinskia at gcc dot gnu dot org
2003-10-30  5:55 ` naveens at noida dot hcltech dot com
2003-10-30  5:57 ` pinskia at gcc dot gnu dot org
2003-10-30  6:04 ` naveens at noida dot hcltech dot com
2003-10-30  6:09 ` pinskia at gcc dot gnu dot org
2003-11-03  8:13 ` naveens at noida dot hcltech dot com
2003-12-07  7:44 ` [Bug optimization/12808] " pinskia at gcc dot gnu dot org
2004-01-29  1:30 ` rth at gcc dot gnu dot org
2004-01-30 13:18 ` naveens at noida dot hcltech dot com

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