[Bug middle-end/41475] common variables cannot be expected to be aligned

mikulas at artax dot karlin dot mff dot cuni dot cz gcc-bugzilla@gcc.gnu.org
Sun Sep 27 09:51:00 GMT 2009



------- Comment #9 from mikulas at artax dot karlin dot mff dot cuni dot cz  2009-09-27 09:51 -------
The common linker definitions were made to exactly to make code like this work
and share the array between two object.

So if you think it is undefined, don't support it (make -fno-common default and
remove -fcommon at all). Or, if you want to support it, support it correctly.


-- 


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



More information about the Gcc-bugs mailing list