From: "Kewen.Lin" <linkw@linux.ibm.com>
To: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
Richard Biener <richard.guenther@gmail.com>,
Richard Sandiford <richard.sandiford@arm.com>,
"Bin.Cheng" <amker.cheng@gmail.com>
Subject: Re: [PATCH 2/3] ivopts: Call valid_mem_ref_p with code_helper [PR110248]
Date: Mon, 14 Aug 2023 16:47:40 +0800 [thread overview]
Message-ID: <be68e29a-458b-6173-8a8e-ac11bd7305d5@linux.ibm.com> (raw)
In-Reply-To: <20230814075327.i3net6gdpjdjpmej@lug-owl.de>
Hi,
on 2023/8/14 15:53, Jan-Benedict Glaw wrote:
> On Fri, 2023-06-30 13:46:40 +0800, Kewen.Lin via Gcc-patches <gcc-patches@gcc.gnu.org> wrote:
>> Bootstrapped and regtested on x86_64-redhat-linux and
>> powerpc64{,le}-linux-gnu.
>>
>> Is it ok for trunk?
> [...]
>
>> diff --git a/gcc/recog.h b/gcc/recog.h
>> index badf8e3dc1c..c6ef619c5dd 100644
>> --- a/gcc/recog.h
>> +++ b/gcc/recog.h
>> @@ -20,6 +20,9 @@ along with GCC; see the file COPYING3. If not see
>> #ifndef GCC_RECOG_H
>> #define GCC_RECOG_H
>>
>> +/* For enum tree_code ERROR_MARK. */
>> +#include "tree.h"
>> +
>> /* Random number that should be large enough for all purposes. Also define
>> a type that has at least MAX_RECOG_ALTERNATIVES + 1 bits, with the extra
>> bit giving an invalid value that can be used to mean "uninitialized". */
>
> This part breaks for me (up-to-date amd64-linux host, cf. for example
> http://toolchain.lug-owl.de/laminar/jobs/gcc-local/82):
>
> configure '--with-pkgversion=basepoints/gcc-14-3093-g4a8e6fa8016, built at 1691996332' \
> --prefix=/var/lib/laminar/run/gcc-local/82/toolchain-install \
> --enable-werror-always \
> --enable-languages=all \
> --disable-multilib
> make V=1 all-gcc
>
> echo timestamp > s-preds-h
> TARGET_CPU_DEFAULT="" \
> HEADERS="config/i386/i386-d.h" DEFINES="" \
> /bin/bash ../../gcc/gcc/mkconfig.sh tm_d.h
> /var/lib/laminar/run/gcc-local/82/local-toolchain-install/bin/g++ -std=c++11 -c -g -O2 -DIN_GCC -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 -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include \
> -o build/genflags.o ../../gcc/gcc/genflags.cc
> /var/lib/laminar/run/gcc-local/82/local-toolchain-install/bin/g++ -std=c++11 -g -O2 -DIN_GCC -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 -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -o build/genflags \
> build/genflags.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/hash-table.o build/sort.o build/read-md.o build/errors.o ../build-x86_64-pc-linux-gnu/libiberty/libiberty.a
> /var/lib/laminar/run/gcc-local/82/local-toolchain-install/bin/g++ -std=c++11 -c -g -O2 -DIN_GCC -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 -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include \
> -o build/genconditions.o ../../gcc/gcc/genconditions.cc
> /var/lib/laminar/run/gcc-local/82/local-toolchain-install/bin/g++ -std=c++11 -g -O2 -DIN_GCC -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 -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -o build/genconditions \
> build/genconditions.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/hash-table.o build/sort.o build/read-md.o build/errors.o ../build-x86_64-pc-linux-gnu/libiberty/libiberty.a
> build/genconditions ../../gcc/gcc/common.md ../../gcc/gcc/config/i386/i386.md > tmp-condmd.cc
> /bin/bash ../../gcc/gcc/../move-if-change tmp-condmd.cc build/gencondmd.cc
> echo timestamp > s-conditions
> build/genpreds -c ../../gcc/gcc/common.md ../../gcc/gcc/config/i386/i386.md > tmp-constrs.h
> /bin/bash ../../gcc/gcc/../move-if-change tmp-constrs.h tm-constrs.h
> echo timestamp > s-constrs-h
> /var/lib/laminar/run/gcc-local/82/local-toolchain-install/bin/g++ -std=c++11 -c -g -O2 -DIN_GCC -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 -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include \
> -o build/gencondmd.o build/gencondmd.cc
> In file included from ../../gcc/gcc/tree.h:23,
> from ../../gcc/gcc/recog.h:24,
> from build/gencondmd.cc:40:
> ../../gcc/gcc/tree-core.h:145:10: fatal error: all-tree.def: No such file or directory
> 145 | #include "all-tree.def"
Thanks for reporting and sorry for the breakage. This failure only gets exposed if
all-tree.def isn't generated before compiling these gen*.cc including recog.h during the
build. It explains why I didn't catch this failure before. I will check the existing
practice and post a patch soon.
BR,
Kewen
> | ^~~~~~~~~~~~~~
> compilation terminated.
> make[1]: *** [Makefile:2929: build/gencondmd.o] Error 1
> make[1]: Leaving directory '/var/lib/laminar/run/gcc-local/82/toolchain-build/gcc'
> make: *** [Makefile:4992: all-gcc] Error 2
>
>
> Some dependency missing?
>
> MfG, JBG
>
next prev parent reply other threads:[~2023-08-14 8:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-30 5:37 [PATCH 1/3] targhooks: Extend legitimate_address_p " Kewen.Lin
2023-06-30 5:46 ` [PATCH 2/3] ivopts: Call valid_mem_ref_p " Kewen.Lin
2023-06-30 8:58 ` Richard Biener
2023-08-14 7:53 ` Jan-Benedict Glaw
2023-08-14 8:47 ` Kewen.Lin [this message]
2023-08-15 3:20 ` Hans-Peter Nilsson
2023-06-30 5:57 ` [PATCH 3/3] rs6000: Teach legitimate_address_p about LEN_{LOAD,STORE} [PR110248] Kewen.Lin
2023-06-30 8:56 ` [PATCH 1/3] targhooks: Extend legitimate_address_p with code_helper [PR110248] Richard Biener
2023-06-30 9:13 ` Kewen.Lin
2023-08-07 10:15 ` Kewen.Lin
2023-08-07 11:58 ` Richard Biener
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=be68e29a-458b-6173-8a8e-ac11bd7305d5@linux.ibm.com \
--to=linkw@linux.ibm.com \
--cc=amker.cheng@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jbglaw@lug-owl.de \
--cc=richard.guenther@gmail.com \
--cc=richard.sandiford@arm.com \
/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).