OSDN Git Service

libcpp/
authorgfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jan 2012 08:48:43 +0000 (08:48 +0000)
committergfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jan 2012 08:48:43 +0000 (08:48 +0000)
commit5e79140626a9d7be3f384af82b3da0c6f0d12aaf
tree2b2f237168b3048e8f7a77942d33aaf369c7cae0
parent3f7685cdb9aca9d689f73e53baccfbcfbf043669
libcpp/
PR preprocessor/33919
* files.c (_cpp_get_file_name): New. Implement file name
access function.
* internal.h (_cpp_get_file_name): New prototype.
* macro.c (_cpp_builtin_macro_text): Call _cpp_get_file_name()
to use pfile->main_file in lieu of traversing INCLUDED_FROM chain.

gcc/testsuite/
PR preprocessor/33919
* gcc.dg/pr33919.c: New test.
* gcc.dg/pr33919-0.h: New test header file.
* gcc.dg/pr33919-1.h: Ditto.
* gcc.dg/pr33919-2.h: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183003 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr33919-0.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr33919-1.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr33919-2.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr33919.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/files.c
libcpp/internal.h
libcpp/macro.c