PR 13358 long long and C++ do not mix well

Manuel López-Ibáñez lopezibanez@gmail.com
Mon Aug 25 10:33:00 GMT 2008


Bootstrapped and regression tested on x86_64-unknown-linux-gnu with
--enable-languages=all,ada

OK for trunk?

2008-08-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR 13358
	* c-lex (interpret_integer): Only warn if there was no previous
	overflow and -Wlong-long is enabled.
	* c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
	and front-end warn_long_long.
testsuite/
	* g++.dg/warn/pr13358.C: New.
	* g++.dg/warn/pr13358-2.C: New.
	* g++.dg/warn/pr13358-3.C: New.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-pr13358.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080825/a924f51a/attachment.ksh>


More information about the Gcc-patches mailing list