On Fri, Mar 04, 2016 at 04:27:11PM +0100, Martin Jambor wrote: > > Ah, ok; what about adding > > # Disable HSA warnings by default. > > lappend ALWAYS_CFLAGS "additional_flags=-Wno-hsa" > > in libgomp/testsuite/lib/libgomp.exp (next to e.g. > > -fno-diagnostics-show-caret)? > > > > That works nicely (though I have to override it explicitely in the > libgomp.hsa.c directory with another -Whsa, but I guess we can live > with that). So I will use the above for the libgomp case.
Ok. > I have tried to come up with a similar alternative for > gcc.dg/gomp/gomp.exp, g++.dg/gomp/gomp.exp and gfortran/gomp/gomp.exp > but so far I have not achieved to make the C++ and Fortran cases work > in any other way but pass -Wno-hsa in FLAGS (and thus change the > name). For C, adding the following before the main loop works, even > though it looks too much like a hack to me: > > global TEST_ALWAYS_FLAGS > set TEST_ALWAYS_FLAGS [concat $TEST_ALWAYS_FLAGS "-Wno-hsa"] Doesn't this also cause the -Wno-hsa option on all further tests executed by other *.exp after gomp.exp by the same runtest invocation? > However, the C++ and Fortran cases use gfortran-dg-runtest to cycle > through a set of torture options and I have not yet discovered the > right magic variable to set (for example, adding -Wno-hsa to > DG_TORTURE_OPTIONS elements does not work). > > I'm afraid I have spent way too much time on this already, so unless > someone has any ideas, I'd suggest that we use the (already approved) > name-changing gomp patch as it is. Or at least for C++ and Fortran. Do you have URL for what you refer to? Jakub