public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35992] New: Linux kernel code fails to compile with -Os
@ 2008-04-20 19:46 dcb314 at hotmail dot com
2008-04-20 19:47 ` [Bug c/35992] " dcb314 at hotmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2008-04-20 19:46 UTC (permalink / raw)
To: gcc-bugs
I just tried to compile the new Linux kernel 2.6.25
with the new GNU C compiler version 4.4 snapshot 20080418
The GNU C compiler said
drivers/char/cyclades.c: In function 'cyz_load_fw':
drivers/char/cyclades.c:5421: error: invalid use of void expression
drivers/char/cyclades.c:5421: error: invalid use of void expression
drivers/char/cyclades.c:5421: error: invalid use of void expression
drivers/char/cyclades.c:5421: error: invalid use of void expression
Preprocessed source code attached. Flag -Os required
--
Summary: Linux kernel code fails to compile with -Os
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=35992
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/35992] Linux kernel code fails to compile with -Os
2008-04-20 19:46 [Bug c/35992] New: Linux kernel code fails to compile with -Os dcb314 at hotmail dot com
@ 2008-04-20 19:47 ` dcb314 at hotmail dot com
2008-04-20 19:48 ` [Bug middle-end/35992] [4.4 Regression] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2008-04-20 19:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dcb314 at hotmail dot com 2008-04-20 19:46 -------
Created an attachment (id=15501)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15501&action=view)
C source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35992
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os
2008-04-20 19:46 [Bug c/35992] New: Linux kernel code fails to compile with -Os dcb314 at hotmail dot com
2008-04-20 19:47 ` [Bug c/35992] " dcb314 at hotmail dot com
@ 2008-04-20 19:48 ` pinskia at gcc dot gnu dot org
2008-04-20 19:51 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-04-20 19:48 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ian at gcc dot gnu dot org
Severity|normal |blocker
Component|c |middle-end
Keywords| |rejects-valid
Summary|Linux kernel code fails to |[4.4 Regression] Linux
|compile with -Os |kernel code fails to compile
| |with -Os
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35992
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os
2008-04-20 19:46 [Bug c/35992] New: Linux kernel code fails to compile with -Os dcb314 at hotmail dot com
2008-04-20 19:47 ` [Bug c/35992] " dcb314 at hotmail dot com
2008-04-20 19:48 ` [Bug middle-end/35992] [4.4 Regression] " pinskia at gcc dot gnu dot org
@ 2008-04-20 19:51 ` pinskia at gcc dot gnu dot org
2008-04-20 20:34 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-04-20 19:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-04-20 19:50 -------
Caused by:
size = size_in_bytes (TREE_TYPE (TREE_TYPE (base)));
if (size == NULL_TREE || TREE_CODE (size) != INTEGER_CST)
return true;
in pointer_may_wrap_p.
a simple s/size_in_bytes/TYPE_SIZE_UNIT/ should fix the problem.
--
pinskia 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-04-20 19:50:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35992
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os
2008-04-20 19:46 [Bug c/35992] New: Linux kernel code fails to compile with -Os dcb314 at hotmail dot com
` (2 preceding siblings ...)
2008-04-20 19:51 ` pinskia at gcc dot gnu dot org
@ 2008-04-20 20:34 ` rguenth at gcc dot gnu dot org
2008-04-20 20:50 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-20 20:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-04-20 20:34 -------
Isn't pointer_may_wrap_p just get_ref_base_and_extent () and checking for
max_size != -1?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35992
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os
2008-04-20 19:46 [Bug c/35992] New: Linux kernel code fails to compile with -Os dcb314 at hotmail dot com
` (3 preceding siblings ...)
2008-04-20 20:34 ` rguenth at gcc dot gnu dot org
@ 2008-04-20 20:50 ` rguenth at gcc dot gnu dot org
2008-04-21 9:28 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-20 20:50 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35992
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os
2008-04-20 19:46 [Bug c/35992] New: Linux kernel code fails to compile with -Os dcb314 at hotmail dot com
` (4 preceding siblings ...)
2008-04-20 20:50 ` rguenth at gcc dot gnu dot org
@ 2008-04-21 9:28 ` rguenth at gcc dot gnu dot org
2008-04-22 8:59 ` rguenth at gcc dot gnu dot org
2008-04-23 22:47 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-21 9:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2008-04-21 09:27 -------
Btw, glibc build fails the same way.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35992
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os
2008-04-20 19:46 [Bug c/35992] New: Linux kernel code fails to compile with -Os dcb314 at hotmail dot com
` (5 preceding siblings ...)
2008-04-21 9:28 ` rguenth at gcc dot gnu dot org
@ 2008-04-22 8:59 ` rguenth at gcc dot gnu dot org
2008-04-23 22:47 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-22 8:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2008-04-22 08:58 -------
*** Bug 36005 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marcus at jet dot franken
| |dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35992
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os
2008-04-20 19:46 [Bug c/35992] New: Linux kernel code fails to compile with -Os dcb314 at hotmail dot com
` (6 preceding siblings ...)
2008-04-22 8:59 ` rguenth at gcc dot gnu dot org
@ 2008-04-23 22:47 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: ian at airs dot com @ 2008-04-23 22:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from ian at airs dot com 2008-04-23 22:46 -------
This is fixed by this patch:
2008-04-22 Ian Lance Taylor <iant@google.com>
* fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
than size_in_bytes.
Sorry about the difficulties.
--
ian at airs dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35992
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-04-23 22:47 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-20 19:46 [Bug c/35992] New: Linux kernel code fails to compile with -Os dcb314 at hotmail dot com
2008-04-20 19:47 ` [Bug c/35992] " dcb314 at hotmail dot com
2008-04-20 19:48 ` [Bug middle-end/35992] [4.4 Regression] " pinskia at gcc dot gnu dot org
2008-04-20 19:51 ` pinskia at gcc dot gnu dot org
2008-04-20 20:34 ` rguenth at gcc dot gnu dot org
2008-04-20 20:50 ` rguenth at gcc dot gnu dot org
2008-04-21 9:28 ` rguenth at gcc dot gnu dot org
2008-04-22 8:59 ` rguenth at gcc dot gnu dot org
2008-04-23 22:47 ` ian at airs dot com
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).