PATCH RFA: c99 inline patch for gcc 4.2

Mark Mitchell mark@codesourcery.com
Mon Mar 12 15:28:00 GMT 2007


Ian Lance Taylor wrote:

> gcc/ChangeLog:
> 2007-03-11  Ian Lance Taylor  <iant@google.com>
> 
> 	* c.opt (fgnu89-inline): New option.
> 	* c-opts.c (c_common_post_options): Warn about -fno-gnu89-inline.
> 	* c-common.c (c_common_attributes): Add gnu_inline attribyte.
> 	(handle_gnu_inline_attribute): New static function.
> 	* c-decl.c (start_function): Warn if we see a non-static inline
> 	function in C99 mode.
> 	* c-cppbuiltin.c (c_cpp_builtins): Define __GNUC_GNU_INLINE__.
> 	* doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
> 	(C Dialect Options): Document -fgnu89-inline.
> 	* doc/extend.texi (Function Attributes): Document gnu_inline.
> 	* doc/cpp.texi (Common Predefined Macros): Document
> 	__GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
> 
> gcc/testsuite/ChangeLog:
> 2007-03-11  Ian Lance Taylor  <iant@google.com>
> 
> 	* gcc.dg/inline-7.c: Add -fgnu89-inline.
> 	* gcc.dg/inline-13.c: New test.
> 	* gcc.dg/inline-17.c: New test.
> 	* gcc.dg/inline-18.c: New test.
> 	* gcc.dg/inline-19.c: New test.
> 	* gcc.dg/inline-21.c: New test.

OK for 4.2, thanks.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list