This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFA] Debug format define tweak in mips/elf.h
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Aug 2002 09:03:28 -0700
- Subject: Re: [PATCH/RFA] Debug format define tweak in mips/elf.h
- Organization: Wasabi Systems, Inc.
- References: <20020827224608.G16306@dr-evil.shagadelic.org>
On Tue, Aug 27, 2002 at 10:46:08PM -0700, Jason R Thorpe wrote:
> The following fixes a "redefined" warning when building for the
> mips-netbsd target (the original defn coming from elfos.h).
>
> OK to commit?
>
> * config/mips/elf.h (DBX_DEBUGGING_INFO)
> (DWARF2_DEBUGGING_INFO): Undef before defining, and define
> as the value "1".
Ok, after discussing this with Eric, he managed to convince me to do it
another way. A different (slightly more invasive) patch will be sent
separately, and this patch is hereby retracted.
>
> --
> -- Jason R. Thorpe <thorpej@wasabisystems.com>
> Index: config/mips/elf.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/config/mips/elf.h,v
> retrieving revision 1.44
> diff -c -r1.44 elf.h
> *** config/mips/elf.h 21 Aug 2002 02:41:49 -0000 1.44
> --- config/mips/elf.h 28 Aug 2002 05:42:02 -0000
> ***************
> *** 27,34 ****
> /* ??? Move all SDB stuff into separate header file. */
> #undef SDB_DEBUGGING_INFO
>
> ! #define DBX_DEBUGGING_INFO
> ! #define DWARF2_DEBUGGING_INFO
>
> #undef PREFERRED_DEBUGGING_TYPE
> #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
> --- 27,37 ----
> /* ??? Move all SDB stuff into separate header file. */
> #undef SDB_DEBUGGING_INFO
>
> ! #undef DBX_DEBUGGING_INFO
> ! #define DBX_DEBUGGING_INFO 1
> !
> ! #undef DWARF2_DEBUGGING_INFO
> ! #define DWARF2_DEBUGGING_INFO 1
>
> #undef PREFERRED_DEBUGGING_TYPE
> #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>