This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Don't allow weak variables in COMMON


On Fri, May 24, 2002 at 01:11:08AM -0700, Mark Mitchell wrote:
> The user just knows that in C "int i;" and "int i = 0;" have
> the same semantics for a global variable ...

If the user thinks that, the user is wrong.  The user should
re-read the sections concerning (optional) tentative definitions.

Which annoyingly isn't actually optional in practice.  There is
so much code that is written with missing externs it isn't even
funny.  I had considered proposing that we make -fno-common the
default for 3.1, but ran into too many packages that would no
longer build.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]