public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/31975]  New: [4.3 Regression] segfault in try_split on mips during bootstrap
@ 2007-05-17 14:13 tbm at cyrius dot com
  2007-05-17 14:21 ` [Bug target/31975] " tbm at cyrius dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: tbm at cyrius dot com @ 2007-05-17 14:13 UTC (permalink / raw)
  To: gcc-bugs

I'm getting a bootstrap error on mips with 4.3 SVN 20070515 revision 124745.

The compiler segfaults when compiling libstdc++-v3/src/strstream.cc with:

Program received signal SIGSEGV, Segmentation fault.
0x0074701c in try_split (pat=<value optimized out>, trial=0x2bfb31e0, last=1)
    at ../../src/gcc/emit-rtl.c:3286
3286      for (tem = NEXT_INSN (before); tem != after; tem = NEXT_INSN (tem))
(gdb) where
#0  0x0074701c in try_split (pat=<value optimized out>, trial=0x2bfb31e0,
last=1)
    at ../../src/gcc/emit-rtl.c:3286
#1  0x008cbcb8 in split_insn (insn=0x2bfb31e0) at ../../src/gcc/recog.c:2742
#2  0x008cbe78 in split_all_insns_noflow () at ../../src/gcc/recog.c:2888
#3  0x00b6b638 in mips_output_mi_thunk (file=0xece868, thunk_fndecl=<value
optimized out>, delta=0,
    vcall_offset=-12, function=0x2bfb4000) at
../../src/gcc/config/mips/mips.c:7275
#4  0x0059bd40 in use_thunk (thunk_fndecl=0x2baa6600, emit_p=<value optimized
out>)
    at ../../src/gcc/cp/method.c:441
#5  0x005ab854 in expand_body (fn=0x2ba9e700) at
../../src/gcc/cp/semantics.c:3084
#6  0x00b74090 in cgraph_expand_function (node=0x2ba9ea00) at
../../src/gcc/cgraphunit.c:1086
#7  0x00b77d28 in cgraph_optimize () at ../../src/gcc/cgraphunit.c:1155
#8  0x0051990c in cp_write_global_declarations () at
../../src/gcc/cp/decl2.c:3308
#9  0x0095c08c in toplev_main (argc=<value optimized out>, argv=<value
optimized out>)
    at ../../src/gcc/toplev.c:1064
#10 0x2abee050 in __libc_start_main () from /lib/libc.so.6
#11 0x0043d9bc in _ftext ()
(gdb)

Command line:

(sid)1846:tbm@bigsur: ..linux-gnu/libstdc++-v3/src]
/home/tbm/src/gcc-snapshot-20070515/build/./gcc/xgcc -shared-libgcc
-B/home/tbm/src/gcc-snapshot-20070515/build/./gcc -nostdinc++
-L/home/tbm/src/gcc-snapshot-20070515/build/mips-linux-gnu/libstdc++-v3/src
-L/home/tbm/src/gcc-snapshot-20070515/build/mips-linux-gnu/libstdc++-v3/src/.libs
-B/usr/lib/gcc-snapshot/mips-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/mips-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/mips-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/mips-linux-gnu/sys-include
-I/home/tbm/src/gcc-snapshot-20070515/build/mips-linux-gnu/libstdc++-v3/include/mips-linux-gnu
-I/home/tbm/src/gcc-snapshot-20070515/build/mips-linux-gnu/libstdc++-v3/include
-I/home/tbm/src/gcc-snapshot-20070515/src/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE
-I/home/tbm/src/gcc-snapshot-20070515/build/mips-linux-gnu/libstdc++-v3/include/backward
-Wno-deprecated -c ../../../../src/libstdc++-v3/src/strstream.cc -o strstream.o
../../../../src/libstdc++-v3/src/strstream.cc: In member function 'void
std::strstream::_ZTv0_n12_NSt9strstreamD0Ev()':
../../../../src/libstdc++-v3/src/strstream.cc:418: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.


-- 
           Summary: [4.3 Regression] segfault in try_split on mips during
                    bootstrap
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com
GCC target triplet: mips-linux-gnu


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
@ 2007-05-17 14:21 ` tbm at cyrius dot com
  2007-05-17 21:34 ` pinskia at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tbm at cyrius dot com @ 2007-05-17 14:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tbm at cyrius dot com  2007-05-17 15:20 -------
Created an attachment (id=13570)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13570&action=view)
preprocessed source


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
  2007-05-17 14:21 ` [Bug target/31975] " tbm at cyrius dot com
@ 2007-05-17 21:34 ` pinskia at gcc dot gnu dot org
  2007-05-18 16:31 ` daney at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-17 21:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.3.0


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
  2007-05-17 14:21 ` [Bug target/31975] " tbm at cyrius dot com
  2007-05-17 21:34 ` pinskia at gcc dot gnu dot org
@ 2007-05-18 16:31 ` daney at gcc dot gnu dot org
  2007-05-18 17:45 ` tbm at cyrius dot com
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-18 16:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from daney at gcc dot gnu dot org  2007-05-18 17:31 -------
Currently building mipsel-unknown-linux-gnu.

# cat LAST_UPDATED
Wed May 16 12:35:18 PDT 2007
Wed May 16 19:35:18 UTC 2007 (revision 124776)

libstdc++-v3 was built without ICEing (currently building in libjava).

The differences from Martin's configuration are that my target is little endian
and I configured with --disable-static.  The testcase would appear to be when
building the static library version of strstream.o (I see no -fpic in the
compiler invocation).

FWIW this is my configure command:

../gcc/configure --with-arch=mips32 --with-float=soft --disable-java-awt
--without-x --disable-tls --enable-__cxa_atexit --disable-jvmpi
--disable-static --disable-libmudflap --enable-languages=c,c++,java

I guess I will try the strstream.ii in the bug attachment with my compiler when
it finishes bootstrapping.


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (2 preceding siblings ...)
  2007-05-18 16:31 ` daney at gcc dot gnu dot org
@ 2007-05-18 17:45 ` tbm at cyrius dot com
  2007-05-19 15:12 ` tbm at cyrius dot com
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tbm at cyrius dot com @ 2007-05-18 17:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tbm at cyrius dot com  2007-05-18 18:45 -------
I started a build on my mipsel box too and it has failed in the same way
as on mips.


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (3 preceding siblings ...)
  2007-05-18 17:45 ` tbm at cyrius dot com
@ 2007-05-19 15:12 ` tbm at cyrius dot com
  2007-05-19 19:44 ` tbm at cyrius dot com
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tbm at cyrius dot com @ 2007-05-19 15:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tbm at cyrius dot com  2007-05-19 16:12 -------
I can reproduce it with
  /home/tbm/scratch/gcc/configure -v --enable-languages=c,c++
--enable-__cxa_atexit --enable-clocale=gnu --disable-libssp --disable-werror
mipsel-linux-gnu
with current SVN.


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (4 preceding siblings ...)
  2007-05-19 15:12 ` tbm at cyrius dot com
@ 2007-05-19 19:44 ` tbm at cyrius dot com
  2007-05-20  6:11 ` daney at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tbm at cyrius dot com @ 2007-05-19 19:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from tbm at cyrius dot com  2007-05-19 20:44 -------
With:
   /home/tbm/scratch/gcc/configure -v --enable-languages=c,c++ --disable-werror
mipsel-linux-gnu
I get the same segfault in gcc/libstdc++-v3/src/fstream-inst.cc


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (5 preceding siblings ...)
  2007-05-19 19:44 ` tbm at cyrius dot com
@ 2007-05-20  6:11 ` daney at gcc dot gnu dot org
  2007-05-20  7:47 ` tbm at cyrius dot com
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-20  6:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from daney at gcc dot gnu dot org  2007-05-20 07:11 -------
(In reply to comment #5)
> With:
>    /home/tbm/scratch/gcc/configure -v --enable-languages=c,c++ --disable-werror
> mipsel-linux-gnu
> I get the same segfault in gcc/libstdc++-v3/src/fstream-inst.cc
> 

Can you reproduce with a cross compiler?


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (6 preceding siblings ...)
  2007-05-20  6:11 ` daney at gcc dot gnu dot org
@ 2007-05-20  7:47 ` tbm at cyrius dot com
  2007-05-20  9:44 ` tbm at cyrius dot com
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tbm at cyrius dot com @ 2007-05-20  7:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from tbm at cyrius dot com  2007-05-20 08:47 -------
And finally, I can confirm that it works when I specify --disable-static.


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (7 preceding siblings ...)
  2007-05-20  7:47 ` tbm at cyrius dot com
@ 2007-05-20  9:44 ` tbm at cyrius dot com
  2007-05-22  4:38 ` daney at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tbm at cyrius dot com @ 2007-05-20  9:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from tbm at cyrius dot com  2007-05-20 10:44 -------
(In reply to comment #6)
> (In reply to comment #5)
> > With:
> >    /home/tbm/scratch/gcc/configure -v --enable-languages=c,c++ --disable-werror
> > mipsel-linux-gnu
> > I get the same segfault in gcc/libstdc++-v3/src/fstream-inst.cc
> > 
> 
> Can you reproduce with a cross compiler?

Yes.


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (8 preceding siblings ...)
  2007-05-20  9:44 ` tbm at cyrius dot com
@ 2007-05-22  4:38 ` daney at gcc dot gnu dot org
  2007-05-22 15:21 ` daney at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-22  4:38 UTC (permalink / raw)
  To: gcc-bugs

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



------- Comment #9 from daney at gcc dot gnu dot org  2007-05-22 05:38 -------
Confirmed on a cross compiler configured:

../t1/configure --target=mipsel-linux
--with-sysroot=/usr/local/mipsel-linux-test
--prefix=/usr/local/mipsel-linux-test --with-arch=mips32 --with-float=soft
--disable-java-awt --without-x --disable-tls --enable-__cxa_atexit
--disable-jvmpi --disable-libmudflap --enable-languages=c,c++

Building the compiler yields:
/home/daney/gccsvn/mipsel-t1/./gcc/xgcc -shared-libgcc
-B/home/daney/gccsvn/mipsel-t1/./gcc -nostdinc++
-L/home/daney/gccsvn/mipsel-t1/mipsel-linux/libstdc++-v3/src
-L/home/daney/gccsvn/mipsel-t1/mipsel-linux/libstdc++-v3/src/.libs
-B/usr/local/mipsel-linux-test/mipsel-linux/bin/
-B/usr/local/mipsel-linux-test/mipsel-linux/lib/ -isystem
/usr/local/mipsel-linux-test/mipsel-linux/include -isystem
/usr/local/mipsel-linux-test/mipsel-linux/sys-include
-I/home/daney/gccsvn/mipsel-t1/mipsel-linux/libstdc++-v3/include/mipsel-linux
-I/home/daney/gccsvn/mipsel-t1/mipsel-linux/libstdc++-v3/include
-I/home/daney/gccsvn/t1/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall
-Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE
-I/home/daney/gccsvn/mipsel-t1/mipsel-linux/libstdc++-v3/include/backward
-Wno-deprecated -c ../../../../t1/libstdc++-v3/src/strstream.cc -o strstream.o
../../../../t1/libstdc++-v3/src/strstream.cc: In member function ‘void
std::strstream::_ZTv0_n12_NSt9strstreamD0Ev()’:
../../../../t1/libstdc++-v3/src/strstream.cc:418: 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.


-- 

daney at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-05-22 05:38:13
               date|                            |


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (9 preceding siblings ...)
  2007-05-22  4:38 ` daney at gcc dot gnu dot org
@ 2007-05-22 15:21 ` daney at gcc dot gnu dot org
  2007-05-24  5:06 ` daney at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-22 15:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from daney at gcc dot gnu dot org  2007-05-22 16:21 -------
This bug was triggered on the trunk by:
$ svn log -r 124258
------------------------------------------------------------------------
r124258 | hubicka | 2007-04-28 01:20:08 -0700 (Sat, 28 Apr 2007) | 50 lines


        * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
        insn_locators_alloc instead of insn_locators_initialize;
        call reset_block_changes.
        * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
        * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
        * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
        * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
        * config/score/score.c (th_output_mi_thunk): Likewise.
        * config/mips/mips.c (mips_output_mi_thunk): Likewise.
        * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
        tolerate uninitialized locator info.

        Re-apply:
        * function.c (init_function_start): Don't init line number info.
        (expand_function_end): Update.
        (reset_block_changes, record_block_change, finalize_block_changes,
        check_block_change, free_block_changes): Kill.
        * function.h (reset_block_changes, record_block_change,
        finalize_block_changes, check_block_change, free_block_changes): Remove
        prototypes.
        (struct function): Remove ib_boundaries_block.
        * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
        Use curr_insn_locator to initialize locator.
        (emit_line_note): Remove.
        * cfgexpand.c (expand_gimple_cond_expr): Update.
        (construct_exit_block): Likewise.
        (tree_expand_cfg): Initialize/finalize locators.
        * expr.c (expand_expr_real): Update.
        * cfglayout.c (line_locators_locs, line_locators_lines,
        file_locators_locs, file_locators_files): Remove.
        (set_block_levels): Move to cfgexpand.c.
        (insn_locators_initialize): Remove.
        (pass_insn_locators_initialize): Remove.
        (locations_locators_locs, locations_locators_vals): New static vars.
        (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
        Likewise.
        (insn_locators_alloc, insn_locators_finalize,
        set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
        New functions.
        (locator_location): New.
        (locator_line, locator_file): Rewrite.
        * rtl.h (emit_line_note): Kill.
        (insn_locators_alloc, insn_locators_finalize,
        set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
        Declare.
        * tree-inline.c (initialize_cfun): Do not initialize
        ib_boundaries_block.
        * passes.c (pass_insn_locators_initialize): Remove.

------------------------------------------------------------------------


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (10 preceding siblings ...)
  2007-05-22 15:21 ` daney at gcc dot gnu dot org
@ 2007-05-24  5:06 ` daney at gcc dot gnu dot org
  2007-05-24  5:09 ` daney at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-24  5:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from daney at gcc dot gnu dot org  2007-05-24 06:06 -------
Reduced testcase:

g++.dg/abi/thunk3.C


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (11 preceding siblings ...)
  2007-05-24  5:06 ` daney at gcc dot gnu dot org
@ 2007-05-24  5:09 ` daney at gcc dot gnu dot org
  2007-05-25  7:16 ` daney at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-24  5:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from daney at gcc dot gnu dot org  2007-05-24 06:08 -------
Fails with: -mno-shared
OK with: -mshared


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (12 preceding siblings ...)
  2007-05-24  5:09 ` daney at gcc dot gnu dot org
@ 2007-05-25  7:16 ` daney at gcc dot gnu dot org
  2007-05-25  7:32 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-25  7:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from daney at gcc dot gnu dot org  2007-05-25 08:16 -------
Created an attachment (id=13610)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13610&action=view)
Proposed patch.

I will bootstrap and test the attached patch.  It allows my cross build to
complete.


-- 

daney at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |daney at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (13 preceding siblings ...)
  2007-05-25  7:16 ` daney at gcc dot gnu dot org
@ 2007-05-25  7:32 ` pinskia at gcc dot gnu dot org
  2007-05-25 13:14 ` richard at codesourcery dot com
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-25  7:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from pinskia at gcc dot gnu dot org  2007-05-25 08:32 -------
RS6000, ia64, and sh does this:
  /* Mark the end of the (empty) prologue.  */
  emit_note (NOTE_INSN_PROLOGUE_END);


You might want to use that note also for MIPS.


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (14 preceding siblings ...)
  2007-05-25  7:32 ` pinskia at gcc dot gnu dot org
@ 2007-05-25 13:14 ` richard at codesourcery dot com
  2007-05-30  4:21 ` daney at gcc dot gnu dot org
  2007-05-30  4:38 ` daney at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: richard at codesourcery dot com @ 2007-05-25 13:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from richard at codesourcery dot com  2007-05-25 14:13 -------
Subject: Re:  [4.3 Regression] segfault in try_split on mips during bootstrap

David, msny thanks for looking at this.

"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> RS6000, ia64, and sh does this:
>   /* Mark the end of the (empty) prologue.  */
>   emit_note (NOTE_INSN_PROLOGUE_END);
>
> You might want to use that note also for MIPS.

Agreed.  I suppose it's slightly more self-documenting than
NOTE_INSN_DELETED, and it's good to be consistent with other ports.

David, FWIW, a patch to add those two lines is pre-approved.  If you've
already tested the NOTE_INSN_DELETED version, don't feel you need to test
the whole thing again with the other note; as long as cc1 compiles,
that's fine.

Richard


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (15 preceding siblings ...)
  2007-05-25 13:14 ` richard at codesourcery dot com
@ 2007-05-30  4:21 ` daney at gcc dot gnu dot org
  2007-05-30  4:38 ` daney at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-30  4:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from daney at gcc dot gnu dot org  2007-05-30 04:21 -------
Subject: Bug 31975

Author: daney
Date: Wed May 30 04:21:24 2007
New Revision: 125178

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125178
Log:
        PR gcc/31975
        * config/mips/mips.c (mips_output_mi_thunk): Emit
        NOTE_INSN_PROLOGUE_END at beginning of the thunk.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/mips/mips.c


-- 


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


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

* [Bug target/31975] [4.3 Regression] segfault in try_split on mips during bootstrap
  2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
                   ` (16 preceding siblings ...)
  2007-05-30  4:21 ` daney at gcc dot gnu dot org
@ 2007-05-30  4:38 ` daney at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-30  4:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from daney at gcc dot gnu dot org  2007-05-30 04:38 -------
Fix committed to the trunk.


-- 

daney at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-05-30  4:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-17 14:13 [Bug target/31975] New: [4.3 Regression] segfault in try_split on mips during bootstrap tbm at cyrius dot com
2007-05-17 14:21 ` [Bug target/31975] " tbm at cyrius dot com
2007-05-17 21:34 ` pinskia at gcc dot gnu dot org
2007-05-18 16:31 ` daney at gcc dot gnu dot org
2007-05-18 17:45 ` tbm at cyrius dot com
2007-05-19 15:12 ` tbm at cyrius dot com
2007-05-19 19:44 ` tbm at cyrius dot com
2007-05-20  6:11 ` daney at gcc dot gnu dot org
2007-05-20  7:47 ` tbm at cyrius dot com
2007-05-20  9:44 ` tbm at cyrius dot com
2007-05-22  4:38 ` daney at gcc dot gnu dot org
2007-05-22 15:21 ` daney at gcc dot gnu dot org
2007-05-24  5:06 ` daney at gcc dot gnu dot org
2007-05-24  5:09 ` daney at gcc dot gnu dot org
2007-05-25  7:16 ` daney at gcc dot gnu dot org
2007-05-25  7:32 ` pinskia at gcc dot gnu dot org
2007-05-25 13:14 ` richard at codesourcery dot com
2007-05-30  4:21 ` daney at gcc dot gnu dot org
2007-05-30  4:38 ` daney at gcc dot gnu dot org

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