forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* c-common.c (skip_evaluation): Don't define. (c_inhibit_evaluation_warnings): Define global variable. (overflow_warning): Check c_inhibit_evaluation_warnings rather than skip_evaluation. (convert_and_check, warn_for_div_by_zero): Likewise. * c-common.h (skip_evaluation): Don't declare. (c_inhibit_evaluation_warnings): Declare. * c-parser.c (c_parser_typeof_specifier): Set c_inhibit_evaluation_warnings rather than skip_evaluation. (c_parser_conditional_expression): Likewise. (c_parser_binary_expression): Likewise. (c_parser_sizeof_expression): Likewise. (c_parser_alignof_expression): Likewise. * c-typeck.c (build_indirect_ref): Check c_inhibit_evaluation_warnings rather than skip_evaluation. (build_conditional_expr, build_binary_op): Likewise. cp/: * parser.c (cp_unevaluated_operand): Define global variable. (cp_parser_question_colon_clause): Increment c_inhibit_evaluation_warnings when evaluating an expression which will never be executed. (cp_parser_decltype): Increment cp_unevaluated_operand and c_inhibit_evaluation_warnings, not skip_evaluation. (cp_parser_sizeof_operand): Likewise. (cp_parser_enclosed_template_argument_list): Save cp_unevaluated_operand and c_inhibit_evaluation_warnings, not skip_evaluation. * cp-tree.h (struct saved_scope): Remove skip_evaluation field. Add unevaluated_operand and inhibit_evaluation_warnings fields. (cp_unevaluated_operand): Declare. * name-lookup.c (push_to_top_level): Save cp_unevaluated_operand and c_inhibit_evaluation_warnings rather than skip_evaluation. (pop_from_top_level): Restore cp_unevaluated_operand and c_inhibit_evaluation_warnings rather than skip_evaluation. * class.c (build_base_path): Check cp_unevaluated_operand rather than skip_evaluation. * typeck.c (build_class_member_access_expr): Likewise. (cp_build_binary_op): Don't warn about bad shift counts if c_inhibit_evaluation_warnings is non-zero. * pt.c (coerce_template_parms): Save state of cp_unevaluated_operand and c_inhibit_evaluation_warnings, not skip_evaluation. (tsubst_aggr_type): Likewise. (tsubst_pack_expansion): Check cp_unevaluated_operand rather than skip_evaluation. (tsubst_copy): Likewise. (tsubst): Set cp_unevaluated_operand and c_inhibit_evaluation_warnings, not skip_evaluation. (tsubst_copy_and_build): Likewise. * call.c (convert_arg_to_ellipsis): Check cp_unevaluated_operand rather than skip_evaluation. * decl2.c (mark_used): Likewise. * semantics.c (finish_non_static_data_member): Likewise. * cvt.c (cp_convert_and_check): Check c_inhibit_evaluation_warnings rather than skip_evaluation. * mangle.c (write_type): Set cp_unevaluated_operand rather than skip_evaluation. testsuite/: * g++.dg/warn/skip-1.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148535 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
ian
committed
Jun 16, 2009
1 parent
e8146f0
commit 48d94ed
Showing
19 changed files
with
231 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
2009-06-16 Ian Lance Taylor <[email protected]> | ||
|
||
* c-common.c (skip_evaluation): Don't define. | ||
(c_inhibit_evaluation_warnings): Define global variable. | ||
(overflow_warning): Check c_inhibit_evaluation_warnings rather | ||
than skip_evaluation. | ||
(convert_and_check, warn_for_div_by_zero): Likewise. | ||
* c-common.h (skip_evaluation): Don't declare. | ||
(c_inhibit_evaluation_warnings): Declare. | ||
* c-parser.c (c_parser_typeof_specifier): Set | ||
c_inhibit_evaluation_warnings rather than skip_evaluation. | ||
(c_parser_conditional_expression): Likewise. | ||
(c_parser_binary_expression): Likewise. | ||
(c_parser_sizeof_expression): Likewise. | ||
(c_parser_alignof_expression): Likewise. | ||
* c-typeck.c (build_indirect_ref): Check | ||
c_inhibit_evaluation_warnings rather than skip_evaluation. | ||
(build_conditional_expr, build_binary_op): Likewise. | ||
|
||
2009-06-16 Richard Guenther <[email protected]> | ||
|
||
* tree-ssa-alias.c (is_escape_site): Remove. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,46 @@ | ||
2009-06-16 Ian Lance Taylor <[email protected]> | ||
|
||
* parser.c (cp_unevaluated_operand): Define global variable. | ||
(cp_parser_question_colon_clause): Increment | ||
c_inhibit_evaluation_warnings when evaluating an expression which | ||
will never be executed. | ||
(cp_parser_decltype): Increment cp_unevaluated_operand and | ||
c_inhibit_evaluation_warnings, not skip_evaluation. | ||
(cp_parser_sizeof_operand): Likewise. | ||
(cp_parser_enclosed_template_argument_list): Save | ||
cp_unevaluated_operand and c_inhibit_evaluation_warnings, not | ||
skip_evaluation. | ||
* cp-tree.h (struct saved_scope): Remove skip_evaluation field. | ||
Add unevaluated_operand and inhibit_evaluation_warnings fields. | ||
(cp_unevaluated_operand): Declare. | ||
* name-lookup.c (push_to_top_level): Save cp_unevaluated_operand | ||
and c_inhibit_evaluation_warnings rather than skip_evaluation. | ||
(pop_from_top_level): Restore cp_unevaluated_operand and | ||
c_inhibit_evaluation_warnings rather than skip_evaluation. | ||
* class.c (build_base_path): Check cp_unevaluated_operand rather | ||
than skip_evaluation. | ||
* typeck.c (build_class_member_access_expr): Likewise. | ||
(cp_build_binary_op): Don't warn about bad shift counts if | ||
c_inhibit_evaluation_warnings is non-zero. | ||
* pt.c (coerce_template_parms): Save state of | ||
cp_unevaluated_operand and c_inhibit_evaluation_warnings, not | ||
skip_evaluation. | ||
(tsubst_aggr_type): Likewise. | ||
(tsubst_pack_expansion): Check cp_unevaluated_operand rather than | ||
skip_evaluation. | ||
(tsubst_copy): Likewise. | ||
(tsubst): Set cp_unevaluated_operand and | ||
c_inhibit_evaluation_warnings, not skip_evaluation. | ||
(tsubst_copy_and_build): Likewise. | ||
* call.c (convert_arg_to_ellipsis): Check cp_unevaluated_operand | ||
rather than skip_evaluation. | ||
* decl2.c (mark_used): Likewise. | ||
* semantics.c (finish_non_static_data_member): Likewise. | ||
* cvt.c (cp_convert_and_check): Check | ||
c_inhibit_evaluation_warnings rather than skip_evaluation. | ||
* mangle.c (write_type): Set cp_unevaluated_operand rather than | ||
skip_evaluation. | ||
|
||
2009-06-15 Ian Lance Taylor <[email protected]> | ||
|
||
* parser.c (cp_parser_direct_declarator): Add braces around | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.