S/390: Make builtin creation conditional.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Wed, 24 Jun 2015 06:44:59 +0000 (06:44 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 24 Jun 2015 06:44:59 +0000 (06:44 +0000)
commitf4d28290bb69d2e2ac1b17a8d23d4952582eaa00
treef616c9fa1b656b9be9d618f4f2d6cc6eaa3b46fd
parentf1497499e1b50528355e8f3ec6816f166dd6bf93
S/390: Make builtin creation conditional.

gcc/ChangeLog:

2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390-builtin-types.def: Add flag to indicate the
options under which the function type is needed.
* config/s390/s390-builtins.def: Add flag to indicate the options
under which the builtin is enabled.
* config/s390/s390-builtins.h: Add flags parameter to macro
definitions.
(bflags_for_builtin): New function.
(flags_for_builtin): Renamed to ...
(opflags_for_builtin): ... this.
* config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
flags_for_builtin to bflags_for_builtin and
flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
* config/s390/s390.c: Add initialization of bflags_builtin and
opflags_builtin arrays.
Remove code for flags_builtin.
(s390_init_builtins): Only create builtin function types if one of
their flags is active.
Only create builtins if all of their flags are active.
(s390_expand_builtin): Rename flags_for_builtin to
opflags_for_builtin.

From-SVN: r224872
gcc/ChangeLog
gcc/config/s390/s390-builtin-types.def
gcc/config/s390/s390-builtins.def
gcc/config/s390/s390-builtins.h
gcc/config/s390/s390-c.c
gcc/config/s390/s390.c