URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Show entire file |
Details |
Blame |
View Log
Rev 298 |
Rev 399 |
Line 102... |
Line 102... |
|
|
typedef struct { int i, j, k, l; } S;
|
typedef struct { int i, j, k, l; } S;
|
S *s[3];
|
S *s[3];
|
memset (s, 0, sizeof (S) * 3); /* { dg-warning "will always overflow" "memset" } */
|
memset (s, 0, sizeof (S) * 3); /* { dg-warning "will always overflow" "memset" } */
|
|
|
struct T { char a[8]; char b[4]; char c[10]; } t;
|
struct T { char a[8]; char b[4]; char c[10]; } t; /* or32 pads this to 12 bytes, and __builtin_object_size (t.c, 0) gives the size of the full object. */
|
stpcpy (t.c,"Testing..."); /* { dg-warning "will always overflow" "stpcpy" } */
|
stpcpy (t.c,"Testing..."); /* { dg-warning "will always overflow" "stpcpy" { target { ! or32-*-* } } } */
|
|
|
char b1[7];
|
char b1[7];
|
char b2[4];
|
char b2[4];
|
memset (b1, 0, sizeof (b1));
|
memset (b1, 0, sizeof (b1));
|
memset (b2, 0, sizeof (b1)); /* { dg-warning "will always overflow" "memset" } */
|
memset (b2, 0, sizeof (b1)); /* { dg-warning "will always overflow" "memset" } */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.