diff options
author | Neil Booth <neilb@earthling.net> | 2000-10-31 23:34:59 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-10-31 23:34:59 +0000 |
commit | 86368122e68f2b697cf898523d408bea831fa6e7 (patch) | |
tree | e504a7a4e2c4a7bde207adaf17b32b6b047226da /gcc/cpp.texi | |
parent | e199824280b56df47f390fbbdc727f9219d4408f (diff) | |
download | gcc-86368122e68f2b697cf898523d408bea831fa6e7.zip gcc-86368122e68f2b697cf898523d408bea831fa6e7.tar.gz gcc-86368122e68f2b697cf898523d408bea831fa6e7.tar.bz2 |
cpp.texi: Update for new command line assertion syntax.
* cpp.texi: Update for new command line assertion syntax.
* cpplib.c (cpp_define): Simplify a bit.
(cpp_assert, cpp_unassert): Use handle_assertion.
(handle_assertion): New function; accept new command line
syntax with '='.
* testsuite/gcc.dg/cpp/assert3.c: New tests.
From-SVN: r37171
Diffstat (limited to 'gcc/cpp.texi')
-rw-r--r-- | gcc/cpp.texi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/cpp.texi b/gcc/cpp.texi index ffbd323..457cbf2 100644 --- a/gcc/cpp.texi +++ b/gcc/cpp.texi @@ -3364,12 +3364,14 @@ 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}) +@item -A @var{predicate}=@var{answer} @findex -A Make an assertion with the predicate @var{predicate} and answer -@var{answer}. @xref{Assertions}. +@var{answer}. This form is preferred to the older form @samp{-A +@var{predicate}(@var{answer})}, which is still supported, because +it does not use shell special characters. @xref{Assertions}. -@item -A -@var{predicate}(@var{answer}) +@item -A -@var{predicate}=@var{answer} Disable an assertion with the predicate @var{predicate} and answer @var{answer}. Specifying no predicate, by @samp{-A-} or @samp{-A -}, disables all predefined assertions and all assertions preceding it on |