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
ae01169c
Commit
ae01169c
authored
Apr 22, 2011
by
Xinliang David Li
Committed by
Xinliang David Li
Apr 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proper handling of -Werror=coverage-mismatch
From-SVN: r172870
parent
93dfac24
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
gcc/ChangeLog
+7
-0
gcc/opts-global.c
+0
-5
gcc/toplev.c
+9
-0
No files found.
gcc/ChangeLog
View file @
ae01169c
2011-04-22 Xinliang David Li <davidxl@google.com>
* toplev.c (process_options): Enable -Werror=coverage-mismatch
by default when -Wno-error is not specified.
* opts-global.c (decode_options): Remove call to
control_warning_options.
2011-04-22 Jakub Jelinek <jakub@redhat.com>
2011-04-22 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/48717
PR tree-optimization/48717
...
...
gcc/opts-global.c
View file @
ae01169c
...
@@ -310,11 +310,6 @@ decode_options (struct gcc_options *opts, struct gcc_options *opts_set,
...
@@ -310,11 +310,6 @@ decode_options (struct gcc_options *opts, struct gcc_options *opts_set,
set_default_handlers
(
&
handlers
);
set_default_handlers
(
&
handlers
);
/* Enable -Werror=coverage-mismatch by default. */
control_warning_option
(
OPT_Wcoverage_mismatch
,
(
int
)
DK_ERROR
,
true
,
loc
,
lang_mask
,
&
handlers
,
opts
,
opts_set
,
dc
);
default_options_optimization
(
opts
,
opts_set
,
default_options_optimization
(
opts
,
opts_set
,
decoded_options
,
decoded_options_count
,
decoded_options
,
decoded_options_count
,
loc
,
lang_mask
,
&
handlers
,
dc
);
loc
,
lang_mask
,
&
handlers
,
dc
);
...
...
gcc/toplev.c
View file @
ae01169c
...
@@ -1600,6 +1600,15 @@ process_options (void)
...
@@ -1600,6 +1600,15 @@ process_options (void)
flag_omit_frame_pointer
=
0
;
flag_omit_frame_pointer
=
0
;
}
}
/* Enable -Werror=coverage-mismatch when -Werror and -Wno-error
have not been set. */
if
(
!
global_options_set
.
x_warnings_are_errors
&&
warn_coverage_mismatch
&&
(
global_dc
->
classify_diagnostic
[
OPT_Wcoverage_mismatch
]
==
DK_UNSPECIFIED
))
diagnostic_classify_diagnostic
(
global_dc
,
OPT_Wcoverage_mismatch
,
DK_ERROR
,
UNKNOWN_LOCATION
);
/* Save the current optimization options. */
/* Save the current optimization options. */
optimization_default_node
=
build_optimization_node
();
optimization_default_node
=
build_optimization_node
();
optimization_current_node
=
optimization_default_node
;
optimization_current_node
=
optimization_default_node
;
...
...
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