Re: [RFA:] Fix test-suite regressions from PR62250 due to -latomic always added

2015-01-08 Thread Mike Stump
On Jan 7, 2015, at 6:32 PM, Hans-Peter Nilsson wrote: > PR62250 (r219171) was about some fortran tests that used atomic > operations but failing on systems where -latomic is required. > The fix was to always add -latomic. That caused test-suite > regressions for targets that don't have libatomic

Re: [RFA:] Fix test-suite regressions from PR62250 due to -latomic always added

2015-01-08 Thread John David Anglin
On 2015-01-07, at 9:32 PM, Hans-Peter Nilsson wrote: > gcc/testsuite: > PR testsuite/62250 > * lib/target-supports.exp (check_effective_target_libatomic_available): > New. > * gfortran.dg/coarray/caf.exp: Only add -latomic for > targets that match effective-target lib

[RFA:] Fix test-suite regressions from PR62250 due to -latomic always added

2015-01-07 Thread Hans-Peter Nilsson
PR62250 (r219171) was about some fortran tests that used atomic operations but failing on systems where -latomic is required. The fix was to always add -latomic. That caused test-suite regressions for targets that don't have libatomic, but where the required operations are built-in (no separate PR