Add check_effective_target_maybe_x32
* lib/target-supports.exp (check_effective_target_maybe_x32): New proc. * gcc.target/i386/pr54457.c: Use dg-require-effective-target maybe_x32. * gcc.target/i386/pr53249.c: Likewise. Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu> From-SVN: r193126
This commit is contained in:
parent
bd7a7ec8fa
commit
2020066973
4 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
|||
2012-11-03 H.J. Lu <hjl.tools@gmail.com>
|
||||
Jack Howarth <howarth@bromo.med.uc.edu>
|
||||
|
||||
* lib/target-supports.exp (check_effective_target_maybe_x32): New
|
||||
proc.
|
||||
* gcc.target/i386/pr54457.c: Use dg-require-effective-target
|
||||
maybe_x32.
|
||||
* gcc.target/i386/pr53249.c: Likewise.
|
||||
|
||||
2012-11-03 Andrew Pinski <apinski@cavium.com>
|
||||
|
||||
* gcc.target/mips/octeon-bbit-3.c: Change the second call to abort to
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile { target { ! { ia32 } } } } */
|
||||
/* { dg-require-effective-target maybe_x32 } */
|
||||
/* { dg-options "-O2 -mx32 -ftls-model=initial-exec -maddress-mode=short" } */
|
||||
|
||||
struct gomp_task
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile { target { ! { ia32 } } } } */
|
||||
/* { dg-require-effective-target maybe_x32 } */
|
||||
/* { dg-options "-O2 -mx32 -maddress-mode=short" } */
|
||||
|
||||
extern char array[40];
|
||||
|
|
|
@ -4608,6 +4608,14 @@ proc check_effective_target_lto { } {
|
|||
return [info exists ENABLE_LTO]
|
||||
}
|
||||
|
||||
# Return 1 if -mx32 -maddress-mode=short can compile, 0 otherwise.
|
||||
|
||||
proc check_effective_target_maybe_x32 { } {
|
||||
return [check_no_compiler_messages maybe_x32 object {
|
||||
void foo (void) {}
|
||||
} "-mx32 -maddress-mode=short"]
|
||||
}
|
||||
|
||||
# Return 1 if this target supports the -fsplit-stack option, 0
|
||||
# otherwise.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue