From be8ac3e243dda9430ee53a245a3c1ee3a6acbc7c Mon Sep 17 00:00:00 2001 From: Grigory Zagorodnev Date: Sat, 18 Feb 2006 09:25:31 +0000 Subject: cpp.texi (__TIMESTAMP__): Document. 2006-02-17 Grigory Zagorodnev gcc/ChangeLog: * doc/cpp.texi (__TIMESTAMP__): Document. libcpp/ChangeLog: * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP. * files.c (_cpp_get_file_stat): New function. * include/cpplib.h (builtin_type): Add BT_TIMESTAMP. * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP. * internal.h (_cpp_get_file_stat): Prototype. (struct cpp_buffer): Add timestamp. gcc/testsuite/ChangeLog: * gcc.dg/cpp/undef3.c: New test. * gcc.dg/cpp/trad/builtins2.c: New test. From-SVN: r111232 --- libcpp/include/cpplib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libcpp/include') diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index f1b5eab..2cea1f5 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -555,7 +555,8 @@ enum builtin_type BT_INCLUDE_LEVEL, /* `__INCLUDE_LEVEL__' */ BT_TIME, /* `__TIME__' */ BT_STDC, /* `__STDC__' */ - BT_PRAGMA /* `_Pragma' operator */ + BT_PRAGMA, /* `_Pragma' operator */ + BT_TIMESTAMP /* `__TIMESTAMP__' */ }; #define CPP_HASHNODE(HNODE) ((cpp_hashnode *) (HNODE)) -- cgit v1.1