Commit deae8de6 by Eric Christopher

mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.

2004-01-06  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
	(DWARF2_DEBUGGING_INFO): Define.
	(PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
	* config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
	* config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
	for irix as.
	(SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
	* config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
	* config/mips/iris5gas.h: Ditto.
	(DBX_DEBUGGING_INFO): Remove.
	(DWARF2_DEBUGGING_INFO): Ditto.
	(MIPS_DEBUGGING_INFO): Ditto.
	(PREFERRED_DEBUGGING_TYPE): Ditto.
	* config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
	(PREFERRED_DEBUGGING_TYPE): Ditto.
	(SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
	* config/mips/elf64.h: Ditto.

From-SVN: r75496
parent 470ea489
2004-01-06 Eric Christopher <echristo@redhat.com>
* config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
(DWARF2_DEBUGGING_INFO): Define.
(PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
* config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
* config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
for irix as.
(SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
* config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
* config/mips/iris5gas.h: Ditto.
(DBX_DEBUGGING_INFO): Remove.
(DWARF2_DEBUGGING_INFO): Ditto.
(MIPS_DEBUGGING_INFO): Ditto.
(PREFERRED_DEBUGGING_TYPE): Ditto.
* config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
(PREFERRED_DEBUGGING_TYPE): Ditto.
(SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
* config/mips/elf64.h: Ditto.
2004-01-06 Jan Hubicka <jh@suse.cz> 2004-01-06 Jan Hubicka <jh@suse.cz>
* Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate. * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
...@@ -8,7 +28,7 @@ ...@@ -8,7 +28,7 @@
* config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c. * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
(TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128. (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
* config/rs6000/darwin-ldouble.c: New. * config/rs6000/darwin-ldouble.c: New.
* emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
for constants. for constants.
(constant_subword): Delete. (constant_subword): Delete.
...@@ -110,7 +130,7 @@ ...@@ -110,7 +130,7 @@
ASM_OUTPUT_MAIN_SOURCE_FILENAME. ASM_OUTPUT_MAIN_SOURCE_FILENAME.
2004-01-05 Daniel Berlin <dberlin@dberlin.org> 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
* ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
(USING_MMAP): We don't support non-mmap. (USING_MMAP): We don't support non-mmap.
(struct alloc_chunk): Steal 1 bit from typecode, use it to mark (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
...@@ -125,7 +145,7 @@ ...@@ -125,7 +145,7 @@
(alloc_small_page): Don't care about bytes_free anymore. (alloc_small_page): Don't care about bytes_free anymore.
(alloc_large_page): Round up size. (alloc_large_page): Round up size.
(ggc_alloc_zone_1): Mark large objects as such, and calculate (ggc_alloc_zone_1): Mark large objects as such, and calculate
their size the new way. their size the new way.
Remove page table lookups and setting. Remove page table lookups and setting.
(ggc_get_size): Calculate large object size the new way. (ggc_get_size): Calculate large object size the new way.
(sweep_pages): Redo to account for fact that we no longer have (sweep_pages): Redo to account for fact that we no longer have
...@@ -195,7 +215,7 @@ ...@@ -195,7 +215,7 @@
2004-01-05 Bernardo Innocenti <bernie@develer.com> 2004-01-05 Bernardo Innocenti <bernie@develer.com>
* config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
warning. warning.
2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org> 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
......
...@@ -20,14 +20,6 @@ along with GCC; see the file COPYING. If not, write to ...@@ -20,14 +20,6 @@ along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#define DWARF2_DEBUGGING_INFO 1
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
#undef SUBTARGET_ASM_DEBUGGING_SPEC
#define SUBTARGET_ASM_DEBUGGING_SPEC "-g0"
/* Biggest alignment supported by the object file format of this /* Biggest alignment supported by the object file format of this
machine. Use this macro to limit the alignment which can be machine. Use this macro to limit the alignment which can be
specified using the `__attribute__ ((aligned (N)))' construct. If specified using the `__attribute__ ((aligned (N)))' construct. If
......
...@@ -20,14 +20,6 @@ along with GCC; see the file COPYING. If not, write to ...@@ -20,14 +20,6 @@ along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#define DWARF2_DEBUGGING_INFO 1
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
#undef SUBTARGET_ASM_DEBUGGING_SPEC
#define SUBTARGET_ASM_DEBUGGING_SPEC "-g0"
/* Biggest alignment supported by the object file format of this /* Biggest alignment supported by the object file format of this
machine. Use this macro to limit the alignment which can be machine. Use this macro to limit the alignment which can be
specified using the `__attribute__ ((aligned (N)))' construct. If specified using the `__attribute__ ((aligned (N)))' construct. If
......
/* Definitions of target machine for GNU compiler. Irix version 5 with gas. */ /* Definitions of target machine for GNU compiler. Irix version 5 with gas.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
Free Software Foundation, Inc.
/* Enable debugging. */ This file is part of GCC.
#define DBX_DEBUGGING_INFO 1
#define DWARF2_DEBUGGING_INFO 1 GCC is free software; you can redistribute it and/or modify
#define MIPS_DEBUGGING_INFO 1 it under the terms of the GNU General Public License as published by
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG the Free Software Foundation; either version 2, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* GNU as does handle DWARF2 directives. */ /* GNU as does handle DWARF2 directives. */
#undef DWARF2_UNWIND_INFO #undef DWARF2_UNWIND_INFO
#define DWARF2_UNWIND_INFO 1 #define DWARF2_UNWIND_INFO 1
/* Override mips.h version to match DWARF 2 default. */
#undef MDEBUG_ASM_SPEC
#define MDEBUG_ASM_SPEC "%{gstabs*|gcoff*:-mdebug} \
%{!gstabs*:%{!gcoff*:-no-mdebug}}"
/* Override iris5.h version to invoke [cd]tors and register eh frame /* Override iris5.h version to invoke [cd]tors and register eh frame
information. */ information. */
#undef LINK_SPEC #undef LINK_SPEC
......
...@@ -267,19 +267,20 @@ Boston, MA 02111-1307, USA. */ ...@@ -267,19 +267,20 @@ Boston, MA 02111-1307, USA. */
/* Must pass -show instead of -v. */ /* Must pass -show instead of -v. */
/* Must pass -G 0 to the assembler, otherwise we may get warnings about /* Must pass -G 0 to the assembler, otherwise we may get warnings about
GOT overflow. */ GOT overflow. */
/* ??? We pass -w to disable all assembler warnings. The `label should be /* Must pass -w to the assembler to quiet warnings about .ent/.end for dwarf2. */
inside .ent/.end block' warning that we get for DWARF II debug info labels #if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GAS) == 0
is particularly annoying. */ /* We have a separate file for gas. */
#undef SUBTARGET_MIPS_AS_ASM_SPEC #undef SUBTARGET_MIPS_AS_ASM_SPEC
#define SUBTARGET_MIPS_AS_ASM_SPEC "%{v:-show} -G 0 -w" #define SUBTARGET_MIPS_AS_ASM_SPEC "%{v:-show} -G 0 -w"
#undef SUBTARGET_ASM_DEBUGGING_SPEC #undef SUBTARGET_ASM_DEBUGGING_SPEC
#define SUBTARGET_ASM_DEBUGGING_SPEC "-g0 %(mdebug_asm_spec)" #define SUBTARGET_ASM_DEBUGGING_SPEC "-g0"
/* The MIPS assembler occasionally misoptimizes. Since GCC should be /* The MIPS assembler occasionally misoptimizes. Since GCC should be
doing scheduling anyhow, just turn off optimization in the assembler. */ doing scheduling anyhow, just turn off optimization in the assembler. */
#undef SUBTARGET_ASM_OPTIMIZING_SPEC #undef SUBTARGET_ASM_OPTIMIZING_SPEC
#define SUBTARGET_ASM_OPTIMIZING_SPEC "-O0" #define SUBTARGET_ASM_OPTIMIZING_SPEC "-O0"
#endif
/* The assembler now accepts .section pseudo-ops, but it does not allow /* The assembler now accepts .section pseudo-ops, but it does not allow
one to change the section in the middle of a function, so we can't use one to change the section in the middle of a function, so we can't use
......
/* Definitions of target machine for GNU compiler. IRIX 6 with GNU as. */ /* Definitions for MIPS running IRIX 6 using GNU AS
Copyright (C) 2003
Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
/* Override mips.h version to match DWARF 2 default. */ GCC is distributed in the hope that it will be useful,
#undef MDEBUG_ASM_SPEC but WITHOUT ANY WARRANTY; without even the implied warranty of
#define MDEBUG_ASM_SPEC "%{gstabs*|gcoff*:-mdebug} \ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%{!gstabs*:%{!gcoff*:-no-mdebug}}" GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* Definitions of target machine for GNU compiler. IRIX 6 with GNU as. */
/* Override iris6.h version to always use -init/-fini. /* Override iris6.h version to always use -init/-fini.
......
...@@ -124,9 +124,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -124,9 +124,6 @@ Boston, MA 02111-1307, USA. */
%{!fno-PIC:%{!fno-pic:-KPIC}} \ %{!fno-PIC:%{!fno-pic:-KPIC}} \
%{fno-PIC:-non_shared} %{fno-pic:-non_shared}" %{fno-PIC:-non_shared} %{fno-pic:-non_shared}"
#undef SUBTARGET_ASM_DEBUGGING_SPEC
#define SUBTARGET_ASM_DEBUGGING_SPEC "-g0"
/* The MIPS assembler has different syntax for .set. We set it to /* The MIPS assembler has different syntax for .set. We set it to
.dummy to trap any errors. */ .dummy to trap any errors. */
#undef SET_ASM_OP #undef SET_ASM_OP
......
...@@ -1066,10 +1066,11 @@ extern const struct mips_cpu_info *mips_tune_info; ...@@ -1066,10 +1066,11 @@ extern const struct mips_cpu_info *mips_tune_info;
#endif #endif
/* Beginning with gas 2.13, -mdebug must be passed to correctly handle COFF /* Beginning with gas 2.13, -mdebug must be passed to correctly handle COFF
and stabs debugging info. */ debugging info. */
#if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GAS) != 0 #if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GAS) != 0
/* GAS */ /* GAS */
#define MDEBUG_ASM_SPEC "%{!gdwarf*:-mdebug} %{gdwarf*:-no-mdebug}" #define MDEBUG_ASM_SPEC "%{gcoff*:-mdebug} \
%{!gcoff*:-no-mdebug}"
#else /* not GAS */ #else /* not GAS */
#define MDEBUG_ASM_SPEC "" #define MDEBUG_ASM_SPEC ""
#endif /* not GAS */ #endif /* not GAS */
...@@ -1184,6 +1185,11 @@ extern const struct mips_cpu_info *mips_tune_info; ...@@ -1184,6 +1185,11 @@ extern const struct mips_cpu_info *mips_tune_info;
#define DBX_DEBUGGING_INFO 1 /* generate stabs (OSF/rose) */ #define DBX_DEBUGGING_INFO 1 /* generate stabs (OSF/rose) */
#define MIPS_DEBUGGING_INFO 1 /* MIPS specific debugging info */ #define MIPS_DEBUGGING_INFO 1 /* MIPS specific debugging info */
#define DWARF2_DEBUGGING_INFO 1 /* dwarf2 debugging info */
#ifndef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
#endif
/* By default, turn on GDB extensions. */ /* By default, turn on GDB extensions. */
#define DEFAULT_GDB_EXTENSIONS 1 #define DEFAULT_GDB_EXTENSIONS 1
......
...@@ -31,7 +31,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -31,7 +31,6 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_CPP_SPEC OBSD_CPP_SPEC #define SUBTARGET_CPP_SPEC OBSD_CPP_SPEC
/* Needed for ELF (inspired by netbsd-elf). */ /* Needed for ELF (inspired by netbsd-elf). */
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
#undef LOCAL_LABEL_PREFIX #undef LOCAL_LABEL_PREFIX
#define LOCAL_LABEL_PREFIX "." #define LOCAL_LABEL_PREFIX "."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment