[Bug tree-optimization/110248] ivopts could under-cost for some addressing modes on len_{load,store}

2023-08-14 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110248

Jan-Benedict Glaw  changed:

   What|Removed |Added

 CC||jbg...@lug-owl.de

--- Comment #12 from Jan-Benedict Glaw  ---
The second patch (that pulls in tree.h into recog.h) breaks building for me on
an usual amd64 Linux system:

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"
  |  ^~
compilation 

[Bug tree-optimization/110420] [12/13/14 Regression] internal compiler error: in gimple_redirect_edge_and_branch due to simple_dce_from_worklist removing `asm goto`

2023-06-27 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110420

--- Comment #7 from Jan-Benedict Glaw  ---
Confirmed: This patch fixes the issue for me with the Linux PPC builds.

[Bug tree-optimization/110420] New: internal compiler error: in gimple_redirect_edge_and_branch, at tree-cfg.cc:6262

2023-06-26 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110420

Bug ID: 110420
   Summary: internal compiler error: in
gimple_redirect_edge_and_branch, at tree-cfg.cc:6262
   Product: gcc
   Version: 14.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Created attachment 55400
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55400=edit
Preprocessed input.

Starting with g:21e2ef2dc, I see a new ICE building a PPC Linux kernel for the
adder875_defconfig config (see eg.
http://toolchain.lug-owl.de/laminar/jobs/linux-powerpc-adder875_defconfig/100):

[mk all 2023-06-26 02:31:11] # CC  arch/powerpc/kernel/ptrace/ptrace-view.o
[mk all 2023-06-26 02:31:11]   powerpc-linux-gcc
-Wp,-MMD,arch/powerpc/kernel/ptrace/.ptrace-view.o.d -nostdinc
-I./arch/powerpc/include -I./arch/powerpc/include/generated  -I./include
-I./arch/powerpc/include/uapi -I./arch/powerpc/include/generated/uapi
-I./include/uapi -I./include/generated/uapi -include
./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include
./include/linux/compiler_types.h -D__KERNEL__ -I ./arch/powerpc
-fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE
-Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type
-Wno-format-security -funsigned-char -std=gnu11 -mbig-endian -m32 -msoft-float
-pipe -ffixed-r2 -mmultiple -mno-readonly-in-sdata -mcpu=860 -mno-prefixed
-mno-pcrel -mno-altivec -mno-vsx -mno-mma -fno-asynchronous-unwind-tables
-mno-string -mbig-endian -mstack-protector-guard=tls
-mstack-protector-guard-reg=r2 -fno-delete-null-pointer-checks
-Wno-frame-address -Wno-format-truncation -Wno-format-overflow
-Wno-address-of-packed-member -O2 -fno-allow-store-data-races
-Wframe-larger-than=1024 -fstack-protector-strong -Wno-main
-Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer
-fomit-frame-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection
-Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type
-Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict
-Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than
-Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack
-Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init
-Wno-packed-not-aligned -g -mstack-protector-guard-offset=544 -Werror
-DUTS_MACHINE='"ppc"'   
-DKBUILD_MODFILE='"arch/powerpc/kernel/ptrace/ptrace-view"'
-DKBUILD_BASENAME='"ptrace_view"' -DKBUILD_MODNAME='"ptrace_view"'
-D__KBUILD_MODNAME=kmod_ptrace_view -c -o
arch/powerpc/kernel/ptrace/ptrace-view.o
arch/powerpc/kernel/ptrace/ptrace-view.c  
[mk all 2023-06-26 02:31:13] during GIMPLE pass: pre
[mk all 2023-06-26 02:31:13] arch/powerpc/kernel/ptrace/ptrace-view.c: In
function 'gpr32_set_common':
[mk all 2023-06-26 02:31:13] arch/powerpc/kernel/ptrace/ptrace-view.c:649:5:
internal compiler error: in gimple_redirect_edge_and_branch, at
tree-cfg.cc:6262
[mk all 2023-06-26 02:31:13]   649 | int gpr32_set_common(struct task_struct
*target,
[mk all 2023-06-26 02:31:13]   | ^~~~
[mk all 2023-06-26 02:31:13] 0x1a562a6 internal_error(char const*, ...)
[mk all 2023-06-26 02:31:13]???:0
[mk all 2023-06-26 02:31:13] 0x826ea1 fancy_abort(char const*, int, char
const*)
[mk all 2023-06-26 02:31:13]???:0
[mk all 2023-06-26 02:31:13] 0x9b77c9 redirect_edge_and_branch(edge_def*,
basic_block_def*)
[mk all 2023-06-26 02:31:13]???:0
[mk all 2023-06-26 02:31:13] 0x9b7e43 split_edge(edge_def*)
[mk all 2023-06-26 02:31:13]???:0
[mk all 2023-06-26 02:31:13] 0xee1cc7 split_critical_edges(bool)
[mk all 2023-06-26 02:31:13]???:0
[mk all 2023-06-26 02:31:13] Please submit a full bug report, with preprocessed
source (by using -freport-bug).
[mk all 2023-06-26 02:31:13] Please include the complete backtrace with any bug
report.
[mk all 2023-06-26 02:31:13] See  for instructions.
[mk all 2023-06-26 02:31:13] make[4]: *** [scripts/Makefile.build:252:
arch/powerpc/kernel/ptrace/ptrace-view.o] Error 1
[mk all 2023-06-26 02:31:13] make[3]: *** [scripts/Makefile.build:494:
arch/powerpc/kernel/ptrace] Error 2
[mk all 2023-06-26 02:31:13] make[2]: *** [scripts/Makefile.build:494:
arch/powerpc/kernel] Error 2
[mk all 2023-06-26 02:31:13] make[1]: *** [scripts/Makefile.build:494:
arch/powerpc] Error 2
[mk all 2023-06-26 02:31:13] make: *** [Makefile:2026: .] Error 2



The full command line is seen above, I'll also attach preprocessed input.
(-freport-bug didn't generate something?)

[Bug target/87281] qsort checking ICE in ia64_reorg building libgo

2023-06-24 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87281

--- Comment #14 from Jan-Benedict Glaw  ---
Still observable as of a8994014041:

[...]
  ia64-linux-gcc -Wp,-MMD,kernel/.kallsyms.o.d -nostdinc -I./arch/ia64/include
-I./arch/ia64/include/generated  -I./include -I./arch/ia64/include/uapi
-I./arch/ia64/include/generated/uapi -I.
/include/uapi -I./include/generated/uapi -include
./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include
./include/linux/compiler_types.h -D__KERNEL__ -DHAVE_WORKING_TEXT_ALIGN
-DHAVE_MODEL_SMALL_ATTRIBUTE -DHAVE_SERIALIZE_DIRECTIVE -fmacro-prefix-map=./=
-Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration
-Werror=implicit-int -Werror=return-type -Wno-format-security -funsigned-char
-std=gnu11 -pipe -ffixed-r13 -mfixed-range=f12-f15,f32-f127 -frename-registers
-fno-optimize-sibling-calls -fno-delete-null-pointer-checks -Wno-frame-address
-Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2
-fno-allow-store-data-races -Wframe-larger-than=2048 -fno-stack-protector
-Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable
-Wno-dangling-pointer -fomit-frame-pointer -ftrivial-auto-var-init=zero
-fno-stack-clash-protection -falign-functions=32 -Wdeclaration-after-statement
-Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation
-Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds
-Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow
-fno-stack-check -fconserve-stack -Werror=date-time
-Werror=incompatible-pointer-types -Werror=designated-init
-Wno-packed-not-aligned  -mconstant-gp  -DKBUILD_MODFILE='"kernel/kallsyms"'
-DKBUILD_BASENAME='"kallsyms"' -DKBUILD_MODNAME='"kallsyms"'
-D__KBUILD_MODNAME=kmod_kallsyms -c -o kernel/kallsyms.o kernel/kallsyms.c  
kernel/kallsyms.c: In function 'kallsyms_lookup_names':
kernel/kallsyms.c:268:1: error: qsort comparator non-negative on sorted output:
1
  268 | }
  | ^
during RTL pass: mach
kernel/kallsyms.c:268:1: internal compiler error: qsort checking failed
0x188b086 internal_error(char const*, ...)
 ???:0
0x18bf855 gcc_qsort(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
 ???:0
0x15c7a08 schedule_block(basic_block_def**, void*)
 ???:0
0x1685c1b schedule_ebb(rtx_insn*, rtx_insn*, bool)
 ???:0
0x168622d schedule_ebbs()
 ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See  for instructions.
make[2]: *** [scripts/Makefile.build:252: kernel/kallsyms.o] Error 1
make[1]: *** [scripts/Makefile.build:494: kernel] Error 2
make: *** [Makefile:2026: .] Error 2

[Bug target/100332] mcore-elf: error: 'prev_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]

2023-05-21 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100332

Jan-Benedict Glaw  changed:

   What|Removed |Added

 Resolution|--- |WORKSFORME
 Status|UNCONFIRMED |RESOLVED

--- Comment #1 from Jan-Benedict Glaw  ---
Looking at ma latest builds, this issue is fixed already.

[Bug tree-optimization/106900] Regression after memchr optimization

2023-05-18 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106900

--- Comment #9 from Jan-Benedict Glaw  ---
All three target configurations reported a successful build. Thanks!

[Bug tree-optimization/106900] Regression after memchr optimization

2023-05-17 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106900

--- Comment #8 from Jan-Benedict Glaw  ---
Thanks a lot!  I scheduled builds for the three affected targets (from my
target list.) The box is quite loaded right now (and a few jobs a before those
three), so I guess it'll take a few hours.

[Bug target/100268] lm32-uclinux: ../.././gcc/config/lm32/uclinux-elf.h:70: error: "LINK_GCC_C_SEQUENCE_SPEC" redefined [-Werror]

2023-04-13 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100268

Jan-Benedict Glaw  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #1 from Jan-Benedict Glaw  ---
This seems to be fixed, so I'm closing this ticket.

[Bug target/100836] microblaze-linux: RTX may be used uninitialized in this function

2023-04-13 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100836

Jan-Benedict Glaw  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #1 from Jan-Benedict Glaw  ---
This is fixed in recent builds, so I'm closing this ticket.

[Bug gcov-profile/100289] [11/12/13 Regression] libgcc/libgcov.h: bootstrap failure due to missing #include

2023-03-31 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100289

--- Comment #21 from Jan-Benedict Glaw  ---
But the basic question is: Should a first build pass --disable-gcov (glibc's
failure to provide this) or should GCC detect that there's (not yet) no
sys/mman.h (GCC problem)?

[Bug gcov-profile/100289] [11/12/13 Regression] libgcc/libgcov.h: bootstrap failure due to missing #include

2023-03-31 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100289

--- Comment #20 from Jan-Benedict Glaw  ---
I see this as well for my CI builds using a (slightly hacked to use local
copies of the GIT trees) build-many-glibcs.py (from glibc.)

If you call call:

/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/glibc/scripts/build-many-glibcs.py
--keep all --replace-sources -j 1
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21 checkout binutils-vcs-master
gcc-vcs-master glibc-vcs-master linux-vcs-master

log_execute host-libraries
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/glibc/scripts/build-many-glibcs.py
--keep all --replace-sources -j 1
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21 host-libraries

log_execute compilers
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/glibc/scripts/build-many-glibcs.py
--keep all --replace-sources -j 1
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21 --full-gcc compilers
alpha-linux-gnu

(as an example, use the Alpha builds at
http://toolchain.lug-owl.de/laminar/jobs/glibcbot-alpha-linux-gnu , with the
actual breakage for example at
http://toolchain.lug-owl.de/archive/glibcbot-alpha-linux-gnu/21/logs/compilers/alpha-linux-gnu/012-compilers-alpha-linux-gnu-gcc-first-build-log.txt)

...we're ending up at the same spot:
  echo 'int __libgcc_eh_dummy;' > eh_dummy.c;   \
 
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/build/compilers/alpha-linux-gnu/gcc-first/./gcc/xgcc
-B/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/build/compilers/alpha-linux-gnu/gcc-first/./gcc/
-B/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/bin/
-B/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/lib/
-isystem
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/include
-isystem
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/sys-include
   -g -O2 -mieee -O2  -g -O2 -mieee -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W
-Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -mieee
-mfp-rounding-mode=d -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
-Dinhibit_libc -fPIC -mieee -mfp-rounding-mode=d -I. -I. -I../.././gcc
-I/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc
-I/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc/.
-I/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc/../gcc
-I/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc/../include 
-DHAVE_CC_TLS   -fvisibility=hidden -DHIDE_EXPORTS -c eh_dummy.c   \
 -o eh_dummy.o; \
  objects=eh_dummy.o;   \
fi; \
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/bin/ar
 rc libgcc.a $objects
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/bin/ranlib
libgcc.a
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/build/compilers/alpha-linux-gnu/gcc-first/./gcc/xgcc
-B/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/build/compilers/alpha-linux-gnu/gcc-first/./gcc/
-B/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/bin/
-B/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/lib/
-isystem
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/include
-isystem
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/install/compilers/alpha-linux-gnu/alpha-glibc-linux-gnu/sys-include
   -g -O2 -mieee -O2  -g -O2 -mieee -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W
-Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -mieee
-mfp-rounding-mode=d -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
-Dinhibit_libc -fPIC -mieee -mfp-rounding-mode=d -I. -I. -I../.././gcc
-I/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc
-I/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc/.
-I/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc/../gcc
-I/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc/../include 
-DHAVE_CC_TLS   -o _gcov_merge_add.o -MT _gcov_merge_add.o -MD -MP -MF
_gcov_merge_add.dep -DL_gcov_merge_add -c
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc/libgcov-merge.c
In file included from
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc/libgcov-merge.c:26:
/var/lib/laminar/run/glibcbot-alpha-linux-gnu/21/src/gcc/libgcc/libgcov.h:49:10:
fatal error: sys/mman.h: No such file or directory
   49 | #include 
  |  ^~~~
compilation terminated.



ISTR 

[Bug target/108928] epiphany-elf: unrecognizable insn (internal compiler error: in extract_insn, at recog.cc:2791) triggered during Modula-2 build

2023-03-25 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108928

--- Comment #1 from Jan-Benedict Glaw  ---
Last confirmed: g:0a846340b99675d57fc2f2923a0412134eed09d3 (cf.
http://toolchain.lug-owl.de/laminar/jobs/gcc-epiphany-elf/36)

[Bug target/109026] m32c-elf: ICE while building Modula-2 components

2023-03-04 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109026

Jan-Benedict Glaw  changed:

   What|Removed |Added

Version|hsa |13.0

--- Comment #1 from Jan-Benedict Glaw  ---
Don't know how much effort to put into this. m32c has some very old PRs which
look rather trivial, with no maintainer listed, so it's maybe ... dead already?

[Bug target/109026] New: m32c-elf: ICE while building Modula-2 components

2023-03-04 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109026

Bug ID: 109026
   Summary: m32c-elf: ICE while building Modula-2 components
   Product: gcc
   Version: hsa
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

This sneaked in with the Modula-2 merge:

[all 2023-03-05 01:12:42] test -d
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/gcc/m2/gm2-libs ||
/bin/bash ../../gcc/gcc/../mkinstalldirs
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/gcc/m2/gm2-libs
[all 2023-03-05 01:12:42] echo "GM2_FOR_TARGET
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ "
[all 2023-03-05 01:12:42] GM2_FOR_TARGET
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ 
[all 2023-03-05 01:12:42] echo "GCC_FOR_TARGET
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ "
[all 2023-03-05 01:12:42] GCC_FOR_TARGET
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ 
[all 2023-03-05 01:12:42] /bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim
\
[all 2023-03-05 01:12:42]  ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
[all 2023-03-05 01:12:42]  ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
[all 2023-03-05 01:12:42]  -I../../gcc/gcc/m2/gm2-libs \
[all 2023-03-05 01:12:42] 
"/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/./gcc/ "
/var/lib/laminar/run/gcc-m32c-elf/34/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
[all 2023-03-05 01:12:43] during RTL pass: pro_and_epilogue
[all 2023-03-05 01:12:43] : In function '_M2_SYSTEM_init':
[all 2023-03-05 01:12:43] : internal compiler error: in
leaf_function_p, at final.cc:4054
[all 2023-03-05 01:12:43] 0x605999 leaf_function_p()
[all 2023-03-05 01:12:43]   ../../gcc/gcc/final.cc:4054
[all 2023-03-05 01:12:43] 0x109cd8c m32c_leaf_function_p
[all 2023-03-05 01:12:43]   ../../gcc/gcc/config/m32c/m32c.cc:4018
[all 2023-03-05 01:12:43] 0x109cd8c m32c_emit_prologue()
[all 2023-03-05 01:12:43]   ../../gcc/gcc/config/m32c/m32c.cc:4072
[all 2023-03-05 01:12:43] 0x14ebbfa gen_prologue()
[all 2023-03-05 01:12:43]   ../../gcc/gcc/config/m32c/prologue.md:26
[all 2023-03-05 01:12:43] 0x1099955 target_gen_prologue
[all 2023-03-05 01:12:43]   ../../gcc/gcc/config/m32c/blkmov.md:359
[all 2023-03-05 01:12:43] 0xa3c9b7 make_prologue_seq
[all 2023-03-05 01:12:43]   ../../gcc/gcc/function.cc:5841
[all 2023-03-05 01:12:43] 0xa3cb63 thread_prologue_and_epilogue_insns()
[all 2023-03-05 01:12:43]   ../../gcc/gcc/function.cc:6073
[all 2023-03-05 01:12:43] 0xa3d292 rest_of_handle_thread_prologue_and_epilogue
[all 2023-03-05 01:12:43]   ../../gcc/gcc/function.cc:6572
[all 2023-03-05 01:12:43] 0xa3d292 execute
[all 2023-03-05 01:12:43]   ../../gcc/gcc/function.cc:6655
[all 2023-03-05 01:12:43] Please submit a full bug report, with preprocessed
source (by using -freport-bug).
[all 2023-03-05 01:12:43] Please include the complete backtrace with any bug
report.
[all 2023-03-05 01:12:43] See  for instructions.

Should be reproducible with:
.../gcc/configure --enable-werror-always --enable-languages=all --disable-gcov
--disable-shared --disable-threads --target=m32c-elf --without-headers
make V=1 all-gcc

My most recent build log is at
http://toolchain.lug-owl.de/laminar/jobs/gcc-m32c-elf, the above is taken from
http://toolchain.lug-owl.de/laminar/jobs/gcc-m32c-elf/34 (which is based on
g:6010189923908501ca5b02bd1f4aee05d2283118).

[Bug target/108932] amd64-pc-solaris2.11:

2023-02-25 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108932

--- Comment #3 from Jan-Benedict Glaw  ---
Thanks a lot!

Ftr: `--with-gas` is accepted, but `--with-gnu-as` flags the inclusion of
`usegas.h`.

[Bug tree-optimization/106900] Regression after memchr optimization

2023-02-25 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106900

Jan-Benedict Glaw  changed:

   What|Removed |Added

 Target||avr-elf, pru-elf, rl78-elf

--- Comment #3 from Jan-Benedict Glaw  ---
Sure, just a warning, but still there (as of
31303c9b5bab200754cdb7ef8cd91ae4918f3018) and affecting three targets. Maybe we
get that understood/fixed?

[Bug driver/108932] New: amd64-pc-solaris2.11:

2023-02-25 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108932

Bug ID: 108932
   Summary: amd64-pc-solaris2.11:
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: driver
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Building with --target=amd64-pc-solaris2.11, with Binutils for that target
available:

../gcc/configure '--with-pkgversion=basepoints/gcc-13-6140-g63471c50088, built
at 1676969143'
--prefix=/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-install
--enable-werror-always --enable-languages=all --disable-gcov --disable-shared
--disable-threads --target=amd64-pc-solaris2.11 --without-headers

[cfg 2023-02-21 08:46:00] checking for as...
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-install/amd64-pc-solaris2.11/bin/as
[...]
[cfg 2023-02-21 08:46:00] checking where to find the target as... pre-installed
in
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-install/amd64-pc-solaris2.11/bin
[...]

make V=1 all-gcc
[...]
[all 2023-02-21 12:45:52] test -d
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/gcc/m2/gm2-libs
|| /bin/bash ../../gcc/gcc/../mkinstalldirs
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/gcc/m2/gm2-libs
[all 2023-02-21 12:45:52] echo "GM2_FOR_TARGET
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/ "
[all 2023-02-21 12:45:52] GM2_FOR_TARGET
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/ 
[all 2023-02-21 12:45:52] echo "GCC_FOR_TARGET
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/ "
[all 2023-02-21 12:45:52] GCC_FOR_TARGET
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/ 
[all 2023-02-21 12:45:52] /bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim
\
[all 2023-02-21 12:45:52]  ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
[all 2023-02-21 12:45:52]  ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
[all 2023-02-21 12:45:52]  -I../../gcc/gcc/m2/gm2-libs \
[all 2023-02-21 12:45:52] 
"/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/./gcc/ "
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
[all 2023-02-21 12:45:52]
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-install/amd64-pc-solaris2.11/bin/as:
unrecognized option '-xarch=generic64'
[all 2023-02-21 12:45:52] SYSTEM module creates type: LOC
[all 2023-02-21 12:45:52] SYSTEM module creates type: WORD
[all 2023-02-21 12:45:52] SYSTEM module creates type: BYTE
[all 2023-02-21 12:45:52] SYSTEM module creates type: ADDRESS
[all 2023-02-21 12:45:52] SYSTEM module creates type: INTEGER8
[all 2023-02-21 12:45:52] SYSTEM module creates type: INTEGER16
[all 2023-02-21 12:45:52] SYSTEM module creates type: INTEGER32
[all 2023-02-21 12:45:52] SYSTEM module creates type: INTEGER64
[all 2023-02-21 12:45:52] SYSTEM module creates type: CARDINAL8
[all 2023-02-21 12:45:52] SYSTEM module creates type: CARDINAL16
[all 2023-02-21 12:45:52] SYSTEM module creates type: CARDINAL32
[all 2023-02-21 12:45:52] SYSTEM module creates type: CARDINAL64
[all 2023-02-21 12:45:52] SYSTEM module creates type: WORD16
[all 2023-02-21 12:45:52] SYSTEM module creates type: WORD32
[all 2023-02-21 12:45:52] SYSTEM module creates type: WORD64
[all 2023-02-21 12:45:52] SYSTEM module creates type: BITSET8
[all 2023-02-21 12:45:52] SYSTEM module creates type: BITSET16
[all 2023-02-21 12:45:52] SYSTEM module creates type: BITSET32
[all 2023-02-21 12:45:52] SYSTEM module creates type: REAL32
[all 2023-02-21 12:45:52] SYSTEM module creates type: REAL64
[all 2023-02-21 12:45:52] SYSTEM module creates type: REAL128
[all 2023-02-21 12:45:52] SYSTEM module creates type: COMPLEX32
[all 2023-02-21 12:45:52] SYSTEM module creates type: COMPLEX64
[all 2023-02-21 12:45:52] SYSTEM module creates type: COMPLEX128
[all 2023-02-21 12:45:52] SYSTEM module creates type: CSIZE_T
[all 2023-02-21 12:45:52] SYSTEM module creates type: CSSIZE_T
[all 2023-02-21 12:45:52]
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-install/amd64-pc-solaris2.11/bin/as:
unrecognized option '-xarch=generic64'
[all 2023-02-21 12:45:52] make[1]: *** [../../gcc/gcc/m2/Make-lang.in:1564:
/var/lib/laminar/run/gcc-amd64-pc-solaris2.11/6/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def]
Error 1
[all 2023-02-21 12:45:53] rm m2/gm2-compiler-boot/P2Build.mod
m2/gm2-compiler-boot/P0SyntaxCheck.mod m2/gm2-compiler-boot/PCBuild.mod

[Bug driver/108929] New: bfin-openbsd: Issues calling `as` when trying to build Module-2 components

2023-02-24 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108929

Bug ID: 108929
   Summary: bfin-openbsd: Issues calling `as` when trying to build
Module-2 components
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: driver
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

For --target=bfin-openbsd, I see the assembler being called in some way that
doesn't seem to work:

[all 2023-02-21 19:37:03] test -d
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/gcc/m2/gm2-libs ||
/bin/bash ../../gcc/gcc/../mkinstalldirs
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/gcc/m2/gm2-libs
[all 2023-02-21 19:37:03] echo "GM2_FOR_TARGET
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/ "
[all 2023-02-21 19:37:03] GM2_FOR_TARGET
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/ 
[all 2023-02-21 19:37:03] echo "GCC_FOR_TARGET
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/ "
[all 2023-02-21 19:37:03] GCC_FOR_TARGET
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/ 
[all 2023-02-21 19:37:03] /bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim
\
[all 2023-02-21 19:37:03]  ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
[all 2023-02-21 19:37:03]  ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
[all 2023-02-21 19:37:03]  -I../../gcc/gcc/m2/gm2-libs \
[all 2023-02-21 19:37:03] 
"/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/ "
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
[all 2023-02-21 19:37:04]
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/as: 114: exec:
-o: not found
[all 2023-02-21 19:37:04] SYSTEM module creates type: LOC
[all 2023-02-21 19:37:04] SYSTEM module creates type: WORD
[all 2023-02-21 19:37:04] SYSTEM module creates type: BYTE
[all 2023-02-21 19:37:04] SYSTEM module creates type: ADDRESS
[all 2023-02-21 19:37:04] SYSTEM module creates type: INTEGER8
[all 2023-02-21 19:37:04] SYSTEM module creates type: INTEGER16
[all 2023-02-21 19:37:04] SYSTEM module creates type: INTEGER32
[all 2023-02-21 19:37:04] SYSTEM module creates type: INTEGER64
[all 2023-02-21 19:37:04] SYSTEM module creates type: CARDINAL8
[all 2023-02-21 19:37:04] SYSTEM module creates type: CARDINAL16
[all 2023-02-21 19:37:04] SYSTEM module creates type: CARDINAL32
[all 2023-02-21 19:37:04] SYSTEM module creates type: CARDINAL64
[all 2023-02-21 19:37:04] SYSTEM module creates type: WORD16
[all 2023-02-21 19:37:04] SYSTEM module creates type: WORD32
[all 2023-02-21 19:37:04] SYSTEM module creates type: WORD64
[all 2023-02-21 19:37:04] SYSTEM module creates type: BITSET8
[all 2023-02-21 19:37:04] SYSTEM module creates type: BITSET16
[all 2023-02-21 19:37:04] SYSTEM module creates type: BITSET32
[all 2023-02-21 19:37:04] SYSTEM module creates type: REAL32
[all 2023-02-21 19:37:04] SYSTEM module creates type: REAL64
[all 2023-02-21 19:37:04] SYSTEM module creates type: COMPLEX32
[all 2023-02-21 19:37:04] SYSTEM module creates type: COMPLEX64
[all 2023-02-21 19:37:04] SYSTEM module creates type: CSIZE_T
[all 2023-02-21 19:37:04] SYSTEM module creates type: CSSIZE_T
[all 2023-02-21 19:37:04]
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/./gcc/as: 114: exec:
-o: not found
[all 2023-02-21 19:37:04] make[1]: *** [../../gcc/gcc/m2/Make-lang.in:1564:
/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def]
Error 1
[all 2023-02-21 19:37:04] rm m2/gm2-compiler-boot/P2Build.mod
m2/gm2-compiler-boot/P0SyntaxCheck.mod m2/gm2-compiler-boot/PCBuild.mod
m2/gm2-compiler-boot/PHBuild.mod m2/gm2-compiler-boot/P1Build.mod
m2/gm2-compiler-boot/P3Build.mod
[all 2023-02-21 19:37:04] make[1]: Leaving directory
'/var/lib/laminar/run/gcc-bfin-openbsd/35/toolchain-build/gcc'
[all 2023-02-21 19:37:05] make: *** [Makefile:4623: all-gcc] Error 2


(Full build lot at http://toolchain.lug-owl.de/laminar/log/gcc-bfin-openbsd/35)

[Bug target/108928] New: epiphany-elf: unrecognizable insn (internal compiler error: in extract_insn, at recog.cc:2791) triggered during Modula-2 build

2023-02-24 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108928

Bug ID: 108928
   Summary: epiphany-elf: unrecognizable insn (internal compiler
error: in extract_insn, at recog.cc:2791) triggered
during Modula-2 build
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

My automated testing found an issue with --target=epiphany-elf:

.../gcc/configure '--with-pkgversion=basepoints/gcc-13-6140-g63471c50088, built
at 1677005096'
--prefix=/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-install
--enable-werror-always --enable-languages=all --disable-gcov --disable-shared
--disable-threads --target=epiphany-elf --without-headers
[...]
make V=1 all-gcc
[...]
[all 2023-02-21 21:50:49] if test "xinfo" = xinfo; then \
[all 2023-02-21 21:50:49]   rm -f doc/gccgo.info*; \
[all 2023-02-21 21:50:49]   makeinfo --split-size=500 --no-split -I
../../gcc/gcc/doc \
[all 2023-02-21 21:50:49]   -I ../../gcc/gcc/doc/include -o doc/gccgo.info
../../gcc/gcc/go/gccgo.texi; \
[all 2023-02-21 21:50:49] else true; fi
[all 2023-02-21 21:50:50] test -d
/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/gcc/m2/gm2-libs ||
/bin/bash ../../gcc/gcc/../mkinstalldirs
/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/gcc/m2/gm2-libs
[all 2023-02-21 21:50:50] echo "GM2_FOR_TARGET
/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ "
[all 2023-02-21 21:50:50] GM2_FOR_TARGET
/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ 
[all 2023-02-21 21:50:50] echo "GCC_FOR_TARGET
/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ "
[all 2023-02-21 21:50:50] GCC_FOR_TARGET
/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/xgcc
-B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ 
[all 2023-02-21 21:50:50] /bin/bash ../../gcc/gcc/m2/tools-src/makeSystem -fpim
\
[all 2023-02-21 21:50:50]  ../../gcc/gcc/m2/gm2-libs/SYSTEM.def \
[all 2023-02-21 21:50:50]  ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod \
[all 2023-02-21 21:50:50]  -I../../gcc/gcc/m2/gm2-libs \
[all 2023-02-21 21:50:50] 
"/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/gm2
-B/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/./gcc/ "
/var/lib/laminar/run/gcc-epiphany-elf/34/toolchain-build/gcc/m2/gm2-libs/SYSTEM.def
[all 2023-02-21 21:50:50] ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod: In function
'ShiftVal':
[all 2023-02-21 21:50:50] ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod:89:1: error:
unrecognizable insn:
[all 2023-02-21 21:50:50]89 | END ShiftVal ;
[all 2023-02-21 21:50:50]   | ^~~
[all 2023-02-21 21:50:50] (insn 400 342 343 7 (parallel [
[all 2023-02-21 21:50:50] (set (mem/c:CC (plus:SI (reg/f:SI 11 fp)
[all 2023-02-21 21:50:50] (const_int 84 [0x54])) [7
%sfp+-20 S4 A32])
[all 2023-02-21 21:50:50] (reg:CC 18 r18))
[all 2023-02-21 21:50:50] (use (const_int -4337
[0xef0f]))
[all 2023-02-21 21:50:50] (clobber (scratch:SI))
[all 2023-02-21 21:50:50] ])
"../../gcc/gcc/m2/gm2-libs/SYSTEM.mod":80:32 discrim 1 -1
[all 2023-02-21 21:50:50]  (nil))
[all 2023-02-21 21:50:50] during RTL pass: reload
[all 2023-02-21 21:50:50] ../../gcc/gcc/m2/gm2-libs/SYSTEM.mod:89:1: internal
compiler error: in extract_insn, at recog.cc:2791
[all 2023-02-21 21:50:50] 0x670d08 _fatal_insn(char const*, rtx_def const*,
char const*, int, char const*)
[all 2023-02-21 21:50:50]   ../../gcc/gcc/rtl-error.cc:108
[all 2023-02-21 21:50:50] 0x670d24 _fatal_insn_not_found(rtx_def const*, char
const*, int, char const*)
[all 2023-02-21 21:50:50]   ../../gcc/gcc/rtl-error.cc:116
[all 2023-02-21 21:50:50] 0x66f763 extract_insn(rtx_insn*)
[all 2023-02-21 21:50:50]   ../../gcc/gcc/recog.cc:2791
[all 2023-02-21 21:50:50] 0xce5a14 extract_insn_cached(rtx_insn*)
[all 2023-02-21 21:50:50]   ../../gcc/gcc/recog.cc:2680
[all 2023-02-21 21:50:50] 0x9fa4a4 cleanup_subreg_operands(rtx_insn*)
[all 2023-02-21 21:50:50]   ../../gcc/gcc/final.cc:3054
[all 2023-02-21 21:50:50] 0xd10ff2 reload(rtx_insn*, int)
[all 2023-02-21 21:50:50]   ../../gcc/gcc/reload1.cc:1232
[all 2023-02-21 21:50:50] 0xb97f3e do_reload
[all 2023-02-21 21:50:50]   ../../gcc/gcc/ira.cc:5975
[all 2023-02-21 21:50:50] 0xb97f3e execute
[all 2023-02-21 21:50:50]   ../../gcc/gcc/ira.cc:6149
[all 2023-02-21 21:50:50] Please submit a full bug report, with preprocessed
source (by using -freport-bug).
[all 2023-02-21 21:50:50] Please include 

[Bug target/87281] qsort checking ICE in ia64_reorg building libgo

2022-12-20 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87281

--- Comment #13 from Jan-Benedict Glaw  ---
GCC 13 (as of g:02c031088ac0bbf) triggers this for Linux's kallsys.c
(f9ff5644bcc04221bae56f922) for ia64.

[Bug rtl-optimization/90282] internal compiler error: qsort checking failed in snapshot-20190429

2022-12-20 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90282

--- Comment #14 from Jan-Benedict Glaw  ---
GCC 13 (as of g:02c031088ac0bbf) triggers this for Linux's kallsys.c
(f9ff5644bcc04221bae56f922) for ia64.

[Bug rtl-optimization/84345] [10/11/12/13 Regression] ICE: qsort checking failed (error: qsort comparator non-negative on sorted output: 1)

2022-12-20 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84345

Jan-Benedict Glaw  changed:

   What|Removed |Added

 CC||jbg...@lug-owl.de

--- Comment #17 from Jan-Benedict Glaw  ---
Just found this issue with GCC 13 (g:2dc5d6b1e7e) building the Linux kernel for
ia64 (--target=ia64-linux, with eg. the zx1_defconfig):

[mk all 2022-12-20 12:06:38]   ia64-linux-gcc -Wp,-MMD,kernel/.kallsyms.o.d
-nostdinc -I./arch/ia64/include -I./arch/ia64/include/generated  -I./include
-I./arch/ia64/include/uapi -I./arch/ia64/include/generated/uapi
-I./include/uapi -I./include/generated/uapi -include
./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include
./include/linux/compiler_types.h -D__KERNEL__ -DHAVE_WORKING_TEXT_ALIGN
-DHAVE_MODEL_SMALL_ATTRIBUTE -DHAVE_SERIALIZE_DIRECTIVE -fmacro-prefix-map=./=
-Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration
-Werror=implicit-int -Werror=return-type -Wno-format-security -funsigned-char
-std=gnu11 -pipe -ffixed-r13 -mfixed-range=f12-f15,f32-f127 -frename-registers
-fno-optimize-sibling-calls -fno-delete-null-pointer-checks -Wno-frame-address
-Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2
-fno-allow-store-data-races -Wframe-larger-than=2048 -fno-stack-protector
-Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable
-Wno-dangling-pointer -fomit-frame-pointer -ftrivial-auto-var-init=zero
-fno-stack-clash-protection -falign-functions=32 -Wdeclaration-after-statement
-Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation
-Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized
-Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow
-fno-stack-check -fconserve-stack -Werror=date-time
-Werror=incompatible-pointer-types -Werror=designated-init
-Wno-packed-not-aligned  -mconstant-gp  -DKBUILD_MODFILE='"kernel/kallsyms"'
-DKBUILD_BASENAME='"kallsyms"' -DKBUILD_MODNAME='"kallsyms"'
-D__KBUILD_MODNAME=kmod_kallsyms -c -o kernel/kallsyms.o kernel/kallsyms.c  
[mk all 2022-12-20 12:06:40] kernel/kallsyms.c: In function
'kallsyms_lookup_names':
[mk all 2022-12-20 12:06:40] kernel/kallsyms.c:268:1: error: qsort comparator
non-negative on sorted output: 7
[mk all 2022-12-20 12:06:40]   268 | }
[mk all 2022-12-20 12:06:40]   | ^
[mk all 2022-12-20 12:06:40] during RTL pass: mach
[mk all 2022-12-20 12:06:40] kernel/kallsyms.c:268:1: internal compiler error:
qsort checking failed
[mk all 2022-12-20 12:06:40] 0x17f0fa6 internal_error(char const*, ...)
[mk all 2022-12-20 12:06:40]???:0
[mk all 2022-12-20 12:06:40] 0x1823ee5 gcc_qsort(void*, unsigned long, unsigned
long, int (*)(void const*, void const*))
[mk all 2022-12-20 12:06:40]???:0
[mk all 2022-12-20 12:06:40] 0x163c9a7 schedule_block(basic_block_def**, void*)
[mk all 2022-12-20 12:06:40]???:0
[mk all 2022-12-20 12:06:40] 0x171beb0 schedule_ebb(rtx_insn*, rtx_insn*, bool)
[mk all 2022-12-20 12:06:40]???:0
[mk all 2022-12-20 12:06:40] 0x171c4a9 schedule_ebbs()
[mk all 2022-12-20 12:06:40]???:0
[mk all 2022-12-20 12:06:40] Please submit a full bug report, with preprocessed
source (by using -freport-bug).
[mk all 2022-12-20 12:06:40] Please include the complete backtrace with any bug
report.
[mk all 2022-12-20 12:06:40] See  for instructions.
[mk all 2022-12-20 12:06:41] make[2]: *** [scripts/Makefile.build:250:
kernel/kallsyms.o] Error 1

[Bug tree-optimization/108095] powerpc-linux / powerpc64-linux: ICEs when building Linux's arch/powerpc/kernel/align.c (asm goto)

2022-12-14 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108095

--- Comment #7 from Jan-Benedict Glaw  ---
(In reply to Jakub Jelinek from comment #5)
> Created attachment 54090 [details]
> gcc13-pr108095.patch

Compiler builds for me and the ICE went away for all affected Linux
configurations. Though I cannot verify whether or not the generated code is
correct.

[Bug tree-optimization/108095] powerpc-linux / powerpc64-linux: ICEs when building Linux's arch/powerpc/kernel/align.c (asm goto)

2022-12-14 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108095

--- Comment #6 from Jan-Benedict Glaw  ---
I'll give that patch a spin, build the cross-compilers and try to build the
affected Linux configurations.

[Bug tree-optimization/107997] [10/11/12/13 Regression] r13-4389-gfd8dd6c0384969 probably uncovered an issue building the Linux kernel

2022-12-14 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107997

Jan-Benedict Glaw  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #12 from Jan-Benedict Glaw  ---
Fixed with that commit. There is a similar unrelated (PR108095), but that's got
its own ticket.

[Bug tree-optimization/108095] New: powerpc-linux / powerpc64-linux: ICEs when building Linux's arch/powerpc/kernel/align.c (asm goto)

2022-12-14 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108095

Bug ID: 108095
   Summary: powerpc-linux / powerpc64-linux: ICEs when building
Linux's arch/powerpc/kernel/align.c (asm goto)
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Created attachment 54085
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54085=edit
Minimized testcase

For a number of ppc32 builds (using various Linux kernel defconfig
configurations) as well as for one 64bit build, I get these:

[mk all 2022-12-11 21:36:22]   powerpc64-linux-gcc
-Wp,-MMD,arch/powerpc/kernel/.align.o.d -nostdinc -I./arch/powerpc/include
-I./arch/powerpc/include/generated  -I./include -I./arch/powerpc/include/uapi
-I./arch/powerpc/include/generated/uapi -I./include/uapi
-I./include/generated/uapi -include ./include/linux/compiler-version.h -include
./include/linux/kconfig.h -include ./include/linux/compiler_types.h
-D__KERNEL__ -I ./arch/powerpc -DHAVE_AS_ATHIGH=1 -fmacro-prefix-map=./= -Wall
-Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration
-Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11
-mbig-endian -m64 -msoft-float -pipe -mtraceback=no -mabi=elfv1 -mcall-aixdesc
-mcmodel=medium -mno-pointers-to-nested-functions -mcpu=cell -mno-prefixed
-mno-pcrel -mno-altivec -mno-vsx -mno-mma -fno-asynchronous-unwind-tables
-mno-string -Wa,-maltivec -Wa,-mpower4 -Wa,-many -mabi=elfv1 -mcall-aixdesc
-mbig-endian -mstack-protector-guard=tls -mstack-protector-guard-reg=r13
-fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation
-Wno-format-overflow -Wno-address-of-packed-member -Os
-fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong
-Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable
-Wno-dangling-pointer -fomit-frame-pointer -ftrivial-auto-var-init=zero
-fno-stack-clash-protection -Wdeclaration-after-statement -Wvla
-Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation
-Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized
-Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow
-fno-stack-check -fconserve-stack -Werror=date-time
-Werror=incompatible-pointer-types -Werror=designated-init
-Wno-packed-not-aligned -g -mstack-protector-guard-offset=752 -Werror   
-DKBUILD_MODFILE='"arch/powerpc/kernel/align"' -DKBUILD_BASENAME='"align"'
-DKBUILD_MODNAME='"align"' -D__KBUILD_MODNAME=kmod_align -c -o
arch/powerpc/kernel/align.o arch/powerpc/kernel/align.c  
[mk all 2022-12-11 21:36:23] during GIMPLE pass: ccp
[mk all 2022-12-11 21:36:23] arch/powerpc/kernel/align.c: In function
'__copy_inst_from_kernel_nofault':
[mk all 2022-12-11 21:36:23] arch/powerpc/kernel/align.c:364:1: internal
compiler error: in maybe_register_def, at tree-into-ssa.cc:1948
[mk all 2022-12-11 21:36:23]   364 | }
[mk all 2022-12-11 21:36:23]   | ^
[mk all 2022-12-11 21:36:23] 0x19f12c6 internal_error(char const*, ...)
[mk all 2022-12-11 21:36:23]???:0
[mk all 2022-12-11 21:36:23] 0x7be8e0 fancy_abort(char const*, int, char
const*)
[mk all 2022-12-11 21:36:23]???:0
[mk all 2022-12-11 21:36:23] 0x17a985e dom_walker::walk(basic_block_def*)
[mk all 2022-12-11 21:36:23]???:0
[mk all 2022-12-11 21:36:23] 0xe99460 update_ssa(unsigned int)
[mk all 2022-12-11 21:36:23]???:0
[mk all 2022-12-11 21:36:23] 0x1041df9 execute_update_addresses_taken()
[mk all 2022-12-11 21:36:23]???:0
[mk all 2022-12-11 21:36:23] Please submit a full bug report, with preprocessed
source (by using -freport-bug).
[mk all 2022-12-11 21:36:23] Please include the complete backtrace with any bug
report.
[mk all 2022-12-11 21:36:23] See  for instructions.


This seems to be also an asm goto issue, but it is _not_ fixed with the
7676235f690e624b7e commit. (This issue can still be reproduced with
2dc5d6b1e7e.)

Minimum command line to produce the ICE is: `powerpc64-linux-gcc -Os -g -c -o
align.o align.i`. Removing either `-Os` or `-g` silences it.

[Bug tree-optimization/107997] [10/11/12/13 Regression] r13-4389-gfd8dd6c0384969 probably uncovered an issue building the Linux kernel

2022-12-09 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107997

--- Comment #10 from Jan-Benedict Glaw  ---
I gave that patch a try: GCC build is successful, as is the Linux build
afterwards using that toolchain. (Cannot test the resulting kernel of
course---I don't have the hardware.)

[Bug tree-optimization/107997] [13 Regression] r13-4389-gfd8dd6c0384969 probably uncovered an issue building the Linux kernel

2022-12-08 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107997

--- Comment #3 from Jan-Benedict Glaw  ---
Created attachment 54048
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54048=edit
Original preprocessed source

[Bug tree-optimization/107997] [13 Regression] r13-4389-gfd8dd6c0384969 probably uncovered an issue building the Linux kernel

2022-12-08 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107997

--- Comment #4 from Jan-Benedict Glaw  ---
Created attachment 54049
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54049=edit
Reduced testcase (cvise)

[Bug tree-optimization/107997] [13 Regression] r13-4389-gfd8dd6c0384969 probably uncovered an issue building the Linux kernel

2022-12-08 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107997

--- Comment #2 from Jan-Benedict Glaw  ---
(In reply to Jakub Jelinek from comment #1)
> (In reply to Jan-Benedict Glaw from comment #0)
> > I'll add the preprocessed sources.
> 
> Could you please?  Without it there isn't much that can be done.

At it right now, throwing it at cvise.

[Bug regression/107997] New: fd8dd6c03849691 probably uncovered an issue building the Linux kernel

2022-12-06 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107997

Bug ID: 107997
   Summary: fd8dd6c03849691 probably uncovered an issue building
the Linux kernel
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: regression
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

Starting with commit fd8dd6c0384969170e594be34da278a072d5eb76, I see
Linux kernel build errors for the skiroot_defconfig:

[mk all 2022-12-05 19:50:10]   powerpc64-linux-gcc
-Wp,-MMD,drivers/dma-buf/.dma-fence-array.o.d -nostdinc
-I./arch/powerpc/include -I./arch/powerpc/include/generated  -I./include
-I./arch/po
werpc/include/uapi -I./arch/powerpc/include/generated/uapi -I./include/uapi
-I./include/generated/uapi -include ./include/linux/compiler-version.h -include
./include/linux/kconfig.h -include 
./include/linux/compiler_types.h -D__KERNEL__ -I ./arch/powerpc
-DHAVE_AS_ATHIGH=1 -fmacro-prefix-map=./= -Wall -Wundef
-Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-comm
on -fshort-wchar -fno-PIE -Werror=implicit-function-declaration
-Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11
-mlittle-endian -m64 -msoft-float -pipe -mtraceback=no
 -mabi=elfv2 -mcmodel=medium -mno-pointers-to-nested-functions -mcpu=power8
-mtune=power10 -mno-prefixed -mno-pcrel -mno-altivec -mno-vsx -mno-mma
-fno-asynchronous-unwind-tables -mno-string 
-Wa,-maltivec -Wa,-mpower4 -Wa,-many -mno-strict-align -mlittle-endian
-mstack-protector-guard=tls -mstack-protector-guard-reg=r13
-fno-delete-null-pointer-checks -Wno-frame-address -Wno-form
at-truncation -Wno-format-overflow -Wno-address-of-packed-member -Os
-fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong
-Wno-main -Wno-unused-but-set-variable -Wno-
unused-const-variable -Wno-dangling-pointer -fomit-frame-pointer
-ftrivial-auto-var-init=zero -fno-stack-clash-protection
-Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function
-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict
-Wno-maybe-uninitialized -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5
-fno-strict-overflow -fno-stack-check -fconse
rve-stack -Werror=date-time -Werror=incompatible-pointer-types
-Werror=designated-init -Wno-packed-not-aligned
-mstack-protector-guard-offset=2800   
-DKBUILD_MODFILE='"drivers/dma-buf/dma-fe
nce-array"' -DKBUILD_BASENAME='"dma_fence_array"'
-DKBUILD_MODNAME='"dma_fence_array"' -D__KBUILD_MODNAME=kmod_dma_fence_array -c
-o drivers/dma-buf/dma-fence-array.o drivers/dma-buf/dma-fenc
e-array.c   
[mk all 2022-12-05 19:50:10] drivers/dma-buf/dma-fence-array.c: In function
'dma_fence_array_create':   
[mk all 2022-12-05 19:50:10] drivers/dma-buf/dma-fence-array.c:154:25: error:
control flow in the middle of basic block 12
[mk all 2022-12-05 19:50:10]   154 | struct dma_fence_array
*dma_fence_array_create(int num_fences, 
[mk all 2022-12-05 19:50:10]   |
^~  
[mk all 2022-12-05 19:50:10] during GIMPLE pass: ivopts 
[mk all 2022-12-05 19:50:10] drivers/dma-buf/dma-fence-array.c:154:25: internal
compiler error: verify_flow_info failed 
[mk all 2022-12-05 19:50:10] 0x19ea876 internal_error(char const*, ...) 
[mk all 2022-12-05 19:50:10]???:0   
[mk all 2022-12-05 19:50:10] 0x94b00e verify_flow_info()
[mk all 2022-12-05 19:50:10]???:0   
[mk all 2022-12-05 19:50:10] Please submit a full bug report, with preprocessed
source (by using -freport-bug). 
[mk all 2022-12-05 19:50:10] Please include the complete backtrace with any bug
report. 
[mk all 2022-12-05 19:50:10] See  for instructions.  


(Cf. https://gcc.gnu.org/pipermail/gcc-patches/2022-December/607874.html)

I'll add the preprocessed sources.

[Bug c++/107638] [13 Regression] options.h:239:36: error: token "." is not valid in preprocessor expressions

2022-11-15 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107638

--- Comment #5 from Jan-Benedict Glaw  ---
All my affected builds are restored.

[Bug c++/107638] [13 Regression] options.h:239:36: error: token "." is not valid in preprocessor expressions

2022-11-13 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107638

Jan-Benedict Glaw  changed:

   What|Removed |Added

 CC||jbg...@lug-owl.de

--- Comment #2 from Jan-Benedict Glaw  ---
Seen also for --target=sparc-wrs-vxworks, sh-wrs-vxworks, powerpc-wrs-vxworks,
mips-wrs-vxworks, i686-wrs-vxworks.

[Bug target/100603] csky: config/csky/csky.h:402:13: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]

2022-10-07 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100603

Jan-Benedict Glaw  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from Jan-Benedict Glaw  ---
Fixed in c8e93a08693cdd8e18f129f3a1918ed3d32eeebe.

[Bug c++/81159] New warning idea: -Wself-move

2022-10-01 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81159

Jan-Benedict Glaw  changed:

   What|Removed |Added

 CC||jbg...@lug-owl.de

--- Comment #12 from Jan-Benedict Glaw  ---
Just ftr: Building GDB with a recent GCC now breaks since GDB is testing
-Wself-move in its unittests, but only covers the warning in case of clang.
Found by my automated builders. I proposed a patch to fix that.

[Bug tree-optimization/106900] New: Regression after memchr optimization

2022-09-09 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106900

Bug ID: 106900
   Summary: Regression after memchr optimization
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

The optimization prepared in PR103798 ("memchr with a (small) constant string
should be expanded inline", c6cf555a88f8ffb8ec85c2b94fe656ab217260ea) caused a
regression for avr-elf, pru-elf and rl78-elf:

.../gcc/configure --prefix=... --enable-werror-always --enable-languages=all
--disable-gcov --disable-shared --disable-threads --target=pru-elf 
--without-headers   
[...]   
make V=1 all-gcc
[...]   
/usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2   -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -W
cast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
 -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I../../gcc/gcc/../libcody  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../gcc/gcc/../libbacktrace   -o tree-ssa-forwprop.o -MT
tree-ssa-forwprop.o -MMD -MP -MF ./.deps/tree-ssa-forwprop.TPo
../../gcc/gcc/tree-ssa-forwprop.cc
../../gcc/gcc/tree-ssa-forwprop.cc: In function 'bool
simplify_builtin_call(gimple_stmt_iterator*, tree)':
../../gcc/gcc/tree-ssa-forwprop.cc:1258:42: error: array subscript 1 is outside
array bounds of 'tree_node* [1]' [-Werror=array-bounds]
 1258 | op[i - 1] = fold_convert_loc (loc, boolean_type_node,
  | ~^~~~
 1259 |   fold_build2_loc (loc,
  |   ~
 1260 |   
BIT_IOR_EXPR,
  |   
~
 1261 |   
boolean_type_node,
  |   
~~
 1262 |op[i - 1],
  |~~
 1263 |op[i]));
  |~~~
In file included from ../../gcc/gcc/system.h:707,
 from ../../gcc/gcc/tree-ssa-forwprop.cc:21:
../../gcc/gcc/../include/libiberty.h:733:36: note: at offset 8 into object of
size [0, 8] allocated by '__builtin_alloca'
  733 | # define alloca(x) __builtin_alloca(x)
  |^~~
../../gcc/gcc/../include/libiberty.h:365:40: note: in expansion of macro
'alloca'
  365 | #define XALLOCAVEC(T, N)((T *) alloca (sizeof (T) * (N)))
  |^~
../../gcc/gcc/tree-ssa-forwprop.cc:1250:22: note: in expansion of macro
'XALLOCAVEC'
 1250 |   tree *op = XALLOCAVEC (tree, isize);
  |  ^~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:1146: tree-ssa-forwprop.o] Error 1


(Last confirmed at c2c3e4f6698925c8c969d8525677fbfe98f78909.)

[Bug tree-optimization/103798] memchr with a (small) constant string should be expanded inline.

2022-08-28 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103798

Jan-Benedict Glaw  changed:

   What|Removed |Added

 CC||jbg...@lug-owl.de

--- Comment #4 from Jan-Benedict Glaw  ---
I just started looking through the automated builds logs and noticed that three
configurations (`.../configure --enable-werror-always --enable-languages=all
--disable-gcov --disable-shared --disable-threads --target=rl78-elf
--without-headers`, and with --target=avr-elf as well as with
--target=gcc-pru-elf) break during `make V=1 all-gcc`:

[...]
/usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2   -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -W
cast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
 -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I../../gcc/gcc/../libcody  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../gcc/gcc/../libbacktrace   -o tree-ssa-forwprop.o -MT
tree-ssa-forwprop.o -MMD -MP -MF ./.deps/tree-ssa-forwprop.TPo
../../gcc/gcc/tree-ssa-forwprop.cc
../../gcc/gcc/tree-ssa-forwprop.cc: In function 'bool
simplify_builtin_call(gimple_stmt_iterator*, tree)':
../../gcc/gcc/tree-ssa-forwprop.cc:1258:42: error: array subscript 1 is outside
array bounds of 'tree_node* [1]' [-Werror=array-bounds]
 1258 | op[i - 1] = fold_convert_loc (loc, boolean_type_node,
  | ~^~~~
 1259 |   fold_build2_loc (loc,
  |   ~
 1260 |   
BIT_IOR_EXPR,
  |   
~
 1261 |   
boolean_type_node,
  |   
~~
 1262 |op[i - 1],
  |~~
 1263 |op[i]));
  |~~~
In file included from ../../gcc/gcc/system.h:707,
 from ../../gcc/gcc/tree-ssa-forwprop.cc:21:
../../gcc/gcc/../include/libiberty.h:733:36: note: at offset 8 into object of
size [0, 8] allocated by '__builtin_alloca'
  733 | # define alloca(x) __builtin_alloca(x)
  |^~~
../../gcc/gcc/../include/libiberty.h:365:40: note: in expansion of macro
'alloca'
  365 | #define XALLOCAVEC(T, N)((T *) alloca (sizeof (T) * (N)))
  |^~
../../gcc/gcc/tree-ssa-forwprop.cc:1250:22: note: in expansion of macro
'XALLOCAVEC'
 1250 |   tree *op = XALLOCAVEC (tree, isize);
  |  ^~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:1146: tree-ssa-forwprop.o] Error 1


This also happens for --target=avr-elf and --target=gcc-pru-elf .

Thank,
  Jan-Benedict

[Bug middle-end/102395] [nvptx, vax] enum reg_class inferred as signed / unsigned

2021-09-19 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102395

--- Comment #8 from Jan-Benedict Glaw  ---
Autobuilder also picked it, fixed for all.

[Bug middle-end/102395] [nvptx, vax] enum reg_class inferred as signed / unsigned

2021-09-18 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102395

--- Comment #6 from Jan-Benedict Glaw  ---
I'll fetch that patch and stuff it in the autobuilder, then let it run for
nvptx, vax and a few others.

[Bug middle-end/102395] New: [nvptx, vax] enum reg_class inferred as signed / unsigned

2021-09-18 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102395

Bug ID: 102395
   Summary: [nvptx, vax] enum reg_class inferred as signed /
unsigned
   Product: gcc
   Version: analyzer branch
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Created attachment 51477
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51477=edit
Testcase

Running automated testing, I get similar errors then building for
--target=nvptx-none and vax-linux using a fairly recent GCC version:

$ .../configure --target=nvptx-none \
--enable-werror-always \
--enable-languages=all \
--disable-gcov \
--disable-shared \
--disable-threads \
--without-headers
[..]
$ make all-gcc
[...]
[all 2021-09-13 12:37:11] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o lra-constraints.o -MT
lra-constraints.o -MMD -MP -MF ./.deps/lra-constraints.TPo
../../gcc/gcc/lra-constraints.c
[all 2021-09-13 12:37:20] In function 'bool check_and_process_move(bool*,
bool*)',
[all 2021-09-13 12:37:20] inlined from 'bool curr_insn_transform(bool)' at
../../gcc/gcc/lra-constraints.c:4092:33:
[all 2021-09-13 12:37:20] ../../gcc/gcc/lra-constraints.c:1317:56: error: array
subscript -1 is below array bounds of 'short int [2][16]'
[-Werror=array-bounds]
[all 2021-09-13 12:37:20]  1317 |   reg_renumber[dregno] =
ira_class_hard_regs[dclass][0];
[all 2021-09-13 12:37:20] In file included from
../../gcc/gcc/lra-constraints.c:123:
[all 2021-09-13 12:37:20] ../../gcc/gcc/ira.h: In function 'bool
curr_insn_transform(bool)':
[all 2021-09-13 12:37:20] ../../gcc/gcc/ira.h:85:9: note: while referencing
'target_ira::x_ira_class_hard_regs'
[all 2021-09-13 12:37:20]85 |   short
x_ira_class_hard_regs[N_REG_CLASSES][FIRST_PSEUDO_REGISTER];
[all 2021-09-13 12:37:20]   | ^
[all 2021-09-13 12:37:20] In function 'bool check_and_process_move(bool*,
bool*)',
[all 2021-09-13 12:37:20] inlined from 'bool curr_insn_transform(bool)' at
../../gcc/gcc/lra-constraints.c:4092:33:
[all 2021-09-13 12:37:20] ../../gcc/gcc/lra-constraints.c:1324:56: error: array
subscript -1 is below array bounds of 'short int [2][16]'
[-Werror=array-bounds]
[all 2021-09-13 12:37:20]  1324 |   reg_renumber[sregno] =
ira_class_hard_regs[sclass][0];
[all 2021-09-13 12:37:20] In file included from
../../gcc/gcc/lra-constraints.c:123:
[all 2021-09-13 12:37:20] ../../gcc/gcc/ira.h: In function 'bool
curr_insn_transform(bool)':
[all 2021-09-13 12:37:20] ../../gcc/gcc/ira.h:85:9: note: while referencing
'target_ira::x_ira_class_hard_regs'
[all 2021-09-13 12:37:20]85 |   short
x_ira_class_hard_regs[N_REG_CLASSES][FIRST_PSEUDO_REGISTER];
[all 2021-09-13 12:37:20]   | ^
[all 2021-09-13 12:37:26] cc1plus: all warnings being treated as errors
[all 2021-09-13 12:37:26] make[1]: *** [Makefile:1142: lra-constraints.o] Error
1
[all 2021-09-13 12:37:26] make[1]: Leaving directory
'/var/lib/laminar/run/gcc-nvptx-none/8/toolchain-build/gcc'
[all 2021-09-13 12:37:26] make: *** [Makefile:4407: all-gcc] Error 2

(Initial report can be found at
https://gcc.gnu.org/pipermail/gcc/2021-September/237237.html)

Martin Sebor already had a look at it (cf.
https://gcc.gnu.org/pipermail/gcc/2021-September/237383.html) and suggested to
explicitely make reg_class an unsigned enum, or to add gcc_unreachable() for <
0 to indicate the non-negativeness of sclass/dclass.

Preprocessed / minimized testcase attached (based on --target=nvptx-none),
build with a recent GCC:

g++ -c -O2 -Wall -o lra-constraints.o lra-constraints.ii

[Bug bootstrap/100730] h8300-linux: unused parameter, statement may fall through, control reaches end of non-void function

2021-09-17 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100730

--- Comment #2 from Jan-Benedict Glaw  ---
Confirmed that I see this as fixed in the logs. (And I need to put that build
host to the datacenter in Münster and announce it publically...)

[Bug tree-optimization/102196] -Wmaybe-uninitialized: Maybe generate helpful hints?

2021-09-04 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102196

--- Comment #6 from Jan-Benedict Glaw  ---
Calling the compiler again with just adding -fanalyzer doesn't add more
information to the output. Do I need to turn on extra warnings to enable static
analysis for access to possibly uninitialized variables?

[Bug tree-optimization/102196] -Wmaybe-uninitialized: Maybe generate helpful hints?

2021-09-03 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102196

--- Comment #2 from Jan-Benedict Glaw  ---
Declaration and possibly uninitialized usage are shown. Ie for said Binutils, I
get these messages:

 microblaze-{elf,linux}

[all 2021-09-03 18:17:30] depbase=`echo config/tc-microblaze.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
[all 2021-09-03 18:17:30] /usr/lib/gcc-snapshot/bin/gcc -DHAVE_CONFIG_H -I. 
-I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd
-DLOCALEDIR="\"/tmp/gas-microblaze-elf/share/locale\""  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror
-Wwrite-strings -I./../zlib -g -O2   -MT config/tc-microblaze.o -MD -MP -MF
$depbase.Tpo -c -o config/tc-microblaze.o config/tc-microblaze.c &&\
[all 2021-09-03 18:17:30] mv -f $depbase.Tpo $depbase.Po
[all 2021-09-03 18:17:32] config/tc-microblaze.c: In function 'md_assemble':
[all 2021-09-03 18:17:32] config/tc-microblaze.c:1170:27: error: 'immed' may be
used uninitialized [-Werror=maybe-uninitialized]
[all 2021-09-03 18:17:32]  1170 |   if (immed != (immed % 32))
[all 2021-09-03 18:17:32]   |~~~^
[all 2021-09-03 18:17:32] config/tc-microblaze.c:918:16: note: 'immed' declared
here
[all 2021-09-03 18:17:32]   918 |   unsigned int immed, temp;
[all 2021-09-03 18:17:32]   |^
[all 2021-09-03 18:17:32] config/tc-microblaze.c:1746:27: error: 'immed' may be
used uninitialized [-Werror=maybe-uninitialized]
[all 2021-09-03 18:17:32]  1746 |   if (immed != (immed % 32)) {
[all 2021-09-03 18:17:32]   |~~~^
[all 2021-09-03 18:17:32] config/tc-microblaze.c:918:16: note: 'immed' declared
here
[all 2021-09-03 18:17:32]   918 |   unsigned int immed, temp;
[all 2021-09-03 18:17:32]   |^
[all 2021-09-03 18:17:32] cc1: all warnings being treated as errors
[all 2021-09-03 18:17:32] make[3]: *** [Makefile:1238: config/tc-microblaze.o]
Error 1


 mcore-elf
~~~
[all 2021-09-03 18:17:17] depbase=`echo config/tc-mcore.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
[all 2021-09-03 18:17:17] /usr/lib/gcc-snapshot/bin/gcc -DHAVE_CONFIG_H -I. 
-I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd
-DLOCALEDIR="\"/tmp/gas-mcore-elf/share/locale\""  -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -Wwrite-strings
-I./../zlib -g -O2   -MT config/tc-mcore.o -MD -MP -MF $depbase.Tpo -c -o
config/tc-mcore.o config/tc-mcore.c &&\
[all 2021-09-03 18:17:17] mv -f $depbase.Tpo $depbase.Po
[all 2021-09-03 18:17:19] config/tc-mcore.c: In function 'md_assemble':
[all 2021-09-03 18:17:19] config/tc-mcore.c:1599:9: error: 'output' may be used
uninitialized [-Werror=maybe-uninitialized]
[all 2021-09-03 18:17:19]  1599 |   output[0] = INST_BYTE0 (inst);
[all 2021-09-03 18:17:19]   |   ~~^~~
[all 2021-09-03 18:17:19] config/tc-mcore.c:855:10: note: 'output' declared
here
[all 2021-09-03 18:17:19]   855 |   char * output;
[all 2021-09-03 18:17:19]   |  ^~
[all 2021-09-03 18:17:19] config/tc-mcore.c:1599:9: error: 'output' may be used
uninitialized [-Werror=maybe-uninitialized]
[all 2021-09-03 18:17:19]  1599 |   output[0] = INST_BYTE0 (inst);
[all 2021-09-03 18:17:19]   |   ~~^~~
[all 2021-09-03 18:17:19] config/tc-mcore.c:855:10: note: 'output' declared
here
[all 2021-09-03 18:17:19]   855 |   char * output;
[all 2021-09-03 18:17:19]   |  ^~
[all 2021-09-03 18:17:19] config/tc-mcore.c:1599:9: error: 'output' may be used
uninitialized [-Werror=maybe-uninitialized]
[all 2021-09-03 18:17:19]  1599 |   output[0] = INST_BYTE0 (inst);
[all 2021-09-03 18:17:19]   |   ~~^~~
[all 2021-09-03 18:17:19] config/tc-mcore.c:855:10: note: 'output' declared
here
[all 2021-09-03 18:17:19]   855 |   char * output;
[all 2021-09-03 18:17:19]   |  ^~
[all 2021-09-03 18:17:20] cc1: all warnings being treated as errors
[all 2021-09-03 18:17:20] make[3]: *** [Makefile:1238: config/tc-mcore.o] Error
1


Unfortunately, the toolchain testing host isn't yet publically hosted, so it's
not yet IPv4-reachable... Once moved to the DC, I'll announce it.

[Bug middle-end/102196] New: -Wmaybe-uninitialized: Maybe generate helpful hints?

2021-09-03 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102196

Bug ID: 102196
   Summary: -Wmaybe-uninitialized: Maybe generate helpful hints?
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

I don't know the code behind -Wmaybe-uninitialized, but maybe it's possible to
show the path GCC considered when emitting this message?

Right now, with Debian's "gcc-snapshot" compiler, I cannot successfully "make
all-gas" for the microblaze-elf and mcore-elf targets (with current binutils at
0b99a66053fa1e93a984f75a7a3d5343c74882fb) due to a maybe-uninitialized warning
in md_assemble() which is kind of unpleasant to find the possible way through
the assignment maze...

My personal impression is that usually, the maybe-uninitialized warnings are
quite helpful, but it's somewhat tedious to track them down. As I'm revamping
my toolchain testing efforts, these show up every now and then.

Thanks,
  Jan-Benedict

[Bug bootstrap/100832] s390x-linux-gnu: wrong number of alternatives in the output template

2021-09-03 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100832

Jan-Benedict Glaw  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Jan-Benedict Glaw  ---
Confirmed with current trunk (8d34ffb4e8ed5300d0276b55f573add6db2517e8), this
error does no longer show up.

Thanks!

[Bug target/100841] xtensa-linux: dwarf2cfi.c:291:12: error: comparison of integer expressions of different signedness: 'const unsigned int' and 'int'

2021-06-03 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100841

Jan-Benedict Glaw  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Jan-Benedict Glaw  ---
Fixed by Jakub Jelinek.

[Bug target/100841] xtensa-linux: dwarf2cfi.c:291:12: error: comparison of integer expressions of different signedness: 'const unsigned int' and 'int'

2021-06-03 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100841

--- Comment #4 from Jan-Benedict Glaw  ---
Builds now. Thanks a lot!

[Bug target/100841] xtensa-linux: dwarf2cfi.c:291:12: error: comparison of integer expressions of different signedness: 'const unsigned int' and 'int'

2021-06-01 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100841

--- Comment #2 from Jan-Benedict Glaw  ---
(In reply to Jakub Jelinek from comment #1)
> Guess following could fix it
> --- gcc/config/xtensa/xtensa.h.jj 2021-01-04 10:25:45.570157539 +0100
> +++ gcc/config/xtensa/xtensa.h2021-06-01 10:39:19.848827041 +0200
[...]

It does, though uncovers the next signedness fun:

[all 2021-06-01 14:06:13] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o function.o -MT
function.o -MMD -MP -MF ./.deps/function.TPo ../../gcc/gcc/function.c
[all 2021-06-01 14:06:14] ../../gcc/gcc/function.c: In function 'void
gen_call_used_regs_seq(rtx_insn*, unsigned int)':
[all 2021-06-01 14:06:14] ../../gcc/gcc/function.c:5897:63: error: comparison
of unsigned expression in '< 0' is always false [-Werror=type-limits]
[all 2021-06-01 14:06:14]  5897 |   if (crtl->uses_only_leaf_regs &&
LEAF_REG_REMAP (regno) < 0)
[all 2021-06-01 14:06:22] cc1plus: all warnings being treated as errors
[all 2021-06-01 14:06:22] make[1]: *** [Makefile:1141: function.o] Error 1
[all 2021-06-01 14:06:22] make[1]: Leaving directory
'/var/lib/laminar/run/gcc-xtensa-linux/4/toolchain-build/gcc'
[all 2021-06-01 14:06:22] make: *** [Makefile:4414: all-gcc] Error 2

[Bug target/100841] New: xtensa-linux: dwarf2cfi.c:291:12: error: comparison of integer expressions of different signedness: 'const unsigned int' and 'int'

2021-05-31 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100841

Bug ID: 100841
   Summary: xtensa-linux: dwarf2cfi.c:291:12: error: comparison of
integer expressions of different signedness: 'const
unsigned int' and 'int'
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

After having started automated testing again, I noticed this as of
ef8176e0fac935c095cc39f4ecdfd43cdb8cb3f3, building with a quite recent GCC:

$ ../gcc/configure --target=xtensa-linux --enable-werror-always
--enable-languages=all --disable-gcov --disable-shared --disable-threads
--without-headers
--prefix=/var/lib/laminar/run/gcc-xtensa-linux/2/toolchain-install

$ make all-gcc
[...]
/usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2 -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o dwarf2cfi.o -MT
dwarf2cfi.o -MMD -MP -MF ./.deps/dwarf2cfi.TPo ../../gcc/gcc/dwarf2cfi.c
../../gcc/gcc/dwarf2cfi.c: In function 'void init_one_dwarf_reg_size(int,
machine_mode, rtx, machine_mode, init_one_dwarf_reg_state*)':
../../gcc/gcc/dwarf2cfi.c:291:12: error: comparison of integer expressions of
different signedness: 'const unsigned int' and 'int' [-Werror=sign-compare]
  291 |   if (rnum >= DWARF_FRAME_REGISTERS)
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:1141: dwarf2cfi.o] Error 1
make[1]: Leaving directory
'/var/lib/laminar/run/gcc-xtensa-linux/2/toolchain-build/gcc'
make: *** [Makefile:4414: all-gcc] Error 2

Should be simple to fix I guess.

Thanks,
  Jan-Benedict

[Bug target/100837] New: nds32le-linux: error: array subscript 2 is above array bounds of 'rtx_def* [2]'

2021-05-30 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100837

Bug ID: 100837
   Summary: nds32le-linux: error: array subscript 2 is above array
bounds of 'rtx_def* [2]'
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

As I started automated testing again, I found an issue with the nds32 backend
code. Host/build compiler is nearly master, GCC source tree is
a8f588be038317bf1e9c71f7e626a3d23255ab37.

./gcc/configure --target=nds32le-linux --enable-werror-always
--enable-languages=all --disable-gcov --disable-shared --disable-threads
--without-headers
--prefix=/var/lib/laminar/run/gcc-nds32le-linux/1/toolchain-install

make all-gcc
[...]
[all 2021-05-30 18:46:49] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o insn-emit.o -MT
insn-emit.o -MMD -MP -MF ./.deps/insn-emit.TPo insn-emit.c
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md: In
function 'rtx_def* gen_unspec_clr_pending_hwint(rtx)':
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:304:12:
warning: unquoted identifier or keyword '__nds32__clr_pending_hwint' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51]   304 | error ("__nds32__clr_pending_hwint not
support NDS32_INT_SWI,"
[all 2021-05-30 18:46:51]   |   
^~~
[all 2021-05-30 18:46:51]   305 |" NDS32_INT_ALZ, NDS32_INT_IDIVZE,
NDS32_INT_DSSIM");
[all 2021-05-30 18:46:51]   |   
~~~
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:304:12:
warning: unquoted identifier or keyword 'NDS32_INT_SWI' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:304:12:
warning: unquoted identifier or keyword 'NDS32_INT_ALZ' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:304:12:
warning: unquoted identifier or keyword 'NDS32_INT_IDIVZE' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:304:12:
warning: unquoted identifier or keyword 'NDS32_INT_DSSIM' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md: In
function 'rtx_def* gen_unspec_get_pending_int(rtx, rtx)':
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:362:12:
warning: unquoted identifier or keyword 'get_pending_int' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51]   362 | error ("get_pending_int not support
NDS32_INT_ALZ,"
[all 2021-05-30 18:46:51]   |   
^~~~
[all 2021-05-30 18:46:51]   363 |" NDS32_INT_IDIVZE,
NDS32_INT_DSSIM");
[all 2021-05-30 18:46:51]   |   

[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:362:12:
warning: unquoted identifier or keyword 'NDS32_INT_ALZ' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:362:12:
warning: unquoted identifier or keyword 'NDS32_INT_IDIVZE' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:362:12:
warning: unquoted identifier or keyword 'NDS32_INT_DSSIM' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md: In
function 'rtx_def* gen_unspec_set_int_priority(rtx, rtx)':
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:420:12:
warning: unquoted identifier or keyword 'set_int_priority' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51]   420 | error ("set_int_priority not support
NDS32_INT_SWI,"
[all 2021-05-30 18:46:51]   |   
^
[all 2021-05-30 18:46:51]   421 |" NDS32_INT_ALZ, NDS32_INT_IDIVZE,
NDS32_INT_DSSIM");
[all 2021-05-30 18:46:51]   |   
~~~
[all 2021-05-30 18:46:51] ../../gcc/gcc/config/nds32/nds32-intrinsic.md:420:12:
warning: unquoted identifier or keyword 'NDS32_INT_SWI' in format
[-Wformat-diag]
[all 2021-05-30 18:46:51] 

[Bug target/100836] New: microblaze-linux: RTX may be used uninitialized in this function

2021-05-30 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100836

Bug ID: 100836
   Summary: microblaze-linux: RTX may be used uninitialized in
this function
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

After having started my testing efforts again, I found these two warnings which
might be legit for microblaze-linux.

Configured as:

../gcc/configure --target=microblaze-linux --enable-werror-always
--enable-languages=all --disable-gcov --disable-shared --disable-threads
--without-headers
--prefix=/var/lib/laminar/run/gcc-microblaze-linux/1/toolchain-install

using a recent master commit (1a87f8381085de50726634e8cb4a651c05b272b5) along
with a recent GCC as $CXX.

...and then it's built with:
make all-gcc
[...]
[all 2021-05-30 10:48:15] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o microblaze.o -MT
microblaze.o -MMD -MP -MF ./.deps/microblaze.TPo
../../gcc/gcc/config/microblaze/microblaze.c
[all 2021-05-30 10:48:18] ../../gcc/gcc/config/microblaze/microblaze.c: In
function 'rtx_def* microblaze_legitimize_address(rtx, rtx, machine_mode)':
[all 2021-05-30 10:48:18] ../../gcc/gcc/config/microblaze/microblaze.c:1105:11:
error: 'reg' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
[all 2021-05-30 10:48:18]  1105 |   rtx reg;
[all 2021-05-30 10:48:18]   |   ^~~
[all 2021-05-30 10:48:19] In file included from ../../gcc/gcc/rtl.h:3938,
[all 2021-05-30 10:48:19]  from
../../gcc/gcc/config/microblaze/microblaze.c:29:
[all 2021-05-30 10:48:19] ./genrtl.h: In function 'bool
microblaze_expand_move(machine_mode, rtx_def**)':
[all 2021-05-30 10:48:19] ./genrtl.h:38:16: error: 'p1' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
[all 2021-05-30 10:48:19]38 |   XEXP (rt, 1) = arg1;
[all 2021-05-30 10:48:19] ../../gcc/gcc/config/microblaze/microblaze.c:3415:15:
note: 'p1' was declared here
[all 2021-05-30 10:48:19]  3415 |   rtx p0, p1, result, temp;
[all 2021-05-30 10:48:19]   |   ^~
[all 2021-05-30 10:48:20] cc1plus: all warnings being treated as errors
[all 2021-05-30 10:48:20] make[1]: *** [Makefile:2406: microblaze.o] Error 1
[all 2021-05-30 10:48:20] make[1]: Leaving directory
'/var/lib/laminar/run/gcc-microblaze-linux/1/toolchain-build/gcc'
[all 2021-05-30 10:48:20] make: *** [Makefile:4414: all-gcc] Error 2
[laminar] Executing cfg/after

[Bug bootstrap/100832] New: s390x-linux-gnu: wrong number of alternatives in the output template

2021-05-30 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100832

Bug ID: 100832
   Summary: s390x-linux-gnu: wrong number of alternatives in the
output template
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

Running automated tests again, I found that targeted for s390x-linux-gnu
(1a87f8381085de50726634e8cb4a651c05b272b5) won't build:


../gcc/configure --target=s390x-linux-gnu --enable-werror-always
--enable-languages=all --disable-gcov --disable-shared --disable-threads
--without-headers
--prefix=/var/lib/laminar/run/gcc-s390x-linux-gnu/1/toolchain-install
[...]

make all-gcc
[...]

[all 2021-05-30 10:17:14] /bin/bash ../../gcc/gcc/../move-if-change tmp-modes.c
insn-modes.c
[all 2021-05-30 10:17:14] echo timestamp > s-modes
[all 2021-05-30 10:17:14] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o insn-modes.o -MT
insn-modes.o -MMD -MP -MF ./.deps/insn-modes.TPo insn-modes.c
[all 2021-05-30 10:17:15] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o insn-opinit.o -MT
insn-opinit.o -MMD -MP -MF ./.deps/insn-opinit.TPo insn-opinit.c
[all 2021-05-30 10:17:35] /usr/lib/gcc-snapshot/bin/g++ -c   -g -O2 -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE
-fno-PIE -I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build
-I../../gcc/gcc/../include  -I../../gcc/gcc/../libcpp/include  \
[all 2021-05-30 10:17:35]   -o build/genoutput.o ../../gcc/gcc/genoutput.c
[all 2021-05-30 10:17:36] /usr/lib/gcc-snapshot/bin/g++   -g -O2 -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE
-fno-PIE -static-libstdc++ -static-libgcc  -no-pie -o build/genoutput \
[all 2021-05-30 10:17:36] build/genoutput.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
[all 2021-05-30 10:17:36] build/genoutput ../../gcc/gcc/common.md
../../gcc/gcc/config/s390/s390.md \
[all 2021-05-30 10:17:36]   insn-conditions.md > tmp-output.c
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9335:1: alternative
number mismatch: operand 0 has 4, operand 1 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9335:1: alternative
number mismatch: operand 0 has 4, operand 2 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9335:1: wrong
number of alternatives in the output template
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: alternative
number mismatch: operand 0 has 4, operand 1 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: alternative
number mismatch: operand 0 has 4, operand 2 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: wrong
number of alternatives in the output template
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: alternative
number mismatch: operand 0 has 4, operand 1 has 2
[all 2021-05-30 10:17:36] ../../gcc/gcc/config/s390/s390.md:9349:1: alternative
number mismatch: 

[Bug bootstrap/100730] New: h8300-linux: unused parameter, statement may fall through, control reaches end of non-void function

2021-05-23 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100730

Bug ID: 100730
   Summary: h8300-linux: unused parameter, statement may fall
through, control reaches end of non-void function
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

I started doing GCC testing again and found an issue with the h8/300 backend.

Used GCC is:

$ /usr/lib/gcc-snapshot/bin/gcc --version
gcc (Debian 20210320-1) 11.0.1 20210320 (experimental) [master revision
3279a9a5a9a:6526c452d22:5f256a70a05fcfc5a1caf56678ceb12b4f87f781]
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ /usr/lib/gcc-snapshot/bin/g++ --version
g++ (Debian 20210320-1) 11.0.1 20210320 (experimental) [master revision
3279a9a5a9a:6526c452d22:5f256a70a05fcfc5a1caf56678ceb12b4f87f781]
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Source tree is:
$ git show
warning: unable to access '/root/.config/git/attributes': Permission denied
warning: unable to access '/root/.config/git/attributes': Permission denied
commit c4771b3438a8cd9afcef1762957b763f8df3fa6e
Author: Andre Vehreschild 
Date:   Sat May 22 13:36:31 2021 +0200

PR98301 Add missing changelog entries.


Building like so:

$ .../configure --target=h8300-linux --enable-werror-always
--enable-languages=all --prefix=/tmp/gcc-h8300-linux

$ make all-gcc
[...]
[all 2021-05-23 07:37:55] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../.././gcc -I../.././gcc/. -I../.././gcc/../include
-I../.././gcc/../libcpp/include -I../.././gcc/../libcody 
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/dpd
-I../libdecnumber -I../.././gcc/../libbacktrace   -o h8300.o -MT h8300.o -MMD
-MP -MF ./.deps/h8300.TPo ../.././gcc/config/h8300/h8300.c
[all 2021-05-23 07:37:58] ../.././gcc/config/h8300/h8300.c: In function 'void
h8300_emit_stack_adjustment(int, long int, bool)':
[all 2021-05-23 07:37:58] ../.././gcc/config/h8300/h8300.c:455:65: error:
unused parameter 'in_prologue' [-Werror=unused-parameter]
[all 2021-05-23 07:37:58]   455 | h8300_emit_stack_adjustment (int sign,
HOST_WIDE_INT size, bool in_prologue)
[all 2021-05-23 07:37:58]   |  
 ~^~~
[all 2021-05-23 07:37:58] ../.././gcc/config/h8300/h8300.c: In function
'rtx_def* push(int, bool)':
[all 2021-05-23 07:37:58] ../.././gcc/config/h8300/h8300.c:514:20: error:
unused parameter 'in_prologue' [-Werror=unused-parameter]
[all 2021-05-23 07:37:58]   514 | push (int rn, bool in_prologue)
[all 2021-05-23 07:37:58]   |   ~^~~
[all 2021-05-23 07:37:59] ../.././gcc/config/h8300/h8300.c: In function 'const
char* output_plussi(rtx_def**, bool)':
[all 2021-05-23 07:37:59] ../.././gcc/config/h8300/h8300.c:2707:11: error: this
statement may fall through [-Werror=implicit-fallthrough=]
[all 2021-05-23 07:37:59]  2707 |   if (!need_flags)
[all 2021-05-23 07:37:59]   |   ^~
[all 2021-05-23 07:37:59] ../.././gcc/config/h8300/h8300.c:2710:9: note: here
[all 2021-05-23 07:37:59]  2710 | case 0xfffc:
[all 2021-05-23 07:37:59]   | ^~~~
[all 2021-05-23 07:37:59] ../.././gcc/config/h8300/h8300.c:2711:11: error: this
statement may fall through [-Werror=implicit-fallthrough=]
[all 2021-05-23 07:37:59]  2711 |   if (!need_flags)
[all 2021-05-23 07:37:59]   |   ^~
[all 2021-05-23 07:37:59] ../.././gcc/config/h8300/h8300.c:2714:9: note: here
[all 2021-05-23 07:37:59]  2714 | case 0x0001:
[all 2021-05-23 07:37:59]   | ^~~~
[all 2021-05-23 07:37:59] ../.././gcc/config/h8300/h8300.c:2716:11: error: this
statement may fall through [-Werror=implicit-fallthrough=]
[all 2021-05-23 07:37:59]  2716 |   if (!need_flags)
[all 2021-05-23 07:37:59]   |   ^~
[all 2021-05-23 07:37:59] ../.././gcc/config/h8300/h8300.c:2722:9: note: here
[all 2021-05-23 07:37:59]  2722 | case 0x:
[all 2021-05-23 07:37:59]   | ^~~~
[all 2021-05-23 07:37:59] ../.././gcc/config/h8300/h8300.c: In function
'unsigned int compute_plussi_length(rtx_def**, bool)':
[all 2021-05-23 07:37:59] 

[Bug tree-optimization/56457] Bogus warning: loop-invariant.c:786:20: error: unused variable ‘regno’ when building vax-*-*

2021-05-15 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56457

Jan-Benedict Glaw  changed:

   What|Removed |Added

 CC||jbg...@lug-owl.de

--- Comment #4 from Jan-Benedict Glaw  ---
This can IMHO be closed. Using a 11.0.1 based compiler (Debian "unstable"'s
"gcc-snapshot package) to build current GCC versions (ie. tested with
5e0236d3b0e0d7ad98bcee36128433fa755b5558 as of May 9th, 2021), the warning
doesn't appear. Indeed, the VAX backend recently got quite a major overhault by
Maciej.

[Bug target/100603] New: csky: config/csky/csky.h:402:13: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]

2021-05-14 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100603

Bug ID: 100603
   Summary: csky: config/csky/csky.h:402:13: error: comparison of
unsigned expression in '>= 0' is always true
[-Werror=type-limits]
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

Hi!

I've started doing CI builds for numerous targets again and stumbled over this
(as of 5e0236d3b0e0d7ad98bcee36128433fa755b5558) using Debian's "gcc-snapshot":

$ g++ --version
g++ (Debian 20210320-1) 11.0.1 20210320 (experimental) [master revision
3279a9a5a9a:6526c452d22:5f256a70a05fcfc5a1caf56678ceb12b4f87f781]

$ ./configure --target=csky-linux-gnu --enable-werror-always
--enable-languages=all --prefix=/tmp/gcc-csky-linux-gnu

$ make all-gcc
[...]
/usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2 -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../.././gcc -I../.././gcc/. -I../.././gcc/../include
-I../.././gcc/../libcpp/include -I../.././gcc/../libcody 
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/dpd
-I../libdecnumber -I../.././gcc/../libbacktrace   -o builtins.o -MT builtins.o
-MMD -MP -MF ./.deps/builtins.TPo ../.././gcc/builtins.c
[all 2021-05-13 15:48:27.392703] In file included from ./tm.h:32,
[all 2021-05-13 15:48:27.392897]  from
../.././gcc/backend.h:28,
[all 2021-05-13 15:48:27.392981]  from
../.././gcc/builtins.c:27:
[all 2021-05-13 15:48:27.393053] ../.././gcc/builtins.c: In function 'int
apply_args_size()':
[all 2021-05-13 15:48:27.393128] ../.././gcc/config/csky/csky.h:402:13: error:
comparison of unsigned expression in '>= 0' is always true
[-Werror=type-limits]
[all 2021-05-13 15:48:27.393204]   402 |   (((REGNO) >= CSKY_FIRST_PARM_REGNUM 
  \
[all 2021-05-13 15:48:27.393279] ../.././gcc/builtins.c:2187:13: note: in
expansion of macro 'FUNCTION_ARG_REGNO_P'
[all 2021-05-13 15:48:27.393350]  2187 | if (FUNCTION_ARG_REGNO_P
(regno))
[all 2021-05-13 15:48:27.393420]   | ^~~~
[all 2021-05-13 15:49:14.430002] cc1plus: all warnings being treated as errors
[all 2021-05-13 15:49:14.463549] make[1]: *** [Makefile:1142: builtins.o] Error
1
[all 2021-05-13 15:49:14.464381] make[1]: Leaving directory
'/var/lib/laminar/run/gcc-csky-linux-gnu/1/gcc/host-x86_64-pc-linux-gnu/gcc'
[all 2021-05-13 15:49:14.469285] make: *** [Makefile:4432: all-gcc] Error 2

[Bug target/100332] New: mcore-elf: error: 'prev_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]

2021-04-29 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100332

Bug ID: 100332
   Summary: mcore-elf: error: 'prev_addr' may be used
uninitialized in this function
[-Werror=maybe-uninitialized]
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

I'm revamping my testing efforts, building cross compilers based on targets
listed in ./contrib/config-list.mk.

With .../configure --target=mcore-elf --enable-werror-always
--enable-languages=all --prefix=/tmp/gcc-mcore-elf (using g++ (Debian
20210320-1) 11.0.1 20210320 (experimental) [master revision
3279a9a5a9a:6526c452d22:5f256a70a05fcfc5a1caf56678ceb12b4f87f781] as the host's
compiler), build breaks (as of 37846c42f1f5ac4d9ba190d49c4373673c89c8b5) with
this (cf. http://toolchain.lug-owl.de:8080/jobs/gcc-mcore-elf/11):

make all-gcc
[...]
all 2021-04-29 09:39:37.528923] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g
-O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../.././gcc -I../.././gcc/. -I../.././gcc/../include
-I../.././gcc/../libcpp/include -I../.././gcc/../libcody 
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/dpd
-I../libdecnumber -I../.././gcc/../libbacktrace   -o dwarf2out.o -MT
dwarf2out.o -MMD -MP -MF ./.deps/dwarf2out.TPo ../.././gcc/dwarf2out.c
[all 2021-04-29 09:40:06.839260] ../.././gcc/dwarf2out.c: In function 'void
output_one_line_info_table(dw_line_info_table*)':
[all 2021-04-29 09:40:06.839476] ../.././gcc/dwarf2out.c:12831:82: error:
'prev_addr' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
[all 2021-04-29 09:40:06.839552] 12831 |
ASM_GENERATE_INTERNAL_LABEL (prev_label, LINE_CODE_LABEL, prev_addr->val);
[all 2021-04-29 09:40:06.839627]   |   
  ^~~
[all 2021-04-29 09:41:39.466117] cc1plus: all warnings being treated as errors
[all 2021-04-29 09:41:39.525930] make[1]: *** [Makefile:1141: dwarf2out.o]
Error 1
[all 2021-04-29 09:41:39.578999] make[1]: Leaving directory
'/var/lib/laminar/run/gcc-mcore-elf/11/gcc/host-x86_64-pc-linux-gnu/gcc'
[all 2021-04-29 09:41:39.818955] make: *** [Makefile:4428: all-gcc] Error 2


Thanks,
Jan-Benedict

[Bug c/100268] New: lm32-uclinux: ../.././gcc/config/lm32/uclinux-elf.h:70: error: "LINK_GCC_C_SEQUENCE_SPEC" redefined [-Werror]

2021-04-26 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100268

Bug ID: 100268
   Summary: lm32-uclinux:
../.././gcc/config/lm32/uclinux-elf.h:70: error:
"LINK_GCC_C_SEQUENCE_SPEC" redefined [-Werror]
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

I'm revamping my testing efforts, building cross compilers based on targets
listed in ./contrib/config-list.mk.

With .../configure --target=lm32-uclinux --enable-werror-always
--enable-languages=all --prefix=/tmp/gcc-lm32-uclinux (using g++ (Debian
20210320-1) 11.0.1 20210320 (experimental) [master revision
3279a9a5a9a:6526c452d22:5f256a70a05fcfc5a1caf56678ceb12b4f87f781] as the host's
compiler), build breaks (as of ed16241c6db23013d70b792a64f29080ad48a414) with
this (cf. http://toolchain.lug-owl.de:8080/jobs/gcc-lm32-uclinux/8):

make all-gcc
[...]
[all 2021-04-26 10:11:40.136777] /usr/lib/gcc-snapshot/bin/g++ -c   -g -O2
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE
-fno-PIE -I. -Ibuild -I../.././gcc -I../.././gcc/build -I../.././gcc/../include
 -I../.././gcc/../libcpp/include  \
[all 2021-04-26 10:11:40.136990]-o build/genpreds.o
../.././gcc/genpreds.c
[all 2021-04-26 10:11:40.413151] In file included from ./tm.h:29,
[all 2021-04-26 10:11:40.413344]  from
../.././gcc/genpreds.c:26:
[all 2021-04-26 10:11:40.413447] ../.././gcc/config/lm32/uclinux-elf.h:70:
error: "LINK_GCC_C_SEQUENCE_SPEC" redefined [-Werror]
[all 2021-04-26 10:11:40.413548]70 | #define LINK_GCC_C_SEQUENCE_SPEC \
[all 2021-04-26 10:11:40.413625]   | 
[all 2021-04-26 10:11:40.413708] In file included from ./tm.h:27,
[all 2021-04-26 10:11:40.413779]  from
../.././gcc/genpreds.c:26:
[all 2021-04-26 10:11:40.413850] ../.././gcc/config/gnu-user.h:117: note: this
is the location of the previous definition
[all 2021-04-26 10:11:40.413922]   117 | #define LINK_GCC_C_SEQUENCE_SPEC
GNU_USER_TARGET_LINK_GCC_C_SEQUENCE_SPEC
[all 2021-04-26 10:11:40.413994]   | 
[all 2021-04-26 10:11:45.105909] cc1plus: all warnings being treated as errors
[all 2021-04-26 10:11:45.120330] make[1]: *** [Makefile:2815: build/genpreds.o]
Error 1
[all 2021-04-26 10:11:45.120546] make[1]: Leaving directory
'/var/lib/laminar/run/gcc-lm32-uclinux/8/gcc/host-x86_64-pc-linux-gnu/gcc'
[all 2021-04-26 10:11:45.139714] make: *** [Makefile:4428: all-gcc] Error 2

A simple undef will probably do?

Thanks,
Jan-Benedict

[Bug debug/100255] New: Crosscompiler to ia64-hp-vms: vmsdbgout.c:368:20: error: ISO C++17 does not allow 'register' storage class specifier [-Werror=register]

2021-04-25 Thread jbglaw--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100255

Bug ID: 100255
   Summary: Crosscompiler to ia64-hp-vms: vmsdbgout.c:368:20:
error: ISO C++17 does not allow 'register' storage
class specifier [-Werror=register]
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: debug
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jbg...@lug-owl.de
  Target Milestone: ---

I'm revamping my testing efforts, building cross compilers based on targets
listed in ./contrib/config-list.mk.

With .../configure --target=ia64-hp-vms --enable-werror-always
--enable-languages=all --prefix=/tmp/gcc-ia64-hp-vms (using g++ (Debian
20210320-1) 11.0.1 20210320 (experimental) [master revision
3279a9a5a9a:6526c452d22:5f256a70a05fcfc5a1caf56678ceb12b4f87f781] as the host's
compiler), build breaks (as of ed16241c6db23013d70b792a64f29080ad48a414) with
this (cf. http://toolchain.lug-owl.de:8080/jobs/gcc-ia64-hp-vms/8):

make all-gcc
[...]
[all 2021-04-25 20:52:34.441260] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c  
-g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../.././gcc -I../.././gcc/. -I../.././gcc/../include
-I../.././gcc/../libcpp/include -I../.././gcc/../libcody 
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/dpd
-I../libdecnumber -I../.././gcc/../libbacktrace   -o vmsdbgout.o -MT
vmsdbgout.o -MMD -MP -MF ./.deps/vmsdbgout.TPo ../.././gcc/vmsdbgout.c
[all 2021-04-25 20:52:38.329848] ../.././gcc/vmsdbgout.c: In function 'int
write_debug_string(const char*, const char*, int)':
[all 2021-04-25 20:52:38.330047] ../.././gcc/vmsdbgout.c:368:20: error: ISO
C++17 does not allow 'register' storage class specifier [-Werror=register]
[all 2021-04-25 20:52:38.330139]   368 |   register int slen = strlen (P); 
 \
[all 2021-04-25 20:52:38.330220]   |^~~~
[all 2021-04-25 20:52:38.330296] ../.././gcc/vmsdbgout.c:549:7: note: in
expansion of macro 'ASM_OUTPUT_DEBUG_STRING'
[all 2021-04-25 20:52:38.330371]   549 |   ASM_OUTPUT_DEBUG_STRING
(asm_out_file, string);
[all 2021-04-25 20:52:38.330447]   |   ^~~
[all 2021-04-25 20:52:38.331123] ../.././gcc/vmsdbgout.c:369:28: error: ISO
C++17 does not allow 'register' storage class specifier [-Werror=register]
[all 2021-04-25 20:52:38.331292]   369 |   register const char *p = (P);   
 \
[all 2021-04-25 20:52:38.331370]   |^
[all 2021-04-25 20:52:38.331439] ../.././gcc/vmsdbgout.c:549:7: note: in
expansion of macro 'ASM_OUTPUT_DEBUG_STRING'
[all 2021-04-25 20:52:38.331505]   549 |   ASM_OUTPUT_DEBUG_STRING
(asm_out_file, string);
[all 2021-04-25 20:52:38.331577]   |   ^~~
[all 2021-04-25 20:52:38.331953] ../.././gcc/vmsdbgout.c:370:20: error: ISO
C++17 does not allow 'register' storage class specifier [-Werror=register]
[all 2021-04-25 20:52:38.332102]   370 |   register int i; 
 \
[all 2021-04-25 20:52:38.332181]   |^
[all 2021-04-25 20:52:38.332287] ../.././gcc/vmsdbgout.c:549:7: note: in
expansion of macro 'ASM_OUTPUT_DEBUG_STRING'
[all 2021-04-25 20:52:38.332364]   549 |   ASM_OUTPUT_DEBUG_STRING
(asm_out_file, string);
[all 2021-04-25 20:52:38.332437]   |   ^~~
[all 2021-04-25 20:52:38.333260] ../.././gcc/vmsdbgout.c:374:24: error: ISO
C++17 does not allow 'register' storage class specifier [-Werror=register]
[all 2021-04-25 20:52:38.333448]   374 |   register int c = p[i];  
 \
[all 2021-04-25 20:52:38.333528]   |^
[all 2021-04-25 20:52:38.333600] ../.././gcc/vmsdbgout.c:549:7: note: in
expansion of macro 'ASM_OUTPUT_DEBUG_STRING'
[all 2021-04-25 20:52:38.333668]   549 |   ASM_OUTPUT_DEBUG_STRING
(asm_out_file, string);
[all 2021-04-25 20:52:38.333734]   |   ^~~
[all 2021-04-25 20:52:38.386301] ../.././gcc/vmsdbgout.c: At global scope:
[all 2021-04-25 20:52:38.386507] ../.././gcc/vmsdbgout.c:1232:42: error: ISO
C++17 does not allow 'register' storage class specifier [-Werror=register]
[all 2021-04-25 20:52:38.386595]  1232 | vmsdbgout_begin_block (register
unsigned line, register unsigned blocknum)
[all 2021-04-25 20:52:38.386663]   |   
  ^~~~
[all 2021-04-25 20:52:38.387009] ../.././gcc/vmsdbgout.c:1232:66: error: ISO
C++17 does not allow 'register' storage class specifier [-Werror=register]
[all 2021-04-25 20:52:38.387164]  1232 | vmsdbgout_begin_block (register
unsigned