projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79572cb
)
* cppexp.c (parse_defined): Warn only if -pedantic.
author
Neil Booth
<neil@daikokuya.co.uk>
Sun, 3 Aug 2003 12:23:46 +0000
(12:23 +0000)
committer
Neil Booth
<neil@gcc.gnu.org>
Sun, 3 Aug 2003 12:23:46 +0000
(12:23 +0000)
From-SVN: r70116
gcc/ChangeLog
patch
|
blob
|
history
gcc/cppexp.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index 145cf2c179b95bb9824b051189bbc496c36cbbf9..a242688cbe378fb5c9b9a8656b15c1defdab4841 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,3
+1,7
@@
+2003-08-03 Neil Booth <neil@daikokuya.co.uk>
+
+ * cppexp.c (parse_defined): Warn only if -pedantic.
+
2003-08-03 Neil Booth <neil@daikokuya.co.uk>
* cppfiles.c (stack_file): Use file path.
diff --git
a/gcc/cppexp.c
b/gcc/cppexp.c
index ef2c1ea07124a6bf02eb0af0a58b3e4349d2e973..b4f1dcc896060038a628dcff40fd0e9bbc6effd7 100644
(file)
--- a/
gcc/cppexp.c
+++ b/
gcc/cppexp.c
@@
-487,7
+487,7
@@
parse_defined (cpp_reader *pfile)
if (node)
{
- if (pfile->context != initial_context)
+ if (pfile->context != initial_context
&& CPP_PEDANTIC (pfile)
)
cpp_error (pfile, DL_WARNING,
"this use of \"defined\" may not be portable");