This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/61192] Conflict between register and function name for lto on sparc
- From: "cederman at gaisler dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Oct 2014 14:39:25 +0000
- Subject: [Bug lto/61192] Conflict between register and function name for lto on sparc
- Auto-submitted: auto-generated
- References: <bug-61192-4 at http dot gcc dot gnu dot org/bugzilla/>
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.