OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr40971.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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.