[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-31 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #12 from Jonathan Wakely --- I suppose we can do this then: --- a/libstdc++-v3/testsuite/lib/dg-options.exp +++ b/libstdc++-v3/testsuite/lib/dg-options.exp @@ -296,7 +296,6 @@ proc add_options_for_libatomic { flags } { if {

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-31 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #11 from John Paul Adrian Glaubitz --- (In reply to Eric Botcazou from comment #10) > Applied on the mainline only since not appropriate for release branches. OK, thanks! I will ask Matthias for including the patch in gcc-11 on

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-31 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 Eric Botcazou changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #9 from CVS Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:23987912ddb4207de0714d81237f93f613557d1f commit r12-6938-g23987912ddb4207de0714d81237f93f613557d1f Author: Eric Botcazou Date:

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-30 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #8 from John Paul Adrian Glaubitz --- Any updates on this?

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-27 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #7 from John Paul Adrian Glaubitz --- FWIW, I also asked David Miller regarding the register preservation and here is his answer: > The full 64-bit registers of the out and global registers are saved at trap > time. > But only

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-26 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 Eric Botcazou changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-24 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #6 from John Paul Adrian Glaubitz --- (In reply to Eric Botcazou from comment #5) > > The function init_sparc64_elf_hwcap(void) [1] unconditionally enables it > > with: > > > > cap |= (AV_SPARC_MUL32 | AV_SPARC_DIV32 |

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-24 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #5 from Eric Botcazou --- > The function init_sparc64_elf_hwcap(void) [1] unconditionally enables it > with: > > cap |= (AV_SPARC_MUL32 | AV_SPARC_DIV32 | AV_SPARC_V8PLUS); > > So, I think it should be safe and enable V8+ on

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-24 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #4 from John Paul Adrian Glaubitz --- (In reply to John Paul Adrian Glaubitz from comment #3) > I think that should be the case given that the 32-bit SPARC port in Debian > has been based on the SPARCV8+ baseline since 2007 [1]. >

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-24 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 Richard Biener changed: What|Removed |Added Target Milestone|12.0|---

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-23 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #3 from John Paul Adrian Glaubitz --- (In reply to Eric Botcazou from comment #2) > Created attachment 52272 [details] > Tentative fix Thanks a lot for the quick fix. > This requires that the kernel preserves the full 64-bit

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-23 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 --- Comment #2 from Eric Botcazou --- Created attachment 52272 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52272=edit Tentative fix This requires that the kernel preserves the full 64-bit registers even in 32-bit mode, like on

[Bug target/104189] enable 64-bit compare-and-swap on SPARC/Linux with V9

2022-01-23 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104189 Eric Botcazou changed: What|Removed |Added Target Milestone|--- |12.0 Ever confirmed|0