public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/114968] New: missing `__thiscall` attribute on builtin declaration of `__cxa_thread_atexit()`
@ 2024-05-07  9:52 lh_mouse at 126 dot com
  2024-05-07  9:54 ` [Bug target/114968] " lh_mouse at 126 dot com
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: lh_mouse at 126 dot com @ 2024-05-07  9:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114968
           Summary: missing `__thiscall` attribute on builtin declaration
                    of `__cxa_thread_atexit()`
           Product: gcc
           Version: 14.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lh_mouse at 126 dot com
  Target Milestone: ---

The builtin declaration lacks a `__thiscall` attribute on its first argument
(the callback) and conflicts with the libstdc++ declaration.

This issue has been introduced in eaeaad3fcac4d7a30b5a256410cb59fa1a3fa9dd.

This error is observed when building boost 1.48.

```
gcc.compile.c++
bin.v2\libs\stacktrace\build\gcc-14\release\pch-off\threadapi-win32\threading-multi\visibility-hidden\windbg_cached.o
<built-in>: error: conflicting declaration of C function 'int
__cxxabiv1::__cxa_thread_atexit(void (*)(), void*, void*)'
In file included from ./boost/core/demangle.hpp:32,
                 from ./boost/stacktrace/detail/frame_msvc.ipp:17,
                 from libs/stacktrace/build/../src/windbg_cached.cpp:10:
C:/msys64/mingw32/include/c++/14.0.1/cxxabi.h:140:3: note: previous declaration
'int __cxxabiv1::__cxa_thread_atexit(void (__attribute__((thiscall)) *)(void*),
void*, void*)'
  140 |   __cxa_thread_atexit(void (_GLIBCXX_CDTOR_CALLABI *)(void*), void*,
void *) _GLIBCXX_NOTHROW;
```

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

end of thread, other threads:[~2024-05-10  9:15 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-07  9:52 [Bug target/114968] New: missing `__thiscall` attribute on builtin declaration of `__cxa_thread_atexit()` lh_mouse at 126 dot com
2024-05-07  9:54 ` [Bug target/114968] " lh_mouse at 126 dot com
2024-05-07 11:26 ` [Bug target/114968] [14/15 Regression] " rguenth at gcc dot gnu.org
2024-05-07 12:43 ` jakub at gcc dot gnu.org
2024-05-07 12:45 ` jakub at gcc dot gnu.org
2024-05-07 12:53 ` lh_mouse at 126 dot com
2024-05-07 12:56 ` lh_mouse at 126 dot com
2024-05-07 15:14 ` lh_mouse at 126 dot com
2024-05-07 15:38 ` jakub at gcc dot gnu.org
2024-05-07 19:21 ` jakub at gcc dot gnu.org
2024-05-08  1:23 ` lh_mouse at 126 dot com
2024-05-08  6:32 ` lh_mouse at 126 dot com
2024-05-08  6:55 ` lh_mouse at 126 dot com
2024-05-08  7:37 ` lh_mouse at 126 dot com
2024-05-08  8:10 ` lh_mouse at 126 dot com
2024-05-08  8:22 ` lh_mouse at 126 dot com
2024-05-08  9:18 ` lh_mouse at 126 dot com
2024-05-08 10:02 ` jakub at gcc dot gnu.org
2024-05-08 10:12 ` jakub at gcc dot gnu.org
2024-05-08 10:56 ` lh_mouse at 126 dot com
2024-05-08 15:39 ` lh_mouse at 126 dot com
2024-05-08 15:43 ` jakub at gcc dot gnu.org
2024-05-10  7:23 ` cvs-commit at gcc dot gnu.org
2024-05-10  7:28 ` jakub at gcc dot gnu.org
2024-05-10  7:41 ` lh_mouse at 126 dot com
2024-05-10  8:17 ` lh_mouse at 126 dot com
2024-05-10  9:08 ` cvs-commit at gcc dot gnu.org
2024-05-10  9:14 ` jakub at gcc dot gnu.org
2024-05-10  9:15 ` lh_mouse at 126 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).