public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
@ 2007-12-04 19:17 ismail at pardus dot org dot tr
2007-12-04 19:18 ` [Bug c/34337] " ismail at pardus dot org dot tr
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: ismail at pardus dot org dot tr @ 2007-12-04 19:17 UTC (permalink / raw)
To: gcc-bugs
I got an internal error while building gtkwhiteboard.c from pidgin 2.3.0 [0] .
[0] http://downloads.sourceforge.net/pidgin/pidgin-2.3.0.tar.bz2
--
Summary: Internal error while building gtkwhiteboardc.c from
pidgin 2.3.0
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ismail at pardus dot org dot tr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/34337] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
@ 2007-12-04 19:18 ` ismail at pardus dot org dot tr
2007-12-04 19:29 ` [Bug middle-end/34337] " ismail at pardus dot org dot tr
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ismail at pardus dot org dot tr @ 2007-12-04 19:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ismail at pardus dot org dot tr 2007-12-04 19:18 -------
Created an attachment (id=14699)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14699&action=view)
Preprocessed source file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
2007-12-04 19:18 ` [Bug c/34337] " ismail at pardus dot org dot tr
2007-12-04 19:29 ` [Bug middle-end/34337] " ismail at pardus dot org dot tr
@ 2007-12-04 19:29 ` ismail at pardus dot org dot tr
2007-12-04 20:30 ` rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ismail at pardus dot org dot tr @ 2007-12-04 19:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ismail at pardus dot org dot tr 2007-12-04 19:29 -------
gcc -v shows:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc/4.3.0
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include
--datadir=/usr/share/gcc/i686-pc-linux-gnu/4.3.0
--mandir=/usr/share/gcc/i686-pc-linux-gnu/4.3.0/man
--infodir=/usr/share/gcc/i686-pc-linux-gnu/4.3.0/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/include/g++-v3
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-libgcj
--disable-libssp --disable-multilib --disable-nls --disable-werror
--disable-checking --enable-clocale=gnu --enable-__cxa_atexit
--enable-languages=c,c++,fortran,objc,obj-c++,treelang
--enable-libstdcxx-allocator=new --enable-shared --enable-ssp
--enable-threads=posix --enable-version-specific-runtime-libs
--without-included-gettext --without-system-libunwind --with-system-zlib
--with-pkgversion='Pardus Linux' --with-bugurl=http://bugs.pardus.org.tr
Thread model: posix
gcc version 4.3.0 20071204 SVN-r130598 (Pardus Linux)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
2007-12-04 19:18 ` [Bug c/34337] " ismail at pardus dot org dot tr
@ 2007-12-04 19:29 ` ismail at pardus dot org dot tr
2007-12-04 19:29 ` ismail at pardus dot org dot tr
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ismail at pardus dot org dot tr @ 2007-12-04 19:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from ismail at pardus dot org dot tr 2007-12-04 19:29 -------
Forget to add used options :
-g -march=i686 -mtune=native -O2
is used.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (2 preceding siblings ...)
2007-12-04 19:29 ` ismail at pardus dot org dot tr
@ 2007-12-04 20:30 ` rguenth at gcc dot gnu dot org
2007-12-04 20:31 ` [Bug middle-end/34337] [4.3 Regression] " rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-12-04 20:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2007-12-04 20:29 -------
We endlessly recurse folding
Breakpoint 3, fold_binary (code=BIT_IOR_EXPR, type=0xb7c9a2d8, op0=0xb700a2ac,
op1=0xb7d142f4) at /home/richard/src/trunk/gcc/fold-const.c:9397
9397 enum tree_code_class kind = TREE_CODE_CLASS (code);
color_rgb << 8 & 65535
255
very likely caused by
2007-12-03 Jakub Jelinek <jakub@redhat.com>
PR middle-end/29749
* fold-const.c (fold_binary) <case BIT_AND_EXPR>: Optimize
(X << C1) & C2 into (X << C1) & (C2 | ((1 << C1) - 1))
and (X >> C1) & C2 into (X >> C1) & (C2 | ~((type) -1 >> C1)).
(fold_binary) <case LSHIFT_EXPR, case RSHIFT_EXPR>: Optimize
(X & C2) << C1 into (X << C1) & (C2 << C1) and
(X & C2) >> C1 into (X >> C1) & (C2 >> C1) if that allows further
optimizations.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu dot org
OtherBugsDependingO| |29749
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] [4.3 Regression] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (3 preceding siblings ...)
2007-12-04 20:30 ` rguenth at gcc dot gnu dot org
@ 2007-12-04 20:31 ` rguenth at gcc dot gnu dot org
2007-12-04 20:32 ` jakub at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-12-04 20:31 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Summary|Internal error while |[4.3 Regression] Internal
|building gtkwhiteboardc.c |error while building
|from pidgin 2.3.0 |gtkwhiteboardc.c from pidgin
| |2.3.0
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] [4.3 Regression] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (4 preceding siblings ...)
2007-12-04 20:31 ` [Bug middle-end/34337] [4.3 Regression] " rguenth at gcc dot gnu dot org
@ 2007-12-04 20:32 ` jakub at gcc dot gnu dot org
2007-12-04 20:33 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-04 20:32 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-12-04 20:32:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] [4.3 Regression] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (5 preceding siblings ...)
2007-12-04 20:32 ` jakub at gcc dot gnu dot org
@ 2007-12-04 20:33 ` rguenth at gcc dot gnu dot org
2007-12-04 20:50 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-12-04 20:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2007-12-04 20:33 -------
Testcase:
int foo(int color_rgb)
{
return ((color_rgb << 8) & 65535) | 255;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] [4.3 Regression] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (6 preceding siblings ...)
2007-12-04 20:33 ` rguenth at gcc dot gnu dot org
@ 2007-12-04 20:50 ` jakub at gcc dot gnu dot org
2007-12-05 7:25 ` ismail at pardus dot org dot tr
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-04 20:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2007-12-04 20:50 -------
It is the:
/* Minimize the number of bits set in C1, i.e. C1 := C1 & ~C2. */
hi1 &= mhi;
lo1 &= mlo;
if ((hi1 & ~hi2) != hi1 || (lo1 & ~lo2) != lo1)
return fold_build2 (BIT_IOR_EXPR, type,
fold_build2 (BIT_AND_EXPR, type,
TREE_OPERAND (arg0, 0),
build_int_cst_wide (type,
lo1 & ~lo2,
hi1 & ~hi2)),
arg1);
optimization that fights against the new optimization. Guess a simple check
if fold_build2 of the BIT_AND_EXPR has created again a BIT_AND_EXPR with the
same first argument and second argument became the original constant should
cure it, will test tomorrow.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] [4.3 Regression] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (7 preceding siblings ...)
2007-12-04 20:50 ` jakub at gcc dot gnu dot org
@ 2007-12-05 7:25 ` ismail at pardus dot org dot tr
2007-12-05 20:03 ` laurent at guerby dot net
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ismail at pardus dot org dot tr @ 2007-12-05 7:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ismail at pardus dot org dot tr 2007-12-05 07:24 -------
Just a note, this seems to break kernel-2.6.24 compilation too, out of memory
and cc1 gets killed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] [4.3 Regression] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (8 preceding siblings ...)
2007-12-05 7:25 ` ismail at pardus dot org dot tr
@ 2007-12-05 20:03 ` laurent at guerby dot net
2007-12-05 22:24 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: laurent at guerby dot net @ 2007-12-05 20:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from laurent at guerby dot net 2007-12-05 20:03 -------
Yep, blows up at more than 5.6GB of RAM on drivers/ata/sata_promise.c (on the
compile farm).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] [4.3 Regression] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (9 preceding siblings ...)
2007-12-05 20:03 ` laurent at guerby dot net
@ 2007-12-05 22:24 ` jakub at gcc dot gnu dot org
2007-12-05 22:25 ` jakub at gcc dot gnu dot org
2007-12-05 22:26 ` jakub at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-05 22:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2007-12-05 22:24 -------
Subject: Bug 34337
Author: jakub
Date: Wed Dec 5 22:24:08 2007
New Revision: 130635
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130635
Log:
PR middle-end/34337
* fold-const.c (fold_binary) <case BIT_IOR_EXPR>: Don't minimize
number of bits set in C1 if a mode mask for some mode can be used
instead.
* gcc.c-torture/execute/20071205-1.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/20071205-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] [4.3 Regression] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (10 preceding siblings ...)
2007-12-05 22:24 ` jakub at gcc dot gnu dot org
@ 2007-12-05 22:25 ` jakub at gcc dot gnu dot org
2007-12-05 22:26 ` jakub at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-05 22:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jakub at gcc dot gnu dot org 2007-12-05 22:25 -------
Fixed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/34337] [4.3 Regression] Internal error while building gtkwhiteboardc.c from pidgin 2.3.0
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
` (11 preceding siblings ...)
2007-12-05 22:25 ` jakub at gcc dot gnu dot org
@ 2007-12-05 22:26 ` jakub at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-05 22:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jakub at gcc dot gnu dot org 2007-12-05 22:25 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34337
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-12-05 22:26 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-04 19:17 [Bug c/34337] New: Internal error while building gtkwhiteboardc.c from pidgin 2.3.0 ismail at pardus dot org dot tr
2007-12-04 19:18 ` [Bug c/34337] " ismail at pardus dot org dot tr
2007-12-04 19:29 ` [Bug middle-end/34337] " ismail at pardus dot org dot tr
2007-12-04 19:29 ` ismail at pardus dot org dot tr
2007-12-04 20:30 ` rguenth at gcc dot gnu dot org
2007-12-04 20:31 ` [Bug middle-end/34337] [4.3 Regression] " rguenth at gcc dot gnu dot org
2007-12-04 20:32 ` jakub at gcc dot gnu dot org
2007-12-04 20:33 ` rguenth at gcc dot gnu dot org
2007-12-04 20:50 ` jakub at gcc dot gnu dot org
2007-12-05 7:25 ` ismail at pardus dot org dot tr
2007-12-05 20:03 ` laurent at guerby dot net
2007-12-05 22:24 ` jakub at gcc dot gnu dot org
2007-12-05 22:25 ` jakub at gcc dot gnu dot org
2007-12-05 22:26 ` jakub 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).