[RFC] Making fold-const sane WRT symbol visibilities
Andreas Schwab
schwab@suse.de
Mon Jul 14 08:30:00 GMT 2014
Jan Hubicka <hubicka@ucw.cz> writes:
> * cgraph.h (symtab_node): Add nonzero_address.
> (decl_in_symtab_p): Break out from ...
> (symtab_get_node): ... here.
> * fold-const.c: Include cgraph.h
> (tree_single_nonzero_warnv_p): Use symtab to determine
> if symbol is non-zero.
> * symtab.c (symtab_node::nonzero_address): New method.
>
> * gcc.dg/pr36901.h: Simplify because non-zero symbol folding no
> longer happens during parsing.
> * gcc.dg/pr44024.c: Update template.
> * g++.dg/tree-ssa/nonzero-2.C: New testcase.
> * g++.dg/tree-ssa/nonzero-1.C: New testcase.
> * gcc.dg/tree-ssa/nonzero-1.c: New testcase.
FAIL: g++.dg/cpp0x/static_assert9.C -std=c++11 (test for excess errors)
Excess errors:
/daten/aranym/gcc/gcc-20140714/gcc/testsuite/g++.dg/cpp0x/static_assert9.C:5:1: error: non-constant condition for static assertion
/daten/aranym/gcc/gcc-20140714/gcc/testsuite/g++.dg/cpp0x/static_assert9.C:5:1: error: '(f != 0u)' is not a constant expression
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Gcc-patches
mailing list