Add TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID
authorRichard Henderson <rth@redhat.com>
Mon, 9 Nov 2015 09:18:59 +0000 (01:18 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 9 Nov 2015 09:18:59 +0000 (01:18 -0800)
commit6626f97034083631b76c3db092f4bf1156d9d078
tree9ced0fef02073054fa60b803b27fbf06077574a7
parentbd68a3a7e74c8a034dab3efd84c09c4fed066fc1
Add TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID

        * gimple.c (check_loadstore): Return false when 0 is a valid address.
        * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
        null when 0 is valid in the source address space.
        * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
        * targhooks.c (default_addr_space_zero_address_valid): New.
        * targhooks.h (default_addr_space_zero_address_valid): Declare.
        * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
        * doc/tm.texi: Rebuild.

From-SVN: r229999
gcc/ChangeLog
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/fold-const.c
gcc/gimple.c
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h