Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bf4ab281
Commit
bf4ab281
authored
Mar 13, 2001
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Mar 13, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cpp.texi (poison): Explain the macro expansion exception.
From-SVN: r40438
parent
e5408e52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
gcc/ChangeLog
+4
-0
gcc/cpp.texi
+16
-0
No files found.
gcc/ChangeLog
View file @
bf4ab281
2001-03-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cpp.texi (poison): Explain the macro expansion exception.
2001-03-13 Jakub Jelinek <jakub@redhat.com>
* expr.c (store_expr): Add dont_store_target. If temp is already in
...
...
gcc/cpp.texi
View file @
bf4ab281
...
...
@@ -1601,6 +1601,22 @@ sprintf(some_string, "hello");
@noindent
will produce an error.
Note, if the poisoned identifier appears through the result of macro
expansion it @emph{won't} cause an error. So if you poison an
identifier you need not worry about system headers defining macros that
use it.
For example,
@example
#define strrchr rindex
#pragma GCC poison rindex
strrchr(some_string, 'h');
@end example
@noindent
will not produce an error.
@node Macro Pitfalls,, Poisoning, Macros
@subsection Pitfalls and Subtleties of Macros
@cindex problems with macros
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment