]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sphinx: do not use tm.rst.in with empty content
authorMartin Liska <mliska@suse.cz>
Mon, 7 Nov 2022 12:59:01 +0000 (13:59 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 9 Nov 2022 08:00:36 +0000 (09:00 +0100)
gcc/ChangeLog:

* doc/gccint/target-macros/defining-the-output-assembler-language/assembler-commands-for-exception-regions.rst:
Do not include tm.rst.in.
* doc/gccint/target-macros/defining-the-output-assembler-language/the-overall-framework-of-an-assembler-file.rst:
Likewise.
* doc/gccint/target-macros/run-time-target-specification.rst:
Likewise.

gcc/doc/gccint/target-macros/defining-the-output-assembler-language/assembler-commands-for-exception-regions.rst
gcc/doc/gccint/target-macros/defining-the-output-assembler-language/the-overall-framework-of-an-assembler-file.rst
gcc/doc/gccint/target-macros/run-time-target-specification.rst

index b39ec393ff077e66d5c09064598f455adabf91a2..6efe42f3515e8b3e2829fa1821e1d88289237dce 100644 (file)
@@ -54,10 +54,7 @@ region.
   ``INCOMING_RETURN_ADDR_RTX`` and ``OBJECT_FORMAT_ELF``),
   GCC will provide a default definition of 1.
 
-.. include:: ../tm.rst.in
-  :start-after: [TARGET_EXCEPT_UNWIND_INFO]
-  :end-before: [TARGET_EXCEPT_UNWIND_INFO]
-
+.. function:: enum unwind_info_type TARGET_EXCEPT_UNWIND_INFO (struct gcc_options *opts)
 
   This hook defines the mechanism that will be used for exception handling
   by the target.  If the target has ABI specified unwind tables, the hook
@@ -83,10 +80,7 @@ region.
   ``DWARF2_UNWIND_INFO`` depends on command-line options, the target
   must define this hook so that :samp:`{opts}` is used correctly.
 
-.. include:: ../tm.rst.in
-  :start-after: [TARGET_UNWIND_TABLES_DEFAULT]
-  :end-before: [TARGET_UNWIND_TABLES_DEFAULT]
-
+.. c:var:: bool TARGET_UNWIND_TABLES_DEFAULT
 
   This variable should be set to ``true`` if the target ABI requires unwinding
   tables even when exceptions are not used.  It must not be modified by
index 7a18f0439ae9358eb6e1d149ad068068509a5bf5..7b0c7f700a948f11527b31cb0e2ddacac5064eeb 100644 (file)
@@ -128,10 +128,7 @@ This describes the overall framework of an assembly file.
   :end-before: [TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS]
 
 
-.. include:: ../tm.rst.in
-  :start-after: [TARGET_HAVE_NAMED_SECTIONS]
-  :end-before: [TARGET_HAVE_NAMED_SECTIONS]
-
+.. c:var:: bool TARGET_HAVE_NAMED_SECTIONS
 
   This flag is true if the target supports ``TARGET_ASM_NAMED_SECTION``.
   It must not be modified by command-line option processing.
index e7068d876b243d75f0abad155d64936fd79e6267..46a423a840d273fc7ebfe3b26c03e0568cd8cecf 100644 (file)
@@ -67,20 +67,15 @@ Here are run-time target specifications.
 Variable extern int target_flagsThis variable is declared in :samp:`options.h`, which is included before
 any target-specific headers.
 
-.. include:: tm.rst.in
-  :start-after: [TARGET_DEFAULT_TARGET_FLAGS]
-  :end-before: [TARGET_DEFAULT_TARGET_FLAGS]
-
+.. c:var:: int TARGET_DEFAULT_TARGET_FLAGS
 
   This variable specifies the initial value of ``target_flags``.
   Its default setting is 0.
 
 .. index:: optional hardware or system features, features, optional, in system conventions
 
-.. include:: tm.rst.in
-  :start-after: [TARGET_HANDLE_OPTION]
-  :end-before: [TARGET_HANDLE_OPTION]
 
+.. function:: bool TARGET_HANDLE_OPTION (struct gcc_options *opts, struct gcc_options *opts_set, const struct cl_decoded_option *decoded, location_t loc)
 
   This hook is called whenever the user specifies one of the
   target-specific options described by the :samp:`.opt` definition files
@@ -94,10 +89,7 @@ any target-specific headers.
   option was passed (``UNKNOWN_LOCATION`` except for options passed
   via attributes).
 
-.. include:: tm.rst.in
-  :start-after: [TARGET_HANDLE_C_OPTION]
-  :end-before: [TARGET_HANDLE_C_OPTION]
-
+.. function:: bool TARGET_HANDLE_C_OPTION (size_t code, const char *arg, int value)
 
   This target hook is called whenever the user specifies one of the
   target-specific C language family options described by the :samp:`.opt`
@@ -149,10 +141,7 @@ any target-specific headers.
   used to alter option flag variables which only exist in those
   frontends.
 
-.. include:: tm.rst.in
-  :start-after: [TARGET_OPTION_OPTIMIZATION_TABLE]
-  :end-before: [TARGET_OPTION_OPTIMIZATION_TABLE]
-
+.. c:var:: const struct default_options * TARGET_OPTION_OPTIMIZATION_TABLE
 
   Some machines may desire to change what optimizations are performed for
   various optimization levels.   This variable, if defined, describes