target.def (addr_space): Add new diagnose_usage to hook vector.
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 20 Jul 2016 13:07:43 +0000 (13:07 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 20 Jul 2016 13:07:43 +0000 (13:07 +0000)
commitffc2284012c94620bdbffb5276a264bd7fcf7d91
tree3af01204ef4bbfc231cede2c4fc9c9162a5b05a7
parent144530cf6352a55404e04bce3354e23d7c7c2d1d
target.def (addr_space): Add new diagnose_usage to hook vector.

gcc/
* target.def (addr_space): Add new diagnose_usage to hook vector.
* targhooks.c (default_addr_space_diagnose_usage): Add default
implementation and...
* targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
* c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
is some address space, call targetm.addr_space.diagnose_usage.
* doc/tm.texi.in (Named Address Spaces): Add anchor for
TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
* doc/tm.texi: Regenerate.

From-SVN: r238514
gcc/ChangeLog
gcc/c/c-parser.c
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h