http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47571
--- Comment #18 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-02-03
09:53:50 UTC ---
To add to Tobias comment, in the patch the only place where a weakref is used
is
+#ifdef SUPPORTS_WEAK
+static int weak_gettime (clockid_t, struct timespec *)
+ __attribute__((__weakref__("clock_gettime")));
+#else
+static inline int weak_gettime (clockid_t clk_id, struct timespec *res)
+{
+ return clock_gettime (clk_id, res);
+}
+#endif
That is, for some reason SUPPORTS_WEAK must be defined on HPUX even though weak
references are not actually supported. Why is this?