This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/15700] [3.5 Regression] [unit-at-a-time] Inlining problem leads to miscompilation of glibc
- From: "belyshev at lubercy dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2004 16:03:20 -0000
- Subject: [Bug middle-end/15700] [3.5 Regression] [unit-at-a-time] Inlining problem leads to miscompilation of glibc
- References: <20040528071502.15700.aj@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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