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/52785] Compile with -O fails in gcc 4.7


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-30 02:18:18 UTC ---
strndup is a macro in glibc header files.  Use (strndup) to disable the macro
function.

This is not a GCC bug or a glibc bug (since you supply  _GNU_SOURCE which says
define this macro) as the header is using something in the GNU_SOURCE
namespace.


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