public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "me at larbob dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/102210] New: Invalid assembly generated while building OpenSSH on hppa64-hp-hpux11.23
Date: Sun, 05 Sep 2021 22:32:56 +0000	[thread overview]
Message-ID: <bug-102210-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 102210
           Summary: Invalid assembly generated while building OpenSSH on
                    hppa64-hp-hpux11.23
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: me at larbob dot org
  Target Milestone: ---

Created attachment 51410
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51410&action=edit
bsd-closefrom.i from -save-temps

I am running GCC 11.1.0 on hppa64-hp-hpux11.23. 

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/util/gcc64/gcc-11.1.0/libexec/gcc/hppa64-hp-hpux11.23/11.1.0/lto-wrapper
Target: hppa64-hp-hpux11.23
Configured with: ../../sources/gcc-11.1.0/configure
--prefix=/usr/util/gcc64/gcc-11.1.0 --disable-nls --disable-libgomp
--enable-languages=c,c++ --with-gmp=/usr/util/gcc64/gmp-6.1.0
--with-mpfr=/usr/util/gcc64/mpfr-3.1.6 --with-mpc=/usr/util/gcc64/mpc-1.0.3
--without-gnu-ld --with-gnu-as --with-as=/usr/util/gcc64/binutils-2.25/bin/as
CONFIG_SHELL=/usr/util/bin/bash AWK=/usr/util/bin/awk SED=/usr/util/bin/sed
CC=/usr/util/gcc64/gcc-7.2.0/bin/gcc CXX=/usr/util/gcc64/gcc-7.2.0/bin/g++
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.1.0 (GCC)

While building OpenSSH 8.7p1 (or older versions, tested some 7.x versions):
gcc -g -O2 -pipe -Wno-error=format-truncation -Wall -Wextra -Wpointer-arith
-Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess
-Wno-pointer-sign -Wno-unused-parameter -Wno-unused-result
-Wimplicit-fallthrough -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv
-fno-builtin-memset   -fPIC -I. -I.. -I. -I./.. -I/usr/util/openssl/include
-I/usr/util/include  -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
-DHAVE_CONFIG_H -c bsd-closefrom.c
{standard input}: Assembler messages:
{standard input}:79: Error: Invalid Add Condition: tsv
{standard input}:79: Error: Invalid operands
make[1]: *** [Makefile:104: bsd-closefrom.o] Error 1

This only seems to happen when GCC is compiled for the hppa64-hp-hpux11.*
target, not hppa2.0w-hp-hpux11.* or other 32-bit PA-RISC targets. I have tested
this with a much different version of binutils (2.25 vs. 2.37) and have run
into the same issue. Furthermore, I've also tested with GCC 4.7.1 and run into
the same issue.

                 reply	other threads:[~2021-09-05 22:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-102210-4@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).