diff options
Diffstat (limited to 'libmudflap')
-rw-r--r-- | libmudflap/ChangeLog | 9 | ||||
-rw-r--r-- | libmudflap/testsuite/libmudflap.c/fail11-frag.c | 3 | ||||
-rw-r--r-- | libmudflap/testsuite/libmudflap.c/fail12-frag.c | 3 | ||||
-rw-r--r-- | libmudflap/testsuite/libmudflap.c/fail16-frag.c | 3 | ||||
-rw-r--r-- | libmudflap/testsuite/libmudflap.c/fail31-frag.c | 3 |
5 files changed, 17 insertions, 4 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index 11d6f52..7503165 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,12 @@ +2009-07-01 Richard Guenther <rguenther@suse.de> + + PR tree-optimization/19831 + * testsuite/libmudflap.c/fail11-frag.c: Make allocated memory + escape. + * testsuite/libmudflap.c/fail12-frag.c: Likewise. + * testsuite/libmudflap.c/fail16-frag.c: Likewise. + * testsuite/libmudflap.c/fail31-frag.c: Likewise. + 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com> * testsuite/lib/libmudflap.exp (libmudflap-init): Don't add "." diff --git a/libmudflap/testsuite/libmudflap.c/fail11-frag.c b/libmudflap/testsuite/libmudflap.c/fail11-frag.c index 72038fd..ebd1db9 100644 --- a/libmudflap/testsuite/libmudflap.c/fail11-frag.c +++ b/libmudflap/testsuite/libmudflap.c/fail11-frag.c @@ -1,11 +1,12 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +char *y; int main () { int i = 10; char *x = (char *) malloc (i * sizeof (char)); - +y = x; while (i--) { ++x; diff --git a/libmudflap/testsuite/libmudflap.c/fail12-frag.c b/libmudflap/testsuite/libmudflap.c/fail12-frag.c index da8bfb7..46dbdb23 100644 --- a/libmudflap/testsuite/libmudflap.c/fail12-frag.c +++ b/libmudflap/testsuite/libmudflap.c/fail12-frag.c @@ -1,11 +1,12 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +int *y; int main () { int i = 10; int *x = (int *) malloc (i * sizeof (int)); - +y = x; while (i--) { ++x; diff --git a/libmudflap/testsuite/libmudflap.c/fail16-frag.c b/libmudflap/testsuite/libmudflap.c/fail16-frag.c index 317e274..6ac6187 100644 --- a/libmudflap/testsuite/libmudflap.c/fail16-frag.c +++ b/libmudflap/testsuite/libmudflap.c/fail16-frag.c @@ -1,6 +1,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +void *p; int main () { struct base { @@ -15,7 +16,7 @@ struct derived { struct base *bp; bp = (struct base *) malloc (sizeof (struct base));; - +p = bp; bp->basic = 10; ((struct derived *)bp)->extra = 'x'; return 0; diff --git a/libmudflap/testsuite/libmudflap.c/fail31-frag.c b/libmudflap/testsuite/libmudflap.c/fail31-frag.c index b15056c..bd9a903 100644 --- a/libmudflap/testsuite/libmudflap.c/fail31-frag.c +++ b/libmudflap/testsuite/libmudflap.c/fail31-frag.c @@ -8,11 +8,12 @@ int main () int z = h (4, 10); return 0; } - +int *p; int h (int i, int j) { int k[i]; k[j] = i; + p = k; return j; } |