This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/35992] [4.4 Regression] Linux kernel code fails to compile with -Os



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]