public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc
@ 2004-01-06 12:30 green at redhat dot com
  2004-01-06 12:41 ` [Bug c++/13584] " green at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: green at redhat dot com @ 2004-01-06 12:30 UTC (permalink / raw)
  To: gcc-bugs

Found while building tree-ssa crosses with tree-ssa native.

This problem exists for arm-elf, frv-elf, mips-elf, mn10300-elf, and v850-elf,
but not powerpc-eabi.  Reproduce by building any
of these crosses with tree-ssa sources using a tree-ssa native.

$ gcc --version
gcc (GCC) 3.5-tree-ssa 20040105 (merged 20040102)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
$ /opt/spindazzle/gnutools/build-X-arm-elf/gcc/xgcc -shared-libgcc
-B/opt/spindazzle/gnutools/build-X-arm-elf/gcc/ -nostdinc++
-L/opt/spindazzle/gnutools/buil\d-X-arm-elf/arm-elf/thumb/libstdc++-v3/src
-L/opt/spindazzle/gnutools/build-X-arm-elf/arm-elf/thumb/libstdc++-v3/src/.libs
-nostdinc -B/opt/spindazzle/gnuto\ols/build-X-arm-elf/arm-elf/thumb/newlib/
-isystem
/opt/spindazzle/gnutools/build-X-arm-elf/arm-elf/thumb/newlib/targ-include
-isystem /opt/spindazzle/gnuto\ols/src/HEAD-2004-01-05/newlib/libc/include
-B/opt/spindazzle/gnutools/HEAD-2004-01-05/H-i686-pc-linux-gnulibc2.3/arm-elf/bin/
-B/opt/spindazzle/gnutools/HE\AD-2004-01-05/H-i686-pc-linux-gnulibc2.3/arm-elf/lib/
-isystem
/opt/spindazzle/gnutools/HEAD-2004-01-05/H-i686-pc-linux-gnulibc2.3/arm-elf/include
-isystem
\/opt/spindazzle/gnutools/HEAD-2004-01-05/H-i686-pc-linux-gnulibc2.3/arm-elf/sys-include
-L/opt/spindazzle/gnutools/build-X-arm-elf/ld -mthumb
-I/opt/spindaz\zle/gnutools/build-X-arm-elf/arm-elf/thumb/libstdc++-v3/include/arm-elf
-I/opt/spindazzle/gnutools/build-X-arm-elf/arm-elf/thumb/libstdc++-v3/include
-I/opt\/spindazzle/gnutools/src/HEAD-2004-01-05/libstdc++-v3/libsupc++ -O2
-fno-builtin -g -O2 -g -O2 -mthumb -fno-implicit-templates -Wall -W
-Wwrite-strings -Wca\st-qual -fdiagnostics-show-location=once
-I/opt/spindazzle/gnutools/build-X-arm-elf/arm-elf/thumb/libstdc++-v3/include/backward
-Wno-deprecated -c
../../../\../../src/HEAD-2004-01-05/libstdc++-v3/src/strstream.cc -o strstream.o
/opt/spindazzle/gnutools/build-X-arm-elf/arm-elf/thumb/libstdc++-v3/include/iosfwd:
In member function `void std::basic_iostream<char, std::char_traits<char\>
>::_ZTv0_n12_NSdD0Ev()':
/opt/spindazzle/gnutools/build-X-arm-elf/arm-elf/thumb/libstdc++-v3/include/iosfwd:68:
internal compiler error: Segmentation fault

-- 
           Summary: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-
                    elf, mips-elf, etc
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: green at redhat 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


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


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

* [Bug c++/13584] [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc
  2004-01-06 12:30 [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc green at redhat dot com
@ 2004-01-06 12:41 ` green at redhat dot com
  2004-01-06 18:25 ` [Bug optimization/13584] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: green at redhat dot com @ 2004-01-06 12:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From green at redhat dot com  2004-01-06 12:41 -------
This regression was introduced sometime between my Jan 3 and Jan 4 builds.



-- 


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


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

* [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc
  2004-01-06 12:30 [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc green at redhat dot com
  2004-01-06 12:41 ` [Bug c++/13584] " green at redhat dot com
@ 2004-01-06 18:25 ` pinskia at gcc dot gnu dot org
  2004-01-06 20:52 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-06 18:25 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |optimization
           Keywords|                            |build, ice-on-valid-code
   Target Milestone|---                         |tree-ssa


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


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

* [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc
  2004-01-06 12:30 [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc green at redhat dot com
  2004-01-06 12:41 ` [Bug c++/13584] " green at redhat dot com
  2004-01-06 18:25 ` [Bug optimization/13584] " pinskia at gcc dot gnu dot org
@ 2004-01-06 20:52 ` pinskia at gcc dot gnu dot org
  2004-01-08 19:32 ` green at redhat dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-06 20:52 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


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


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

* [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc
  2004-01-06 12:30 [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc green at redhat dot com
                   ` (2 preceding siblings ...)
  2004-01-06 20:52 ` pinskia at gcc dot gnu dot org
@ 2004-01-08 19:32 ` green at redhat dot com
  2004-01-21  8:27 ` dhazeghi at yahoo dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: green at redhat dot com @ 2004-01-08 19:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From green at redhat dot com  2004-01-08 19:32 -------
This is still failing, so I took a closer look at the arm-elf failure.  GDB says
it's dying here:

#0  0x08283c91 in expand_assignment (to=0xb68843a0, from=0xb667fec4,
    want_value=0) at ../../src/HEAD-2004-01-07/gcc/expr.c:3873

Which is this bit of code...

  if (TREE_CODE (from) == CALL_EXPR && ! aggregate_value_p (from, from)
      && TREE_CODE (TYPE_SIZE (TREE_TYPE (from))) == INTEGER_CST
      && ! ((TREE_CODE (to) == VAR_DECL || TREE_CODE (to) == PARM_DECL)
            && GET_CODE (DECL_RTL (to)) == REG))

The problem is that "from" has a VOID type, and 
TYPE_SIZE (TREE_TYPE (from)) == 0x0 

I hope this helps!

(gdb) p from
$7 = 0xb667fec4
(gdb) pt
 <call_expr 0xb667fec4
    type <void_type 0xb7485e0c void type_6 VOID
        align 8 symtab 0 alias set -1
        pointer_to_this <pointer_type 0xb7485e80>>
    side-effects
    arg 0 <addr_expr 0xb6869340
        type <pointer_type 0xb68842b8 type <method_type 0xb6859e80>
            unsigned SI
            size <integer_cst 0xb7499b58 constant invariant 32>
            unit size <integer_cst 0xb7499b88 constant invariant 4>
            align 32 symtab 0 alias set -1>
        constant invariant
        arg 0 <function_decl 0xb6882a6c *.LTHUNK0 type <method_type 0xb6859e80>
            addressable asm_written used no-static-chain decl_5 decl_6 SI file
\../../../../../src/HEAD-2004-01-07/libstdc++-v3/src/strstream.cc line 357
initi\al <error_mark 0xb7496a10>
                                                                                
            (mem:SI (symbol_ref:SI ("^*.LTHUNK0") <function_decl 0xb6882a6c
*.L\THUNK0>) [0 S4 A32])>>
    arg 1 <tree_list 0xb685baf8
        value <var_decl 0xb6884740 T.728 type <pointer_type 0xb6859000>
            unsigned used ignored SI file
/opt/spindazzle/gnutools/build-X-arm-\elf/arm-elf/thumb/libstdc++-v3/include/backward/strstream
line 120
            size <integer_cst 0xb6888d68 constant invariant 32>
            unit size <integer_cst 0xb6888d80 constant invariant 4>
            align 32 context <function_decl 0xb683f740
_ZTv0_n12_NSt10istrstrea\mD0Ev>
            (reg/f:SI 72 [ T.728 ])>>
   
/opt/spindazzle/gnutools/build-X-arm-elf/arm-elf/thumb/libstdc++-v3/include\/backward/strstream:120>

-- 


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


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

* [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc
  2004-01-06 12:30 [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc green at redhat dot com
                   ` (3 preceding siblings ...)
  2004-01-08 19:32 ` green at redhat dot com
@ 2004-01-21  8:27 ` dhazeghi at yahoo dot com
  2004-01-26 23:15 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-21  8:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2004-01-21 08:27 -------
Are you still hitting this? If so, can you attach preprocessed source? Thanks.

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


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


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

* [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc
  2004-01-06 12:30 [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc green at redhat dot com
                   ` (4 preceding siblings ...)
  2004-01-21  8:27 ` dhazeghi at yahoo dot com
@ 2004-01-26 23:15 ` pinskia at gcc dot gnu dot org
  2004-01-26 23:17 ` pinskia at gcc dot gnu dot org
  2004-01-30  9:30 ` [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for targets listed (and more) rth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-26 23:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-26 23:15 -------
*** Bug 13872 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tm at kloo dot net


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


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

* [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc
  2004-01-06 12:30 [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc green at redhat dot com
                   ` (5 preceding siblings ...)
  2004-01-26 23:15 ` pinskia at gcc dot gnu dot org
@ 2004-01-26 23:17 ` pinskia at gcc dot gnu dot org
  2004-01-30  9:30 ` [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for targets listed (and more) rth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-26 23:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-26 23:17 -------
I know that this is still a bug, see PR 13872.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-26 23:17:01
               date|                            |


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


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

* [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for targets listed (and more)
  2004-01-06 12:30 [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc green at redhat dot com
                   ` (6 preceding siblings ...)
  2004-01-26 23:17 ` pinskia at gcc dot gnu dot org
@ 2004-01-30  9:30 ` rth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-01-30  9:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-01-30 09:30 -------
I'm 99% certain this is the same as PR 13693, which has been reduced
to a very small test case involving c++ front-end generated thunks.

*** This bug has been marked as a duplicate of 13693 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-06 12:30 [Bug c++/13584] New: [tree-ssa] ICE building libstdc++-v3 for arm-elf, frv-elf, mips-elf, etc green at redhat dot com
2004-01-06 12:41 ` [Bug c++/13584] " green at redhat dot com
2004-01-06 18:25 ` [Bug optimization/13584] " pinskia at gcc dot gnu dot org
2004-01-06 20:52 ` pinskia at gcc dot gnu dot org
2004-01-08 19:32 ` green at redhat dot com
2004-01-21  8:27 ` dhazeghi at yahoo dot com
2004-01-26 23:15 ` pinskia at gcc dot gnu dot org
2004-01-26 23:17 ` pinskia at gcc dot gnu dot org
2004-01-30  9:30 ` [Bug optimization/13584] [tree-ssa] ICE building libstdc++-v3 for targets listed (and more) rth 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).