tree-core.h (pedantic_lvalues): Remove.
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. From-SVN: r217356
This commit is contained in:
parent
f657d66569
commit
d876207f93
5 changed files with 11 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue