From 8bd8ef50e46874632c6cbd5f1446f7a6712f979c Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Thu, 7 Aug 2014 17:49:08 +0000 Subject: [PATCH] pr57233.c: Add -fno-common option on hppa*-*-hpux*. * gcc.dg/pr57233.c: Add -fno-common option on hppa*-*-hpux*. * c-c++-common/pr50459.c: Likewise. From-SVN: r213717 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/c-c++-common/pr50459.c | 1 + gcc/testsuite/gcc.dg/pr57233.c | 1 + 3 files changed, 7 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 27cbfb4b849..a484b048eb4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-08-07 John David Anglin + + * gcc.dg/pr57233.c: Add -fno-common option on hppa*-*-hpux*. + * c-c++-common/pr50459.c: Likewise. + 2014-08-07 Petr Murzin * gcc.target/i386/avx512f-vfixupimmpd-2.c: Include float.h instead of diff --git a/gcc/testsuite/c-c++-common/pr50459.c b/gcc/testsuite/c-c++-common/pr50459.c index 8d75228bbcf..848977ea393 100644 --- a/gcc/testsuite/c-c++-common/pr50459.c +++ b/gcc/testsuite/c-c++-common/pr50459.c @@ -1,6 +1,7 @@ /* PR c/50459 */ /* { dg-do compile } */ /* { dg-options "-Wall -Wextra" } */ +/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ enum { A = 128, B = 1 }; void *fn1 (void) __attribute__((assume_aligned (A))); diff --git a/gcc/testsuite/gcc.dg/pr57233.c b/gcc/testsuite/gcc.dg/pr57233.c index 58c05348b85..484844e491d 100644 --- a/gcc/testsuite/gcc.dg/pr57233.c +++ b/gcc/testsuite/gcc.dg/pr57233.c @@ -1,6 +1,7 @@ /* PR tree-optimization/57233 */ /* { dg-do run { target { ilp32 || lp64 } } } */ /* { dg-options "-O2" } */ +/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ typedef unsigned V4 __attribute__((vector_size(4 * sizeof (int)))); typedef unsigned V8 __attribute__((vector_size(8 * sizeof (int))));