libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool & GCC 3.0


From: Gary V . Vaughan
Subject: Re: libtool & GCC 3.0
Date: Sun, 29 Jul 2001 15:03:45 +0100

On Saturday 28 July 2001 12:17 am, Gary V. Vaughan wrote:
> On Friday 27 July 2001 6:00 pm, Robert Boehne wrote:
> > Steve:
> >
> > The patch looks fine to me, does anyone else object to it?
> > I would really like to know why anyone would declare main() as
> > returning char, but there must have been some reason for it, right?
> > Anybody know of such a reason? I'd like to hear it.
>
> I seem to recall that there was some obscure gotcha to do with type
> promotion in C, but I can't find any information in the ChangeLogs or
> comments.
>
> > Steve Ellcey wrote:
> > > 2001-07-25  Steve Ellcey  <address@hidden>
> > >
> > >         * libtool.m4 (lt_cv_sys_global_symbol_to_cdecl):  Change it
> > > from "extern char" to "extern int" so that GCC 3.0 won't complain and
> > > refuse to compile programs containing "extern char main()".
>
> I guess we should apply this now, and if we get reports from users of some
> system that requires chars we can rethink that whole section of code.

Applied to HEAD... awaiting your bug reports =)O|

Cheers,
        Gary.
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]