----- Am 29. Dez 2025 um 20:08 schrieb Jeffrey Law [email protected]: [...] > I think your change is missing a check somewhere. When I compile your > test I initially get "target does not support atomic profile update, > single mode is selected", but then it still does the atomic path. > Before your patch is just used the non-atomic updates. So it appears > something isn't quite right yet.
Yes, it seems the counter update mode selection was wrong for PROFILE_UPDATE_ATOMIC. There should be a dedicated warning if COUNTER_UPDATE_ATOMIC_PARTIAL is selected. Please have a look at this patch: https://gcc.gnu.org/pipermail/gcc-patches/2025-December/704607.html If the target doesn't support libatomic, then some atomic operations cannot be carried out. If at least 32-bit atomic operations are available, we can at least do the atomic increments and the bit field updates. This case is indicated by COUNTER_UPDATE_ATOMIC_PARTIAL. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: [email protected] phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/
