[Bug tree-optimization/58689] Enhance returns_nonnull
eduardo.abinader at openbossa dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 24 20:27:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58689
Eduardo Abinader <eduardo.abinader at openbossa dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eduardo.abinader@openbossa.
| |org
--- Comment #5 from Eduardo Abinader <eduardo.abinader at openbossa dot org> ---
This new macro ATTRIBUTE_RETURNS_NONNULL should work ok for gcc 4.8.2? I am
having problems including libiberty.h in ubuntu 14.04.
/usr/include/libiberty/libiberty.h: In function ‘basename’:
/usr/include/libiberty/libiberty.h:110:38: error: expected declaration
specifiers before ‘ATTRIBUTE_RETURNS_NONNULL’
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);
/usr/include/libiberty/libiberty.h:121:45: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘ATTRIBUTE_RETURNS_NONNULL’
extern const char *lbasename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);
^
/usr/include/libiberty/libiberty.h:126:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘ATTRIBUTE_RETURNS_NONNULL’
extern const char *dos_lbasename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);
^
/usr/include/libiberty/libiberty.h:132:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘ATTRIBUTE_RETURNS_NONNULL’
extern const char *unix_lbasename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);
...
they seem to face the same problem:
https://linuxmusicians.com/viewtopic.php?f=24&t=12307&start=15
Thanks.
More information about the Gcc-bugs
mailing list