This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Apr 2008 19:50:29 -0000
- Subject: [Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os
- References: <bug-35992-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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