summaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-22 20:03:33 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-22 20:03:33 +0000
commitf45370f89c3e5700d237f4da87e921174a0aaea6 (patch)
tree08079f870498946fd1f1f35392bfcb011099e337 /gcc/common.opt
parent272822520857a2399e4cdd0d851aacb431e64bcc (diff)
downloadgcc-f45370f89c3e5700d237f4da87e921174a0aaea6.tar.gz
PR other/32998
* common.opt (grecord-gcc-switches, gno-record-gcc-switches): New options. * dwarf2out.c: Include opts.h. (dchar_p): New typedef. Define heap VEC for it. (producer_string): New variable. (gen_producer_string): New function. (gen_compile_unit_die): Use it. (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed. * Makefile.in (dwarf2out.o): Depend on $(OPTS_H). * doc/invoke.texi: Document -grecord-gcc-switches and -gno-record-gcc-switches, add a -grecord-gcc-switches reference to -frecord-gcc-switches description. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176652 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index f1279369906..63331d30ecc 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2184,6 +2184,14 @@ ggdb
Common JoinedOrMissing
Generate debug information in default extended format
+gno-record-gcc-switches
+Common RejectNegative Var(dwarf_record_gcc_switches,0) Init(0)
+Don't record gcc command line switches in DWARF DW_AT_producer.
+
+grecord-gcc-switches
+Common RejectNegative Var(dwarf_record_gcc_switches,1)
+Record gcc command line switches in DWARF DW_AT_producer.
+
gstabs
Common JoinedOrMissing Negative(gstabs+)
Generate debug information in STABS format