Commit cb20668f by Jan Hubicka Committed by Jan Hubicka

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
parent bf243ea7
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> 2010-12-04 Tobias Burnus <burnus@net-b.de>
PR fortran/46584 PR fortran/46584
......
...@@ -21,7 +21,7 @@ char *s3 = "FGH"; ...@@ -21,7 +21,7 @@ char *s3 = "FGH";
char *s4; char *s4;
size_t l1 = 1; size_t l1 = 1;
static char buffer[32]; static char buffer[32];
char *ptr = "barf"; char * volatile ptr = "barf"; /* prevent constant propagation to happen when whole program assumptions are made. */
void void
__attribute__((noinline)) __attribute__((noinline))
......
...@@ -20,7 +20,7 @@ char *s3 = "FGH"; ...@@ -20,7 +20,7 @@ char *s3 = "FGH";
char *s4; char *s4;
size_t l1 = 1; size_t l1 = 1;
static char buffer[32]; static char buffer[32];
char *ptr = "barf"; char * volatile ptr = "barf"; /* prevent constant propagation to happen when whole program assumptions are made. */
void void
__attribute__((noinline)) __attribute__((noinline))
......
...@@ -16,10 +16,10 @@ extern void *memset (void *, int, size_t); ...@@ -16,10 +16,10 @@ extern void *memset (void *, int, size_t);
const char s1[] = "123"; const char s1[] = "123";
char p[32] = ""; char p[32] = "";
char *s2 = "defg"; char * volatile s2 = "defg"; /* prevent constant propagation to happen when whole program assumptions are made. */
char *s3 = "FGH"; char * volatile s3 = "FGH"; /* prevent constant propagation to happen when whole program assumptions are made. */
char *s4; char *s4;
size_t l1 = 1; volatile size_t l1 = 1; /* prevent constant propagation to happen when whole program assumptions are made. */
int i; int i;
void void
......
...@@ -22,7 +22,7 @@ char *s3 = "FGH"; ...@@ -22,7 +22,7 @@ char *s3 = "FGH";
char *s4; char *s4;
size_t l1 = 1; size_t l1 = 1;
static char buffer[32]; static char buffer[32];
char *ptr = "barf"; char * volatile ptr = "barf"; /* prevent constant propagation to happen when whole program assumptions are made. */
int int
__attribute__((noinline)) __attribute__((noinline))
......
...@@ -22,7 +22,7 @@ char *s3 = "FGH"; ...@@ -22,7 +22,7 @@ char *s3 = "FGH";
char *s4; char *s4;
size_t l1 = 1; size_t l1 = 1;
static char buffer[32]; static char buffer[32];
char *ptr = "barf"; char * volatile ptr = "barf"; /* prevent constant propagation to happen when whole program assumptions are made. */
int int
__attribute__((noinline)) __attribute__((noinline))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment