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
f9fc59e8
Commit
f9fc59e8
authored
Dec 21, 1997
by
Nick Clifton
Committed by
Jeff Law
Dec 21, 1997
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl2.c (lang_decode_option): Add support for -Wunknown-pragmas.
From-SVN: r17167
parent
d3245704
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl2.c
+11
-0
No files found.
gcc/cp/ChangeLog
View file @
f9fc59e8
Sun Dec 21 15:59:00 1997 Nick Clifton <nickc@cygnus.com>
* decl2.c (lang_decode_option): Add support for -Wunknown-pragmas.
Thu Dec 18 14:51:50 1997 Mark Mitchell <mmitchell@usa.net>
Thu Dec 18 14:51:50 1997 Mark Mitchell <mmitchell@usa.net>
* pt.c (coerce_template_parms): Make sure to digest_init if
* pt.c (coerce_template_parms): Make sure to digest_init if
...
...
gcc/cp/decl2.c
View file @
f9fc59e8
...
@@ -272,6 +272,10 @@ int warn_sign_promo;
...
@@ -272,6 +272,10 @@ int warn_sign_promo;
int
warn_old_style_cast
;
int
warn_old_style_cast
;
/* Warn about #pragma directives that are not recognised. */
int
warn_unknown_pragmas
=
0
;
/* Tri state variable. */
/* Nonzero means `$' can be in an identifier. */
/* Nonzero means `$' can be in an identifier. */
#ifndef DOLLARS_IN_IDENTIFIERS
#ifndef DOLLARS_IN_IDENTIFIERS
...
@@ -654,6 +658,10 @@ lang_decode_option (p)
...
@@ -654,6 +658,10 @@ lang_decode_option (p)
warn_sign_promo
=
setting
;
warn_sign_promo
=
setting
;
else
if
(
!
strcmp
(
p
,
"old-style-cast"
))
else
if
(
!
strcmp
(
p
,
"old-style-cast"
))
warn_old_style_cast
=
setting
;
warn_old_style_cast
=
setting
;
else
if
(
!
strcmp
(
p
,
"unknown-pragmas"
))
/* Set to greater than 1, so that even unknown pragmas in
system headers will be warned about. */
warn_unknown_pragmas
=
setting
*
2
;
else
if
(
!
strcmp
(
p
,
"comment"
))
else
if
(
!
strcmp
(
p
,
"comment"
))
;
/* cpp handles this one. */
;
/* cpp handles this one. */
else
if
(
!
strcmp
(
p
,
"comments"
))
else
if
(
!
strcmp
(
p
,
"comments"
))
...
@@ -683,6 +691,9 @@ lang_decode_option (p)
...
@@ -683,6 +691,9 @@ lang_decode_option (p)
warn_template_debugging
=
setting
;
warn_template_debugging
=
setting
;
warn_reorder
=
setting
;
warn_reorder
=
setting
;
warn_sign_promo
=
setting
;
warn_sign_promo
=
setting
;
/* Only warn about unknown pragmas that are not in system
headers. */
warn_unknown_pragmas
=
1
;
}
}
else
if
(
!
strcmp
(
p
,
"overloaded-virtual"
))
else
if
(
!
strcmp
(
p
,
"overloaded-virtual"
))
...
...
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