URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* Test -Wframe-larger-than for warning
|
/* Test -Wframe-larger-than for warning
|
when the frame size is bigger than specified.
|
when the frame size is bigger than specified.
|
Origin: Seongbae Park <seongbae.park@gmail.com> */
|
Origin: Seongbae Park <seongbae.park@gmail.com> */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wframe-larger-than=2048" } */
|
/* { dg-options "-Wframe-larger-than=2048" } */
|
|
|
extern void func(char *);
|
extern void func(char *);
|
|
|
void foo (void) {
|
void foo (void) {
|
char array[4096];
|
char array[4096];
|
func(array);
|
func(array);
|
} /* { dg-warning "the frame size of .* bytes is larger than 2048 bytes" } */
|
} /* { dg-warning "the frame size of .* bytes is larger than 2048 bytes" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.