OSDN Git Service

* c.opt (fgnu89-inline): New option.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Mar 2007 19:45:20 +0000 (19:45 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Mar 2007 19:45:20 +0000 (19:45 +0000)
commit11950bdd02589436a354a849471f3e6f36ae15bc
tree2db6332a4e992877897bda68ab73c9bb0e30c4c2
parentd8fde28e0e82c0e8c52a8025968ed99befd3330d
* c.opt (fgnu89-inline): New option.
* c-opts.c (c_common_post_options): Set default value for
flag_gnu89_inline.
* c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
(pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
inline functions.
(diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
(grokdeclarator, start_function): Likewise.
* c-cppbuiltin.c (c_cpp_builtins): Define either
__GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
* doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
(C Dialect Options): Document -fgnu89-inline.
* doc/extend.texi (Function Attributes): Explain what the
gnu_inline attribute does.
* doc/cpp.texi (Common Predefined Macros): Document
__GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122565 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/ChangeLog
gcc/c-cppbuiltin.c
gcc/c-decl.c
gcc/c-opts.c
gcc/c.opt
gcc/doc/cpp.texi
gcc/doc/extend.texi
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/inline-18.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/inline-19.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/inline-20.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/inline-21.c [new file with mode: 0644]