[Bug c/31236] incorrect output on external symbol address cast as integer used in conditional statement

2007-03-17 Thread sh-list at ssc-studios dot com
--- Comment #4 from sh-list at ssc-studios dot com 2007-03-17 17:31 --- so in other words you're saying the solution to this is "if you want it to work with GCC, make your code non-portable" afaik "__attribute__ (( weak ))" is not part of the standard, it

[Bug c/31236] incorrect output on external symbol address cast as integer used in conditional statement

2007-03-16 Thread sh-list at ssc-studios dot com
--- Comment #2 from sh-list at ssc-studios dot com 2007-03-17 00:07 --- I don't think this behavior is part of the C or C++ standard. nor is __attribute__ (( weak )) this behavior of gcc seems to be undocumented. I don't see how usefull it is to have gcc assume pointers to fu

[Bug c/31236] New: incorrect output on external symbol address cast as integer used in conditional statement

2007-03-16 Thread sh-list at ssc-studios dot com
ect output on external symbol address cast as integer used in conditional statement Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org