public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
@ 2006-08-19 12:56 bero at arklinux dot org
2006-08-19 12:57 ` [Bug c++/28780] " bero at arklinux dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: bero at arklinux dot org @ 2006-08-19 12:56 UTC (permalink / raw)
To: gcc-bugs
This happens while compiling Qt 3.3.6 with current gcc trunk:
g++ -c -o qstring.o -I/usr/include/fontconfig -I/usr/include/X11/Xft -O2
-march=i586 -mtune=i686 -fomit-frame-pointer -fweb -frename-registers
-fvisibility-inlines-hidden -fvisibility=hidden -fno-use-cxa-atexit
-fno-exceptions -I. -Igenerators -Igenerators/unix -Igenerators/win32
-Igenerators/mac -I/usr/src/ark/BUILD/qt-copy/include/qmake
-I/usr/src/ark/BUILD/qt-copy/include -I/usr/src/ark/BUILD/qt-copy/include
-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL
-DQT_NO_COMPRESS -I/usr/src/ark/BUILD/qt-copy/mkspecs/linux-g++
-DHAVE_QCONFIG_CPP /usr/src/ark/BUILD/qt-copy/src/tools/qstring.cpp
/usr/src/ark/BUILD/qt-copy/src/tools/qstring.cpp: In member function 'bool
QString::endsWith(const QString&, bool) const':
/usr/src/ark/BUILD/qt-copy/src/tools/qstring.cpp:7003: internal compiler error:
in build_polynomial_chrec, at tree-chrec.h:108
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: internal compiler error: in build_polynomial_chrec, at
tree-chrec.h:108
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bero at arklinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/28780] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
@ 2006-08-19 12:57 ` bero at arklinux dot org
2006-08-19 13:07 ` bero at arklinux dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bero at arklinux dot org @ 2006-08-19 12:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bero at arklinux dot org 2006-08-19 12:57 -------
Tried on both x86 and x86_64
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/28780] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
2006-08-19 12:57 ` [Bug c++/28780] " bero at arklinux dot org
@ 2006-08-19 13:07 ` bero at arklinux dot org
2006-08-19 13:09 ` bero at arklinux dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bero at arklinux dot org @ 2006-08-19 13:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from bero at arklinux dot org 2006-08-19 13:07 -------
The problem goes away with -O0, and keeps working with
-fdefer-pop -fdelayed-branch -fguess-branch-probability -fcprop-registers
-floop-optimize -fif-conversion -fif-conversion2 -ftree-ccp
-ftree-dce -ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra
-ftree-copyrename -ftree-fre -ftree-ch -fmerge-constants
(which, according to the manpage, should be equivalent to -O1, but -O1 breaks)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/28780] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
2006-08-19 12:57 ` [Bug c++/28780] " bero at arklinux dot org
2006-08-19 13:07 ` bero at arklinux dot org
@ 2006-08-19 13:09 ` bero at arklinux dot org
2006-08-19 13:57 ` [Bug c++/28780] [4.2 regression] " bero at arklinux dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bero at arklinux dot org @ 2006-08-19 13:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from bero at arklinux dot org 2006-08-19 13:09 -------
Created an attachment (id=12096)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12096&action=view)
Preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
` (2 preceding siblings ...)
2006-08-19 13:09 ` bero at arklinux dot org
@ 2006-08-19 13:57 ` bero at arklinux dot org
2006-08-19 15:18 ` [Bug tree-optimization/28780] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bero at arklinux dot org @ 2006-08-19 13:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from bero at arklinux dot org 2006-08-19 13:56 -------
Created an attachment (id=12097)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12097&action=view)
Preprocessed source from ffmpeg
The same error shows up when compiling ffmpeg
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
` (3 preceding siblings ...)
2006-08-19 13:57 ` [Bug c++/28780] [4.2 regression] " bero at arklinux dot org
@ 2006-08-19 15:18 ` pinskia at gcc dot gnu dot org
2006-08-19 15:24 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-19 15:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-08-19 15:18 -------
> (which, according to the manpage, should be equivalent to -O1, but -O1 breaks)
No re-read the man page, -O1 enables more.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |blocker
Component|c++ |tree-optimization
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
` (4 preceding siblings ...)
2006-08-19 15:18 ` [Bug tree-optimization/28780] " pinskia at gcc dot gnu dot org
@ 2006-08-19 15:24 ` pinskia at gcc dot gnu dot org
2006-08-19 18:54 ` tbm at cyrius dot com
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-19 15:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-08-19 15:23 -------
These all look related to PR 28776.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |28776
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
` (5 preceding siblings ...)
2006-08-19 15:24 ` pinskia at gcc dot gnu dot org
@ 2006-08-19 18:54 ` tbm at cyrius dot com
2006-08-19 18:56 ` tbm at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2006-08-19 18:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from tbm at cyrius dot com 2006-08-19 18:54 -------
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned uint;
const bool FALSE = 0;
struct __attribute__ ((visibility ("default"))) QShared
{
};
class __attribute__ ((visibility ("default"))) QChar
{
public:QChar ();
QChar (const QChar & c);
uchar row () const
{
return ((uchar) (ucs >> 8) & 0xff);
}
private: ushort ucs;
}
;
inline
QChar::QChar (const QChar & c):
ucs (c.ucs)
{
}
inline bool
operator!= (QChar c1, QChar c2)
{
}
struct __attribute__ ((visibility ("default"))) QStringData:public QShared
{
QChar *unicode;
};
class __attribute__ ((visibility ("default"))) QString
{
bool isNull () const;
uint length () const;
const QChar *unicode () const
{
return d->unicode;
}
bool endsWith (const QString & str, bool cs) const;
QStringData *d;
};
inline bool
QString::isNull () const
{
return unicode () == 0;
}
inline uint
QString::length () const
{
}
inline QChar
lower (const QChar & c)
{
if (c.row ())
return c;
}
bool
QString::endsWith (const QString & s, bool cs) const
{
if (isNull ())
return s.isNull ();
int pos = length () - s.length ();
{
for (int i = 0; i < (int) s.length (); i++)
{
if (::lower (d->unicode[pos + i]) !=::lower (s.d->unicode[i]))
return FALSE;
}
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
` (6 preceding siblings ...)
2006-08-19 18:54 ` tbm at cyrius dot com
@ 2006-08-19 18:56 ` tbm at gcc dot gnu dot org
2006-08-20 1:40 ` pinskia at gcc dot gnu dot org
2006-08-20 5:12 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: tbm at gcc dot gnu dot org @ 2006-08-19 18:56 UTC (permalink / raw)
To: gcc-bugs
--
tbm 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 |2006-08-19 18:56:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
` (7 preceding siblings ...)
2006-08-19 18:56 ` tbm at gcc dot gnu dot org
@ 2006-08-20 1:40 ` pinskia at gcc dot gnu dot org
2006-08-20 5:12 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-20 1:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-08-20 01:40 -------
Here is an even shorter testcase for qstring.ii:
struct QChar
{
QChar( const QChar& c );
unsigned short ucs;
};
inline QChar::QChar( const QChar& c ) : ucs( c.ucs ){}
inline bool operator!=( QChar c1, QChar c2 )
{
return c1.ucs != c2.ucs;
}
struct QStringData { QChar *unicode; };
struct QString
{
bool isNull() const;
unsigned length() const;
const QChar* unicode() const { return d->unicode; }
bool endsWith( const QString& str, bool cs ) const;
QStringData *d;
};
inline bool QString::isNull() const{ return unicode() == 0; }
inline unsigned QString::length() const{}
bool QString::endsWith( const QString& s, bool cs ) const
{
if ( isNull() )
return s.isNull();
int pos = length();
for ( int i = 0; i < (int) s.length(); i++ )
if ( (d->unicode[pos + i]) != (s.d->unicode[i]) )
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/28780] [4.2 regression] internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
` (8 preceding siblings ...)
2006-08-20 1:40 ` pinskia at gcc dot gnu dot org
@ 2006-08-20 5:12 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-20 5:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from pinskia at gcc dot gnu dot org 2006-08-20 05:12 -------
And here is the testcase for ffv1.i:
typedef struct RangeCoder
{
unsigned char one_state[256];
} RangeCoder;
static inline void put_rac(RangeCoder *c, unsigned char* const state)
{
*state= c->one_state[*state];
}
typedef struct PlaneContext{
unsigned (*state)[32];
} PlaneContext;
static inline void put_symbol(RangeCoder *c, unsigned char *state)
{
int i;
const int e;
put_rac(c, state);
for(i=e-1; i>=0; i--)
put_rac(c, state+22+i);
}
int encode_line(void)
{
PlaneContext * const p;
RangeCoder * const c;
int a;
put_symbol(c, p->state[a]);
}
---------------
Both of these testcases are due to pointers to different "RECORD_TYPE" but of
the same type (the MAIN_VARIANTS are the same), which is the same problem as PR
28776.
*** This bug has been marked as a duplicate of 28776 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28780
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-08-20 5:12 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-19 12:56 [Bug c++/28780] New: internal compiler error: in build_polynomial_chrec, at tree-chrec.h:108 bero at arklinux dot org
2006-08-19 12:57 ` [Bug c++/28780] " bero at arklinux dot org
2006-08-19 13:07 ` bero at arklinux dot org
2006-08-19 13:09 ` bero at arklinux dot org
2006-08-19 13:57 ` [Bug c++/28780] [4.2 regression] " bero at arklinux dot org
2006-08-19 15:18 ` [Bug tree-optimization/28780] " pinskia at gcc dot gnu dot org
2006-08-19 15:24 ` pinskia at gcc dot gnu dot org
2006-08-19 18:54 ` tbm at cyrius dot com
2006-08-19 18:56 ` tbm at gcc dot gnu dot org
2006-08-20 1:40 ` pinskia at gcc dot gnu dot org
2006-08-20 5:12 ` 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).