public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "andrey.vihrov at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug inline-asm/101438] Compiler hang on inline asm with local register and VLA operands
Date: Wed, 14 Jul 2021 19:11:10 +0000	[thread overview]
Message-ID: <bug-101438-4-AZJCKQ8oSh@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101438-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from Andrey Vihrov <andrey.vihrov at gmail dot com> ---
Created attachment 51152
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51152&action=edit
Alternative testcase using __builtin_alloca()

Thanks.

This code is the result of minimization. It seems that it is sufficient to make
inline asm depend on arr in any form.

"m"(arr[0]) (and initializing the array element) reproduces the issue as well.

I've also attached a similar testcase that compiles and runs at -O0, but hangs
the compiler at -O1 (and which likewise references the pointer itself with
"m").

  parent reply	other threads:[~2021-07-14 19:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13 14:36 [Bug inline-asm/101438] New: " andrey.vihrov at gmail dot com
2021-07-14  6:07 ` [Bug inline-asm/101438] " rguenth at gcc dot gnu.org
2021-07-14 18:26 ` pinskia at gcc dot gnu.org
2021-07-14 19:11 ` andrey.vihrov at gmail dot com [this message]
2022-07-30 11:26 ` [Bug target/101438] Compiler hang on inline asm with local register and alloca andrey.vihrov at gmail dot com
2022-08-02  6:18 ` andrey.vihrov at gmail dot com

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-101438-4-AZJCKQ8oSh@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: link
Be 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).