re PR testsuite/25442 (-fpic/-fPIC failures in gcc.dg/ipa/ipa-1.c ipa-2.c ipa-3.c ipa-4.c ipa-5.c)

* g++.dg/rtti/tinfo1.C: Scan for ".global" also.

	PR testsuite/25442
	* gcc.dg/ipa/ipa-1.c, gcc.dg/ipa/ipa-2.c, gcc.dg/ipa/ipa-3.c,
	gcc.dg/ipa/ipa-4.c, gcc.dg/ipa/ipa-5.c: Skip if -fpic/-fPIC.

	PR testsuite/25441
	* gcc.dg/pr23911.c: Make test variable static.

	PR testsuite/25444
	* gcc.dg/tree-ssa/pr14841.c: Likewise.

From-SVN: r109083
This commit is contained in:
Kaveh R. Ghazi 2005-12-27 19:58:28 +00:00 committed by Kaveh Ghazi
parent d85d3d578a
commit 0772236136
9 changed files with 22 additions and 3 deletions

View File

@ -1,3 +1,17 @@
2005-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* g++.dg/rtti/tinfo1.C: Scan for ".global" also.
PR testsuite/25442
* gcc.dg/ipa/ipa-1.c, gcc.dg/ipa/ipa-2.c, gcc.dg/ipa/ipa-3.c,
gcc.dg/ipa/ipa-4.c, gcc.dg/ipa/ipa-5.c: Skip if -fpic/-fPIC.
PR testsuite/25441
* gcc.dg/pr23911.c: Make test variable static.
PR testsuite/25444
* gcc.dg/tree-ssa/pr14841.c: Likewise.
2005-12-26 Mark Mitchell <mark@codesourcery.com>
PR c++/25439

View File

@ -1,7 +1,7 @@
// Test if a local definition is in a linkonce/comdat section.
// { dg-do compile }
// { dg-final { scan-assembler "_ZTIP9CTemplateIhE\[: \t\n\]" } }
// { dg-final { scan-assembler-not ".globl\[ \]+_ZTIP9CTemplateIhE" } }
// { dg-final { scan-assembler-not "(.globl|.global)\[ \]+_ZTIP9CTemplateIhE" } }
// { dg-final { scan-assembler-not ".section\[^\n\r\]*_ZTIP9CTemplateIhE\[^\n\r\]*" } }

View File

@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O3 -fipa-cp -fdump-ipa-cp" } */
/* { dg-skip-if "PR 25442" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
#include <stdio.h>
int g (int b, int c)

View File

@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O3 -fipa-cp -fdump-ipa-cp" } */
/* { dg-skip-if "PR 25442" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
#include <stdio.h>
int g (int b, int c)

View File

@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O3 -fipa-cp -fdump-ipa-cp" } */
/* { dg-skip-if "PR 25442" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
/* Double constants. */

View File

@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O3 -fipa-cp -fdump-ipa-cp" } */
/* { dg-skip-if "PR 25442" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
#include <stdio.h>
int g (int b, int c)

View File

@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O3 -fipa-cp -fdump-ipa-cp" } */
/* { dg-skip-if "PR 25442" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
/* Float & short constants. */

View File

@ -4,7 +4,7 @@
/* { dg-options "-O2 -fdump-tree-store_ccp" } */
double _Complex *a;
const double _Complex b[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
static const double _Complex b[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
void
test (void)

View File

@ -10,7 +10,7 @@ struct car {
int tire_pressure[4];
};
const struct car cars[] = {
static const struct car cars[] = {
{ 75, { 10, 20, 30, 40 } },
{ 35, { 12, 34, 56, 78 } },
{ 40, { 19, 28, 37, 46 } }