gcc/libcpp
Jakub Jelinek fb136e35c7 re PR preprocessor/65238 (__has_attribute is not handled properly with -traditional-cpp.)
PR preprocessor/65238
	* internal.h (_cpp_scan_out_logical_line): Add third argument.
	* directives.c (prepare_directive_trad): Pass false to it.
	* traditional.c (_cpp_read_logical_line_trad,
	_cpp_create_trad_definition): Likewise.
	(struct fun_macro): Add paramc field.
	(fun_like_macro): New function.
	(maybe_start_funlike): Handle NODE_BUILTIN macros.  Initialize
	macro->paramc field.
	(save_argument): Use macro->paramc instead of
	macro->node->value.macro->paramc.
	(push_replacement_text): Formatting fix.
	(recursive_macro): Use fun_like_macro helper.
	(_cpp_scan_out_logical_line): Likewise.  Add BUILTIN_MACRO_ARG
	argument.  Initialize fmacro.paramc field.  Handle builtin
	function-like macros.

	* c-c++-common/cpp/pr65238-1.c: New test.
	* gcc.dg/cpp/pr65238-2.c: New test.
	* gcc.dg/cpp/trad/pr65238-3.c: New test.
	* gcc.dg/cpp/trad/pr65238-4.c: New test.

From-SVN: r221587
2015-03-23 09:02:39 +01:00
..
include Update copyright years. 2015-01-05 13:33:28 +01:00
po be.po, [...]: Update. 2015-02-25 16:08:20 +00:00
aclocal.m4
ChangeLog re PR preprocessor/65238 (__has_attribute is not handled properly with -traditional-cpp.) 2015-03-23 09:02:39 +01:00
ChangeLog.jit
charset.c Update copyright years. 2015-01-05 13:33:28 +01:00
config.in
configure
configure.ac
directives-only.c Update copyright years. 2015-01-05 13:33:28 +01:00
directives.c re PR preprocessor/65238 (__has_attribute is not handled properly with -traditional-cpp.) 2015-03-23 09:02:39 +01:00
errors.c Update copyright years. 2015-01-05 13:33:28 +01:00
expr.c expr.c (cpp_classify_number): Add N_() around ?... 2015-01-16 18:40:15 +01:00
files.c Update copyright years. 2015-01-05 13:33:28 +01:00
identifiers.c Update copyright years. 2015-01-05 13:33:28 +01:00
init.c Update copyright years. 2015-01-05 13:33:28 +01:00
internal.h re PR preprocessor/65238 (__has_attribute is not handled properly with -traditional-cpp.) 2015-03-23 09:02:39 +01:00
lex.c re PR c++/64626 (C++14 single quote should not always be a digit separator) 2015-03-17 00:50:55 +00:00
line-map.c Update copyright years. 2015-01-05 13:33:28 +01:00
macro.c PR preprocessor/64803 - __LINE__ inside macro is not constant 2015-02-03 10:26:46 +01:00
Makefile.in Update copyright years. 2015-01-05 13:33:28 +01:00
makeucnid.c Update copyright years. 2015-01-05 13:33:28 +01:00
mkdeps.c Update copyright years. 2015-01-05 13:33:28 +01:00
pch.c Update copyright years. 2015-01-05 13:33:28 +01:00
symtab.c Update copyright years. 2015-01-05 13:33:28 +01:00
system.h Update copyright years. 2015-01-05 13:33:28 +01:00
traditional.c re PR preprocessor/65238 (__has_attribute is not handled properly with -traditional-cpp.) 2015-03-23 09:02:39 +01:00
ucnid.h Update copyright years. 2015-01-05 13:33:28 +01:00
ucnid.tab Update copyright years. 2015-01-05 13:33:28 +01:00