This is the mail archive of the gcc-patches@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]

[C++0x PATCH] "long long" support in C++0x mode


C++0x has support for C99's "long long". This trivial patch enables
"long long" support in C++0x mode by turning off the warnings
generated by uses of "long long" in the preprocessor and C++ parser.
It doesn't get much easier than that :)

htdocs patch also included, so we document this change.

Tested i386-apple-darwin-8.11.1, no regressions. Okay for mainline?

  - Doug

2007-12-13  Douglas Gregor  <doug.gregor@gmail.com>

	* c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
	in C++0x mode.

2007-12-13  Douglas Gregor  <doug.gregor@gmail.com>

	* parser.c (cp_parser_check_decl_spec): Don't warn about "long
	long" in C++0x mode; change the warning to note that "long long"
	is only unsupported in C++98 mode.

2007-12-13  Douglas Gregor  <doug.gregor@gmail.com>

	* g++.dg/cpp0x/long_long.C: New.

Attachment: long_long.patch
Description: Binary data

Attachment: long_long_web.patch
Description: Binary data


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