aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2019-11-21 16:14:21 +0000
committerRainer Orth <ro@gcc.gnu.org>2019-11-21 16:14:21 +0000
commitb8e724465b5e1e6c479503f219cd725caaa8e781 (patch)
tree80ea08df40416098c9c352c30eea51cf708c21ee /gcc
parent523cfd52a29d496a5c0445e5307e9ffc05242b20 (diff)
downloadgcc-b8e724465b5e1e6c479503f219cd725caaa8e781.zip
gcc-b8e724465b5e1e6c479503f219cd725caaa8e781.tar.gz
gcc-b8e724465b5e1e6c479503f219cd725caaa8e781.tar.bz2
Fix failures on Solaris with -fno-common default
gcc/testsuite: * gcc.c-torture/execute/20030913-1.c: Rename glob to g. * gcc.c-torture/execute/960218-1.c: Rename glob to gl. * gcc.c-torture/execute/complex-6.c: Rename err to e. * gcc.dg/torture/ssa-pta-fn-1.c: Rename glob to g. libgomp: * testsuite/libgomp.c/pr39591-1.c: Rename err to e. * testsuite/libgomp.c/pr39591-2.c: Likewise. * testsuite/libgomp.c/pr39591-3.c: Likewise. * testsuite/libgomp.c/private-1.c: Likewise. * testsuite/libgomp.c/task-1.c: Likewise. * testsuite/libgomp.c/task-5.c: Renamed err to serr. From-SVN: r278571
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20030913-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/960218-1.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/complex-6.c8
-rw-r--r--gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c4
5 files changed, 19 insertions, 12 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b4a9619..a075a6f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * gcc.c-torture/execute/20030913-1.c: Rename glob to g.
+ * gcc.c-torture/execute/960218-1.c: Rename glob to gl.
+ * gcc.c-torture/execute/complex-6.c: Rename err to e.
+ * gcc.dg/torture/ssa-pta-fn-1.c: Rename glob to g.
+
2019-11-21 Marek Polacek <polacek@redhat.com>
PR c++/92450 - ICE with invalid nested name specifier.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20030913-1.c b/gcc/testsuite/gcc.c-torture/execute/20030913-1.c
index 5e33f50..ed8724b 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20030913-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20030913-1.c
@@ -1,12 +1,12 @@
/* Assignments via pointers pointing to global variables were being killed
by SSA-DCE. Test contributed by Paul Brook <paul@nowt.org> */
-int glob;
+int g;
void
fn2(int ** q)
{
- *q = &glob;
+ *q = &g;
}
void test()
@@ -21,6 +21,6 @@ void test()
int main()
{
test();
- if (glob != 42) abort();
+ if (g != 42) abort();
exit (0);
}
diff --git a/gcc/testsuite/gcc.c-torture/execute/960218-1.c b/gcc/testsuite/gcc.c-torture/execute/960218-1.c
index 7301a17..dc94734 100644
--- a/gcc/testsuite/gcc.c-torture/execute/960218-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/960218-1.c
@@ -1,8 +1,8 @@
-int glob;
+int gl;
g (x)
{
- glob = x;
+ gl = x;
return 0;
}
@@ -16,7 +16,7 @@ f (x)
main ()
{
f (3);
- if (glob != -4)
+ if (gl != -4)
abort ();
exit (0);
}
diff --git a/gcc/testsuite/gcc.c-torture/execute/complex-6.c b/gcc/testsuite/gcc.c-torture/execute/complex-6.c
index 50fb18e..75f9210 100644
--- a/gcc/testsuite/gcc.c-torture/execute/complex-6.c
+++ b/gcc/testsuite/gcc.c-torture/execute/complex-6.c
@@ -6,7 +6,7 @@
#include <stdlib.h>
#include <stdio.h>
-int err;
+int e;
#define TEST(TYPE, FUNC) \
__complex__ TYPE \
@@ -31,7 +31,7 @@ test_ ## FUNC (void) \
if (res != 1.0 - 2.0i) \
{ \
printf ("test_" #FUNC " failed\n"); \
- ++err; \
+ ++e; \
} \
}
@@ -46,7 +46,7 @@ int
main (void)
{
- err = 0;
+ e = 0;
test_float ();
test_double ();
@@ -54,7 +54,7 @@ main (void)
test_int ();
test_long_int ();
- if (err != 0)
+ if (e != 0)
abort ();
return 0;
diff --git a/gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c b/gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c
index 7d6da118..1f30467 100644
--- a/gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c
+++ b/gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c
@@ -3,7 +3,7 @@
/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
extern void abort (void);
-int *glob;
+int *g;
int dummy;
int * __attribute__((noinline,const))
@@ -13,7 +13,7 @@ int * __attribute__((noinline,pure))
foo_pure(int *p) { return p + dummy; }
int * __attribute__((noinline))
-foo_normal(int *p) { glob = p; return p; }
+foo_normal(int *p) { g = p; return p; }
void test_const(void)
{