Message ID | 87d2mqreoh.fsf@talisman.default |
---|---|
State | New |
Headers | show |
On Sun, 27 Oct 2013, Richard Sandiford wrote: > Tested on powerpc64-linux-gnu and x86_64-linux-gnu. OK to install? > Or, if the code is still needed, is there a testcase we could add? OK. I agree that sign-extension makes no sense here (integer constants are always nonnegative).
Index: gcc/c-family/c-lex.c =================================================================== --- gcc/c-family/c-lex.c 2013-10-27 08:37:55.569236132 +0000 +++ gcc/c-family/c-lex.c 2013-10-27 11:03:57.721834320 +0000 @@ -595,12 +595,10 @@ interpret_integer (const cpp_token *toke tree value, type; enum integer_type_kind itk; cpp_num integer; - cpp_options *options = cpp_get_options (parse_in); *overflow = OT_NONE; integer = cpp_interpret_integer (parse_in, token, flags); - integer = cpp_num_sign_extend (integer, options->precision); if (integer.overflow) *overflow = OT_OVERFLOW;