https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61192

--- Comment #3 from Daniel Cederman <cederman at gaisler dot com> ---
(In reply to Ilya Palachev from comment #2)
> (In reply to Daniel Cederman from comment #0)
> > when using lto on sparc.
> 
> Daniel, can you also provide original source code (not preprocessed)? It's
> interesting whether this error can be reproduced on other arhictectures.

I used creduce on the source code and this code triggers the error:

register int _SPARC_Per_CPU_current __asm__("g6");
int __getreent___trans_tmp_1;

__getreent() {
  int cpu_self = _SPARC_Per_CPU_current;
  __getreent___trans_tmp_1 = cpu_self;
}

g6() {}

I compiled with the same compiler as before, I have not tried with a newer
version of gcc.

Reply via email to