This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: irix bootstrap dies in builtins.c
- To: rth at redhat dot com
- Subject: Re: irix bootstrap dies in builtins.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 30 Mar 2001 09:01:38 -0500 (EST)
- Cc: David dot Billinghurst at riotinto dot com, gcc-bugs at gcc dot gnu dot org, geoffk at redhat dot com
> 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.
<soapbox>
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
checker.
</soapbox>
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions