public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38428] New: ice for Linux kernel code with -O2
@ 2008-12-06 12:28 dcb314 at hotmail dot com
2008-12-06 12:29 ` [Bug c/38428] " dcb314 at hotmail dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2008-12-06 12:28 UTC (permalink / raw)
To: gcc-bugs
I just tried to compile the Linux kernel version 2.6.27.7
with the GNU C compiler version 4.4 snapshot 20081205.
The compiler said
drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_free_device':
drivers/scsi/qla2xxx/qla_os.c:1809: internal compiler error: in
gimple_rhs_has_side_effects, at gimple.c:2343
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Preprocessed source code attached. Flag -O2 required.
--
Summary: ice for Linux kernel code with -O2
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: suse-linux-x86_64
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38428
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/38428] ice for Linux kernel code with -O2
2008-12-06 12:28 [Bug c/38428] New: ice for Linux kernel code with -O2 dcb314 at hotmail dot com
@ 2008-12-06 12:29 ` dcb314 at hotmail dot com
2008-12-06 12:51 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2008-12-06 12:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dcb314 at hotmail dot com 2008-12-06 12:28 -------
Created an attachment (id=16840)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16840&action=view)
C source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38428
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/38428] ice for Linux kernel code with -O2
2008-12-06 12:28 [Bug c/38428] New: ice for Linux kernel code with -O2 dcb314 at hotmail dot com
2008-12-06 12:29 ` [Bug c/38428] " dcb314 at hotmail dot com
@ 2008-12-06 12:51 ` rguenth at gcc dot gnu dot org
2008-12-06 12:53 ` [Bug middle-end/38428] [4.4 Regression] " rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-06 12:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-12-06 12:50 -------
reducing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38428
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/38428] [4.4 Regression] ice for Linux kernel code with -O2
2008-12-06 12:28 [Bug c/38428] New: ice for Linux kernel code with -O2 dcb314 at hotmail dot com
2008-12-06 12:29 ` [Bug c/38428] " dcb314 at hotmail dot com
2008-12-06 12:51 ` rguenth at gcc dot gnu dot org
@ 2008-12-06 12:53 ` rguenth at gcc dot gnu dot org
2008-12-06 13:06 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-06 12:53 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
Keywords| |ice-on-valid-code
Known to work| |4.3.2
Summary|ice for Linux kernel code |[4.4 Regression] ice for
|with -O2 |Linux kernel code with -O2
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38428
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/38428] [4.4 Regression] ice for Linux kernel code with -O2
2008-12-06 12:28 [Bug c/38428] New: ice for Linux kernel code with -O2 dcb314 at hotmail dot com
` (2 preceding siblings ...)
2008-12-06 12:53 ` [Bug middle-end/38428] [4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2008-12-06 13:06 ` rguenth at gcc dot gnu dot org
2008-12-06 13:07 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-06 13:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-12-06 13:05 -------
typedef unsigned int __u32;
typedef __u32 uint32_t;
typedef struct {
volatile struct {
uint32_t online : 1;
} flags;
} scsi_qla_host_t;
int qla2x00_wait_for_hba_online(scsi_qla_host_t *ha) {
int return_status;
scsi_qla_host_t *pha = to_qla_parent(ha);
if (pha->flags.online)
return_status = (0x4000 & 0x3fff);
else
return_status = 0x102;
return (return_status);
}
--
rguenth 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 |2008-12-06 13:05:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38428
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/38428] [4.4 Regression] ice for Linux kernel code with -O2
2008-12-06 12:28 [Bug c/38428] New: ice for Linux kernel code with -O2 dcb314 at hotmail dot com
` (3 preceding siblings ...)
2008-12-06 13:06 ` rguenth at gcc dot gnu dot org
@ 2008-12-06 13:07 ` jakub at gcc dot gnu dot org
2008-12-06 21:09 ` jakub at gcc dot gnu dot org
2008-12-06 21:19 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-06 13:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2008-12-06 13:06 -------
Apparently caused by my PR37248 patch. We have a volatile bitfield, and the
patch (similarly to 4.3) creates a TREE_THIS_VOLATILE TREE_SIDE_EFFECTS
BIT_FIELD_REF, but apparently the trunk is upset about it.
Either we just don't try to optimize volatile bitfields at all (don't create
BIT_FIELD_REFs for them), or some changes are needed to handle volatile
BIT_FIELD_REFs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38428
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/38428] [4.4 Regression] ice for Linux kernel code with -O2
2008-12-06 12:28 [Bug c/38428] New: ice for Linux kernel code with -O2 dcb314 at hotmail dot com
` (4 preceding siblings ...)
2008-12-06 13:07 ` jakub at gcc dot gnu dot org
@ 2008-12-06 21:09 ` jakub at gcc dot gnu dot org
2008-12-06 21:19 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-06 21:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2008-12-06 21:08 -------
Subject: Bug 38428
Author: jakub
Date: Sat Dec 6 21:06:43 2008
New Revision: 142527
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142527
Log:
PR middle-end/38428
* tree-ssa-operands.c (get_expr_operands) <case BIT_FIELD_REF>: Set
gimple_set_has_volatile_ops if the BIT_FIELD_REF is volatile.
* gcc.c-torture/compile/pr38428.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr38428.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-operands.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38428
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/38428] [4.4 Regression] ice for Linux kernel code with -O2
2008-12-06 12:28 [Bug c/38428] New: ice for Linux kernel code with -O2 dcb314 at hotmail dot com
` (5 preceding siblings ...)
2008-12-06 21:09 ` jakub at gcc dot gnu dot org
@ 2008-12-06 21:19 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-06 21:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2008-12-06 21:17 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38428
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-12-06 21:19 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-06 12:28 [Bug c/38428] New: ice for Linux kernel code with -O2 dcb314 at hotmail dot com
2008-12-06 12:29 ` [Bug c/38428] " dcb314 at hotmail dot com
2008-12-06 12:51 ` rguenth at gcc dot gnu dot org
2008-12-06 12:53 ` [Bug middle-end/38428] [4.4 Regression] " rguenth at gcc dot gnu dot org
2008-12-06 13:06 ` rguenth at gcc dot gnu dot org
2008-12-06 13:07 ` jakub at gcc dot gnu dot org
2008-12-06 21:09 ` jakub at gcc dot gnu dot org
2008-12-06 21:19 ` 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).