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 c/37384] Assembler error message when building vlc-0.9.1



------- Comment #4 from pinskia at gcc dot gnu dot org  2008-09-06 21:39 -------
This code is invalid and is caused by changing C99/GNU99 extern inline to be
correct to what C99 says.

We have:
extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t
__offset) __asm__ ("" "pread64") __attribute__ ((__warn_unused_result__));

extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes,
   __off64_t __offset) __attribute__ ((__warn_unused_result__));

extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes,
__off64_t __offset) __asm__ ("" "pread64") __attribute__
((__warn_unused_result__));
extern __inline __attribute__ ((__always_inline__)) __attribute__
((__warn_unused_result__)) ssize_t
pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset)
{...}
extern __inline __attribute__ ((__always_inline__)) __attribute__
((__warn_unused_result__)) ssize_t
pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset)
{...}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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