This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12738] Missing function with 'static' block-scope declaration; unit-at-a-time; and IMA.
- From: "geoffk at geoffk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2003 19:31:43 -0000
- Subject: [Bug c/12738] Missing function with 'static' block-scope declaration; unit-at-a-time; and IMA.
- References: <20031023004550.12738.geoffk@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12738
------- Additional Comments From geoffk at geoffk dot org 2003-10-30 19:31 -------
Subject: Re: Missing function with 'static' block-scope declaration; unit-at-a-time; and IMA.
> Date: 30 Oct 2003 01:20:05 -0000
> From: "rth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
> Can we agree that this is a Very Bad Extension and kill it?
Well, it turns out that it happens fairly often, mostly because GCC
didn't give any warnings by default, and as we all know "if the
compiler doesn't warn about it, it must be correct". I've found
24 instances in Apple's source base.
However, I would suggest that we should deprecate this GCC extension.
At the very least, the warning should be on by default.