On Tue, Aug 6, 2013 at 2:20 AM, Uros Bizjak <ubiz...@gmail.com> wrote:
>
> Patch [1] or [2] introduce following warning on alpha:
>
> /space/uros/gcc-build/gcc/testsuite/go2/../../gccgo
> -B/space/uros/gcc-build/gcc/testsuite/go2/../../
> /home/uros/gcc-svn/trunk/gcc/testsuite/go.test/test/cmplxdivide.go
> /home/uros/gcc-svn/trunk/gcc/testsuite/go.test/test/cmplxdivide1.go
> -fno-diagnostics-show-caret -fdiagnostics-color=never
> -I/space/uros/gcc-build/alphaev68-unknown-linux-gnu/./libgo
> -pedantic-errors
> -L/space/uros/gcc-build/alphaev68-unknown-linux-gnu/./libgo
> -L/space/uros/gcc-build/alphaev68-unknown-linux-gnu/./libgo/.libs  -lm
>   -o ./cmplxdivide.o
>
> cmplxdivide.s: Assembler messages:
> cmplxdivide.s:357: Warning: setting incorrect section attributes for
> .rodata.__go_tdn_main.Test
> cmplxdivide.o: file not recognized: File truncated
> collect2: error: ld returned 1 exit status
>
> The warning can be fixed If I manually change section attribute of the
> above mentioned section from "aw" to "a" in the attached source.
>
> [1] http://gcc.gnu.org/ml/gcc-patches/2013-08/msg00103.html
> [2] http://gcc.gnu.org/ml/gcc-patches/2013-08/msg00099.html


I committed this patch that I think should fix this problem.
Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline and 4.8 branch.

Ian


2013-08-06  Ian Lance Taylor  <i...@google.com>

        * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
        compute_reloc_for_constant.

Attachment: foo.patch
Description: Binary data

Reply via email to