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
1fecc266
Commit
1fecc266
authored
May 04, 2003
by
Neil Booth
Committed by
Neil Booth
May 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* doc/cppopts.texi: Enhance -Wtrigraphs documentation
From-SVN: r66462
parent
a8eb6044
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
12 deletions
+30
-12
gcc/ChangeLog
+9
-0
gcc/doc/cppopts.texi
+10
-6
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/gcc.dg/cpp/Wtrigraphs-2.c
+6
-6
No files found.
gcc/ChangeLog
View file @
1fecc266
2003-05-04 Neil Booth <neil@daikokuya.co.uk>
* cppinit.c (cpp_create_reader, post_options): Warn about
trigraphs unless explicity set or -trigraphs.
* cpplex.c (warn_in_comment): New.
(_cpp_process_line_notes): Better handling of -Wtrigraphs.
(_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
* doc/cppopts.texi, doc/cpp.texi: Update.
2003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* Makefile.in (LIBGCOV): Add _gcov_merge_add.
...
...
gcc/doc/cppopts.texi
View file @
1fecc266
...
...
@@ -87,12 +87,16 @@ comment, or whenever a backslash-newline appears in a @samp{//} comment.
@item
-
Wtrigraphs
@opindex
Wtrigraphs
@anchor
{
Wtrigraphs
}
Warn
if
any
trigraphs
that
may
change
the
meaning
of
a
program
are
encountered
.
This
option
is
in
effect
unless
trigraphs
are
turned
on
,
and
is
implied
by
@option
{
-
Wall
}.
With
the
exception
of
a
trigraph
that
would
form
an
escaped
newline
,
warnings
are
not
given
for
trigraphs
within
comments
as
they
do
not
affect
the
meaning
of
the
program
.
Most
trigraphs
in
comments
cannot
affect
the
meaning
of
the
program
.
However
,
a
trigraph
that
would
form
an
escaped
newline
(
@samp
{??
/
}
at
the
end
of
a
line
)
can
,
by
changing
where
the
comment
begins
or
ends
.
Therefore
,
only
trigraphs
that
would
form
escaped
newlines
produce
warnings
inside
a
comment
.
This
option
is
implied
by
@option{
-
Wall
}
.
If
@option{
-
Wall
}
is
not
given
,
this
option
is
still
enabled
unless
trigraphs
are
enabled
.
To
get
trigraph
conversion
without
warnings
,
but
get
the
other
@option{
-
Wall
}
warnings
,
use
@samp{
-
trigraphs
-
Wall
-
Wno
-
trigraphs
}
.
@item
-
Wtraditional
@opindex
Wtraditional
...
...
gcc/testsuite/ChangeLog
View file @
1fecc266
2003-05-04 Neil Booth <neil@daikokuya.co.uk>
* gcc.dg/cpp/Wtrigraphs.c: Update.
* gcc.dg/cpp/Wtrigraphs-2.c: New tests.
2003-05-03 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/ppc-fsel-1.c: New test.
...
...
gcc/testsuite/gcc.dg/cpp/Wtrigraphs-2.c
View file @
1fecc266
/* { dg-do preprocess } */
/* { dg-options "-std=c99 -Wtrigraphs -fno-show-column" } */
/* Test w
e don't double warn for trigraphs immediately after preceding
text. Source
Neil Booth. 4 May 2003. */
/* Test w
arnings for trigraphs in comments, with trigraphs enabled.
Neil Booth. 4 May 2003. */
/* { dg-bogus "
ignor
ed" } Test ??< ??= a few ??/ random things in
/* { dg-bogus "
convert
ed" } Test ??< ??= a few ??/ random things in
{ dg-warning "converted" } some ??/
{ dg-bogus "
ignor
ed" } ??< comments. */
{ dg-bogus "
convert
ed" } ??< comments. */
// { dg-bogus "
ignor
ed" } More ??/ comment ??> tests.
// { dg-bogus "
convert
ed" } More ??/ comment ??> tests.
// { dg-warning "converted" } Another ??/
Test
...
...
@@ -16,5 +16,5 @@
// { dg-warning "converted" } And another with space after ??/
the
escape
// { dg-bogus "
ignor
ed" } A tricky one ??/\
// { dg-bogus "
convert
ed" } A tricky one ??/\
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