From 6ba95bc92ae2b73b7ab89dc9b50e117f5e044940 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 22 Sep 1996 11:19:49 -0400 Subject: [PATCH] (DWARF_VERSION): Define as 1 if not already defined. From-SVN: r12770 --- gcc/dwarf2out.c | 6 ++++-- gcc/dwarfout.c | 12 +++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1bda04ec0b0..27cd20649ba 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -21,8 +21,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "config.h" -#if defined(DWARF_DEBUGGING_INFO) && defined(DWARF_VERSION) \ - && DWARF_VERSION == 2 +#ifndef DWARF_VERSION +#define DWARF_VERSION 1 +#endif +#if defined (DWARF_DEBUGGING_INFO) && (DWARF_VERSION == 2) #include #include "dwarf2.h" #include "tree.h" diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index a677698f1ac..300badea2c8 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -21,8 +21,10 @@ Boston, MA 02111-1307, USA. */ #include "config.h" -#if defined (DWARF_DEBUGGING_INFO) && (! defined (DWARF_VERSION) \ - || DWARF_VERSION != 2) +#ifndef DWARF_VERSION +#define DWARF_VERSION 1 +#endif +#if defined (DWARF_DEBUGGING_INFO) && (DWARF_VERSION != 2) #include #include "dwarf.h" #include "tree.h" @@ -34,10 +36,6 @@ Boston, MA 02111-1307, USA. */ #include "output.h" #include "defaults.h" -#ifndef DWARF_VERSION -#define DWARF_VERSION 1 -#endif - /* #define NDEBUG 1 */ #include "assert.h" @@ -5732,4 +5730,4 @@ dwarfout_finish () } } -#endif /* DWARF_DEBUGGING_INFO */ +#endif /* DWARF_DEBUGGING_INFO && DWARF_VERSION != 2 */ -- 2.30.2