[PATCH] Inline defn's in stdio.h break gcc bootstrap on cygwin.

Eric Blake ebb9@byu.net
Tue Apr 10 03:25:00 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> 2007-03-30  Dave Korn  <dave.korn@artimi.com>
>
> 	* libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
> 	conflicting inline semantics between C99 and GNU89.
> 	(__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
> 	compatible with -fkeep-inline-functions usage.
> 	(__sputc_r):  Likewise for consistency even though disabled.
>
>   Retested that cygwin dll still builds, verified that it solves bootstrap
> failure for gcc, and checked in.  Thanks Jeff!

However, it breaks cygwin builds with CFLAGS=-O0.  This additional patch
is needed to force gcc to inline even when optimizations are disabled, now
that you use extern inline (whereas the old gcc 'static inline' used to
already do that).

2007-04-09  Eric Blake  <ebb9@byu.net>

	* libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
	CFLAGS=-O0.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGGvU/84KuGfSFAYARAm+iAJwJjdgGcs/Q4DmIQV3768/6iBgaEgCg1yax
LN3k3e6r7wJRsBiZ24665ds=
=4iVp
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib.patch9
URL: <http://sourceware.org/pipermail/newlib/attachments/20070410/df2161ad/attachment.ksh>


More information about the Newlib mailing list