]> git.ipfire.org Git - thirdparty/gcc.git/commit
IBM Z: Add GTY marker to builtin data structures
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 14 Nov 2023 10:33:45 +0000 (11:33 +0100)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 14 Nov 2023 10:40:08 +0000 (11:40 +0100)
commit426e92643285a081d2e32221268b2052d740aa35
tree6845d6bf814b3e634ff61db670e0a037e8d53604
parenta745d2064f3e8a368995c67e80146e563d6a8fec
IBM Z: Add GTY marker to builtin data structures

This adds GTY markers to s390_builtin_types, s390_builtin_fn_types,
and s390_builtin_decls. These were missing causing problems in
particular when using builtins after including a precompiled header.

Unfortunately the declaration of these data structures use enum values
from s390-builtins.h.  This file however is not included everywhere
and is rather large.  In order to include it only for the purpose of
gtype-desc.cc we place a preprocessed copy of it in the build
directory and include only this.

This is going to be backported to GCC 12 and 13.

gcc/ChangeLog:

* config.gcc: Add s390-gen-builtins.h to target_gtfiles.
* config/s390/s390-builtins.h (s390_builtin_types)
(s390_builtin_fn_types, s390_builtin_decls): Add GTY marker.
* config/s390/t-s390 (EXTRA_GTYPE_DEPS): Add s390-gen-builtins.h.
Add build rule for s390-gen-builtins.h.
gcc/config.gcc
gcc/config/s390/s390-builtins.h
gcc/config/s390/t-s390