public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tanksherman27 at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105576] x86: Support a machine constraint to get raw symbol name Date: Thu, 07 Dec 2023 02:49:36 +0000 [thread overview] Message-ID: <bug-105576-4-cb67h9ySJC@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-105576-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576 Julian Waters <tanksherman27 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tanksherman27 at gmail dot com --- Comment #7 from Julian Waters <tanksherman27 at gmail dot com> --- Strangely, the following works if compiled with optimizations enabled, -O1 and above, but not with -O0, when optimizations are disabled [[gnu::extended(; [dispatcher] "i" (static_cast<void (*) () noexcept>([] () noexcept -> void {})); ; start)]] asm (R"( .endif .rva %l[start], 1f, %c[dispatcher], 2f .seh_code )"); With -O0 the error is exceptions.cpp: In function 'void exceptions()': exceptions.cpp:59:5: warning: 'asm' operand 0 probably does not match constraints 59 | asm (R"( | ^~~ exceptions.cpp:59:5: error: impossible constraint in 'asm' With -O1 and above, %c[dispatcher] yields: .rva .L2, 1f, _ZZL10exceptionsvENUlPVK19_EXCEPTION_POINTERSPVKvE0_4_FUNES1_S3_, 2f
next prev parent reply other threads:[~2023-12-07 2:49 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-12 5:30 [Bug c/105576] New: " i at maskray dot me 2022-05-12 6:00 ` [Bug target/105576] " pinskia at gcc dot gnu.org 2022-05-12 6:00 ` pinskia at gcc dot gnu.org 2022-05-12 6:03 ` pinskia at gcc dot gnu.org 2022-05-12 6:36 ` crazylht at gmail dot com 2022-05-13 17:08 ` i at maskray dot me 2023-05-05 4:53 ` i at maskray dot me 2023-12-07 2:49 ` tanksherman27 at gmail dot com [this message] 2024-01-11 4:00 ` i at maskray dot me 2024-01-30 23:05 ` pinskia at gcc dot gnu.org 2024-01-30 23:21 ` cvs-commit at gcc dot gnu.org 2024-01-30 23:56 ` i at maskray dot me 2024-01-31 0:15 ` pinskia at gcc dot gnu.org 2024-05-21 16:48 ` pinskia at gcc dot gnu.org 2024-05-28 5:29 ` i at maskray dot me
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-105576-4-cb67h9ySJC@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).