Patchwork Fix builtin tests for RTEMS targets

login
register
mail settings
Submitter Sebastian Huber
Date March 21, 2013, 1:52 p.m.
Message ID <1363873970-32240-1-git-send-email-sebastian.huber@embedded-brains.de>
Download mbox | patch
Permalink /patch/229688/
State New
Headers show

Comments

Sebastian Huber - March 21, 2013, 1:52 p.m.
This patch should be applied to GCC 4.8 and 4.9.

Test results for powerpc-rtems4.11 and arm-rtems4.11:

http://gcc.gnu.org/ml/gcc-testresults/2013-03/msg02184.html
http://gcc.gnu.org/ml/gcc-testresults/2013-03/msg02185.html

gcc/testsuite/ChangeLog
2013-03-21  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	PR testsuite/55994
	* gcc.c-torture/execute/builtins/builtins.exp: Add
	-Wl,--allow-multiple-definition for RTEMS targets.
---
 .../gcc.c-torture/execute/builtins/builtins.exp    |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Rainer Orth - March 21, 2013, 2:03 p.m.
Sebastian Huber <sebastian.huber@embedded-brains.de> writes:

> diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
> index 45cfadd..1e3359c 100644
> --- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
> +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
> @@ -43,6 +43,7 @@ if [istarget "powerpc-*-darwin*"] {
>  }
>  if { [istarget *-*-eabi*]
>       || [istarget *-*-elf]
> +     || [istarget *-*-rtems*]
>       || [istarget *-*-mingw*] } {

Please keep the list sorted alphabetically.

Thanks.
        Rainer

Patch

diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
index 45cfadd..1e3359c 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
@@ -43,6 +43,7 @@  if [istarget "powerpc-*-darwin*"] {
 }
 if { [istarget *-*-eabi*]
      || [istarget *-*-elf]
+     || [istarget *-*-rtems*]
      || [istarget *-*-mingw*] } {
    lappend additional_flags "-Wl,--allow-multiple-definition"
 }