irix bootstrap dies in builtins.c

Kaveh R. Ghazi
Fri Mar 30 06:02:00 GMT 2001

 > From: Richard Henderson <rth at redhat dot com> 
 > On Fri, Mar 30, 2001 at 04:48:49AM -0000, Billinghurst, David (CRTS)
 > wrote:
 > > mips-sgi-irix6.5 bootstrap of CVS with cc dies with 
 > > 
 > > "/exd4/billingd/src/gcc-mainline/gcc/builtins.c", line 3597:
 > error(1119): 
 > >           return value type does not match the function type
 > >         return expand_builtin_dwarf_fp_regnum ();
 > > 
 > > and we see that expand_builtin_dwarf_fp_regnum is not declared in
 > builtins.c
 > Huh?  Error?  That function has _never_ been declared anywhere.
 > r~

The problem is that expand_builtin_dwarf_fp_regnum used to be
prototyped in except.h, now its not.  Thus it gets a default int
return type and irix6 cc sees that you're returning an int inside a
function (expand_builtin) that's supposed to return an rtx.


This problem was definitely exposed by additional implicit function
decl warnings, so its another case of a bootstrap failure predicted by
warning regressions.  IMHO, we could really use a warning regression


Kaveh R. Ghazi			Engagement Manager / Project Services		Qwest Internet Solutions

More information about the Gcc-bugs mailing list