diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-12 03:08:11 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-12 03:08:11 +0000 |
commit | 3d3b9d5bd14eb3a34adb65e959e59cbfa0f36dfa (patch) | |
tree | fd7d91723687fd70cb56d41663782239fd5c88bc /gcc/opth-gen.awk | |
parent | eb535534cc04660a92968ec76eed013a1f217b2e (diff) | |
download | gcc-3d3b9d5bd14eb3a34adb65e959e59cbfa0f36dfa.tar.gz |
* common.opt (gdwarf-): Accept a version number.
* doc/invoke.texi (gdwarf-): Update docs.
* opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
* opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
version level, and record it.
* dwarf2.h (DW_CIE_VERSION): Remove.
* dwarf2out.c (DWARF_VERSION): Remove.
(add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
(output_call_frame_info): Use CIE version 3 for dwarf3,
or if the return register column is out of range for version 1.
(dwarf_stack_op_name): Add all dwarf3 values.
(DEBUG_PUBTYPES_SECTION): New.
(size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
encoding change for dwarf3.
(output_die) [dw_val_class_die_ref]: Likewise.
(output_compilation_unit_header): Emit correct version for dwarf3.
(output_line_info): Likewise.
(output_pubnames): Update for DWARF_VERSION removal.
(output_aranges): Likewise.
(gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
(dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
(dwarf2out_finish): Likewise.
ada/
* gcc-interface/misc.c (gnat_handle_option): Rename
OPT_gdwarf_ to OPT_gdwarfplus.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148408 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opth-gen.awk')
-rw-r--r-- | gcc/opth-gen.awk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/opth-gen.awk b/gcc/opth-gen.awk index ecccbdd9ac9..fb262bd93b7 100644 --- a/gcc/opth-gen.awk +++ b/gcc/opth-gen.awk @@ -333,6 +333,8 @@ for (i = 0; i < n_opts; i++) { enum = "OPT_" opts[i] if (opts[i] == "finline-limit=" || opts[i] == "Wlarger-than=") enum = enum "eq" + if (opts[i] == "gdwarf+") + enum = "OPT_gdwarfplus" gsub ("[^A-Za-z0-9]", "_", enum) # If this switch takes joined arguments, back-chain all @@ -348,7 +350,7 @@ for (i = 0; i < n_opts; i++) { } } - s = substr(" ", length (opts[i])) + s = substr(" ", length (enum)) if (i + 1 == n_opts) comma = "" |