Paolo Carlini schrieb: > Matthias Klose wrote: >> Paolo Carlini schrieb: >> >>> Paolo Carlini wrote: >>> >>>> Ok, thanks. Then, I think I'll implement this, for now. Seems in any >>>> case conservative to have a link type test identical to the one used in >>>> libgomp and libgfortran and a fall back to the .s file (as currently used). >>>> >>>> >>> I committed the below to mainline. Assuming no issues are noticed with >>> it, I mean to apply it to 4_4-branch too in a few days. >>> >> with this patch applied to the 4.4 branch, the tests now succeed as expected >> on >> the 4_4-branch on {armeabi,hppa,sparc}-linux. >> > Good. I have now backported the patch to 4_4-branch too. Please double > check that the regression tests are also fine, thanks in advance.
Jakub pointed out on irc that sparc-linux (32bit, v8) doesn't have the atomic support functions. Building a 32bit v9 compiler as part of a biarch build is currently not supported (64bit and v9 are tightly coupled). No regressions on hppa-linux. On arm-linux-gnueabi there are regressions of the form /usr/bin/ld: ./atomic-1.exe: hidden symbol `__sync_val_compare_and_swap_4' in /home/doko/gcc/4.4/gcc-4.4-4.4.0/build/gcc/libgcc.a(linux-atomic.o) is referenced by DSO /usr/bin/ld: final link failed: Nonrepresentable section on output in the libgomp, libstdc++ and g++ testsuites. Linking the shared libstdc++ with both -lgcc_s and -lgcc does fix these (testsuites currently running), however I'm not sure how to do this properly, as libtool removes any `-lgcc' argument. Matthias