Commit 75587afb by H.J. Lu Committed by H.J. Lu

Compile IAMCU tests with -fno-pie -no-pie

Since IAMCU tests clear all scratch integer registers with:

  asm __volatile__ ("xor %%eax, %%eax\n\t" \
                    "xor %%edx, %%edx\n\t" \
                    "xor %%ecx, %%ecx\n\t" \
                    ::: "eax", "edx", "ecx");

PIC register may be trashed between setting PIC register and using it.
This patch compiles AMCU tests with -fno-pie -no-pie.

	PR target/67110
	* gcc.target/i386/iamcu/abi-iamcu.exp (additional_flags): Add
	-fno-pie -no-pie.

From-SVN: r226570
parent 01003b83
2015-08-04 H.J. Lu <hongjiu.lu@intel.com>
PR target/67110
* gcc.target/i386/iamcu/abi-iamcu.exp (additional_flags): Add
-fno-pie -no-pie.
2015-08-04 Paolo Carlini <paolo.carlini@oracle.com> 2015-08-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/66427 PR c++/66427
......
...@@ -29,7 +29,7 @@ if { (![istarget x86_64-*-linux*] && ![istarget i?86-*-linux*]) ...@@ -29,7 +29,7 @@ if { (![istarget x86_64-*-linux*] && ![istarget i?86-*-linux*])
torture-init torture-init
set-torture-options $C_TORTURE_OPTIONS set-torture-options $C_TORTURE_OPTIONS
set additional_flags "-miamcu -W -Wall -Wno-abi" set additional_flags "-miamcu -W -Wall -Wno-abi -fno-pie -no-pie"
foreach src [lsort [glob -nocomplain $srcdir/$subdir/test_*.c]] { foreach src [lsort [glob -nocomplain $srcdir/$subdir/test_*.c]] {
if {[runtest_file_p $runtests $src]} { if {[runtest_file_p $runtests $src]} {
......
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