diff options
author | Gary Funck <gary@intrepid.com> | 2012-01-09 08:48:43 +0000 |
---|---|---|
committer | Gary Funck <gfunck@gcc.gnu.org> | 2012-01-09 08:48:43 +0000 |
commit | b492b6862ef38c3a8c7a67f4c410dcf69434507d (patch) | |
tree | 2b2f237168b3048e8f7a77942d33aaf369c7cae0 /libcpp/ChangeLog | |
parent | fdff9f3d33732e60f9c1a22e4a3c40a3aeea7447 (diff) | |
download | gcc-b492b6862ef38c3a8c7a67f4c410dcf69434507d.zip gcc-b492b6862ef38c3a8c7a67f4c410dcf69434507d.tar.gz gcc-b492b6862ef38c3a8c7a67f4c410dcf69434507d.tar.bz2 |
re PR preprocessor/33919 (__BASE_FILE__ does not expand correctly when included from the command line)
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.
From-SVN: r183003
Diffstat (limited to 'libcpp/ChangeLog')
-rw-r--r-- | libcpp/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index dfe18d0..8a1eb05 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,12 @@ +2012-01-09 Gary Funck <gary@intrepid.com> + + 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. + 2012-01-03 Olivier Hainque <hainque@adacore.com> * system.h: Prior to #define, #undef fopen and freopen unconditionally. |