r122853 - in /branches/gcc-4_2-branch/gcc: Chan...

ian@gcc.gnu.org ian@gcc.gnu.org
Mon Mar 12 18:50:00 GMT 2007


Author: ian
Date: Mon Mar 12 18:50:38 2007
New Revision: 122853

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122853
Log:
./:
	* 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.
	(Inline): Mention that C99 inline will be implemented in 4.3.
	Refer to ways to get the old handling.
	* doc/cpp.texi (Common Predefined Macros): Document
	__GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
testsuite/:
	* 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.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/inline-13.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/inline-17.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/inline-18.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/inline-19.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/inline-21.c
Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/c-common.c
    branches/gcc-4_2-branch/gcc/c-cppbuiltin.c
    branches/gcc-4_2-branch/gcc/c-decl.c
    branches/gcc-4_2-branch/gcc/c-opts.c
    branches/gcc-4_2-branch/gcc/c.opt
    branches/gcc-4_2-branch/gcc/doc/cpp.texi
    branches/gcc-4_2-branch/gcc/doc/extend.texi
    branches/gcc-4_2-branch/gcc/doc/invoke.texi
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/inline-7.c



More information about the Gcc-cvs mailing list