bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug binutils/2993] New: compile error bfd.c: noreturn function does


From: Nick Clifton
Subject: Re: [Bug binutils/2993] New: compile error bfd.c: noreturn function does return
Date: Mon, 07 Aug 2006 10:00:53 +0100
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

Hi Rudolph,

bfd.c: In function `_bfd_abort':
bfd.c:796: warning: `noreturn' function does return

This looks like it may be a problem with your system header files. The _bfd_abort() function ends with a call to the system function _exit() which should not return. Hence _bfd_abort() does not return. It would appear from this error message that the system header file which declares the prototype for _exit() on your system (probably unistd.h) does not include the "__attribute__ ((noreturn))" qualifier.

The proper solution to this problem would probably involve complicated configuration scripting to detect the missing attribute in the system header and change the prototypes of various bfd functions accordingly. Since that is likely to introduce its own set of bugs however, please could you try the uploaded alternative patch which just adds a local prototype for _exit() to the _bfd_abort() function.

Cheers
  Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]