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:
Jan Hubicka 2010-12-05 01:29:52 +01:00 committed by Jan Hubicka
parent bf243ea70d
commit cb20668f27
6 changed files with 15 additions and 7 deletions

View File

@ -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

View File

@ -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))

View File

@ -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))

View File

@ -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

View File

@ -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))

View File

@ -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))