Re: [committed] Fix ICE in gen_reg_rtx, at emit-rtl.c:864/865 compiling GNU MPFR

2013-01-03 Thread John David Anglin
Committed the attached change to trunk and 4.7 after testing on hppa- unknown-linux-gnu. Working on a revised change for 4.6. I don't think symbol + constant can occur but I'm not absolutely sure. On 2-Jan-13, at 8:12 AM, Richard Sandiford wrote: In any case, reload needs to know up-front tha

Re: [committed] Fix ICE in gen_reg_rtx, at emit-rtl.c:864/865 compiling GNU MPFR

2013-01-03 Thread Richard Sandiford
David Edelsohn writes: > The testcase should have included dg-add-options tls. committed as obvious. Thanks. I also removed the main point of the test in a final "tweak". Also committed as obvious after testing on mips64-linux-gnu. Richard gcc/testsuite/ * gcc.dg/torture/tls/tls-reloa

Re: [committed] Fix ICE in gen_reg_rtx, at emit-rtl.c:864/865 compiling GNU MPFR

2013-01-03 Thread David Edelsohn
The testcase should have included dg-add-options tls. committed as obvious. Index: tls-reload-1.c === --- tls-reload-1.c (revision 194830) +++ tls-reload-1.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-requ

Re: [committed] Fix ICE in gen_reg_rtx, at emit-rtl.c:864/865 compiling GNU MPFR

2013-01-02 Thread Richard Sandiford
Richard Henderson writes: > On 01/02/2013 05:12 AM, Richard Sandiford wrote: >> * gcc.dg/torture/tls/tls-reload-1.c: New test. > > Ok. Thanks, committed. And sorry for not volunteering a patch for the x86 ICE, but I barely know the port... Richard

Re: [committed] Fix ICE in gen_reg_rtx, at emit-rtl.c:864/865 compiling GNU MPFR

2013-01-02 Thread Richard Henderson
On 01/02/2013 05:12 AM, Richard Sandiford wrote: > * gcc.dg/torture/tls/tls-reload-1.c: New test. Ok. r~

Re: [committed] Fix ICE in gen_reg_rtx, at emit-rtl.c:864/865 compiling GNU MPFR

2013-01-02 Thread Richard Sandiford
John David Anglin writes: > The attached change fixes PR target/5379. ICE occurs when reload tries > to emit a move instruction containing a TLS symbol reference as the source > operand. This requires several scratch registers. As a result, it isn't > possible for a reload pattern to handle thi

[committed] Fix ICE in gen_reg_rtx, at emit-rtl.c:864/865 compiling GNU MPFR

2012-12-26 Thread John David Anglin
The attached change fixes PR target/5379. ICE occurs when reload tries to emit a move instruction containing a TLS symbol reference as the source operand. This requires several scratch registers. As a result, it isn't possible for a reload pattern to handle this case. So, the best solution was