public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/36990]  New: ICE when gcc (4.4.0-20080731)  uses -fipa-cp with -O
@ 2008-07-31 16:43 linuxl4 at sohu dot com
  2008-08-06 13:50 ` [Bug middle-end/36990] " tsarkov at cs dot man dot ac dot uk
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: linuxl4 at sohu dot com @ 2008-07-31 16:43 UTC (permalink / raw)
  To: gcc-bugs

I mkdir a directory named "build" in the gcc directory , then run configure and
make in it.

gcc -c -DHAVE_CONFIG_H  -O -fipa-cp  -I. -I../../libiberty/../include 
../../libiberty/hashtab.c

../../libiberty/hashtab.c:955: internal compiler error: in fold_convert, at
fold-const.c:2529
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE when gcc (4.4.0-20080731)  uses -fipa-cp with -O
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: linuxl4 at sohu dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug middle-end/36990] ICE when gcc (4.4.0-20080731)  uses -fipa-cp with -O
  2008-07-31 16:43 [Bug middle-end/36990] New: ICE when gcc (4.4.0-20080731) uses -fipa-cp with -O linuxl4 at sohu dot com
@ 2008-08-06 13:50 ` tsarkov at cs dot man dot ac dot uk
  2008-08-11  0:11 ` [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs extern template pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tsarkov at cs dot man dot ac dot uk @ 2008-08-06 13:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tsarkov at cs dot man dot ac dot uk  2008-08-06 13:49 -------
I saw the same problem in C++ with a simple program

#include <iostream>

void f ( std::ostream& o ) { o << std::endl; }

This happens both on i686-pc-linux-gnu and i386-apple-darwin9.4.0.


-- 

tsarkov at cs dot man dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tsarkov at cs dot man dot ac
                   |                            |dot uk


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


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

* [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs extern template
  2008-07-31 16:43 [Bug middle-end/36990] New: ICE when gcc (4.4.0-20080731) uses -fipa-cp with -O linuxl4 at sohu dot com
  2008-08-06 13:50 ` [Bug middle-end/36990] " tsarkov at cs dot man dot ac dot uk
@ 2008-08-11  0:11 ` pinskia at gcc dot gnu dot org
  2008-08-11  0:20 ` [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs function pointers and " pinskia at gcc dot gnu dot org
  2008-08-22 15:05 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-11  0:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-08-11 00:09 -------
Reduced testcase:
template<int >     class cla;
typedef cla <1> clas1;
template<int>     struct cla
{
  int&       f1(int& (*__pf)(const int&))
  {
    return __pf(1);
  }
};
int& endl(const int& __os);
extern template class cla<1>;
void f ( clas1& o ) {
  o.f1(endl);
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.4.0
      Known to work|                            |4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-11 00:09:53
               date|                            |
            Summary|ICE when gcc (4.4.0-        |[4.4 Regression] -fipa-cp vs
                   |20080731)  uses -fipa-cp    |extern template
                   |with -O                     |
   Target Milestone|---                         |4.4.0


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


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

* [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs function pointers and extern template
  2008-07-31 16:43 [Bug middle-end/36990] New: ICE when gcc (4.4.0-20080731) uses -fipa-cp with -O linuxl4 at sohu dot com
  2008-08-06 13:50 ` [Bug middle-end/36990] " tsarkov at cs dot man dot ac dot uk
  2008-08-11  0:11 ` [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs extern template pinskia at gcc dot gnu dot org
@ 2008-08-11  0:20 ` pinskia at gcc dot gnu dot org
  2008-08-22 15:05 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-11  0:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-08-11 00:18 -------
This is related to PR 37046.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs function pointers and extern template
  2008-07-31 16:43 [Bug middle-end/36990] New: ICE when gcc (4.4.0-20080731) uses -fipa-cp with -O linuxl4 at sohu dot com
                   ` (2 preceding siblings ...)
  2008-08-11  0:20 ` [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs function pointers and " pinskia at gcc dot gnu dot org
@ 2008-08-22 15:05 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-22 15:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2008-08-22 15:03 -------
This seems to be fixed.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-08-22 15:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-31 16:43 [Bug middle-end/36990] New: ICE when gcc (4.4.0-20080731) uses -fipa-cp with -O linuxl4 at sohu dot com
2008-08-06 13:50 ` [Bug middle-end/36990] " tsarkov at cs dot man dot ac dot uk
2008-08-11  0:11 ` [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs extern template pinskia at gcc dot gnu dot org
2008-08-11  0:20 ` [Bug middle-end/36990] [4.4 Regression] -fipa-cp vs function pointers and " pinskia at gcc dot gnu dot org
2008-08-22 15:05 ` rguenth 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).