public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/113336] New: libatomic (testsuite) regressions on armv6-linux-gnueabihf
@ 2024-01-11 15:42 roger at nextmovesoftware dot com
  2024-01-14 12:15 ` [Bug other/113336] " roger at nextmovesoftware dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: roger at nextmovesoftware dot com @ 2024-01-11 15:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113336
           Summary: libatomic (testsuite) regressions on
                    armv6-linux-gnueabihf
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roger at nextmovesoftware dot com
  Target Milestone: ---

As suggested by Richard Earnshaw, this opens a bugzilla PR for tracking this
issue.  All the tests in libatomic currently fail on a raspberry pi running
raspbian, but passed back in December 2020.
https://gcc.gnu.org/pipermail/gcc-patches/2024-January/642168.html

The regression (which isn't really a regression) was caused by:
2023-09-26  Hans-Peter Nilsson  <hp@axis.com>

        PR target/107567
        PR target/109166
        * builtins.cc (expand_builtin) <case BUILT_IN_ATOMIC_TEST_AND_SET>:
        Handle failure from expand_builtin_atomic_test_and_set.
        * optabs.cc (expand_atomic_test_and_set): When all attempts fail to
        generate atomic code through target support, return NULL
        instead of emitting non-atomic code.  Also, for code handling
        targetm.atomic_test_and_set_trueval != 1, gcc_assert result
        from calling emit_store_flag_force instead of returning NULL.


Prior to this, when -fno-sync-libcalls was specified on the command line, the
__atomic_test_and_set built-in simply expanded to a non-atomic code sequence,
which then passed libatomic's configure tests for HAVE_ATOMIC_TAS.  Now that
this hole/bug/correctness issue has been fixed, and HAVE_ATOMIC_TAS is now
detected as false, the libatomics's tas_n.c can no longer implement tas_8_2_.o
without (a missing helper function) tas_1_2_.o.

Hence libatomic has (always?) been broken on armv6, but synchronization
primitives can now be supported with the above change. We've just not noticed
that necessary pieces of the runtime were missing, until the above correctness
fix resulted in a link error.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-02-17 16:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-11 15:42 [Bug other/113336] New: libatomic (testsuite) regressions on armv6-linux-gnueabihf roger at nextmovesoftware dot com
2024-01-14 12:15 ` [Bug other/113336] " roger at nextmovesoftware dot com
2024-01-21 16:40 ` hp at gcc dot gnu.org
2024-01-25 17:09 ` victor.donascimento at arm dot com
2024-01-25 18:18 ` [Bug other/113336] libatomic (testsuite) regressions on arm roger at nextmovesoftware dot com
2024-01-28 11:31 ` doko at gcc dot gnu.org
2024-01-28 11:32 ` [Bug other/113336] [14 Regression] " doko at gcc dot gnu.org
2024-01-28 16:29 ` roger at nextmovesoftware dot com
2024-02-14 19:12 ` cvs-commit at gcc dot gnu.org
2024-02-17 16:45 ` roger at nextmovesoftware dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).