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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [m68k/] [20100512-1.c] - Blame information for rev 762

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fstack-protector" } */
3
/* { dg-require-effective-target fstack_protector } */
4
/* There should be 2 references to __stack_chk_guard in every function.  */
5
/* { dg-final { scan-assembler-times "__stack_chk_guard" 4 } } */
6
 
7
#include <stdlib.h>
8
#include <string.h>
9
void doTest1(void) {
10
  volatile char foo[10];
11
  memset((void *)foo, 1, 100);
12
}
13
void doTest2(void) {
14
  volatile char foo[10];
15
  memset((void *)foo, 1, 100);
16
}

powered by: WebSVN 2.1.0

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