re PR target/65602 (gcc.target/i386/mpx tests FAIL)
PR target/65602 * gcc.target/i386/mpx/alloca-1-lbv.c (mpx_test): Use __builtin_alloca instead of alloca. * gcc.target/i386/mpx/alloca-1-nov.c (mpx_test): Likewise. * gcc.target/i386/mpx/alloca-1-ubv.c (mpx_test): Likewise. * lib/mpx-dg.exp (check_effective_target_mpx): Add wrapper check. From-SVN: r221787
This commit is contained in:
parent
b626318e12
commit
ce52d8847e
|
@ -1,3 +1,13 @@
|
||||||
|
2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
|
||||||
|
|
||||||
|
PR target/65602
|
||||||
|
* gcc.target/i386/mpx/alloca-1-lbv.c (mpx_test): Use
|
||||||
|
__builtin_alloca instead of alloca.
|
||||||
|
* gcc.target/i386/mpx/alloca-1-nov.c (mpx_test): Likewise.
|
||||||
|
* gcc.target/i386/mpx/alloca-1-ubv.c (mpx_test): Likewise.
|
||||||
|
* lib/mpx-dg.exp (check_effective_target_mpx): Add wrapper
|
||||||
|
check.
|
||||||
|
|
||||||
2015-03-30 Jakub Jelinek <jakub@redhat.com>
|
2015-03-30 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR ipa/65610
|
PR ipa/65610
|
||||||
|
|
|
@ -16,7 +16,7 @@ int rd (int *p, int i)
|
||||||
|
|
||||||
int mpx_test (int argc, const char **argv)
|
int mpx_test (int argc, const char **argv)
|
||||||
{
|
{
|
||||||
int *buf = (int *)alloca (100 * sizeof(int));
|
int *buf = (int *)__buitlin_alloca (100 * sizeof(int));
|
||||||
|
|
||||||
rd (buf, -1);
|
rd (buf, -1);
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ int rd (int *p, int i)
|
||||||
|
|
||||||
int mpx_test (int argc, const char **argv)
|
int mpx_test (int argc, const char **argv)
|
||||||
{
|
{
|
||||||
int *buf = (int *)alloca (100 * sizeof(int));
|
int *buf = (int *)__builtin_alloca (100 * sizeof(int));
|
||||||
|
|
||||||
rd (buf, 0);
|
rd (buf, 0);
|
||||||
rd (buf, 99);
|
rd (buf, 99);
|
||||||
|
|
|
@ -16,7 +16,7 @@ int rd (int *p, int i)
|
||||||
|
|
||||||
int mpx_test (int argc, const char **argv)
|
int mpx_test (int argc, const char **argv)
|
||||||
{
|
{
|
||||||
int *buf = (int *)alloca (100 * sizeof(int));
|
int *buf = (int *)__builtin_alloca (100 * sizeof(int));
|
||||||
|
|
||||||
rd (buf, 100);
|
rd (buf, 100);
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,13 @@
|
||||||
proc check_effective_target_mpx {} {
|
proc check_effective_target_mpx {} {
|
||||||
return [check_no_compiler_messages mpx executable {
|
return [check_no_compiler_messages mpx executable {
|
||||||
int *foo (int *arg) { return arg; }
|
int *foo (int *arg) { return arg; }
|
||||||
int main (void) { return foo ((void *)0) == 0; }
|
int main (void)
|
||||||
|
{
|
||||||
|
int *p = __builtin_malloc (sizeof (int));
|
||||||
|
int res = foo (p) == 0;
|
||||||
|
__builtin_free (p);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
} "-fcheck-pointer-bounds -mmpx"]
|
} "-fcheck-pointer-bounds -mmpx"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue