public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/22553] [4.1 regression] ICE building libstdc++
  2005-07-18 19:10 [Bug rtl-optimization/22553] New: [4.1 regression] ICE building libstdc++ dank at kegel dot com
@ 2005-07-18 19:10 ` pinskia at gcc dot gnu dot org
  2005-07-18 20:30 ` dank at kegel dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-18 19:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dank at kegel dot com  2005-07-18 19:10 -------
Created an attachment (id=9303)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9303&action=view)
Preprocessed source showing the problem


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|rtl-optimization            |target
           Keywords|                            |build, ice-on-valid-code
   Target Milestone|---                         |4.1.0


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


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

* [Bug rtl-optimization/22553] New: [4.1 regression] ICE building libstdc++
@ 2005-07-18 19:10 dank at kegel dot com
  2005-07-18 19:10 ` [Bug target/22553] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: dank at kegel dot com @ 2005-07-18 19:10 UTC (permalink / raw)
  To: gcc-bugs

Building a C/C++ cross-compiler targeting sh4-linux fails with
include/ext/bitmap_allocator.h:1085: internal compiler error: in spill_failure,
at reload1.c:1889
I grabbed the preprocessed source, and was able to reproduce it with
the commandline

gcc-4.1-20050716-glibc-2.3.2/build-gcc/./gcc/xgcc
-B/.../gcc-4.1-20050716-glibc-2.3.2/build-gcc/./gcc/ -O2 -fPIC -c foo.ii
foo.ii: In member function '_Tp*
__gnu_cxx::bitmap_allocator<_Tp>::_M_allocate_single_object() [with _Tp = wchar_t]':
foo.ii:2206: error: unable to find a register to spill in class 'R0_REGS'
foo.ii:2206: error: this is the insn:
(insn:HI 393 416 746 30 (set (reg/f:SI 2 r2 [388])
        (mem/u:SI (plus:SI (reg:SI 12 r12)
                (reg/f:SI 10 r10 [574])) [0 S4 A32])) 172 {movsi_ie} (nil)
    (expr_list:REG_EQUIV (symbol_ref/i:SI
("_ZN9__gnu_cxx16bitmap_allocatorIwE13_S_block_sizeE") <var_decl 0x40411ba0
_S_block_size>)
        (nil)))
foo.ii:2206: internal compiler error: in spill_failure, at reload1.c:1889

-- 
           Summary: [4.1 regression] ICE building libstdc++
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dank at kegel dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: sh4-linux


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


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

* [Bug target/22553] [4.1 regression] ICE building libstdc++
  2005-07-18 19:10 [Bug rtl-optimization/22553] New: [4.1 regression] ICE building libstdc++ dank at kegel dot com
  2005-07-18 19:10 ` [Bug target/22553] " pinskia at gcc dot gnu dot org
@ 2005-07-18 20:30 ` dank at kegel dot com
  2005-07-28 18:09 ` belyshev at depni dot sinp dot msu dot ru
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: dank at kegel dot com @ 2005-07-18 20:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dank at kegel dot com  2005-07-18 19:10 -------
Created an attachment (id=9303)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9303&action=view)
Preprocessed source showing the problem


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|rtl-optimization            |target
           Keywords|                            |build, ice-on-valid-code
   Target Milestone|---                         |4.1.0


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


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

* [Bug target/22553] [4.1 regression] ICE building libstdc++
  2005-07-18 19:10 [Bug rtl-optimization/22553] New: [4.1 regression] ICE building libstdc++ dank at kegel dot com
  2005-07-18 19:10 ` [Bug target/22553] " pinskia at gcc dot gnu dot org
  2005-07-18 20:30 ` dank at kegel dot com
@ 2005-07-28 18:09 ` belyshev at depni dot sinp dot msu dot ru
  2005-08-22  4:45 ` mmitchel at gcc dot gnu dot org
  2005-09-23 12:47 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 11+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-07-28 18:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From belyshev at depni dot sinp dot msu dot ru  2005-07-28 17:55 -------
// Confirmed, reduced testcase (compile with -O2 -fPIC):

int k, foo ();
void baz (int, int);

template < typename > class T
{
  void bla () throw ()
  {
    int j = foo ();
    baz (k ,  j);
  }
  
  void bam () 
  {
    while (k && foo ())
      bla ();
  }
};

template class T < int >;


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |belyshev at depni dot sinp
                   |                            |dot msu dot ru
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-28 17:55:17
               date|                            |


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


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

* [Bug target/22553] [4.1 regression] ICE building libstdc++
  2005-07-18 19:10 [Bug rtl-optimization/22553] New: [4.1 regression] ICE building libstdc++ dank at kegel dot com
                   ` (2 preceding siblings ...)
  2005-07-28 18:09 ` belyshev at depni dot sinp dot msu dot ru
@ 2005-08-22  4:45 ` mmitchel at gcc dot gnu dot org
  2005-09-23 12:47 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-22  4:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-08-22 04:44 -------
SH is not a primary or secondary target; removing target milestone.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.0                       |---


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


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

* [Bug target/22553] [4.1 regression] ICE building libstdc++
  2005-07-18 19:10 [Bug rtl-optimization/22553] New: [4.1 regression] ICE building libstdc++ dank at kegel dot com
                   ` (3 preceding siblings ...)
  2005-08-22  4:45 ` mmitchel at gcc dot gnu dot org
@ 2005-09-23 12:47 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-23 12:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-23 12:47 -------
*** Bug 24032 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sieb at sscd dot de


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


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

* [Bug target/22553] [4.1 regression] ICE building libstdc++
       [not found] <bug-22553-3350@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2005-10-30 23:38 ` pinskia at gcc dot gnu dot org
@ 2005-11-12  0:11 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-12  0:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2005-11-12 00:11 -------
This was worked around for now.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.0                       |4.2.0


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


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

* [Bug target/22553] [4.1 regression] ICE building libstdc++
       [not found] <bug-22553-3350@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-10-17 12:59 ` pinskia at gcc dot gnu dot org
@ 2005-10-30 23:38 ` pinskia at gcc dot gnu dot org
  2005-11-12  0:11 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-30 23:38 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P5
   Target Milestone|4.2.0                       |4.1.0


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


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

* [Bug target/22553] [4.1 regression] ICE building libstdc++
       [not found] <bug-22553-3350@http.gcc.gnu.org/bugzilla/>
  2005-10-03 23:13 ` kkojima at gcc dot gnu dot org
  2005-10-17 12:44 ` kkojima at gcc dot gnu dot org
@ 2005-10-17 12:59 ` pinskia at gcc dot gnu dot org
  2005-10-30 23:38 ` pinskia at gcc dot gnu dot org
  2005-11-12  0:11 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-17 12:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2005-10-17 12:59 -------
(In reply to comment #6)
I am going to move the target milestone to 4.2 so that for 4.2, it will be
fixed without a workaround and that if people start to look at bugs which
should be added back the target milestone, they don't look at this bug.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.0


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


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

* [Bug target/22553] [4.1 regression] ICE building libstdc++
       [not found] <bug-22553-3350@http.gcc.gnu.org/bugzilla/>
  2005-10-03 23:13 ` kkojima at gcc dot gnu dot org
@ 2005-10-17 12:44 ` kkojima at gcc dot gnu dot org
  2005-10-17 12:59 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2005-10-17 12:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kkojima at gcc dot gnu dot org  2005-10-17 12:44 -------
There is an argument about this PR in gcc-patches list
http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00816.html
and I've commited the patch in
http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00859.html
which disables sched1 optimization for SH-4 when exceptions are
used as a release workwround on mainline under Joern's approval.
It gets rid of the ICEs for the testcases, though it doesn't fix
the real issue.  So please don't close this PR ATM.


-- 


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


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

* [Bug target/22553] [4.1 regression] ICE building libstdc++
       [not found] <bug-22553-3350@http.gcc.gnu.org/bugzilla/>
@ 2005-10-03 23:13 ` kkojima at gcc dot gnu dot org
  2005-10-17 12:44 ` kkojima at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2005-10-03 23:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kkojima at gcc dot gnu dot org  2005-10-03 23:13 -------
Joern has analyzed this PR in
http://gcc.gnu.org/ml/gcc-patches/2005-09/msg01654.html
and pointed out that it's a middle-end issue.


-- 

kkojima at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kkojima at gcc dot gnu dot
                   |                            |org


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


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

end of thread, other threads:[~2005-11-12  0:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-18 19:10 [Bug rtl-optimization/22553] New: [4.1 regression] ICE building libstdc++ dank at kegel dot com
2005-07-18 19:10 ` [Bug target/22553] " pinskia at gcc dot gnu dot org
2005-07-18 20:30 ` dank at kegel dot com
2005-07-28 18:09 ` belyshev at depni dot sinp dot msu dot ru
2005-08-22  4:45 ` mmitchel at gcc dot gnu dot org
2005-09-23 12:47 ` pinskia at gcc dot gnu dot org
     [not found] <bug-22553-3350@http.gcc.gnu.org/bugzilla/>
2005-10-03 23:13 ` kkojima at gcc dot gnu dot org
2005-10-17 12:44 ` kkojima at gcc dot gnu dot org
2005-10-17 12:59 ` pinskia at gcc dot gnu dot org
2005-10-30 23:38 ` pinskia at gcc dot gnu dot org
2005-11-12  0:11 ` pinskia 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).