[Bug lto/86442] Wrong error: global register variable follows a function definition when using LTO

2021-12-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86442 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug lto/86442] Wrong error: global register variable follows a function definition when using LTO

2018-07-09 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86442 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org ---

[Bug lto/86442] Wrong error: global register variable follows a function definition when using LTO

2018-07-09 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86442 --- Comment #1 from Jan Hubicka --- > Following wrong error is printed with LTO: > > $ cat global.cpp > register int a __asm__("r12"); > > class b { > public: > b(); > }; > > b c; > > int main() { a = 3; } > > $ g++ global.cpp -O2 -flto