aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-12-07 10:54:13 +0000
committerNick Clifton <nickc@gcc.gnu.org>2006-12-07 10:54:13 +0000
commite0d9d0ddb643a4e9372e3bb1104ce299a200df45 (patch)
tree46d6178c94554a22a20fe838a94fbf98cec94d4d /gcc/common.opt
parent1d49ee6a7985f8eb2a759a3d22fb3c8fec92a403 (diff)
downloadgcc-e0d9d0ddb643a4e9372e3bb1104ce299a200df45.zip
gcc-e0d9d0ddb643a4e9372e3bb1104ce299a200df45.tar.gz
gcc-e0d9d0ddb643a4e9372e3bb1104ce299a200df45.tar.bz2
common.opt (record-gcc-switches): New command line switch.
* common.opt (record-gcc-switches): New command line switch. * target.h (print_switch_type): New enum. (print_switch_fn_type): New typedef for a function pointer. (struct gcc_target): Add record_gcc_switches and record_gcc_switches_section fields. * target-def.h (TARGET_ASM_RECORD_GCC_SWITCHES): Provide a default definition. (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Provide a default definition. * toplev.c (print_single_switch): Simplify by providing a pointer to function that will format and output the switch appropriately. (print_switch_values): Likewise. (print_to_asm_out_file): New function. (print_to_stderr): New function. (init_asm_output): If flag_record_gcc_switches is set then if the target supports recording the switches then emit them into the assembler output file, otherwise tell the user that the switch is not supported. * varasm.c (eld_record_gcc_switches): New function. Example handler for the record_gcc_switches target hook. * doc/tm.texi (TARGET_ASM_RECORD_GCC_SWITCHES): Document the new target hook. (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Likewise. * doc/invoke.texi (-frecord-gcc-switches): Document. From-SVN: r119615
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index e73fbac..2251b86 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -715,6 +715,16 @@ frandom-seed=
Common Joined RejectNegative
-frandom-seed=<string> Make compile reproducible using <string>
+; This switch causes the command line that was used to create an
+; object file to be recorded into the object file. The exact format
+; of this recording is target and binary file format dependent.
+; It is related to the -fverbose-asm switch, but that switch only
+; records information in the assembler output file as comments, so
+; they never reach the object file.
+frecord-gcc-switches
+Common Report Var(flag_record_gcc_switches)
+Record gcc command line switches in the object file.
+
freg-struct-return
Common Report Var(flag_pcc_struct_return,0) VarExists
Return small aggregates in registers