+2015-10-07 James Norris <jnorris@codesourcery.com>
+
+ * testsuite/lib/atomic-dg.exp (atomic_link_flags): Move flag setting
+ to atomic_init. (atomic_init): Restrict flags usage.
+
2015-10-07 Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/65889
set_ld_library_path_env_vars
- append flags " -latomic "
return "$flags"
}
global ALWAYS_CXXFLAGS
global TOOL_OPTIONS
global atomic_saved_TEST_ALWAYS_FLAGS
+ global atomic_saved_ALWAYS_CXXFLAGS
set link_flags ""
if ![is_remote host] {
}
}
+ append link_flags " -latomic "
+
if [info exists TEST_ALWAYS_FLAGS] {
set atomic_saved_TEST_ALWAYS_FLAGS $TEST_ALWAYS_FLAGS
}
if [info exists ALWAYS_CXXFLAGS] {
+ set atomic_saved_ALWAYS_CXXFLAGS $ALWAYS_CXXFLAGS
set ALWAYS_CXXFLAGS [concat "{ldflags=$link_flags}" $ALWAYS_CXXFLAGS]
} else {
if [info exists TEST_ALWAYS_FLAGS] {
proc atomic_finish { args } {
global TEST_ALWAYS_FLAGS
global atomic_saved_TEST_ALWAYS_FLAGS
+ global atomic_saved_ALWAYS_CXXFLAGS
- if [info exists atomic_saved_TEST_ALWAYS_FLAGS] {
- set TEST_ALWAYS_FLAGS $atomic_saved_TEST_ALWAYS_FLAGS
+ if [info exists atomic_saved_ALWAYS_CXXFLAGS] {
+ set ALWAYS_CXXFLAGS $atomic_saved_ALWAYS_CXXFLAGS
} else {
- unset TEST_ALWAYS_FLAGS
+ if [info exists atomic_saved_TEST_ALWAYS_FLAGS] {
+ set TEST_ALWAYS_FLAGS $atomic_saved_TEST_ALWAYS_FLAGS
+ } else {
+ unset TEST_ALWAYS_FLAGS
+ }
}
clear_effective_target_cache
}