OSDN Git Service

gcc/ChangeLog:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Aug 2007 20:40:00 +0000 (20:40 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Aug 2007 20:40:00 +0000 (20:40 +0000)
commitdb5779008598ad8546bef62ffc8bd2e228f7bc46
treef558d774fa8c7f13553e534c150c8c4a1f1c8f25
parentcf39ec50a992c196a37ba5486ce6412096e867d0
gcc/ChangeLog:
* doc/extend.texi (gnu_inline funtion attribute): Document C++
behavior.
gcc/cp/ChangeLog:
* decl.c (GNU_INLINE_P): New.
(duplicate_decls): Handle gnu_inline.  Merge attributes and
some flags in overriding definitions.
(redeclaration_error_message): Handle gnu_inline.
(start_preparsed_function): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/ext/gnu-inline-common.h: New.
* g++.dg/ext/gnu-inline-global-reject.C: New.
* g++.dg/ext/gnu-inline-global.C: New.
* g++.dg/ext/gnu-inline-namespace.C: New.
* g++.dg/ext/gnu-inline-anon-namespace.C: New.
* g++.dg/ext/gnu-inline-class.C: New.
* g++.dg/ext/gnu-inline-class-static.C: New.
* g++.dg/ext/gnu-inline-template-class.C: New.
* g++.dg/ext/gnu-inline-template-func.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127839 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/gnu-inline-anon-namespace.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/gnu-inline-class-static.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/gnu-inline-class.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/gnu-inline-common.h [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/gnu-inline-global-reject.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/gnu-inline-global.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/gnu-inline-namespace.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/gnu-inline-template-class.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/gnu-inline-template-func.C [new file with mode: 0644]