This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] Make attributes accept enum values (PR c/50459)
- From: Marek Polacek <polacek at redhat dot com>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: gcc-patches at gcc dot gnu dot org, iains at gcc dot gnu dot org, joseph at codesourcery dot com
- Date: Sun, 11 May 2014 20:01:41 +0200
- Subject: Re: [C PATCH] Make attributes accept enum values (PR c/50459)
- Authentication-results: sourceware.org; auth=none
- References: <20140510141047 dot 3D98C103 at mailhost dot lps dot ens dot fr>
On Sat, May 10, 2014 at 04:10:47PM +0200, Dominique Dhumieres wrote:
> > ...
> > Tested again x86_64-linux, ok now?
> >
> > 2014-05-02 Marek Polacek <polacek@redhat.com>
> >
> > PR c/50459
>
> This caused on x86_64-apple-darwin13
>
> FAIL: c-c++-common/pr50459.c -std=gnu++98 (test for excess errors)
> FAIL: c-c++-common/pr50459.c -std=gnu++11 (test for excess errors)
> FAIL: c-c++-common/pr50459.c -std=gnu++1y (test for excess errors)
> FAIL: c-c++-common/pr50459.c -Wc++-compat (test for excess errors)
>
> The errors are
>
> /opt/gcc/work/gcc/testsuite/c-c++-common/pr50459.c:8:1: error: constructor priorities are not supported
> /opt/gcc/work/gcc/testsuite/c-c++-common/pr50459.c:9:1: error: destructor priorities are not supported
Ah. The following untested patch should skip that test on Darwin.
Ok?
2014-05-11 Marek Polacek <polacek@redhat.com>
* c-c++-common/pr50459.c: Skip test on Darwin.
diff --git gcc/testsuite/c-c++-common/pr50459.c gcc/testsuite/c-c++-common/pr50459.c
index f837b63..1216fd6 100644
--- gcc/testsuite/c-c++-common/pr50459.c
+++ gcc/testsuite/c-c++-common/pr50459.c
@@ -1,6 +1,7 @@
/* PR c/50459 */
/* { dg-do compile } */
/* { dg-options "-Wall -Wextra" } */
+/* { dg-skip-if "Darwin does not support cdtor priorities" { *-*-darwin* } } */
enum { A = 128, B = 1 };
void *fn1 (void) __attribute__((assume_aligned (A)));
Marek