This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] headers: avoid bareword attributes
On 25/08/17 09:53, Sebastian Huber wrote:
[...]
I also think that this is a clang bug and I will file a bug report,
however, it will take time to fix this and we should not break
existing clang support for now.
With this test program
void f0(void) __attribute__((noreturn));
void f1(void) __attribute__((__noreturn__));
void f2(int *l) __attribute__((exclusive_lock_function(*l)));
void f3(int *l) __attribute__((__exclusive_lock_function__(*l)));
I get
clang -c test.c
test.c:4:61: error: use of undeclared identifier 'l'
void f3(int *l) __attribute__((__exclusive_lock_function__(*l)));
^
1 error generated.
https://bugs.llvm.org/show_bug.cgi?id=34319
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.