From 7d08f869f41c6e8cd37ae9c2f3d02a53255a1807 Mon Sep 17 00:00:00 2001 From: Heath123 Date: Thu, 20 Jul 2023 16:53:41 +0100 Subject: [PATCH] Remove the docs changes that make it fail to build --- patches/gcc-13.1.0-rustc-codegen-gcc.patch | 94 ---------------------- 1 file changed, 94 deletions(-) diff --git a/patches/gcc-13.1.0-rustc-codegen-gcc.patch b/patches/gcc-13.1.0-rustc-codegen-gcc.patch index e92b2ab..6095e38 100644 --- a/patches/gcc-13.1.0-rustc-codegen-gcc.patch +++ b/patches/gcc-13.1.0-rustc-codegen-gcc.patch @@ -916,100 +916,6 @@ index 62bc908b991..0513895f7d9 100644 AC_SUBST(target_cpu_default) AC_SUBST_FILE(language_hooks) -diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi -index 8fe49c2ba3d..f6f39b079a8 100644 ---- a/gcc/doc/tm.texi -+++ b/gcc/doc/tm.texi -@@ -115,6 +115,14 @@ initialize @code{targetdm} themselves, they should set - @code{target_has_targetdm=yes} in @file{config.gcc}; otherwise a default - definition is used. - -+Similarly, there is a @code{targetjitm} variable for hooks that are -+specific to the jit front end, documented as ``JIT Target Hook''. -+This is declared in @file{jit/jit-target.h}, the initializer -+@code{TARGETJITM_INITIALIZER} in @file{jit/jit-target-def.h}. If targets -+initialize @code{targetjitm} themselves, they should set -+@code{target_has_targetjitm=yes} in @file{config.gcc}; otherwise a default -+definition is used. -+ - @node Driver - @section Controlling the Compilation Driver, @file{gcc} - @cindex driver -@@ -10902,6 +10910,36 @@ if they have external linkage. If this flag is false, then instantiated - decls will be emitted as weak symbols. The default is @code{false}. - @end deftypevr - -+@node JIT Language and ABI -+@section JIT ABI parameters -+@cindex parameters, jit abi -+ -+@deftypefn {JIT Target Hook} void TARGET_JIT_CPU_VERSIONS (void) -+Declare all environmental version identifiers relating to the target CPU -+using the function @code{builtin_version}, which takes a string representing -+the name of the version. Version identifiers predefined by this hook apply -+to all modules that are being compiled and imported. -+@end deftypefn -+ -+@deftypefn {JIT Target Hook} void TARGET_JIT_OS_VERSIONS (void) -+Similarly to @code{TARGET_JIT_CPU_VERSIONS}, but is used for versions -+relating to the target operating system. -+@end deftypefn -+ -+@deftypefn {JIT Target Hook} void TARGET_JIT_REGISTER_CPU_TARGET_INFO (void) -+Register all target information keys relating to the target CPU using the -+function @code{jit_add_target_info_handlers}, which takes a -+@samp{struct jit_target_info_spec} (defined in @file{jit/jit-target.h}). The keys -+added by this hook are made available at compile time by the -+@code{__traits(getTargetInfo)} extension, the result is an expression -+describing the requested target information. -+@end deftypefn -+ -+@deftypefn {JIT Target Hook} void TARGET_JIT_REGISTER_OS_TARGET_INFO (void) -+Same as @code{TARGET_JIT_CPU_TARGET_INFO}, but is used for keys relating to -+the target operating system. -+@end deftypefn -+ - @node Named Address Spaces - @section Adding support for named address spaces - @cindex named address spaces -diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in -index 62c49ac46de..b7da440f817 100644 ---- a/gcc/doc/tm.texi.in -+++ b/gcc/doc/tm.texi.in -@@ -115,6 +115,14 @@ initialize @code{targetdm} themselves, they should set - @code{target_has_targetdm=yes} in @file{config.gcc}; otherwise a default - definition is used. - -+Similarly, there is a @code{targetjitm} variable for hooks that are -+specific to the jit front end, documented as ``JIT Target Hook''. -+This is declared in @file{jit/jit-target.h}, the initializer -+@code{TARGETJITM_INITIALIZER} in @file{jit/jit-target-def.h}. If targets -+initialize @code{targetjitm} themselves, they should set -+@code{target_has_targetjitm=yes} in @file{config.gcc}; otherwise a default -+definition is used. -+ - @node Driver - @section Controlling the Compilation Driver, @file{gcc} - @cindex driver -@@ -7127,6 +7135,18 @@ floating-point support; they are not included in this mechanism. - - @hook TARGET_D_TEMPLATES_ALWAYS_COMDAT - -+@node JIT Language and ABI -+@section JIT ABI parameters -+@cindex parameters, jit abi -+ -+@hook TARGET_JIT_CPU_VERSIONS -+ -+@hook TARGET_JIT_OS_VERSIONS -+ -+@hook TARGET_JIT_REGISTER_CPU_TARGET_INFO -+ -+@hook TARGET_JIT_REGISTER_OS_TARGET_INFO -+ - @node Named Address Spaces - @section Adding support for named address spaces - @cindex named address spaces diff --git a/gcc/dwarf2asm.cc b/gcc/dwarf2asm.cc index 65b95fee243..e66cd30c1fe 100644 --- a/gcc/dwarf2asm.cc