Bug 52259 - All tm tests fail on targets without pthread support
Summary: All tm tests fail on targets without pthread support
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.7.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 12:12 UTC by Greta Yorsh
Modified: 2012-02-15 14:10 UTC (History)
1 user (show)

See Also:
Host:
Target: arm-none-eabi
Build:
Known to work:
Known to fail:
Last reconfirmed: 2012-02-15 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greta Yorsh 2012-02-15 12:12:29 UTC
All tm tests fail on arm-none-eabi, for example:

/work/builds/a9-feb15/arm-none-eabi/gcc2/gcc/xgcc -B/work/builds/a9-feb15/arm-none-eabi/gcc2/gcc/ /work/local-checkouts/gcc-fsf/gcc/testsuite/c-c++-common/tm/20100127.c    -fgnu-tm -O -fdump-tree-tmmark -DSTACK_SIZE=16384 -S    -o 20100127.s    (timeout = 60)
xgcc: error: unrecognized command line option '-pthread'
compiler exited with status 1

Caused by trunk r184174, which added -pthread to the command line of all tm tests without checking that the target supports pthread:
http://gcc.gnu.org/ml/gcc-patches/2012-02/msg00558.html
Comment 1 Eric Botcazou 2012-02-15 13:38:35 UTC
> Caused by trunk r184174, which added -pthread to the command line of all tm
> tests without checking that the target supports pthread:
> http://gcc.gnu.org/ml/gcc-patches/2012-02/msg00558.html

Please read the patch, it incorporates a method to address this issue.  Does
arm-none-eabi really support -fgnu-tm?  If no, then the problem might already have been fixed by http://gcc.gnu.org/ml/gcc-cvs/2012-02/msg00458.html
Comment 2 Greta Yorsh 2012-02-15 14:10:40 UTC
You are right, the problem has been fixed by r184237.

Thank you,
Greta