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 rtl-optimization/17546] Compile Issue with util-linux-2.12d


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


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