diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index d5b19a612fee949b047f15fadad28287c3cb153f..3adb67aa47a74b266495098b0de10820dde4d518 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -5662,8 +5662,8 @@ to locally turn off MIPS16 and microMIPS code generation.  This attribute
 overrides the @option{-mips16} and @option{-mmicromips} options on the
 command line (@pxref{MIPS Options}).
 
-@item use_hazard_barrier_return
 @cindex @code{use_hazard_barrier_return} function attribute, MIPS
+@item use_hazard_barrier_return
 This function attribute instructs the compiler to generate a hazard barrier
 return that clears all execution and instruction hazards while returning,
 instead of generating a normal return instruction.
@@ -24877,8 +24877,8 @@ fine-grained control when necessary. It is also the most portable
 alternative and programs using this approach will work with most modern
 compilers.
 
-@item
 @opindex fno-implicit-templates
+@item
 Compile your code with @option{-fno-implicit-templates} to disable the
 implicit generation of template instances, and explicitly instantiate
 all the ones you use.  This approach requires more knowledge of exactly
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 3a4ddb71d274990810daf3dd7af8039bef7c4680..def2df4584b111d212f817c4bb490987e7976187 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -2211,8 +2211,8 @@ directives are not affected by these options.  See also
 @option{-fmacro-prefix-map}, @option{-fdebug-prefix-map},
 @option{-fprofile-prefix-map} and @option{-fcanon-prefix-map}.
 
-@item -fcanon-prefix-map
 @opindex fcanon-prefix-map
+@item -fcanon-prefix-map
 For the @option{-f*-prefix-map} options normally comparison
 of @file{@var{old}} prefix against the filename that would be normally
 referenced in the result of the compilation is done using textual