diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-11 15:21:12 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-11 15:21:12 +0000 |
commit | 565353e8cf24046c034ecaf04dcb69ea8319a57c (patch) | |
tree | 52649e138a3331c6ff0aac8c721049208bed9ce2 | |
parent | e1daea7b1d01fa0eaa21b6e70349beccc47f97e2 (diff) | |
download | gcc-565353e8cf24046c034ecaf04dcb69ea8319a57c.tar.gz |
2014-11-11 Richard Biener <rguenther@suse.de>
* tree-core.h (pedantic_lvalues): Remove.
* fold-const.c (pedantic_lvalues): Likewise.
(pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
c/
* c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
to true.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217356 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c/c-decl.c | 2 | ||||
-rw-r--r-- | gcc/fold-const.c | 8 | ||||
-rw-r--r-- | gcc/tree-core.h | 4 |
5 files changed, 11 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 73323efb676..23e6e90984e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-11 Richard Biener <rguenther@suse.de> + + * tree-core.h (pedantic_lvalues): Remove. + * fold-const.c (pedantic_lvalues): Likewise. + (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call. + 2014-11-11 Martin Liska <mliska@suse.cz> PR ipa/63622 diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index c4cf2bcd684..fa3c925e746 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2014-11-11 Richard Biener <rguenther@suse.de> + + * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues + to true. + 2014-11-10 Andi Kleen <ak@linux.intel.com> PR c/60804 diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 23cad017dad..9288e2c1e8c 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -3947,8 +3947,6 @@ c_init_decl_processing (void) input_location = save_loc; - pedantic_lvalues = true; - make_fname_decl = c_make_fname_decl; start_fname_decls (); } diff --git a/gcc/fold-const.c b/gcc/fold-const.c index f3562ffd408..756f469d038 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2152,20 +2152,12 @@ non_lvalue_loc (location_t loc, tree x) return build1_loc (loc, NON_LVALUE_EXPR, TREE_TYPE (x), x); } -/* Nonzero means lvalues are limited to those valid in pedantic ANSI C. - Zero means allow extended lvalues. */ - -int pedantic_lvalues; - /* When pedantic, return an expr equal to X but certainly not valid as a pedantic lvalue. Otherwise, return X. */ static tree pedantic_non_lvalue_loc (location_t loc, tree x) { - if (pedantic_lvalues) - return non_lvalue_loc (loc, x); - return protected_set_expr_location_unshare (x, loc); } diff --git a/gcc/tree-core.h b/gcc/tree-core.h index f8ee8ccb748..58bdffff6ad 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -1877,10 +1877,6 @@ extern GTY(()) builtin_info_type builtin_info; /* If nonzero, an upper limit on alignment of structure fields, in bits, */ extern unsigned int maximum_field_alignment; -/* Nonzero means lvalues are limited to those valid in pedantic ANSI C. - Zero means allow extended lvalues. */ -extern int pedantic_lvalues; - /* Points to the FUNCTION_DECL of the function whose body we are reading. */ extern GTY(()) tree current_function_decl; |