diff options
author | Jonathan Larmour <jlarmour@redhat.co.uk> | 2000-02-15 23:54:53 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-02-15 23:54:53 -0800 |
commit | 3ea8083fc9062ef5c6f2e97b563ce2e8b3f7a8c6 (patch) | |
tree | f50c2625d7ae54acdbe802acaad3b0628f04ef06 /gcc/cpp.texi | |
parent | ba96c72d6baddf4dec4515c6f7fa57716440913b (diff) | |
download | gcc-3ea8083fc9062ef5c6f2e97b563ce2e8b3f7a8c6.zip gcc-3ea8083fc9062ef5c6f2e97b563ce2e8b3f7a8c6.tar.gz gcc-3ea8083fc9062ef5c6f2e97b563ce2e8b3f7a8c6.tar.bz2 |
Jonathan Larmour <jlarmour@redhat.co.uk>:
Add new __GNUC_PATCHLEVEL__ define.
From-SVN: r32004
Diffstat (limited to 'gcc/cpp.texi')
-rw-r--r-- | gcc/cpp.texi | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/gcc/cpp.texi b/gcc/cpp.texi index 5751722..f7a0dc9 100644 --- a/gcc/cpp.texi +++ b/gcc/cpp.texi @@ -978,9 +978,16 @@ The macro contains the minor version number of the compiler. This can be used to work around differences between different releases of the compiler (for example, if gcc 2.6.3 is known to support a feature, you can test for @code{__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6)}). -The last number, @samp{3} in the -example above, denotes the bugfix level of the compiler; no macro -contains this value. + +@item __GNUC_PATCHLEVEL__ +@findex __GNUC_PATCHLEVEL__ +This macro contains the patch level of the compiler. This can be +used to work around differences between different patch level releases +of the compiler (for example, if gcc 2.6.2 is known to contain a bug, +whereas gcc 2.6.3 contains a fix, and you have code which can workaround +ths problem depending on whether the bug is fixed or not, you can test for +@code{__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 6) || +(__GNUC__ == 2 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ > 3)}). @item __GNUG__ @findex __GNUG__ @@ -2870,9 +2877,9 @@ Do not predefine any nonstandard macros. @item -gcc @findex -gcc -Define the macros @var{__GNUC__} and @var{__GNUC_MINOR__}. These are -defined automatically when you use @samp{gcc -E}; you can turn them off -in that case with @samp{-no-gcc}. +Define the macros @var{__GNUC__}, @var{__GNUC_MINOR__} and +@var{__GNUC_PATCHLEVEL__}. These are defined automatically when you use +@samp{gcc -E}; you can turn them off in that case with @samp{-no-gcc}. @item -A @var{predicate}(@var{answer}) @findex -A |