This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/17546] Compile Issue with util-linux-2.12d
- From: "giffordj at linkline dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2004 17:02:07 -0000
- Subject: [Bug rtl-optimization/17546] Compile Issue with util-linux-2.12d
- References: <20040918064431.17546.giffordj@linkline.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giffordj at linkline dot com 2004-09-23 17:02 -------
This issue does not happen with gcc 3.3.3 or 3.3.4. Only with gcc 3.4.x systems.
Some of one has suggested the issue is caused by the following code.
#if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) &&
!defined (__s390x__)
static
_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
loff_t *, res, unsigned int, wh);
#endif
It has been suggested, that using __attribute__ ((used)) will fix the issue.
So the code should be changed to
#if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) &&
!defined (__s390x__)
static
__attribute__ ((used))
_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
loff_t *, res, unsigned int, wh);
#endif
If that's the case, we can close this ticket. Please validate the suggestion
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17546