[Bug tree-optimization/54494] [4.7/4.8 Regression] Missing store to volatile

2012-09-05 Thread r...@linux-mips.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54494

Ralf Baechle  changed:

   What|Removed |Added

 CC||r...@linux-mips.org

--- Comment #3 from Ralf Baechle  2012-09-05 20:06:47 UTC 
---
I've tested your proposed fix with the kernel configuration that I extracted
the test case from and I'm happy to report that the patch is working for me.


[Bug middle-end/56548] [4.8 Regression] ICE in emit_move_insn, at expr.c:3486 with -march=pentium{pro,2,3} -O3

2013-05-16 Thread r...@linux-mips.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56548

Ralf Baechle  changed:

   What|Removed |Added

 CC||r...@linux-mips.org

--- Comment #8 from Ralf Baechle  ---
FWIW, I'm also hitting the same compiler bug with vanilla GCC 4.7.2 and 4.8.0
compiling a heavily patched 3.4 kernel with LTO for a mips64-linux target.

The error messages for gcc 4.7.2:

  LDFINAL  .tmp_vmlinux1
In file included from include/net/sock.h:2119:0,
 from net/sunrpc/svcsock.c:1041,
 from :3662:
net/sunrpc/svcsock.c: In function ‘svc_tcp_recvfrom’:
net/sunrpc/svcsock.c:935:37: internal compiler error: in emit_move_insn, at
expr.c:3435
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [/tmp/ccaNAG6q.ltrans1.ltrans.o] Error 1
make[1]: *** Waiting for unfinished jobs
lto1: internal compiler error: in output_constructor_regular_field, at
varasm.c:4821
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [/tmp/ccaNAG6q.ltrans0.ltrans.o] Error 1
lto-wrapper: make returned 2 exit status
/usr/lib64/gcc/mips64-lto-linux/4.7.2/../../../../mips64-lto-linux/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [.tmp_vmlinux1] Error 1

The error messages for gcc 4.8.0:

  LDFINAL  .tmp_vmlinux1
net/sunrpc/svcsock.c: In function ‘svc_tcp_recvfrom’:
net/sunrpc/svcsock.c:1104:0: internal compiler error: in emit_move_insn, at
expr.c:3486
 static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [/tmp/ccehFRUG.ltrans0.ltrans.o] Error 1
make[1]: *** Waiting for unfinished jobs
net/unix/garbage.c: In function ‘scan_inflight’:
net/unix/garbage.c:156:13: internal compiler error: in copy_to_mode_reg, at
explow.c:641
 static void scan_inflight(struct sock *x, void (*func)(struct unix_sock *),
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [/tmp/ccehFRUG.ltrans1.ltrans.o] Error 1
lto-wrapper: make returned 2 exit status
/usr/lib64/gcc/mips64-lto-linux/4.8.0/../../../../mips64-lto-linux/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [.tmp_vmlinux1] Error 1

I'm still working under the assumption that the builds are attempting to do
something stupid but even if so, an ICE is not the proper way to bail out.

[Bug middle-end/56548] [4.8 Regression] ICE in emit_move_insn, at expr.c:3486 with -march=pentium{pro,2,3} -O3

2013-05-16 Thread r...@linux-mips.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56548

--- Comment #10 from Ralf Baechle  ---
As I'm hitting this with LTO on a large test case it's non-trivial to extract a
test case but I will try.