gcc's strict aliasing to comply with C99 standard:

Annoying   2 votes - 66 %
Hmmm... didn't know about that one   2 votes - 66 %
Interesting techniques given to get around this - thanks ta bu shi da yu!   0 votes - 0 %
 
3 Total Votes
I must wonder, by ksandstr (3.00 / 0) #1 Sun Apr 25, 2004 at 11:01:18 AM EST
What the main point is in making an existing body of C89 -style code into C99 code if GCC will continue to support C89 in its future revisions? It seems to me that the last bug you mention is directly due to the fact that the C89 code is written so that it complies with only the less strict aliasing rules, and that the eventual emergence of hacks like this at the seams where old meets new would be inevitable (in cast-heavy code anyway).



Good point... by ta bu shi da yu (3.00 / 0) #8 Sun Apr 25, 2004 at 10:22:10 PM EST
... and it's a query I have about how they are building GNOME and GTK+. Should the target be C89 or C99?

[ Parent ]

Answer: by ta bu shi da yu (3.00 / 0) #9 Mon Apr 26, 2004 at 02:10:06 AM EST
According to jdub on irc (nice guy, I went to school with him), he reckons the answer is "undefined"  - such a great programming term for "we don't know", btw, or C89 if possible.

[ Parent ]

posting a big/technical diary during dead time.. by infinitera (3.00 / 0) #2 Sun Apr 25, 2004 at 11:02:19 AM EST
Is like doubly ensuring limited response.

Who cares what you think? — Son of the 41st King


Yeah, but you responded, right? (nt) by ta bu shi da yu (6.00 / 1) #4 Sun Apr 25, 2004 at 05:41:05 PM EST


[ Parent ]

i don't think metaresponses count [nt] by infinitera (3.00 / 0) #6 Sun Apr 25, 2004 at 06:57:52 PM EST


Who cares what you think? — Son of the 41st King
[ Parent ]

Hey :-) by ta bu shi da yu (6.00 / 1) #7 Sun Apr 25, 2004 at 07:52:09 PM EST
I put it up for my own reference, as well as others. It's not about popularity! It's about... well... getting it out there.

[ Parent ]

What is your day job? by lb008d (3.00 / 0) #3 Sun Apr 25, 2004 at 04:56:52 PM EST
Believe me after a day at work the last thing I'd want to do is even more coding.... :-)



:-) definitely not programming! by ta bu shi da yu (3.00 / 0) #5 Sun Apr 25, 2004 at 05:59:45 PM EST
I enjoy hacking, and the glory of recognition.

[ Parent ]