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]

Re: [PATCH] PR preprocessor/64803 - __LINE__ inside macro is not constant


On Mon, Feb 02, 2015 at 03:41:50PM +0100, Dodji Seketeli wrote:
> libcpp/ChangeLog:
> 
> 	* internal.h (cpp_reader::top_most_macro_node): New data member.
> 	* macro.c (enter_macro_context): Pass the location of the end of
> 	the top-most invocation of the function-like macro, or the
> 	location of the expansion point of the top-most object-like macro.
> 	(cpp_get_token_1): Store the top-most macro node in the new
> 	pfile->top_most_macro_node data member.
> 	(_cpp_pop_context): Clear the new cpp_reader::top_most_macro_node
> 	data member.
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gcc.dg/cpp/builtin-macro-1.c: New test case.

Ok, thanks.

	Jakub


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