From 7a9cf7e9c3c4c5b1b27fbf29206bcd3ade31e86f Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Tue, 24 Apr 2012 20:34:30 +0000 Subject: common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2. * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2. * toplev.c (process_options): Default to dwarf_version 2. * config/vxworks.c (vxworks_override_options): Default to strict-dwarf and dwarf_version 2. From-SVN: r186783 --- gcc/toplev.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 3d9e162..fcfdba2 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1380,6 +1380,10 @@ process_options (void) if (dwarf_strict < 0) dwarf_strict = 0; + /* And select a default dwarf level. */ + if (dwarf_version < 0) + dwarf_version = 2; + /* A lot of code assumes write_symbols == NO_DEBUG if the debugging level is 0. */ if (debug_info_level == DINFO_LEVEL_NONE) -- cgit v1.1