This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: Bootstrap comparison failure - cygwin and irix
- To: "'kenner at vlsi1 dot ultra dot nyu dot edu'" <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: RE: Bootstrap comparison failure - cygwin and irix
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Mon, 24 Sep 2001 06:44:13 -0000
- Cc: gcc-patches at gcc dot gnu dot org
I haven't been able to reproduce this problem with -save-temps, or when I
compile the file by hand using stage2 and stage3 compilers. It is
reproducible during a bootstrap.
Following your suggestion to Andreas, I tried the following patch. I am not
sure if it is what you had in mind, but it seems to work for a C only
bootstrap on irix. Full bootstrap and testsuite in progress.
Index: tree.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.c,v
retrieving revision 1.211
diff -u -r1.211 tree.c
--- tree.c 2001/09/21 01:26:52 1.211
+++ tree.c 2001/09/24 06:13:48
@@ -3145,6 +3145,10 @@
type_hash_marked_p (p)
const void *p;
{
+ if ( ((struct type_hash *) p)->type != 0)
+ {
+ return 1;
+ }
return ggc_marked_p (((struct type_hash *) p)->type);
}
@@ -3154,6 +3158,7 @@
type_hash_mark (p)
const void *p;
{
+ ggc_mark_tree (((struct type_hash *) p)->type);
ggc_mark (p);
}
> -----Original Message-----
> From: kenner@vlsi1.ultra.nyu.edu [SMTP:kenner@vlsi1.ultra.nyu.edu]
> Sent: Sunday, 23 September 2001 21:19
> To: Billinghurst, David (CRTS)
> Cc: gcc-patches@gcc.gnu.org
> Subject: RE: Bootstrap comparison failure - cygwin and irix
>
> > Bootstrap comparison failure!
> > dwarf2out.o differs
> > insn-emit.o differs
> > objc-act.o differs
> > profile.o differs
> > regclass.o differs
> > f/lex.o differs
> > java/parse.o differs
>
> Very strange. Sounds like something is uninitialized. Can you show me a
> diff of the two .i files for any of these.