aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-04-26 07:15:41 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-04-26 07:15:41 +0000
commita0f8745469c6a00a25ad20aaac0d56aff2767776 (patch)
tree010c4663638f6a5bafb1150041a9a53385dc84a9 /gcc/doc
parent289c40ed97f6048a9e17d592ba4eb165488cfb1d (diff)
downloadgcc-a0f8745469c6a00a25ad20aaac0d56aff2767776.zip
gcc-a0f8745469c6a00a25ad20aaac0d56aff2767776.tar.gz
gcc-a0f8745469c6a00a25ad20aaac0d56aff2767776.tar.bz2
re PR driver/31107 (--target-help doesn't say which options are compiler, assembler or linker options)
gcc/ PR driver/31107 * doc/invoke.texi (%:print-asm-header): Document. * gcc.c (asm_options): Use %:print-asm-header() for --target-help and -ftarget-help. (static_spec_functions): Add print-asm-header. (main): Print a banner before the --target-help linker options. (print_asm_header_spec_function): New function. From-SVN: r124175
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index fb96076..cc5feb9 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -7663,6 +7663,19 @@ is a small example of its usage:
%@{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)@}
@end smallexample
+@item @code{print-asm-header}
+The @code{print-asm-header} function takes no arguments and simply
+prints a banner like:
+
+@smallexample
+Assember options
+================
+
+Use "-Wa,OPTION" to pass "OPTION" to the assembler.
+@end smallexample
+
+It is used to separate compiler options from assembler options
+in the @option{--target-help} output.
@end table
@item %@{@code{S}@}