comparison gcc/testsuite/gcc.dg/pr63342.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900 (2017-10-27)
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR debug/63342 */
2 /* { dg-do compile } */
3 /* { dg-options "-g -O2" } */
4 /* { dg-additional-options "-fpic" { target fpic } } */
5
6 static __thread double u[9], v[9];
7
8 void
9 foo (double **p, double **q)
10 {
11 *p = u;
12 *q = v;
13 }
14
15 double
16 bar (double x)
17 {
18 int i;
19 double s = 0.0;
20 for (i = 0; i < 9; i++)
21 {
22 double a = x + v[i];
23 s += u[i] * a * a;
24 }
25 return s;
26 }