This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to dwarfout.c to bring gcc to bootstrapland
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: PATCH to dwarfout.c to bring gcc to bootstrapland
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 05 Jan 2000 08:57:11 +0100
- Cc: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>, "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, law at upchuck dot cygnus dot com
- Organization: CMLA, ENS Cachan -- CNRS URA 1611 (France)
- References: <flr9g5f1oa.fsf@poivre.cmla.ens-cachan.fr> <19991230094336.F11923@cygnus.com>
Richard Henderson <rth@cygnus.com> writes:
| On Thu, Dec 30, 1999 at 06:16:53AM +0100, Gabriel Dos Reis wrote:
| > The following patch brings gcc to bootstrapland.
| >
| > OK?
|
| No, frame.h should not be included here. The solution is
| to repeat the default definition in defaults.h.
Is the following OK? Especially, is the definition of
DWARF_FRAME_REGISTERS in defaults.h correct?
-- Gaby
2000-01-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
FIRST_PSEUDO_REGISTER
* dwarf2out.c: Don't include frame.h
* dwarfout.c: Likewise
* Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
frame.h
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Makefile.in,v
retrieving revision 1.357
diff -p -r1.357 Makefile.in
*** Makefile.in 1999/12/30 05:58:56 1.357
--- Makefile.in 2000/01/05 07:53:06
*************** sdbout.o : sdbout.c $(CONFIG_H) system.h
*** 1519,1530 ****
insn-config.h $(srcdir)/../include/obstack.h xcoffout.h c-pragma.h \
sdbout.h toplev.h
dwarfout.o : dwarfout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf.h \
! flags.h insn-config.h reload.h output.h defaults.h toplev.h dwarfout.h \
! frame.h
dwarf2out.o : dwarf2out.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf2.h \
flags.h insn-config.h reload.h output.h defaults.h \
hard-reg-set.h $(REGS_H) $(EXPR_H) toplev.h dwarf2out.h dyn-string.h \
! ggc.h except.h frame.h
xcoffout.o : xcoffout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) xcoffout.h \
flags.h toplev.h output.h dbxout.h ggc.h
emit-rtl.o : emit-rtl.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
--- 1519,1529 ----
insn-config.h $(srcdir)/../include/obstack.h xcoffout.h c-pragma.h \
sdbout.h toplev.h
dwarfout.o : dwarfout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf.h \
! flags.h insn-config.h reload.h output.h defaults.h toplev.h dwarfout.h
dwarf2out.o : dwarf2out.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf2.h \
flags.h insn-config.h reload.h output.h defaults.h \
hard-reg-set.h $(REGS_H) $(EXPR_H) toplev.h dwarf2out.h dyn-string.h \
! ggc.h except.h
xcoffout.o : xcoffout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) xcoffout.h \
flags.h toplev.h output.h dbxout.h ggc.h
emit-rtl.o : emit-rtl.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
Index: defaults.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/defaults.h,v
retrieving revision 1.16
diff -p -r1.16 defaults.h
*** defaults.h 1999/11/13 06:53:03 1.16
--- defaults.h 2000/01/05 07:53:06
*************** do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNA
*** 188,190 ****
--- 188,197 ----
#ifndef PROMOTE_PROTOTYPES
#define PROMOTE_PROTOTYPES 0
#endif
+
+ /* Number of hardware registers that go into the DWARF-2 unwind info.
+ If not defined, equals FIRST_PSEUDO_REGISTER */
+
+ #ifndef DWARF_FRAME_REGISTERS
+ #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
+ #endif
Index: dwarfout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarfout.c,v
retrieving revision 1.48
diff -p -r1.48 dwarfout.c
*** dwarfout.c 1999/12/30 05:58:56 1.48
--- dwarfout.c 2000/01/05 07:53:06
*************** Boston, MA 02111-1307, USA. */
*** 35,41 ****
#include "dwarfout.h"
#include "toplev.h"
#include "tm_p.h"
- #include "frame.h"
#if defined(DWARF_TIMESTAMPS)
#if !defined(POSIX)
--- 35,40 ----
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.c,v
retrieving revision 1.137
diff -p -r1.137 dwarf2out.c
*** dwarf2out.c 1999/12/30 05:58:56 1.137
--- dwarf2out.c 2000/01/05 07:53:07
*************** Boston, MA 02111-1307, USA. */
*** 55,61 ****
#include "toplev.h"
#include "dyn-string.h"
#include "ggc.h"
- #include "frame.h"
/* We cannot use <assert.h> in GCC source, since that would include
GCC's assert.h, which may not be compatible with the host compiler. */
--- 55,60 ----