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 c/39613] gcc 20090331 produces an error at mce64.c in kernel 2.6.29



------- Comment #4 from hjl dot tools at gmail dot com  2009-04-02 15:36 -------
This is caused by revision 145254:

http://gcc.gnu.org/ml/gcc-cvs/2009-03/msg00761.html

extern unsigned int __invalid_size_argument_for_IOC;
static long mce_ioctl(unsigned int cmd)
{
 switch (cmd) {
   case (((2U) << (((0 +8)+8)+14)) | ((('M')) << (0 +8)) | (((1)) << 0) |
(((((sizeof(int) == sizeof(int[1]) && sizeof(int) < (1 << 14)) ? sizeof(int) :
__invalid_size_argument_for_IOC))) << ((0 +8)+8))):
  return 1;
 default:
  return 2;
 }
}

[hjl@gnu-16 rrs]$ ./145254/usr/bin/gcc -O -S pr39613.c  
pr39613.c: In function ?mce_ioctl?:
pr39613.c:5: error: case label does not reduce to an integer constant
[hjl@gnu-16 rrs]$ 


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm28 at gcc dot gnu dot org
   Last reconfirmed|0000-00-00 00:00:00         |2009-04-02 15:36:02
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39613


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