aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.ibm.com>2021-06-15 08:07:39 -0500
committerBill Schmidt <wschmidt@linux.ibm.com>2021-07-16 12:51:46 -0400
commit27d16cb56972279fb1ca4e5c5a79d4c5b0b86610 (patch)
tree81d1c43675a0e7c4955e426cedd5957278b30367 /gcc/tree-vrp.c
parent3bf6e1f89dbd2c67c419d3d4e94085208611262f (diff)
downloadgcc-27d16cb56972279fb1ca4e5c5a79d4c5b0b86610.zip
gcc-27d16cb56972279fb1ca4e5c5a79d4c5b0b86610.tar.gz
gcc-27d16cb56972279fb1ca4e5c5a79d4c5b0b86610.tar.bz2
Support scanning of build-time GC roots in gengtype
Currently gengtype supports scanning target-specific files for GC roots, but those files must exist in the source tree. This patch extends the support to include header files generated into the build directory. It also allows targets to specify build dependencies for s-gtype to ensure the built headers are up to date prior to running gengtype. 2021-06-15 Bill Schmidt <wschmidt@linux.ibm.com> gcc/ * Makefile.in (EXTRA_GTYPE_DEPS): New variable. (s-gtype): Depend on EXTRA_GTYPE_DEPS. * gengtype-state.c (state_writer::write_state_file_list): Add a parameter to the fileslist expression for the number of build headers to scan. (read_state_files_list): Detect build headers and strip the initial "./" or ".\" from their names. * gengtype.c (build_headers): New global variable. (num_build_headers): Likewise. (open_base_files): Emit #include for each build header. (main): Detect and count build headers. * gengtype.h (build_headers): New extern variable. (num_build_headers): Likewise.
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions