https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113270

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't really know why, not sure if GTY types simply must not appear in target
headers other than the main one or one needs to mark such headers somehow such
that gengtype is aware of those, but the generated gt-aarch64-builtins.h after
the change loses:
@@ -58,34 +58,6 @@ EXPORTED_CONST struct ggc_root_tab gt_gg
     &gt_pch_nx_tree_node
   },
   {
-    &aarch64_simd_types[0].name,
-    1 * ARRAY_SIZE (aarch64_simd_types),
-    sizeof (aarch64_simd_types[0]),
-    (gt_pointer_walker) &gt_ggc_m_S,
-    (gt_pointer_walker) &gt_pch_n_S
-  },
-  {
-    &aarch64_simd_types[0].mangle,
-    1 * ARRAY_SIZE (aarch64_simd_types),
-    sizeof (aarch64_simd_types[0]),
-    (gt_pointer_walker) &gt_ggc_m_S,
-    (gt_pointer_walker) &gt_pch_n_S
-  },
-  {
-    &aarch64_simd_types[0].itype,
-    1 * ARRAY_SIZE (aarch64_simd_types),
-    sizeof (aarch64_simd_types[0]),
-    &gt_ggc_mx_tree_node,
-    &gt_pch_nx_tree_node
-  },
-  {
-    &aarch64_simd_types[0].eltype,
-    1 * ARRAY_SIZE (aarch64_simd_types),
-    sizeof (aarch64_simd_types[0]),
-    &gt_ggc_mx_tree_node,
-    &gt_pch_nx_tree_node
-  },
-  {
     &aarch64_builtin_decls[0],
     1 * (AARCH64_BUILTIN_MAX),
     sizeof (aarch64_builtin_decls[0]),
@@ -95,8 +67,3 @@ EXPORTED_CONST struct ggc_root_tab gt_gg
   LAST_GGC_ROOT_TAB
 };

-EXPORTED_CONST struct ggc_root_tab gt_pch_rs_gt_aarch64_builtins_h[] = {
-  { &aarch64_simd_types, 1, sizeof (aarch64_simd_types), NULL, NULL },
-  LAST_GGC_ROOT_TAB
-};
-
where the former is I believe what breaks the PCH.

Reply via email to