This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/15700] [3.5 Regression] [unit-at-a-time] Inlining problem leads to miscompilation of glibc


------- Additional Comments From belyshev at lubercy dot com  2004-06-18 16:03 -------
workaround: apply this patch to file libc/inet/getnetgrent_r.c and glibc will
work just fine.

------------------------------------------------------------------------------
--- getnetgrent_r.c.~1.24.~     2002-11-10 14:06:35.000000000 +0300
+++ getnetgrent_r.c     2004-06-18 17:50:48.073311536 +0400
@@ -133,7 +133,7 @@
   return status == NSS_STATUS_SUCCESS;
 }
 
-static int
+static int __attribute__((used))
 internal_setnetgrent (const char *group, struct __netgrent *datap)
 {
   /* Free list of all netgroup names from last run.  */
@@ -158,7 +158,7 @@
 }
 
 
-static void
+static void __attribute__((used))
 internal_endnetgrent (struct __netgrent *datap)
 {
   service_user *old_nip;
@@ -200,7 +200,7 @@
 }
 
 
-static int
+static int __attribute__((used))
 internal_getnetgrent_r (char **hostp, char **userp, char **domainp,
                          struct __netgrent *datap,
                          char *buffer, size_t buflen, int *errnop)
------------------------------------------------------------------------------


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15700


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]