public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/105270] New: gcc hangs with error "symbol definition loop encountered"
@ 2022-04-14  4:10 zhenyang.xu at uwaterloo dot ca
  2022-04-14  5:40 ` [Bug c/105270] " pinskia at gcc dot gnu.org
  2022-04-19 13:56 ` marxin at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: zhenyang.xu at uwaterloo dot ca @ 2022-04-14  4:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105270
           Summary: gcc hangs with error "symbol definition loop
                    encountered"
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhenyang.xu at uwaterloo dot ca
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/home/xuzhy/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.X0iCNYeprY-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/home/xuzhy/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.1 20220414 (experimental) [master -g8369b4e4c] (GCC)

$ cat test.c
a() { asm("); b = b if 0 return 1 if (b.get_type<b"); }

$ timeout -s 9 30 gcc-trunk -O3 -g -Wall -Wextra -c test.c
test.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | a() { asm("); b = b if 0 return 1 if (b.get_type<b"); }
      | ^
test.c: In function 'a':
test.c:1:55: warning: control reaches end of non-void function [-Wreturn-type]
    1 | a() { asm("); b = b if 0 return 1 if (b.get_type<b"); }
      |                                                       ^
test.c: Assembler messages:
test.c:1: Error: junk at end of line, first unrecognized character is `)'
test.c:1: Error: junk at end of line, first unrecognized character is `i'
/tmp/cckMRd5s.s: Error: symbol definition loop encountered at `b'
[1]    194170 killed     timeout -s 9 30 gcc-trunk -O3 -g -Wall -Wextra -c
test.c

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

* [Bug c/105270] gcc hangs with error "symbol definition loop encountered"
  2022-04-14  4:10 [Bug c/105270] New: gcc hangs with error "symbol definition loop encountered" zhenyang.xu at uwaterloo dot ca
@ 2022-04-14  5:40 ` pinskia at gcc dot gnu.org
  2022-04-19 13:56 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-04-14  5:40 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |MOVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Please report this to binutils (http://sourceware.org/bugzilla/) since it is
the assembler which is causing the issue rather than GCC.

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

* [Bug c/105270] gcc hangs with error "symbol definition loop encountered"
  2022-04-14  4:10 [Bug c/105270] New: gcc hangs with error "symbol definition loop encountered" zhenyang.xu at uwaterloo dot ca
  2022-04-14  5:40 ` [Bug c/105270] " pinskia at gcc dot gnu.org
@ 2022-04-19 13:56 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-04-19 13:56 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Can't reproduce that with:

as --version
GNU assembler (GNU Binutils; openSUSE Tumbleweed) 2.38.20220411-4

What version of binutils do you use?

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

end of thread, other threads:[~2022-04-19 13:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-14  4:10 [Bug c/105270] New: gcc hangs with error "symbol definition loop encountered" zhenyang.xu at uwaterloo dot ca
2022-04-14  5:40 ` [Bug c/105270] " pinskia at gcc dot gnu.org
2022-04-19 13:56 ` marxin at gcc dot gnu.org

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).