diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-11-07 10:17:05 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-11-07 10:17:05 +0000 |
commit | 46e343b8d225732ae2e81509ca1accf47444f64b (patch) | |
tree | bf2eb1c3768397191320000d6b39a9b2b2e6ea7d /gcc/jit | |
parent | df838ef0f1a11355a217ab11ed8546dd97873870 (diff) | |
download | gcc-46e343b8d225732ae2e81509ca1accf47444f64b.zip gcc-46e343b8d225732ae2e81509ca1accf47444f64b.tar.gz gcc-46e343b8d225732ae2e81509ca1accf47444f64b.tar.bz2 |
Move #undef DEF_INTERNAL_FN to internal-fn.def
In practice the definition of DEF_INTERNAL_FN is never reused after
including internal-fn.def, so we might as well #undef it there.
This becomes more obvious with a later patch that adds other
DEF_INTERNAL_* directives, such as DEF_INTERNAL_OPTAB_FN.
If the includer doesn't care about the information carried in
these new directives, it can simply leave the macro undefined
and internals.def will provide a definition that forwards to
DEF_INTERNAL_FN. It doesn't make much sense for includers to have
to #undef macros that are defined by internals.def and it seems overly
complicated to get internals.def to undef macros only in the cases
where it provided a definition. Instead I went with the approach of
#undeffing all the DEF_INTERNAL_* macros unconditionally.
Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
gcc/
* internal-fn.def: #undef DEF_INTERNAL_FN at the end.
* internal-fn.c: Don't undef it here.
* tree-core.h: Likewise.
From-SVN: r229923
Diffstat (limited to 'gcc/jit')
0 files changed, 0 insertions, 0 deletions