Bugreport: Segmentation fault

Volker Weißmann <[email protected]> Thu, 30 Jun 2022 19:25:05 +0200
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
I'm not sure if this is a bug in GCC or in as.

$ gcc -g -c bug.S --save-temps
bug.s: Assembler messages:
bug.s: Internal error (Segmentation fault).
Please report this bug.

$ as -g -c bug.S

$ cat bug.s
# 0 "bug.S"
# 1 "/home/volker/Documents/bug//"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "bug.S"
.text
.globl square_unsigned

.type square_unsigned,@function


square_unsigned:
 =C2=A0imull %edi, %edi
 =C2=A0movl %edi, %eax
 =C2=A0retq

$ gcc -v
Using built-in specs.
COLLECT_GCC=3Dgcc
COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure
=2D-enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++
=2D-enable-bootstrap --prefix=3D/usr --libdir=3D/usr/lib --libexecdir=3D/u=
sr/lib
=2D-mandir=3D/usr/share/man --infodir=3D/usr/share/info
=2D-with-bugurl=3Dhttps://bugs.archlinux.org/ --with-linker-hash-style=3Dg=
nu
=2D-with-system-zlib --enable-__cxa_atexit --enable-cet=3Dauto
=2D-enable-checking=3Drelease --enable-clocale=3Dgnu --enable-default-pie
=2D-enable-default-ssp --enable-gnu-indirect-function
=2D-enable-gnu-unique-object --enable-linker-build-id --enable-lto
=2D-enable-multilib --enable-plugin --enable-shared --enable-threads=3Dpos=
ix
=2D-disable-libssp --disable-libstdcxx-pch --disable-werror
=2D-with-build-config=3Dbootstrap-lto --enable-link-serialization=3D1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.1.0 (GCC)

$ as --version =C2=A0=EE=82=B2=C2=A0SIGINT
GNU assembler (GNU Binutils) 2.34.50.20200328
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-pc-linux-gnu'.

$ uname -a
Linux battle 5.18.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 22 Jun 2022
18:10:56 +0000 x86_64 GNU/Linux

I'm on Arch Linux.