Module Name: src Committed By: tsutsui Date: Sun Jun 29 05:02:15 UTC 2014
Modified Files: src/external/gpl3/gcc/dist/libgcc/config/m68k: t-floatlib src/external/gpl3/gcc/lib/libgcc/arch/m68k: defs.mk Log Message: Pull the simliar workaround from gcc 4.5.4: http://mail-index.NetBSD.org/source-changes/2014/06/29/msg055885.html --- Tweak LIB1ASMFUNCS order to avoid linker warnings on libgcc_s build with -O2. Without this change, ld complains as the following: >> libgcc_s_pic.a(_float.pico):(.text+0x8): relocation truncated to fit: >> R_68K_PC16 against symbol `$_exception_handler' defined in .text section in >> libgcc_s_pic.a(_floatex.pico) _float.S and _double.S refer `$_exception_handler' declared in _floatex.S and linking the _floatex.S first seems to work around these warnings (probably caused by pic relative jump addresses). See port-m68k@ posts for more details: http://mail-index.NetBSD.org/port-m68k/2014/06/22/msg000488.html --- Note m68k/defs.mk is manually edited to avoid extra diffs. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/libgcc/config/m68k/t-floatlib cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/libgcc/arch/m68k/defs.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.