This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 19991102 chk-ICE compiling gcc/cexp.c onalpha-dec-osf4.0e



Does this fix it?

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Makefile.in,v
retrieving revision 1.333
diff -c -p -r1.333 Makefile.in
*** Makefile.in	1999/11/02 15:48:26	1.333
--- Makefile.in	1999/11/05 08:51:01
*************** optabs.o : optabs.c $(CONFIG_H) system.h
*** 1506,1512 ****
     toplev.h ggc.h
  dbxout.o : dbxout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h $(REGS_H) \
     insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h dbxout.h \
!    toplev.h
  sdbout.o : sdbout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h except.h \
     function.h $(EXPR_H) output.h hard-reg-set.h $(REGS_H) defaults.h real.h \
     insn-config.h $(srcdir)/../include/obstack.h xcoffout.h c-pragma.h \
--- 1506,1512 ----
     toplev.h ggc.h
  dbxout.o : dbxout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h $(REGS_H) \
     insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h dbxout.h \
!    toplev.h gcc.h
  sdbout.o : sdbout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h except.h \
     function.h $(EXPR_H) output.h hard-reg-set.h $(REGS_H) defaults.h real.h \
     insn-config.h $(srcdir)/../include/obstack.h xcoffout.h c-pragma.h \
*************** dwarfout.o : dwarfout.c $(CONFIG_H) syst
*** 1515,1523 ****
     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
  xcoffout.o : xcoffout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) xcoffout.h \
!    flags.h toplev.h output.h dbxout.h
  emit-rtl.o : emit-rtl.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
     function.h $(REGS_H) insn-config.h $(RECOG_H) real.h ggc.h \
     $(EXPR_H) $(srcdir)/../include/obstack.h hard-reg-set.h bitmap.h toplev.h
--- 1515,1524 ----
     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
  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 \
     function.h $(REGS_H) insn-config.h $(RECOG_H) real.h ggc.h \
     $(EXPR_H) $(srcdir)/../include/obstack.h hard-reg-set.h bitmap.h toplev.h
Index: dbxout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dbxout.c,v
retrieving revision 1.40
diff -c -p -r1.40 dbxout.c
*** dbxout.c	1999/11/01 01:11:19	1.40
--- dbxout.c	1999/11/05 08:51:03
*************** Boston, MA 02111-1307, USA.  */
*** 81,86 ****
--- 81,87 ----
  #include "dbxout.h"
  #include "toplev.h"
  #include "tm_p.h"
+ #include "ggc.h"
  
  #ifdef XCOFF_DEBUGGING_INFO
  #include "xcoffout.h"
*************** dbxout_init (asm_file, input_file_name, 
*** 463,468 ****
--- 464,471 ----
       and output them all, except for those already output.  */
  
    dbxout_typedefs (syms);
+ 
+   ggc_add_string_root ((char **) &lastfile, 1);
  }
  
  /* Output any typedef names for types described by TYPE_DECLs in SYMS,
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.c,v
retrieving revision 1.121
diff -c -p -r1.121 dwarf2out.c
*** dwarf2out.c	1999/11/03 10:28:30	1.121
--- dwarf2out.c	1999/11/05 08:51:08
*************** Boston, MA 02111-1307, USA.  */
*** 44,49 ****
--- 44,50 ----
  #include "dwarf2out.h"
  #include "toplev.h"
  #include "dyn-string.h"
+ #include "ggc.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.  */
*************** dwarf2out_line (filename, line)
*** 9698,9703 ****
--- 9699,9707 ----
  	  /* Emit the .file and .loc directives understood by GNU as.  */
  	  if (lastfile == 0 || strcmp (filename, lastfile))
  	    {
+ 	      if (lastfile == 0)
+ 		ggc_add_string_root ((char **) &lastfile, 1);
+ 
  	      fprintf (asm_out_file, "\t.file 0 \"%s\"\n", filename);
  	      lastfile = filename;
  	    }
Index: xcoffout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/xcoffout.c,v
retrieving revision 1.10
diff -c -p -r1.10 xcoffout.c
*** xcoffout.c	1999/09/28 18:13:58	1.10
--- xcoffout.c	1999/11/05 08:51:19
*************** Boston, MA 02111-1307, USA.  */
*** 31,36 ****
--- 31,37 ----
  #include "flags.h"
  #include "toplev.h"
  #include "output.h"
+ #include "ggc.h"
  
  #ifdef XCOFF_DEBUGGING_INFO
  
*************** xcoffout_source_file (file, filename, in
*** 350,355 ****
--- 351,359 ----
  	  fprintf (file, "\n");
  	  xcoff_current_include_file = filename;
  	}
+       
+       if (!xcoff_lastfile)
+ 	ggc_add_root (&xcoff_lastfile, 1);
  
        xcoff_lastfile = filename;
      }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]