This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c/50332 (FAIL: gcc.dg/attr-invalid.c)
- From: Dodji Seketeli <dodji at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 08 Sep 2011 23:45:03 +0200
- Subject: Re: [PATCH] Fix PR c/50332 (FAIL: gcc.dg/attr-invalid.c)
- References: <m3wrdircqd.fsf@redhat.com> <4E692CE4.4060308@redhat.com>
Jason Merrill <jason@redhat.com> writes:
> On 09/08/2011 04:38 PM, Dodji Seketeli wrote:
>> +typedef int ATSYM(type) ATTR; /* used attribute is no more
>
> "no longer"
>
> OK with that change.
Thanks, I am about to commit this:
commit 8c9ae9337b04d05ae89aeea0723d41119e713b41
Author: Dodji Seketeli <dodji@redhat.com>
Date: Thu Sep 8 21:52:16 2011 +0200
Fix PR c/50332
gcc/testsuite/
* gcc.dg/attr-invalid.c: Adjust as __attribute__((used) is no
longer ignored on typedefs.
diff --git a/gcc/testsuite/gcc.dg/attr-invalid.c b/gcc/testsuite/gcc.dg/attr-invalid.c
index 6568c1a..f2a5887 100644
--- a/gcc/testsuite/gcc.dg/attr-invalid.c
+++ b/gcc/testsuite/gcc.dg/attr-invalid.c
@@ -35,9 +35,11 @@ int ATSYM(fn_vars) (void) {
#undef AT
#define AT used
-typedef int ATSYM(type) ATTR; /* { dg-warning "attribute ignored" "" } */
+typedef int ATSYM(type) ATTR; /* used attribute is no longer
+ ignored. */
-typedef int (*ATSYM(fntype))(void) ATTR; /* { dg-warning "attribute ignored" "" } */
+typedef int (*ATSYM(fntype))(void) ATTR; /* used attribute is no
+ longer ignored. */
struct ATSYM(struct) {
char dummy ATTR; /* { dg-warning "attribute ignored" "" } */
--
Dodji