diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/doc/cpp.texi | 11 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 |
3 files changed, 20 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9acf0ac8b25..0025c6c670f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com> + + * doc/cpp.texi (__TIMESTAMP__): Document. + 2006-02-17 Roger Sayle <roger@eyesopen.com> PR middle-end/25600 diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi index c019adbac67..e69394298e6 100644 --- a/gcc/doc/cpp.texi +++ b/gcc/doc/cpp.texi @@ -2128,6 +2128,17 @@ use. This macro is defined, with value 2, when @option{-fstack-protector-all} is in use. +@item __TIMESTAMP__ +This macro expands to a string constant that describes the date and time +of the last modification of the current source file. The string constant +contains abbreviated day of the week, month, day of the month, time in +hh:mm:ss form, year and looks like @code{@w{"Sun Sep 16 01:03:52 1973"}}. +If the day of the month is less than 10, it is padded with a space on the left. + +If GCC cannot determine the current date, it will emit a warning message +(once per compilation) and @code{__TIMESTAMP__} will expand to +@code{@w{"??? ??? ?? ??:??:?? ????"}}. + @end table @node System-specific Predefined Macros diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b8ea9f07cae..08b1d2dd721 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com> + + * gcc.dg/cpp/undef3.c: New test. + * gcc.dg/cpp/trad/builtins2.c: New test. + 2006-02-18 Mark Mitchell <mark@codesourcery.com> PR c++/26266 |