* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167466
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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))
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))
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
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))
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))