aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/inline-15.c
AgeCommit message (Collapse)AuthorFilesLines
2007-05-17pr18096-1.c: Change dg-warning to dg-error.Janis Johnson1-2/+2
* gcc.target/powerpc/pr18096-1.c: Change dg-warning to dg-error. * gcc.dg/cpp/include2.c: Ditto. * gcc.dg/cpp/mac-dir-2.c: Ditto. * gcc.dg/cpp/paste5.c: Ditto. * gcc.dg/cpp/paste6.c: Ditto. * gcc.dg/cpp/paste8.c: Ditto. * gcc.dg/cpp/paste11.c: Ditto. * gcc.dg/cpp/paste13.c: Ditto. * gcc.dg/cpp/skipping2.c: Ditto. * gcc.dg/reg-vol-struct-1.c: Ditto. * gcc.dg/Wshadow-1.c: Ditto. * gcc.dg/cpp/trad/comment.c: Ditto. * gcc.dg/cpp/trad/literals-2.c: Change dg-error to dg-warning. * gcc.dg/cpp/if-2.c: Ditto. * gcc.dg/array-5.c: Ditto. * gcc.dg/inline-15.c: Ditto. * gcc.dg/pr27953.c: Ditto. * gcc.dg/Wno-c++-compat.c: Ditto. Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org> From-SVN: r124811
2006-11-01re PR c/16622 ([C99] extern inline is handled wrong in C99 mode)Geoffrey Keating1-0/+7
* c-decl.c (grokdeclarator): Don't set DECL_EXTERNAL on inline static functions in c99 mode. PR 16622 * doc/extend.texi (Inline): Update. * c-tree.h (struct language_function): Remove field 'extern_inline'. * c-decl.c (current_extern_inline): Delete. (pop_scope): Adjust test for an undefined nested function. Add warning about undeclared inline function. (diagnose_mismatched_decls): Update comments. Disallow overriding of inline functions in a translation unit in C99. Allow inline declarations in C99 at any time. (merge_decls): Boolize variables. Handle C99 'extern inline' semantics. (grokdeclarator): Set DECL_EXTERNAL here for functions. Handle C99 inline semantics. (start_function): Don't clear current_extern_inline. Don't set DECL_EXTERNAL. (c_push_function_context): Don't push current_extern_inline. (c_pop_function_context): Don't restore current_extern_inline. PR 11377 * c-typeck.c (build_external_ref): Warn about static variables used in extern inline functions. * c-decl.c (start_decl): Warn about static variables declared in extern inline functions. From-SVN: r118356