PATCH: Don't allow weak variables in COMMON

Richard Henderson rth@redhat.com
Fri May 24 18:19:00 GMT 2002


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~



More information about the Gcc-patches mailing list