[Bug rtl-optimization/17546] Compile Issue with util-linux-2.12d

giffordj at linkline dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 23 17:02:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list