On Dec 18, 2006, at 8:09 AM, Mathieu Bouchard wrote:
On Sun, 17 Dec 2006, Miller Puckette wrote:
It's a mistake... I think the one in s_main.c should go. C code since the 70s (at least) has allowed duplicate definitions of uninitialzed data, but everyone knows it's wrong :)
It's not C that allows it, it's the linker and the concept of separate compilation. It's a feature that comes from assembly language. I can't see that feature really going away with any new standard of the C language because it's just not something specified by that spec.
(ok, I'm not 100% sure on that)
I think that -fstrict-aliasing disallows that. Or at least something that is enabled when turning on all the optimization options.
.hc
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
------------------------------------------------------------------------
¡El pueblo unido jamás será vencido!