------- Comment #1 from hp at gcc dot gnu dot org  2008-01-16 23:04 -------
The .logs show that the failing tests error with:
xgcc: unrecognized option '-pthread'

That's because cris-elf does not support pthreads (being a bare-iron/simulator
target).

The bug is due to spop's patch below; it shouldn't require pthread support. 
Alternatively, the tests should be adjusted to require pthread support.
(Adjusting cc-list as the fault is now localized.)

Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c   (revision 131573)
+++ gcc/gcc.c   (revision 131577)
@@ -721,7 +721,7 @@ proper position among the other output f
     %(linker) %l " LINK_PIE_SPEC "%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n}
%{r}\
     %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\
     %{static:} %{L*} %(mfwrap) %(link_libgcc) %o\
-    %{fopenmp:%:include(libgomp.spec)%(link_gomp)} %(mflib)\
+    %{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)}
%(mflib)\
     %{fprofile-arcs|fprofile-generate|coverage:-lgcov}\
     %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}\
     %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}"
@@ -870,7 +870,7 @@ static const char *const multilib_defaul
 /* Adding -fopenmp should imply pthreads.  This is particularly important
    for targets that use different start files and suchlike.  */
 #ifndef GOMP_SELF_SPECS
-#define GOMP_SELF_SPECS "%{fopenmp: -pthread}"
+#define GOMP_SELF_SPECS "%{fopenmp|ftree-parallelize-loops=*: -pthread}"
 #endif

 static const char *const driver_self_specs[] = {


-- 

hp at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|hubicka at gcc dot gnu dot  |
                   |org                         |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-16 23:04:18
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34821

Reply via email to