Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | From ab2cb6320138c173b20fee8ce6e8d4afa4696384 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Sat, 26 Aug 2017 19:21:16 -0700 |
| 4 | Subject: [PATCH] dejagnu static testing on qemu, suppress warnings |
| 5 | |
| 6 | For dejagnu static testing on qemu, suppress warnings about multiple |
| 7 | definitions from the test function and libc in line with method used by |
| 8 | powerpc. Dynamic linking and using a qemu binary which understands |
| 9 | sysroot resolves all test failures with builtins |
| 10 | |
| 11 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> |
| 12 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
| 13 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> |
| 14 | Upstream-Status: Pending |
| 15 | --- |
| 16 | gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp | 4 ++++ |
| 17 | 1 file changed, 4 insertions(+) |
| 18 | |
| 19 | diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp |
| 20 | index ba16b09c41..ada149912b 100644 |
| 21 | --- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp |
| 22 | +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp |
| 23 | @@ -48,6 +48,10 @@ if { [istarget *-*-eabi*] |
| 24 | lappend additional_flags "-Wl,--allow-multiple-definition" |
| 25 | } |
| 26 | |
| 27 | +if [istarget "microblaze*-*-linux*"] { |
| 28 | + lappend additional_flags "-Wl,-zmuldefs" |
| 29 | +} |
| 30 | + |
| 31 | foreach src [lsort [find $srcdir/$subdir *.c]] { |
| 32 | if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} { |
| 33 | c-torture-execute [list $src \ |
| 34 | -- |
| 35 | 2.14.2 |
| 36 | |