OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr40971.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR target/40971 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -fstack-protector -fno-strict-aliasing" } */
4
/* { dg-require-effective-target fstack_protector } */
5
 
6
extern void bar (char *);
7
 
8
void
9
foo (int f, long a)
10
{
11
  {
12
    char d[32768];
13
    bar (d);
14
  }
15
  double b = f;
16
  while (a)
17
    {
18
      char c[sizeof (double)];
19
      __builtin_memcpy (c, &b, sizeof (c));
20
      if (*(double *) c != 2.0)
21
        break;
22
    }
23
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.