public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/16622] [C99] extern inline is handled wrong in C99 mode
Date: Wed, 01 Nov 2006 04:47:00 -0000	[thread overview]
Message-ID: <20061101044742.6406.qmail@sourceware.org> (raw)
In-Reply-To: <bug-16622-6528@http.gcc.gnu.org/bugzilla/>



------- Comment #13 from geoffk at gcc dot gnu dot org  2006-11-01 04:47 -------
Subject: Bug 16622

Author: geoffk
Date: Wed Nov  1 04:47:30 2006
New Revision: 118356

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118356
Log:
        * 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.

Added:
    trunk/gcc/testsuite/gcc.dg/inline-13.c
    trunk/gcc/testsuite/gcc.dg/inline-14.c
    trunk/gcc/testsuite/gcc.dg/inline-15.c
    trunk/gcc/testsuite/gcc.dg/inline-16.c
    trunk/gcc/testsuite/gcc.dg/inline6.c
    trunk/gcc/testsuite/gcc.dg/inline7.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/c-tree.h
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/inline-10.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16622


  parent reply	other threads:[~2006-11-01  4:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-16622-6528@http.gcc.gnu.org/bugzilla/>
2006-03-24 13:26 ` pinskia at gcc dot gnu dot org
2006-05-04 21:57 ` geoffk at gcc dot gnu dot org
2006-05-09  8:20 ` geoffk at gcc dot gnu dot org
2006-10-16 21:54 ` geoffk at gcc dot gnu dot org
2006-11-01  4:47 ` geoffk at gcc dot gnu dot org [this message]
2006-11-01  4:48 ` geoffk at gcc dot gnu dot org
2006-11-01  5:07 ` pinskia at gcc dot gnu dot org
2006-11-01  5:08 ` pinskia at gcc dot gnu dot org
2006-11-01  5:38 ` geoffk at gcc dot gnu dot org
2006-11-30 19:27 ` chaoyingfu at gcc dot gnu dot org
2008-01-11  6:05 ` pinskia at gcc dot gnu dot org
2004-07-18 22:47 [Bug c/16622] New: " pinskia at gcc dot gnu dot org
2004-07-18 22:55 ` [Bug c/16622] " jsm at polyomino dot org dot uk
2004-07-18 22:59 ` pinskia at gcc dot gnu dot org
2004-07-18 23:00 ` pinskia at gcc dot gnu dot org
2004-08-07  0:05 ` hozelda at yahoo dot com
2004-08-07  8:18 ` jsm at polyomino dot org dot uk
2004-08-08 21:51 ` hozelda at yahoo dot com
2004-08-08 22:38 ` jsm at polyomino dot org dot uk
2004-08-08 23:42 ` jsm at polyomino dot org dot uk
2004-08-11 21:05 ` jsm28 at gcc dot gnu dot org
2004-09-11 22:53 ` jsm28 at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061101044742.6406.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).