aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/common.opt4
-rw-r--r--gcc/doc/invoke.texi7
-rw-r--r--gcc/gcc.cc4
-rw-r--r--gcc/opts.cc3
4 files changed, 18 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 862c474..a28ca13 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -3318,6 +3318,10 @@ gas-locview-support
Common Driver Var(dwarf2out_as_locview_support)
Assume assembler support for view in (DWARF2+) .loc directives.
+gcodeview
+Common Driver JoinedOrMissing
+Generate debug information in CodeView format.
+
gcoff
Common Driver WarnRemoved
Does nothing. Preserved for backward compatibility.
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index a38547f..aae6bc7 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -509,6 +509,7 @@ Objective-C and Objective-C++ Dialects}.
-gstrict-dwarf -gno-strict-dwarf
-gas-loc-support -gno-as-loc-support
-gas-locview-support -gno-as-locview-support
+-gcodeview @gol
-gcolumn-info -gno-column-info -gdwarf32 -gdwarf64
-gstatement-frontiers -gno-statement-frontiers
-gvariable-location-views -gno-variable-location-views
@@ -11328,6 +11329,12 @@ at file-scope or global-scope only.
Produce debugging information in Alpha/VMS debug format (if that is
supported). This is the format used by DEBUG on Alpha/VMS systems.
+@item -gcodeview
+@opindex gcodeview
+Produce debugging information in CodeView debug format (if that is
+supported). This is the format used by Microsoft Visual C++ on
+Windows.
+
@item -g@var{level}
@itemx -ggdb@var{level}
@itemx -gvms@var{level}
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index 16bb07f..39a44fa 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -4572,6 +4572,10 @@ driver_handle_option (struct gcc_options *opts,
do_save = false;
break;
+ case OPT_gcodeview:
+ add_infile ("--pdb=", "*");
+ break;
+
default:
/* Various driver options need no special processing at this
point, having been handled in a prescan above or being
diff --git a/gcc/opts.cc b/gcc/opts.cc
index fb2e538..86b94d6 100644
--- a/gcc/opts.cc
+++ b/gcc/opts.cc
@@ -3134,6 +3134,9 @@ common_handle_option (struct gcc_options *opts,
loc);
break;
+ case OPT_gcodeview:
+ break;
+
case OPT_gbtf:
set_debug_level (BTF_DEBUG, false, arg, opts, opts_set, loc);
/* set the debug level to level 2, but if already at level 3,