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]

Re: preprocessor/8139: Bad new INT64_C macro


Philippe RIBET wrote:-

> >I suspect the warnings are correct, but new, and that the definition
> of the macro is unchanged.
> No, definition changed.
> No, warnings are not correct as INT64_C(-3000000000) is valid code because 
> -3000000000 is valid 64bits integer.

No, that's your misunderstanding.  The integer is 300000000; the -
is an operator, and it is not 64 bit.  It has type int.
 
> >You should probably add a U to the relevant numbers.
> ??? 'U' with negative numbers ???
> 
> >Anyway, not a GCC bug.
> Is IS a GCC bug if you consider ANSI C99 standard.

I don't think so.  You can fix your code like I suggested.

Neil.


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