aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-11-11 15:21:12 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-11-11 15:21:12 +0000
commitd876207f939fcac31113cfb9119ed8398d4775db (patch)
tree52649e138a3331c6ff0aac8c721049208bed9ce2 /gcc/fold-const.c
parentf657d66569fa873772fb624a4413dfa2014d700c (diff)
downloadgcc-d876207f939fcac31113cfb9119ed8398d4775db.zip
gcc-d876207f939fcac31113cfb9119ed8398d4775db.tar.gz
gcc-d876207f939fcac31113cfb9119ed8398d4775db.tar.bz2
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
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index f3562ff..756f469 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);
}