mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-19 20:51:06 +08:00
snprintf-chk.c (ptr): Declare volatile.
* snprintf-chk.c (ptr): Declare volatile. * strcpy-chk.c (s2, s3, l1): Declare volatile. * snprintf-chk.c (ptr): Declare volatile. * vsprintf-chk.c (ptr): Declare volatile. * vsnprintf-chk.c (ptr): Declare volatile. From-SVN: r167466
This commit is contained in:
parent
bf243ea70d
commit
cb20668f27
@ -1,3 +1,11 @@
|
||||
2010-12-04 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* snprintf-chk.c (ptr): Declare volatile.
|
||||
* strcpy-chk.c (s2, s3, l1): Declare volatile.
|
||||
* snprintf-chk.c (ptr): Declare volatile.
|
||||
* vsprintf-chk.c (ptr): Declare volatile.
|
||||
* vsnprintf-chk.c (ptr): Declare volatile.
|
||||
|
||||
2010-12-04 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
PR fortran/46584
|
||||
|
@ -21,7 +21,7 @@ char *s3 = "FGH";
|
||||
char *s4;
|
||||
size_t l1 = 1;
|
||||
static char buffer[32];
|
||||
char *ptr = "barf";
|
||||
char * volatile ptr = "barf"; /* prevent constant propagation to happen when whole program assumptions are made. */
|
||||
|
||||
void
|
||||
__attribute__((noinline))
|
||||
|
@ -20,7 +20,7 @@ char *s3 = "FGH";
|
||||
char *s4;
|
||||
size_t l1 = 1;
|
||||
static char buffer[32];
|
||||
char *ptr = "barf";
|
||||
char * volatile ptr = "barf"; /* prevent constant propagation to happen when whole program assumptions are made. */
|
||||
|
||||
void
|
||||
__attribute__((noinline))
|
||||
|
@ -16,10 +16,10 @@ extern void *memset (void *, int, size_t);
|
||||
|
||||
const char s1[] = "123";
|
||||
char p[32] = "";
|
||||
char *s2 = "defg";
|
||||
char *s3 = "FGH";
|
||||
char * volatile s2 = "defg"; /* prevent constant propagation to happen when whole program assumptions are made. */
|
||||
char * volatile s3 = "FGH"; /* prevent constant propagation to happen when whole program assumptions are made. */
|
||||
char *s4;
|
||||
size_t l1 = 1;
|
||||
volatile size_t l1 = 1; /* prevent constant propagation to happen when whole program assumptions are made. */
|
||||
int i;
|
||||
|
||||
void
|
||||
|
@ -22,7 +22,7 @@ char *s3 = "FGH";
|
||||
char *s4;
|
||||
size_t l1 = 1;
|
||||
static char buffer[32];
|
||||
char *ptr = "barf";
|
||||
char * volatile ptr = "barf"; /* prevent constant propagation to happen when whole program assumptions are made. */
|
||||
|
||||
int
|
||||
__attribute__((noinline))
|
||||
|
@ -22,7 +22,7 @@ char *s3 = "FGH";
|
||||
char *s4;
|
||||
size_t l1 = 1;
|
||||
static char buffer[32];
|
||||
char *ptr = "barf";
|
||||
char * volatile ptr = "barf"; /* prevent constant propagation to happen when whole program assumptions are made. */
|
||||
|
||||
int
|
||||
__attribute__((noinline))
|
||||
|
Loading…
Reference in New Issue
Block a user