public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/110778] New: Alpha targets broken since r14-2587-gd8105b10fff951 (undefined reference to extended_count)
@ 2023-07-22 20:28 jamborm at gcc dot gnu.org
  2023-07-22 20:35 ` [Bug target/110778] [14 Regression] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jamborm at gcc dot gnu.org @ 2023-07-22 20:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110778
           Summary: Alpha targets broken since r14-2587-gd8105b10fff951
                    (undefined reference to extended_count)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamborm at gcc dot gnu.org
                CC: ubizjak at gmail dot com
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: alpha-linux-gnu

Since revision r14-2587-gd8105b10fff951 (combine: Change return type of
predicate functions from int to bool), very simple attempts to build a
cross-compiler for alpha targets fail.

I configure the compiler with:

  ../src/configure --target=alpha-linux-gnu --disable-bootstrap
--enable-languages=c,c++ --disable-multilib --enable-obsolete

and then run:

  make all-host CXXFLAGS="-O0 -g" CFLAGS="-O0 -g"

which fails with:

g++ -no-pie   -O0 -g   -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -no-pie -static-libstdc++
-static-libgcc  -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o
c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o
c/c-parser.o c/c-fold.o c/gimple-parser.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o
c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o
c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o
c-family/c-ada-spec.o c-family/c-ubsan.o c-family/known-headers.o
c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o glibc-c.o \
  cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -lisl -lmpc -lmpfr
-lgmp -rdynamic  -L./../zlib -lz -lzstd 
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
insn-emit.o: in function `gen_split_31(rtx_insn*, rtx_def**)':
/home/mjambor/gcc/mine/obj/gcc/../../src/gcc/config/alpha/alpha.md:2976:
undefined reference to `extended_count(rtx_def const*, machine_mode, int)'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
/home/mjambor/gcc/mine/obj/gcc/../../src/gcc/config/alpha/alpha.md:2977:
undefined reference to `extended_count(rtx_def const*, machine_mode, int)'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
insn-emit.o: in function `gen_split_32(rtx_insn*, rtx_def**)':
/home/mjambor/gcc/mine/obj/gcc/../../src/gcc/config/alpha/alpha.md:3022:
undefined reference to `extended_count(rtx_def const*, machine_mode, int)'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
/home/mjambor/gcc/mine/obj/gcc/../../src/gcc/config/alpha/alpha.md:3023:
undefined reference to `extended_count(rtx_def const*, machine_mode, int)'

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

* [Bug target/110778] [14 Regression] Alpha targets broken since r14-2587-gd8105b10fff951 (undefined reference to extended_count)
  2023-07-22 20:28 [Bug target/110778] New: Alpha targets broken since r14-2587-gd8105b10fff951 (undefined reference to extended_count) jamborm at gcc dot gnu.org
@ 2023-07-22 20:35 ` pinskia at gcc dot gnu.org
  2023-07-22 20:54 ` cvs-commit at gcc dot gnu.org
  2023-07-22 20:54 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-22 20:35 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
            Summary|Alpha targets broken since  |[14 Regression] Alpha
                   |r14-2587-gd8105b10fff951    |targets broken since
                   |(undefined reference to     |r14-2587-gd8105b10fff951
                   |extended_count)             |(undefined reference to
                   |                            |extended_count)
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot gnu.org
   Last reconfirmed|                            |2023-07-22
   Target Milestone|---                         |14.0

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I have the simple/obvious fix to rtl.h.

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

* [Bug target/110778] [14 Regression] Alpha targets broken since r14-2587-gd8105b10fff951 (undefined reference to extended_count)
  2023-07-22 20:28 [Bug target/110778] New: Alpha targets broken since r14-2587-gd8105b10fff951 (undefined reference to extended_count) jamborm at gcc dot gnu.org
  2023-07-22 20:35 ` [Bug target/110778] [14 Regression] " pinskia at gcc dot gnu.org
@ 2023-07-22 20:54 ` cvs-commit at gcc dot gnu.org
  2023-07-22 20:54 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-07-22 20:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:

https://gcc.gnu.org/g:659d856e1d424ea8ef634844a7bd08b86ec7344b

commit r14-2729-g659d856e1d424ea8ef634844a7bd08b86ec7344b
Author: Andrew Pinski <apinski@marvell.com>
Date:   Sat Jul 22 20:34:41 2023 +0000

    Fix alpha building

    The problem is after r14-2587-gd8105b10fff951, the definition of
    extended_count now takes a bool as its last argument but we only
    have a declaration for the version which takes an int as the last
    argument. This fixes the problem by changing the declaration to be
    a bool too.

    Committed as obvious after building a cross to alpha-linux-gnu.

    gcc/ChangeLog:

            PR target/110778
            * rtl.h (extended_count): Change last argument type
            to bool.

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

* [Bug target/110778] [14 Regression] Alpha targets broken since r14-2587-gd8105b10fff951 (undefined reference to extended_count)
  2023-07-22 20:28 [Bug target/110778] New: Alpha targets broken since r14-2587-gd8105b10fff951 (undefined reference to extended_count) jamborm at gcc dot gnu.org
  2023-07-22 20:35 ` [Bug target/110778] [14 Regression] " pinskia at gcc dot gnu.org
  2023-07-22 20:54 ` cvs-commit at gcc dot gnu.org
@ 2023-07-22 20:54 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-22 20:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2023-07-22 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-22 20:28 [Bug target/110778] New: Alpha targets broken since r14-2587-gd8105b10fff951 (undefined reference to extended_count) jamborm at gcc dot gnu.org
2023-07-22 20:35 ` [Bug target/110778] [14 Regression] " pinskia at gcc dot gnu.org
2023-07-22 20:54 ` cvs-commit at gcc dot gnu.org
2023-07-22 20:54 ` pinskia 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).