Patchwork [v2] Fix builtin tests for RTEMS targets

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

Comments

Sebastian Huber - March 21, 2013, 2:08 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

v2: Keep alphabetic order

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    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Mike Stump - March 22, 2013, 10:16 p.m.
On Mar 21, 2013, at 7:08 AM, Sebastian Huber <sebastian.huber@embedded-brains.de> wrote:
> This patch should be applied to GCC 4.8 and 4.9.

Ok for trunk.
Ok for 4.8.1.  4.8.0 would require RM approval I think.
Mike Stump - March 22, 2013, 11 p.m.
On Mar 21, 2013, at 7:08 AM, Sebastian Huber <sebastian.huber@embedded-brains.de> wrote:
> This patch should be applied to GCC 4.8 and 4.9.

Ok for trunk.
Ok for 4.8.1.  4.8.0 would require RM approval I think.

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..d157fe3 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
@@ -43,7 +43,8 @@  if [istarget "powerpc-*-darwin*"] {
 }
 if { [istarget *-*-eabi*]
      || [istarget *-*-elf]
-     || [istarget *-*-mingw*] } {
+     || [istarget *-*-mingw*]
+     || [istarget *-*-rtems*] } {
    lappend additional_flags "-Wl,--allow-multiple-definition"
 }