In bug 79936 - ICE with -Walloc-size-larger-than=32767 the reporter encountered an ICE on x86_64-apple-darwin10.8.0 caused by GCC source file that implements the warning accessing a global tree without having included the file in GTFILES make variable. (Thanks again to David Malcolm who helped me root cause this bug.)
The attached patch fixes this by adding calls.c to the variable and by including the requisite generated header, gt-calls.h, at the end of the source. Martin
PR c/79936 - [7 Regression] ICE with -Walloc-size-larger-than=32767 gcc/ChangeLog: PR c/79936 * Makefile.in (GTFILES): Add calls.c. * calls.c (must_pass_in_stack_var_size_or_pad): Include "gt-calls.h". diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 8648d68..481515a 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2517,6 +2517,7 @@ GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \ $(srcdir)/ipa-devirt.c \ $(srcdir)/internal-fn.h \ $(srcdir)/hsa-common.c \ + $(srcdir)/calls.c \ @all_gtfiles@ # Compute the list of GT header files from the corresponding C sources, diff --git a/gcc/calls.c b/gcc/calls.c index 6d5ef4e..61caf4c 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -5649,3 +5649,6 @@ must_pass_in_stack_var_size_or_pad (machine_mode mode, const_tree type) return false; } + +/* Tell the garbage collector about GTY markers in this source file. */ +#include "gt-calls.h"