[Bug c/38295] Support pointer difference as constant in static initializer
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Nov 27 18:53:00 GMT 2008
------- Comment #6 from pinskia at gcc dot gnu dot org 2008-11-27 18:52 -------
(In reply to comment #5)
> If the two functions are in the same compilation unit (and static), it's known
> at compile time, isn't it?
Not always since they could be in different sections via -ffunction-sections or
the user put them into different sections. The layout of the sections is not
known until link time.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38295
More information about the Gcc-bugs
mailing list