[Bug target/99663] [11 Regression] ICE in extract_constrain_insn, at recog.c:2670 on s390x-linux-gnu

2021-03-19 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99663

Matthias Klose  changed:

   What|Removed |Added

 Status|WAITING |NEW
 CC||doko at gcc dot gnu.org

[Bug lto/99447] [11 Regression] ICE (segfault) in lookup_page_table_entry

2021-03-26 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99447

Matthias Klose  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |WORKSFORME
 CC||doko at gcc dot gnu.org

--- Comment #13 from Matthias Klose  ---
rechecked with trunk 20210321, and gcc-10 branch. I can't reproduce this
anymore.

[Bug ipa/99447] [11 Regression] ICE (segfault) in lookup_page_table_entry

2021-03-31 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99447

Matthias Klose  changed:

   What|Removed |Added

 Status|WAITING |NEW

[Bug ipa/99447] [11 Regression] ICE (segfault) in lookup_page_table_entry

2021-03-31 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99447

--- Comment #22 from Matthias Klose  ---
this is a compiler configured with --enable-default--pie

[Bug ada/98996] [11 Regression] mips64 ada ftbfs

2021-02-16 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98996

--- Comment #3 from Matthias Klose  ---
patches posted at
https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565312.html
https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565313.html

[Bug target/108339] New: riscv64-linux-gnu: fails to link libgcc_s.so on the GCC 10 branch

2023-01-09 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108339

Bug ID: 108339
   Summary: riscv64-linux-gnu: fails to link libgcc_s.so on the
GCC 10 branch
   Product: gcc
   Version: 10.4.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

the gcc-10 branch fails to build on riscv64-linux-gnu with the binutils-2.40
branch, trying to build a cross compiler, building libgcc_s.so:

/usr/riscv64-linux-gnu/bin/ld: relocation R_RISCV_JAL against `__udivdi3' which
may bind externally
 can not be used when making a shared object; recompile with -fPIC
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:994: libgcc_s.so] Error 1
make[5]: Leaving directory
'/<>/gcc/build/riscv64-linux-gnu/libgcc'

all newer branches and the trunk successfully build with this binutils
versions, so assuming that some backport is needed for the gcc-10 branch to
work with recent binutils?

[Bug target/108339] [11/10 only] riscv64-linux-gnu: fails to link libgcc_s.so on the GCC 10 branch

2023-01-09 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108339

--- Comment #3 from Matthias Klose  ---
thanks for the pointer. The GCC 11 branch already has the backport.

[Bug target/108567] New: gccrs bootstrap comparison failure on mipsel-linux-gnu

2023-01-26 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108567

Bug ID: 108567
   Summary: gccrs bootstrap comparison failure on mipsel-linux-gnu
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with different snapshots, last confirmed with 20230126 on mipsel-linux-gnu
(mips64el-linux-gnu bootstrap works):

Bootstrap comparison failure!
gcc/rust/rust-macro-builtins.o differs
gcc/rust/rust-session-manager.o differs
gcc/rust/rust-cfg-parser.o differs
gcc/rust/rust-lex.o differs
make[4]: *** [Makefile:30369: compare] Error 1

full build logs at
https://buildd.debian.org/status/logs.php?pkg=gcc-13&arch=mipsel

[Bug middle-end/108102] rust bootstrap comparison failure on s390x-linux-gnu

2023-02-07 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108102

--- Comment #13 from Matthias Klose  ---
this isn't seen anymore with current trunk. close as worksforme?

[Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu

2022-03-08 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835

Bug ID: 104835
   Summary: [12 Regression] libphobos fails to build on
mips64el-linux-gnu
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: d
  Assignee: ibuclaw at gdcproject dot org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20220302 on mips64el-linux-gnu:

libtool: compile:  /<>/build/./gcc/gdc
-B/<>/build/./gcc/ -B/usr/mips6
4el-linux-gnuabi64/bin/ -B/usr/mips64el-linux-gnuabi64/lib/ -isystem
/usr/mips64el-linux-gnuabi6
4/include -isystem /usr/mips64el-linux-gnuabi64/sys-include -isystem
/<>/build/sys-
include -fno-checking -fversion=Shared -Wall -frelease -ffunction-sections
-fdata-sections -O2 -
g -fpreview=dip1000 -fpreview=fieldwise -fpreview=dtorfields -nostdinc -I
../../../../src/libpho
bos/libdruntime -I . -c
../../../../src/libphobos/libdruntime/core/internal/parseoptions.d  -fPI
C -fversion=Shared -o core/internal/.libs/parseoptions.o
d21: internal compiler error: Segmentation fault
0x1203cbc7f
_D3dmd10dinterpret11Interpreter21interpretAssignCommonMFCQCd10expression6BinExpPFKxS
QDe7globals3LocCQDu5mtype4TypeCQEjQCg10ExpressionQtZSQFfQDc8UnionExpiZv
../../src/gcc/d/dmd/dinterpret.d:3678
0x1203b7de3
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCcQz10ExpressionPSQCvQCu10I
nterStateEQDoQDn8CTFEGoalZQCd
../../src/gcc/d/dmd/dinterpret.d:6420
0x1203b7de3
_D3dmd10dinterpret15interpretRegionFCQBj10expression10ExpressionPSQCmQCl10InterState
EQDfQDe8CTFEGoalZQCn
../../src/gcc/d/dmd/dinterpret.d:6448
0x1203cf5a3 Interpreter::visit(CallExp*)
../../src/gcc/d/dmd/dinterpret.d:4843
0x1203b855b
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCcQz10ExpressionPSQCvQCu10I
nterStateEQDoQDn8CTFEGoalZQCd
../../src/gcc/d/dmd/dinterpret.d:6420
0x1203b855b Interpreter::visit(ExpStatement*)
../../src/gcc/d/dmd/dinterpret.d:805
0x1203b855b Interpreter::visit(ExpStatement*)
../../src/gcc/d/dmd/dinterpret.d:790
0x1203b8c7b
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCc9statement9StatementPSQDbQDa10InterStateZCQDvQCs10Expression
../../src/gcc/d/dmd/dinterpret.d:6485
0x1203b8c7b Interpreter::visit(IfStatement*)
../../src/gcc/d/dmd/dinterpret.d:907
0x1203b577b
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCc9statement9StatementPSQDbQDa10InterStateZCQDvQCs10Expression
../../src/gcc/d/dmd/dinterpret.d:6485
0x1203b577b Interpreter::visit(CompoundStatement*)
../../src/gcc/d/dmd/dinterpret.d:823
0x1203b577b
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCc9statement9StatementPSQDbQDa10InterStateZCQDvQCs10Expression
../../src/gcc/d/dmd/dinterpret.d:6485
0x1203b577b Interpreter::visit(CompoundStatement*)
../../src/gcc/d/dmd/dinterpret.d:823
0x1203c5b97
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCc9statement9StatementPSQDbQDa10InterStateZCQDvQCs10Expression
../../src/gcc/d/dmd/dinterpret.d:6485
0x1203c5b97
_D3dmd10dinterpret17interpretFunctionFPSQBm10expression8UnionExpCQCl4func15FuncDeclarationPSQDmQDl10InterStatePSQEg4root5array__T5ArrayTCQFfQDt10ExpressionZQBbQxZQBa
../../src/gcc/d/dmd/dinterpret.d:644
0x1203cefcf Interpreter::visit(CallExp*)
../../src/gcc/d/dmd/dinterpret.d:4962
0x1203b9483
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCcQz10ExpressionPSQCvQCu10InterStateEQDoQDn8CTFEGoalZQCd
../../src/gcc/d/dmd/dinterpret.d:6420
0x1203b9483 Interpreter::visit(ReturnStatement*)
../../src/gcc/d/dmd/dinterpret.d:1037
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[7]: *** [Makefile:2475: core/internal/parseoptions.lo] Error 1

[Bug d/104889] New: [12 Regression] D frontend fails to link on x86_64-linux-gnux32

2022-03-11 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104889

Bug ID: 104889
   Summary: [12 Regression] D frontend fails to link on
x86_64-linux-gnux32
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: d
  Assignee: ibuclaw at gdcproject dot org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20220302 on x86_64-linux-gnu during stage1, with
x86_64-linux-gnux32-gdc-10 as the bootstrap compiler.

/usr/bin/ld: auto-profile.o: in function
`__gnu_cxx::new_allocator > >::allocate(unsigned int, void const*)':
/usr/include/c++/11/ext/new_allocator.h:116: undefined reference to
`std::__throw_bad_array_new_length()'
/usr/bin/ld: auto-profile.o: in function
`__gnu_cxx::new_allocator > >::allocate(unsigned int, void const*)':
/usr/include/c++/11/ext/new_allocator.h:116: undefined reference to
`std::__throw_bad_array_new_length()'
/usr/bin/ld: auto-profile.o: in function
`__gnu_cxx::new_allocator > >::allocate(unsigned int, void const*)':
/usr/include/c++/11/ext/new_allocator.h:116: undefined reference to
`std::__throw_bad_array_new_length()'
/usr/bin/ld: auto-profile.o: in function
`__gnu_cxx::new_allocator const, autofdo::function_instance*> > >::allocate(unsigned int,
void const*)':
/usr/include/c++/11/ext/new_allocator.h:116: undefined reference to
`std::__throw_bad_array_new_length()'
/usr/bin/ld: auto-profile.o: in function
`__gnu_cxx::new_allocator > >::allocate(unsigned int, void const*)':
/usr/include/c++/11/ext/new_allocator.h:116: undefined reference to
`std::__throw_bad_array_new_length()'
/usr/bin/ld: auto-profile.o:/usr/include/c++/11/ext/new_allocator.h:116: more
undefined references to `std::__throw_bad_array_new_length()' follow
collect2: error: ld returned 1 exit status
make[5]: *** [../../src/gcc/d/Make-lang.in:228: d21] Error 1

[Bug d/104889] [12 Regression] D frontend fails to link on x86_64-linux-gnux32

2022-03-11 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104889

--- Comment #2 from Matthias Klose  ---
> Hmm, mixing the library from GCC 10 but compiling with g++-10 

ok, I'll check that

[Bug target/104890] New: [12 Regression] fails to build the 32bit libgcc on x86_64-linux-gnu

2022-03-12 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104890

Bug ID: 104890
   Summary: [12 Regression] fails to build the 32bit libgcc on
x86_64-linux-gnu
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

trunk 20220312 fails to build the 32bit libgcc on x86_64-linux-gnu:

/home/packages/gcc/12/gcc-12-12-20220312/build/./gcc/xgcc
-B/home/packages/gcc/12/gcc-12-12-20220312/build/./gcc/ -B/usr/x86_6
4-linux-gnu/bin/ -B/usr/x86_64-linux-gnu/lib/ -isystem
/usr/x86_64-linux-gnu/include -isystem /usr/x86_64-linux-gnu/sys-includ
e -isystem /home/packages/gcc/12/gcc-12-12-20220312/build/sys-include  
-fchecking=1 -g -O2 -m32 -O2  -g -O2 -DIN_GCC-W -W
all -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./inc
lude  -fpic -mlong-double-80 -DUSE_ELF_SYMVER -fcf-protection -mshstk -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  
-fpic -mlong-double-80 -DUSE_ELF_SYMVER -fcf-protection -mshstk -I. -I.
-I../../.././gcc -I../../../../src/libgcc -I../../../.
./src/libgcc/. -I../../../../src/libgcc/../gcc
-I../../../../src/libgcc/../include -I../../../../src/libgcc/config/libbid -DEN
ABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS  -o unwind-dw2.o -MT
unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c 
../../../../src/libgcc/unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from
/home/packages/gcc/12/gcc-12-12-20220312/build/gcc/include/x86gprintrin.h:45,
 from
../../../../src/libgcc/config/i386/shadow-stack-unwind.h:25,
 from ./md-unwind-support.h:27,
 from ../../../../src/libgcc/unwind-dw2.c:412:
/home/packages/gcc/12/gcc-12-12-20220312/build/gcc/include/cetintrin.h: In
function '_Unwind_RaiseException':
/home/packages/gcc/12/gcc-12-12-20220312/build/gcc/include/cetintrin.h:47:1:
error: inlining failed in call to 'always_inline' '_get_ssp': target specific
option mismatch
   47 | _get_ssp (void)
  | ^~~~
../../../../src/libgcc/config/i386/shadow-stack-unwind.h:32:26: note: called
from here
   32 |   _Unwind_Word ssp = _get_ssp ();   \
  |  ^~~
../../../../src/libgcc/unwind-dw2.c:1654:7: note: in expansion of macro
'_Unwind_Frames_Extra'
 1654 |   _Unwind_Frames_Extra (FRAMES);   
\
  |   ^~~~
../../../../src/libgcc/unwind.inc:140:3: note: in expansion of macro
'uw_install_context'
  140 |   uw_install_context (&this_context, &cur_context, frames);
  |   ^~
/home/packages/gcc/12/gcc-12-12-20220312/build/gcc/include/cetintrin.h:55:1:
error: inlining failed in call to 'always_inline' '_inc_ssp': target specific
option mismatch
   55 | _inc_ssp (unsigned int __B)
  | ^~~~
../../../../src/libgcc/config/i386/shadow-stack-unwind.h:38:15: note: called
from here
   38 |   _inc_ssp (255);   \
  |   ^~
../../../../src/libgcc/unwind-dw2.c:1654:7: note: in expansion of macro
'_Unwind_Frames_Extra'
 1654 |   _Unwind_Frames_Extra (FRAMES);   
\
  |   ^~~~
../../../../src/libgcc/unwind.inc:140:3: note: in expansion of macro
'uw_install_context'
  140 |   uw_install_context (&this_context, &cur_context, frames);
  |   ^~
/home/packages/gcc/12/gcc-12-12-20220312/build/gcc/include/cetintrin.h:55:1:
error: inlining failed in call to 'always_inline' '_inc_ssp': target specific
option mismatch
   55 | _inc_ssp (unsigned int __B)
  | ^~~~
../../../../src/libgcc/config/i386/shadow-stack-unwind.h:41:11: note: called
from here
   41 |   _inc_ssp (tmp);   \
  |   ^~
../../../../src/libgcc/unwind-dw2.c:1654:7: note: in expansion of macro
'_Unwind_Frames_Extra'
 1654 |   _Unwind_Frames_Extra (FRAMES);   
\
  |   ^~~~

../../../../src/libgcc/unwind.inc:140:3: note: in expansion of macro
'uw_install_context'
  140 |   uw_install_context (&this_context, &cur_context, frames);
  |   ^~
make[7]: *** [../../../../src/libgcc/shared-object.mk:14: unwind-dw2.o] Error 1
make[7]: Leaving directory
'/home/packages/gcc/12/gcc-12-12-20220312/build/x86_64-linux-gnu/32/libgcc'

GCC is configured with:

Configured with: -v
 --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2
 --prefix=/usr
 --with-gcc-major-version-only
 --program-suffix=-12
 --program-prefix=x86_64-linux-gnu-
 --enable-shared
 --enable-linker-build-id
 --libexecdir=/usr/lib
 --without-included-gettext

[Bug target/104890] [12 Regression] fails to build the 32bit libgcc on x86_64-linux-gnu

2022-03-12 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104890

--- Comment #1 from Matthias Klose  ---
that is only seen when configuring with --enable-default-pie

[Bug target/104890] [12 Regression] fails to build the 32bit libgcc on x86_64-linux-gnu (--enable-default-pie)

2022-03-12 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104890

--- Comment #3 from Matthias Klose  ---
Created attachment 52616
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52616&action=edit
preprocessed source

/home/packages/gcc/12/gcc-12-12-20220313/build/./gcc/cc1 -E -quiet -v -I . -I .
-I ../../.././gcc -I ../../../../src/libgcc -
I ../../../../src/libgcc/. -I ../../../../src/libgcc/../gcc -I
../../../../src/libgcc/../include -I ../../../../src/libgcc/con
fig/libbid -imultilib 32 -imultiarch i386-linux-gnu -iprefix
/home/packages/gcc/12/gcc-12-12-20220313/build/gcc/../lib/gcc/x86
_64-linux-gnu/12/ -isystem
/home/packages/gcc/12/gcc-12-12-20220313/build/./gcc/include -isystem
/home/packages/gcc/12/gcc-12-
12-20220313/build/./gcc/include-fixed -MD unwind-dw2.d -MF unwind-dw2.dep -MP
-MT unwind-dw2.o -D IN_GCC -D USE_ELF_SYMVER -D 
IN_LIBGCC2 -D USE_ELF_SYMVER -D ENABLE_DECIMAL_BID_FORMAT -D HAVE_CC_TLS -D
USE_TLS -D HIDE_EXPORTS -isystem /usr/x86_64-linux
-gnu/include -isystem /usr/x86_64-linux-gnu/sys-include -isystem
/home/packages/gcc/12/gcc-12-12-20220313/build/sys-include -i
system ./include ../../../../src/libgcc/unwind-dw2.c -m32 -mlong-double-80
-mshstk -mtune=generic -march=i686 -Wextra -Wall -W
no-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -fchecking=1 -fcf-pro
tection=full -fbuilding-libgcc -fno-stack-protector -fpic -fcf-protection=full
-fexceptions -fvisibility=hidden -g -g -g -fwor
king-directory -O2 -O2 -O2 -fpch-preprocess -fasynchronous-unwind-tables -o
unwind-dw2.i

In file included from
/home/packages/gcc/12/gcc-12-12-20220313/build/gcc/include/x86gprintrin.h:45,
 from
../../../../src/libgcc/config/i386/shadow-stack-unwind.h:25,
 from ./md-unwind-support.h:27,
 from ../../../../src/libgcc/unwind-dw2.c:412:
/home/packages/gcc/12/gcc-12-12-20220313/build/gcc/include/cetintrin.h: In
function ‘_Unwind_RaiseException’:
/home/packages/gcc/12/gcc-12-12-20220313/build/gcc/include/cetintrin.h:47:1:
error: inlining failed in call to ‘always_inline’ ‘_get_ssp’: target specific
option mismatch
   47 | _get_ssp (void)
  | ^~~~
In file included from ../../../../src/libgcc/unwind-dw2.c:1728:
../../../../src/libgcc/unwind.inc:140:217: note: called from here
  140 |   uw_install_context (&this_context, &cur_context, frames);
  |
   
^  
/home/packages/gcc/12/gcc-12-12-20220313/build/gcc/include/cetintrin.h:55:1:
error: inlining failed in call to ‘always_inline’ ‘_inc_ssp’: target specific
option mismatch
   55 | _inc_ssp (unsigned int __B)
  | ^~~~
../../../../src/libgcc/unwind.inc:140:295: note: called from here
  140 |   uw_install_context (&this_context, &cur_context, frames);
  |
   
   
  ^ 
/home/packages/gcc/12/gcc-12-12-20220313/build/gcc/include/cetintrin.h:55:1:
error: inlining failed in call to ‘always_inline’ ‘_inc_ssp’: target specific
option mismatch
   55 | _inc_ssp (unsigned int __B)
  | ^~~~
../../../../src/libgcc/unwind.inc:140:325: note: called from here
  140 |   uw_install_context (&this_context, &cur_context, frames);
  |
   
   
   
^

[Bug target/104890] [12 Regression] fails to build the 32bit libgcc on x86_64-linux-gnu (--enable-default-pie)

2022-03-12 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104890

Matthias Klose  changed:

   What|Removed |Added

 Status|WAITING |NEW

[Bug target/104890] [12 Regression] fails to build the 32bit libgcc on x86_64-linux-gnu (--enable-default-pie)

2022-03-12 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104890

--- Comment #4 from Matthias Klose  ---
about the configure options, apparently pie is not the culprit, configuring
with --enable-cet is.  note that I didn't use --disable-bootstrap.

[Bug target/104890] [12 Regression] fails to build the 32bit libgcc on x86_64-linux-gnu (--enable-cet --with-arch-32=i686)

2022-03-13 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104890

Matthias Klose  changed:

   What|Removed |Added

 Status|WAITING |NEW

--- Comment #10 from Matthias Klose  ---
The v2 patch fixes the issue for me.

[Bug d/104889] [12 Regression] D frontend fails to link on x86_64-linux-gnux32

2022-03-18 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104889

Matthias Klose  changed:

   What|Removed |Added

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

--- Comment #3 from Matthias Klose  ---
the bootstrap works for me again.

[Bug bootstrap/106145] [12/13 Regression] /usr/bin/ld: libcommon.a(input.o): copy relocation against non-copyable protected symbol `__cxa_pure_virtual' on aarch64-linux-gnu

2022-07-20 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106145

Matthias Klose  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|UNCONFIRMED |RESOLVED

--- Comment #3 from Matthias Klose  ---
and now unreproducible with updated binutils and gcc packages ... closing

[Bug modula2/106917] New: modula-2 fails to bootstrap with the modula-2 branch ,20220912

2022-09-12 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106917

Bug ID: 106917
   Summary: modula-2 fails to bootstrap with the modula-2 branch
,20220912
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: modula2
  Assignee: gaius at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

the modula-2 branch 20220912 fails to build:

echo "GM2_FOR_TARGET "
/bin/bash ../../src/gcc/m2/tools-src/makeSystem -fiso \
 ../../src/gcc/m2/gm2-libs-iso/SYSTEM.def \
 ../../src/gcc/m2/gm2-libs-iso/SYSTEM.mod \
 -I../../src/gcc/m2/gm2-libs-iso:../../src/gcc/m2/gm2-libs \
 ""
/home/packages/gcc/snap/gcc-snapshot-20220912/build/gcc/m2/gm2-libs-iso/SYSTEM.d
ef
/bin/bash ../../src/gcc/m2/tools-src/makeSystem -fpim \
 ../../src/gcc/m2/gm2-libs-coroutines/SYSTEM.def \
 ../../src/gcc/m2/gm2-libs-coroutines/SYSTEM.mod \

-I../../src/gcc/m2/gm2-libs-coroutines:../../src/gcc/m2/gm2-libs-iso:../../src/gcc/
m2/gm2-libs \
 ""
/home/packages/gcc/snap/gcc-snapshot-20220912/build/gcc/m2/gm2-libs-coroutines/S
YSTEM.def
GM2_FOR_TARGET 
echo "GCC_FOR_TARGET
/home/packages/gcc/snap/gcc-snapshot-20220912/build/./gcc/xgcc -B/home/pack
ages/gcc/snap/gcc-snapshot-20220912/build/./gcc/ -fno-checking"
GCC_FOR_TARGET /home/packages/gcc/snap/gcc-snapshot-20220912/build/./gcc/xgcc
-B/home/packages/g
cc/snap/gcc-snapshot-20220912/build/./gcc/ -fno-checking
/bin/bash ../../src/gcc/m2/tools-src/makeSystem -fpim \
 ../../src/gcc/m2/gm2-libs/SYSTEM.def \
 ../../src/gcc/m2/gm2-libs/SYSTEM.mod \
 -I../../src/gcc/m2/gm2-libs \
 ""
/home/packages/gcc/snap/gcc-snapshot-20220912/build/gcc/m2/gm2-libs/SYSTEM.def
parameter 5 of makeSystem is incorrect, GM2_FOR_TARGET was unset
make[5]: *** [../../src/gcc/m2/Make-lang.in:1469:
/home/packages/gcc/snap/gcc-snapshot-20220912/
build/gcc/m2/gm2-libs-iso/SYSTEM.def] Error 1
make[5]: *** Waiting for unfinished jobs
parameter 5 of makeSystem is incorrect, GM2_FOR_TARGET was unset
make[5]: *** [../../src/gcc/m2/Make-lang.in:1476:
/home/packages/gcc/snap/gcc-snapshot-20220912/build/gcc/m2/gm2-libs-coroutines/SYSTEM.def]
Error 1
parameter 5 of makeSystem is incorrect, GM2_FOR_TARGET was unset
make[5]: *** [../../src/gcc/m2/Make-lang.in:1462:
/home/packages/gcc/snap/gcc-snapshot-20220912/build/gcc/m2/gm2-libs/SYSTEM.def]
Error 1

[Bug target/106919] New: [13 Regression] RTL check: expected code 'set' or 'clobber', have 'if_then_else' in s390_rtx_costs, at config/s390/s390.cc:3672on s390x-linux-gnu

2022-09-12 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106919

Bug ID: 106919
   Summary: [13 Regression] RTL check: expected code 'set' or
'clobber', have 'if_then_else' in s390_rtx_costs, at
config/s390/s390.cc:3672on s390x-linux-gnu
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20220912 on s390x-linux-gnu

during RTL pass: ce1
../../../src/libgcc/libgcc2.c: In function '__multi3':
../../../src/libgcc/libgcc2.c:538:1: internal compiler error: RTL check:
expected code 'set' or 'clobber', have 'if_then_else' in s390_rtx_costs, at
config/s390/s390.cc:3672
  538 | }
  | ^
0x2b6a7dd s390_rtx_costs
../../src/gcc/config/s390/s390.cc:3672
0x232e3cd rtx_cost(rtx_def*, machine_mode, rtx_code, int, bool)
../../src/gcc/rtlanal.cc:4601
0x2307a2f set_rtx_cost
../../src/gcc/rtl.h:2925
0x23388e5 seq_cost(rtx_insn const*, bool)
../../src/gcc/rtlanal.cc:5788
0x39a24ad default_noce_conversion_profitable_p(rtx_insn*, noce_if_info*)
../../src/gcc/ifcvt.cc:814
0x39a973b noce_try_cmove
../../src/gcc/ifcvt.cc:1864
0x39b4bc5 noce_process_if_block
../../src/gcc/ifcvt.cc:3964
0x39b6e99 noce_find_if_block
../../src/gcc/ifcvt.cc:4521
0x39b794f find_if_header
../../src/gcc/ifcvt.cc:4726
0x39bbbd5 if_convert
../../src/gcc/ifcvt.cc:5873
0x39bbe4d rest_of_handle_if_conversion
../../src/gcc/ifcvt.cc:5938
0x39bbf61 execute
../../src/gcc/ifcvt.cc:5978

Configured with: -v
 --with-pkgversion='Ubuntu 20220912-1ubuntu1'
 --with-bugurl='file:///usr/share/doc/gcc-snapshot/README.Bugs'
 --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++
 --prefix=/usr/lib/gcc-snapshot
 --with-gcc-major-version-only
 --program-prefix=
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --disable-libquadmath
 --disable-libquadmath-support
 --enable-plugin
 --with-system-zlib
 --enable-libphobos-checking=release
 --with-target-system-zlib=auto
 --enable-objc-gc=auto
 --enable-multiarch
 --disable-werror
 --with-arch=z13
 --with-tune=z15
 --enable-s390-excess-float-precision
 --with-long-double-128
 --enable-multilib
 --enable-checking=yes,extra,rtl
 --build=s390x-linux-gnu
 --host=s390x-linux-gnu
 --target=s390x-linux-gnu

[Bug target/106919] [13 Regression] RTL check: expected code 'set' or 'clobber', have 'if_then_else' in s390_rtx_costs, at config/s390/s390.cc:3672on s390x-linux-gnu

2022-09-22 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106919

Matthias Klose  changed:

   What|Removed |Added

 Status|WAITING |NEW

--- Comment #2 from Matthias Klose  ---
$ cat libgcov-merge.i
int __gcov_merge_topn_n_counters;
long __gcov_merge_topn___trans_tmp_1;
void __gcov_merge_topn() {

  for (unsigned i = 0; i < __gcov_merge_topn_n_counters / 3; i++) {
for (unsigned j ; __gcov_merge_topn___trans_tmp_1; )
  ;
  }
}
doko@zelenka:~/gcc-snapshot-20220920$ cat libgcov-merge.i
int __gcov_merge_topn_n_counters;
long __gcov_merge_topn___trans_tmp_1;
void __gcov_merge_topn() {
  for (unsigned i = 0; i < __gcov_merge_topn_n_counters / 3; i++)
for (; __gcov_merge_topn___trans_tmp_1;)
  ;
}

$ /home/doko/gcc-snapshot-20220920/build/gcc/xgcc
-B/home/doko/gcc-snapshot-20220920/build/gcc/ -c -march=z196 -m64 -mzarch -g
-O2 libgcov-merge.i libgcov-merge.i
during RTL pass: ce2
libgcov-merge.i: In function '__gcov_merge_topn':
libgcov-merge.i:7:1: internal compiler error: RTL check: expected code 'set' or
'clobber', have 'if_then_else' in s390_rtx_costs, at config/s390/s390.cc:3672
7 | }
  | ^
0x22c196b rtl_check_failed_code2(rtx_def const*, rtx_code, rtx_code, char
const*, int, char const*)
../../src/gcc/rtl.cc:926
0x2af1f69 s390_rtx_costs
../../src/gcc/config/s390/s390.cc:3672
0x22e9ab9 rtx_cost(rtx_def*, machine_mode, rtx_code, int, bool)
../../src/gcc/rtlanal.cc:4601
0x22c3877 set_rtx_cost
../../src/gcc/rtl.h:2925
0x22f3eb5 seq_cost(rtx_insn const*, bool)
../../src/gcc/rtlanal.cc:5788
0x38ea2b5 default_noce_conversion_profitable_p(rtx_insn*, noce_if_info*)
../../src/gcc/ifcvt.cc:814
0x38f145f noce_try_cmove
../../src/gcc/ifcvt.cc:1864
0x38fc6d9 noce_process_if_block
../../src/gcc/ifcvt.cc:3964
0x38fe8b5 noce_find_if_block
../../src/gcc/ifcvt.cc:4521
0x38ff33b find_if_header
../../src/gcc/ifcvt.cc:4726
0x3903475 if_convert
../../src/gcc/ifcvt.cc:5873
0x390394d execute
../../src/gcc/ifcvt.cc:6026
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.

[Bug target/106919] [13 Regression] RTL check: expected code 'set' or 'clobber', have 'if_then_else' in s390_rtx_costs, at config/s390/s390.cc:3672on s390x-linux-gnu

2022-09-22 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106919

--- Comment #3 from Matthias Klose  ---
rechecked with 20220920

[Bug target/106919] [13 Regression] RTL check: expected code 'set' or 'clobber', have 'if_then_else' in s390_rtx_costs, at config/s390/s390.cc:3672on s390x-linux-gnu

2022-09-22 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106919

--- Comment #4 from Matthias Klose  ---
Created attachment 53611
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53611&action=edit
preprocessed source

[Bug target/107112] New: [13 Regression] endless loop building the amdgcn-amdhsa offload compiler

2022-10-01 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107112

Bug ID: 107112
   Summary: [13 Regression] endless loop building the
amdgcn-amdhsa offload compiler
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20221001, trying to build the amdgcn-amdhsa offload compiler
with the just built x86_64-linux-gnu host compiler.

There are five processes building newlib with -march=gfx900, seen while
building the Debian gcc-snapshot package.

[Bug bootstrap/107120] New: [13 Regression] trunk fails to bootstrap on powerpc64le-linux-gnu

2022-10-02 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107120

Bug ID: 107120
   Summary: [13 Regression] trunk fails to bootstrap on
powerpc64le-linux-gnu
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20221001 on powerpc64le-linux-gnu, glibc 2.35, binutils 2.39:

/<>/build/gcc/include-fixed/powerpc64le-linux-gnu/bits/floatn.h:88:9:
error: multiple types in one declaration
   88 | typedef __float128 _Float128;
  | ^~
In file included from /usr/include/stdlib.h:56,
 from
/<>/build/powerpc64le-linux-gnu/libstdc++-v3/include/cstdlib:79,
 from
../../../../src/libstdc++-v3/libsupc++/atexit_thread.cc:25:
/<>/build/gcc/include-fixed/powerpc64le-linux-gnu/bits/floatn.h:88:20:
error: declaration does not declare anything [-fpermissive]
   88 | typedef __float128 _Float128;
  |^
make[7]: *** [Makefile:777: atexit_thread.lo] Error 1
make[7]: Leaving directory
'/<>/build/powerpc64le-linux-gnu/libstdc++-v3/libsupc++'
make[6]: *** [Makefile:576: all-recursive] Error 1
make[6]: Leaving directory
'/<>/build/powerpc64le-linux-gnu/libstdc++-v3'
make[5]: *** [Makefile:501: all] Error 2
make[5]: Leaving directory
'/<>/build/powerpc64le-linux-gnu/libstdc++-v3'
make[4]: *** [Makefile:17947: all-stage1-target-libstdc++-v3] Error 2
make[4]: Leaving directory '/<>/build'
make[3]: *** [Makefile:31100: stage1-bubble] Error 2
make[3]: Leaving directory '/<>/build'
make[2]: *** [Makefile:31437: bootstrap] Error 2

Configured with: -v
 --with-pkgversion='Debian 20221001-1'
 --with-bugurl='file:///usr/share/doc/gcc-snapshot/README.Bugs'
 --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2
 --prefix=/usr/lib/gcc-snapshot
 --with-gcc-major-version-only
 --program-prefix=
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --enable-plugin
 --with-system-zlib
 --enable-libphobos-checking=release
 --with-target-system-zlib=auto
 --with-libphobos-druntime-only=yes
 --enable-objc-gc=auto
 --enable-secureplt
 --enable-targets=powerpcle-linux
 --disable-multilib
 --enable-multiarch
 --disable-werror
 --with-long-double-128

--enable-offload-targets=nvptx-none=/<>/debian/tmp-nvptx/usr/lib/gcc-snapshot
 --enable-offload-defaulted
 --without-cuda-driver
 --enable-checking=yes,extra,rtl
 --build=powerpc64le-linux-gnu
 --host=powerpc64le-linux-gnu
 --target=powerpc64le-linux-gnu

[Bug target/107125] New: libobjc fails to build on arc-linux-gnu

2022-10-02 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107125

Bug ID: 107125
   Summary: libobjc fails to build on arc-linux-gnu
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20221001 on arc-linux-gnu:

first, config/arc/arc-arch.h uses NULL, but doesn't include stddef.h

then linking of libobjc fails with:

libtool: link: /home/packages/cross/12/p/gcc-cross-ports/gcc/build/./gcc/xgcc
-B/home/packages/cross/12/p/gcc-cross-ports/gcc/build/./gcc/ -B/usr/ar
c-linux-gnu/bin/ -B/usr/arc-linux-gnu/lib/ -isystem /usr/arc-linux-gnu/include
-isystem /usr/arc-linux-gnu/sys-include -isystem /home/packages/cross
/12/p/gcc-cross-ports/gcc/build/sys-include-shared  -fPIC -DPIC 
.libs/NXConstStr.o .libs/Object.o .libs/Protocol.o .libs/accessors.o .libs/link
ing.o .libs/class.o .libs/encoding.o .libs/error.o .libs/gc.o .libs/hash.o
.libs/init.o .libs/ivars.o .libs/memory.o .libs/methods.o .libs/nil_metho
d.o .libs/objc-foreach.o .libs/objc-sync.o .libs/objects.o .libs/protocols.o
.libs/sarray.o .libs/selector.o .libs/sendmsg.o .libs/thr.o .libs/excep
tion.o-shared-libgcc -Wl,-z -Wl,relro   -Wl,-soname -Wl,libobjc.so.4 -o
.libs/libobjc.so.4.0.0
checking whether the target supports thread-local storage...
/usr/arc-linux-gnu/bin/ld: config.status: executing libtool commands
.libs/thr.o:/home/packages/cross/12/p/gcc-cross-ports/gcc/src/libobjc/../gcc/config/arc/arc-arch.h:130:
multiple definition of `arc_cpu_types'; .lib
s/encoding.o:/home/packages/cross/12/p/gcc-cross-ports/gcc/src/libobjc/../gcc/config/arc/arc-arch.h:130:
first defined here
/usr/arc-linux-gnu/bin/ld:
.libs/thr.o:/home/packages/cross/12/p/gcc-cross-ports/gcc/src/libobjc/../gcc/config/arc/arc-arch.h:120:
multiple definiti
on of `arc_arch_types';
.libs/encoding.o:/home/packages/cross/12/p/gcc-cross-ports/gcc/src/libobjc/../gcc/config/arc/arc-arch.h:120:
first defined h
ere

so better move these vars to a .c file, don't keep them in the header.

[Bug modula2/107245] New: calling makeinfo with --no-headers produces invalid info files

2022-10-13 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107245

Bug ID: 107245
   Summary: calling makeinfo with --no-headers produces invalid
info files
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: modula2
  Assignee: gaius at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

gcc/m2/Make-lang.in calls makeinfo with --no-headers and produces invalid info
files, which cannot be used within emacs or the with the info program.

[Bug bootstrap/107120] [13 Regression] trunk fails to bootstrap on powerpc64le-linux-gnu

2022-10-24 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107120

Matthias Klose  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|WAITING |RESOLVED

[Bug ada/107475] New: [10/11/12/13 Regression] libgnat fails to link libgnat.so on systems with older glibc on x86_64-linux-gnux32

2022-10-31 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107475

Bug ID: 107475
   Summary: [10/11/12/13 Regression] libgnat fails to link
libgnat.so on systems with older glibc on
x86_64-linux-gnux32
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

This was introduced with the fix and backports of PR103530 on
x86_64-linux-gnux32 with older glibc versions (checked with 2.31), where dladdr
is still in the libdl.so library, and not included in libc.so as in newer glibc
versions.


[...]
/usr/x86_64-linux-gnux32/bin/ld: s-trasym.o: in function
`system__traceback__symbolic__module_na
me__getXnn':
collect2: error: ld returned 1 exit status
make[8]: *** [gcc-interface/Makefile:677: gnatlib-shared-default] Error 1

https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=9d6c63ba490ec92245f04b5cbafc56abd28e8d22

-- a/gcc/ada/Makefile.rtl
+++ b/gcc/ada/Makefile.rtl
@@ -2650,13 +2650,18 @@ ifeq ($(strip $(filter-out %x32 linux%,$(target_cpu)
$(target_os))),)
   s-tasinf.adb

[Bug ada/107474] New: [10/11/12/13 Regression] libgnat fails to link libgnat.so on systems with older glibc on x86_64-linux-gnux32

2022-10-31 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107474

Bug ID: 107474
   Summary: [10/11/12/13 Regression] libgnat fails to link
libgnat.so on systems with older glibc on
x86_64-linux-gnux32
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

This was introduced with the fix and backports of PR103530 on
x86_64-linux-gnux32 with older glibc versions (checked with 2.31), where dladdr
is still in the libdl.so library, and not included in libc.so as in newer glibc
versions.


[...]
/usr/x86_64-linux-gnux32/bin/ld: s-trasym.o: in function
`system__traceback__symbolic__module_na
me__getXnn':
collect2: error: ld returned 1 exit status
make[8]: *** [gcc-interface/Makefile:677: gnatlib-shared-default] Error 1

https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=9d6c63ba490ec92245f04b5cbafc56abd28e8d22

-- a/gcc/ada/Makefile.rtl
+++ b/gcc/ada/Makefile.rtl
@@ -2650,13 +2650,18 @@ ifeq ($(strip $(filter-out %x32 linux%,$(target_cpu)
$(target_os))),)
   s-tasinf.adb

[Bug modula2/92147] gm2: modula-2 fails to build on powerpc-linux-gnu

2022-11-04 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92147

Matthias Klose  changed:

   What|Removed |Added

 CC||doko at gcc dot gnu.org
 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #3 from Matthias Klose  ---
recent trunk builds succeed on powerpc-linux-gnu

[Bug modula2/92146] gm2: the brig, fortran, go and D frontends are missing lang_register_spec_functions

2022-11-04 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92146

Matthias Klose  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |FIXED
 CC||doko at gcc dot gnu.org

--- Comment #2 from Matthias Klose  ---
applied some months ago

[Bug modula2/106917] modula-2 fails to bootstrap with the modula-2 branch ,20220912

2022-11-04 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106917

Matthias Klose  changed:

   What|Removed |Added

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

--- Comment #3 from Matthias Klose  ---
late October builds succeeded for me

[Bug modula2/103574] race condition in bootstrap build, trunk 20211203

2022-11-04 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103574

Matthias Klose  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WORKSFORME
 CC||doko at gcc dot gnu.org

--- Comment #1 from Matthias Klose  ---
had at least one successful build on sparc64-linux-gnu in October 2022

[Bug modula2/107524] New: building html docs from gm2.texi fails due to missing top node

2022-11-04 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107524

Bug ID: 107524
   Summary: building html docs from gm2.texi fails due to missing
top node
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: modula2
  Assignee: gaius at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

Building html docs fails from gm2.texi fails due to missing top node, which is
only included in info mode, unlike all other nodes.

--- a/gcc/doc/gm2.texi
+++ b/gcc/doc/gm2.texi
@@ -64,10 +83,8 @@ Boston, MA 02110-1301, USA@*

 @c `Top' Node and Master Menu

-@ifinfo
 @node Top, Overview, (dir), (dir)
 @top Introduction
-@end ifinfo

 @menu
 * Overview:: What is GNU Modula-2.

[Bug rust/108102] New: rust bootstrap comparison failure on s390x-linux-gnu

2022-12-14 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108102

Bug ID: 108102
   Summary: rust bootstrap comparison failure on s390x-linux-gnu
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rust
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
CC: dkm at gcc dot gnu.org, gcc-rust at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20221214 on s390x-linux-gnu:

make[5]: Leaving directory '/<>/build'
Comparing stages 2 and 3
Bootstrap comparison failure!
gcc/rust/rust-hir-trait-resolve.o differs
make[4]: *** [Makefile:31113: compare] Error 1

full build log at
https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+build/24937231

[Bug modula2/108294] New: soname bump for modula2 runtime libraries

2023-01-05 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108294

Bug ID: 108294
   Summary: soname bump for modula2 runtime libraries
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: modula2
  Assignee: gaius at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

The soname for the Modula-2 runtime libraries for the compiler based on GCC 12
is 17, and didn't change for GCC 13.  Please bump the version to 18, or reset
it to 1, so that these can co-exist.  Assuming that there a slight differences
in the ABIs for these versions.

[Bug target/105938] New: [12 Regression] ICE in get_insn_temp late, at final.cc:2050 on nvptx-none

2022-06-12 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105938

Bug ID: 105938
   Summary: [12 Regression] ICE in get_insn_temp late, at
final.cc:2050 on nvptx-none
   Product: gcc
   Version: 12.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

building the nxptx-none offload compiler with the just built gcc-12 from the
branch 20220612 ICEs in:

[...]
2204622: // Thread model: single
2204622: // Supported LTO compression algorithms: zlib zstd
2204622: // gcc version 12.1.0 (GCC) 
2204622: // 
2204622: // during RTL pass: final
2204622: // ../../../src-nvptx/libgcc/libgcc2.c: In function '__multi3':
2204622: // ../../../src-nvptx/libgcc/libgcc2.c:538:1: internal compiler error:
in get_insn_temp
late, at final.cc:2050
2204622: //   538 | }
2204622: //   | ^
2204622: // 0x5b17d5 get_insn_template(int, rtx_insn*)
2204622: // ../../src-nvptx/gcc/final.cc:2050
2204622: // 0x81f984 final_scan_insn_1
2204622: // ../../src-nvptx/gcc/final.cc:2827
2204622: // 0x81fe6b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
2204622: // ../../src-nvptx/gcc/final.cc:2940
2204622: // 0x8200f5 final_1
2204622: // ../../src-nvptx/gcc/final.cc:1997
2204622: // 0x8208d2 rest_of_handle_final
2204622: // ../../src-nvptx/gcc/final.cc:4285
2204622: // 0x8208d2 execute
2204622: // ../../src-nvptx/gcc/final.cc:4363
2204622: // Please submit a full bug report, with preprocessed source (by using
-freport-bug).
2204622: // Please include the complete backtrace with any bug report.
2204622: // See  for instructions.
2204622: 
2204622: // /<>/build-nvptx/./gcc/cc1 -quiet -nostdinc -I . -I .
-I ../.././gcc -I 
../../../src-nvptx/libgcc -I ../../../src-nvptx/libgcc/. -I
../../../src-nvptx/libgcc/../gcc -I 
../../../src-nvptx/libgcc/../include -imultilib . -imultiarch x86_64-linux-gnu
-iprefix /<>/build-nvptx/gcc/../lib/gcc/x86_64-linux-gnu/12/accel/nvptx-none/
-isystem /<>/build-nvptx/./gcc/include -isystem
/<>/build-nvptx/./gcc/include-fixed -MD _mul
di3.d -MF _muldi3.dep -MP -MT _muldi3.o -D IN_GCC -D CROSS_DIRECTORY_STRUCTURE
-D IN_LIBGCC2 -D 
inhibit_libc -D HAVE_CC_TLS -D USE_EMUTLS -D L_muldi3 -isystem
/<>/build-nvptx/nvpt
x-none/newlib/targ-include -isystem
/<>/src-nvptx/newlib/libc/include -isystem /usr
/nvptx-none/include -isystem /usr/nvptx-none/sys-include -isystem
/<>/build-nvptx/s
ys-include -isystem ./include ../../../src-nvptx/libgcc/libgcc2.c -quiet
-dumpbase _muldi3.c -du
mpbase-ext .c -g -g -g -O2 -O2 -O2 -Wextra -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wst
rict-prototypes -Wmissing-prototypes -Wold-style-definition -fbuilding-libgcc
-fno-stack-protect
or -o - -frandom-seed=0 -fdump-noaddr
2204622: 
[...]

full build log at
https://buildd.debian.org/status/fetch.php?pkg=gcc-12&arch=amd64&ver=12.1.0-3&stamp=1655064563&raw=0

seen also on powerpc64le-linux-gnu as the host.

[Bug target/105938] [12/13 Regression] ICE in get_insn_temp late, at final.cc:2050 on nvptx-none

2022-06-15 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105938

--- Comment #1 from Matthias Klose  ---

$ cat libgcc2.i
int __subvti3_a, __subvti3_b;
void __subvti3() {
  int w;
  __builtin_sub_overflow(__subvti3_a, __subvti3_b, &w);
}

$ /home/packages/gcc/12/gcc-12-12.1.0/build-nvptx/gcc/xgcc
-B/home/packages/gcc/12/gcc-12-12.1.0/build-nvptx/gcc/ -g -O -c libgcc2.i
during RTL pass: final
libgcc2.i: In function ‘__subvti3’:
libgcc2.i:5:1: internal compiler error: in get_insn_template, at final.cc:2050
5 | }
  | ^
0x5b17d5 get_insn_template(int, rtx_insn*)
../../src-nvptx/gcc/final.cc:2050
0x81f924 final_scan_insn_1
../../src-nvptx/gcc/final.cc:2827
0x81fe0b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
../../src-nvptx/gcc/final.cc:2940
0x820095 final_1
../../src-nvptx/gcc/final.cc:1997
0x820872 rest_of_handle_final
../../src-nvptx/gcc/final.cc:4285
0x820872 execute
../../src-nvptx/gcc/final.cc:4363
Please submit a full bug report, with preprocessed source (by using
-freport-bug).

omitting either -g or -O avoids the ICE.

[Bug target/105938] [12/13 Regression] ICE in get_insn_temp late, at final.cc:2050 on nvptx-none

2022-06-15 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105938

Matthias Klose  changed:

   What|Removed |Added

   Keywords|needs-bisection |
 CC||rguenth at gcc dot gnu.org

--- Comment #2 from Matthias Klose  ---
triggered by the fix for PR middle-end/105537,
a53eff4ad05f234a509dd2995d5a7612d5baa4e8

[Bug c++/106001] New: [12 Regression] ICE: nexpected expression 'static_cast(1)' of kind static_cast_expr

2022-06-16 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106001

Bug ID: 106001
   Summary: [12 Regression] ICE: nexpected expression
'static_cast(1)' of kind static_cast_expr
   Product: gcc
   Version: 12.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with the gcc-12 branch 20220616 on x86_64-linux-gnu, building the spoa
package:

$ cat simd_alignment_engine_dispatch.ii
template  void _mmxxx_prefix_max() {
  char simde__tmp_a__0 =
  __builtin_shufflevector(simde__tmp_a__0, 0, static_cast(1))

$ LANG=C g++ -c -msse2 -O0 -std=c++11 simd_alignment_engine_dispatch.ii
simd_alignment_engine_dispatch.ii: In function 'void _mmxxx_prefix_max()':
simd_alignment_engine_dispatch.ii:3:71: internal compiler error: unexpected
expression 'static_cast(1)' of kind static_cast_expr
3 |   __builtin_shufflevector(simde__tmp_a__0, 0, static_cast(1))
  |   ^
0x6d9b71 cxx_eval_constant_expression
../../src/gcc/cp/constexpr.cc:7587
0x6d9ec0 cxx_eval_outermost_constant_expr
../../src/gcc/cp/constexpr.cc:7824
0x6dd267 maybe_constant_value(tree_node*, tree_node*, bool)
../../src/gcc/cp/constexpr.cc:8103
0x867381 build_x_shufflevector(unsigned int, vec*,
int)
../../src/gcc/cp/typeck.cc:6337
0x7cf33e cp_parser_postfix_expression
../../src/gcc/cp/parser.cc:7496
0x7b8096 cp_parser_binary_expression
../../src/gcc/cp/parser.cc:10035
0x7b889e cp_parser_assignment_expression
../../src/gcc/cp/parser.cc:10339
0x7ba3c9 cp_parser_constant_expression
../../src/gcc/cp/parser.cc:10642
0x7ba461 cp_parser_initializer_clause
../../src/gcc/cp/parser.cc:25223
0x7bd44c cp_parser_initializer
../../src/gcc/cp/parser.cc:25163
0x7eaf5f cp_parser_init_declarator
../../src/gcc/cp/parser.cc:22773
0x7c73b8 cp_parser_simple_declaration
../../src/gcc/cp/parser.cc:15280
0x7c8fe0 cp_parser_declaration_statement
../../src/gcc/cp/parser.cc:14361
0x7c97cc cp_parser_statement
../../src/gcc/cp/parser.cc:12446
0x7ca6ed cp_parser_statement_seq_opt
../../src/gcc/cp/parser.cc:12850
0x7ca79f cp_parser_compound_statement
../../src/gcc/cp/parser.cc:12802
0x7e91c3 cp_parser_function_body
../../src/gcc/cp/parser.cc:25069
0x7e91c3 cp_parser_ctor_initializer_opt_and_function_body
../../src/gcc/cp/parser.cc:25120
0x7ea30e cp_parser_function_definition_after_declarator
../../src/gcc/cp/parser.cc:31252
0x7eb376 cp_parser_function_definition_from_specifiers_and_declarator
../../src/gcc/cp/parser.cc:31168
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.


// Target: x86_64-linux-gnu
// Configured with: ../src/configure -v --with-pkgversion='Debian 12.1.0-4'
--with-bugurl=file:/
//usr/share/doc/gcc-12/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --p
refix=/usr --with-gcc-major-version-only --program-suffix=-12
--program-prefix=x86_64-linux-gnu-
 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --ena
ble-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug -
-enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--enable-gnu-unique-object --disable
-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib
--enable-libphobos-checki
ng=release --with-target-system-zlib=auto --enable-objc-gc=auto
--enable-multiarch --disable-wer
ror --enable-cet --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-m
ultilib --with-tune=generic
--enable-offload-targets=nvptx-none=/build/gcc-12-8ErGg2/gcc-12-12.1
.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-12-8ErGg2/gcc-12-12.1.0/debian/tmp-gcn/usr
--en
able-offload-defaulted --without-cuda-driver --enable-checking=release
--build=x86_64-linux-gnu 
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
// Thread model: posix
// Supported LTO compression algorithms: zlib zstd
// gcc version 12.1.0 (Debian 12.1.0-4)

[Bug c++/106011] New: [12 Regression] ICE: unexpected expression 'ElemSize' of kind template_parm_index

2022-06-17 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106011

Bug ID: 106011
   Summary: [12 Regression] ICE: unexpected expression 'ElemSize'
of kind template_parm_index
   Product: gcc
   Version: 12.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with the gcc-12 branch 20220616, trying to build the 0ad package:

$ cat Unified_cpp_js_src4.ii
typedef unsigned size_t;
template  decltype(0 % ElemSize == 0)

$ LANG=C g++ -c -O0 Unified_cpp_js_src4.ii
Unified_cpp_js_src4.ii:2:50: internal compiler error: unexpected expression
'ElemSize' of kind template_parm_index
2 | template  decltype(0 % ElemSize == 0)
  | ~^~~~
0x6d9b71 cxx_eval_constant_expression
../../src/gcc/cp/constexpr.cc:7587
0x6d9ec0 cxx_eval_outermost_constant_expr
../../src/gcc/cp/constexpr.cc:7824
0x6dbdcc potential_constant_expression_1
../../src/gcc/cp/constexpr.cc:9274
0x6dc636 potential_constant_expression_1(tree_node*, bool, bool, bool, int)
../../src/gcc/cp/constexpr.cc:9550
0x6dc636 is_constant_expression(tree_node*)
../../src/gcc/cp/constexpr.cc:9607
0x6dc636 is_nondependent_constant_expression(tree_node*)
../../src/gcc/cp/constexpr.cc:9644
0x6dd0c0 maybe_constant_value(tree_node*, tree_node*, bool)
../../src/gcc/cp/constexpr.cc:8071
0x7435eb fold_for_warn(tree_node*)
../../src/gcc/cp/expr.cc:416
0x8ad582 shorten_compare(unsigned int, tree_node**, tree_node**, tree_node**,
tree_code*)
../../src/gcc/c-family/c-common.cc:3237
0x86fef7 cp_build_binary_op(op_location_t const&, tree_code, tree_node*,
tree_node*, int)
../../src/gcc/cp/typeck.cc:6158
0x6b97ac build_new_op(op_location_t const&, tree_code, int, tree_node*,
tree_node*, tree_node*, tree_node*, tree_node**, int)
../../src/gcc/cp/call.cc:6935
0x866dff build_x_binary_op(op_location_t const&, tree_code, tree_node*,
tree_code, tree_node*, tree_code, tree_node*, tree_node**, int)
../../src/gcc/cp/typeck.cc:4563
0x80a7c7 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../src/gcc/cp/pt.cc:20369
0x80e32a instantiate_non_dependent_expr_internal(tree_node*, int)
../../src/gcc/cp/pt.cc:6367
0x80e32a instantiate_non_dependent_expr_sfinae(tree_node*, int)
../../src/gcc/cp/pt.cc:6388
0x846e6f finish_decltype_type(tree_node*, bool, int)
../../src/gcc/cp/semantics.cc:11255
0x7cfb31 cp_parser_decltype
../../src/gcc/cp/parser.cc:16540
0x7e7447 cp_parser_simple_type_specifier
../../src/gcc/cp/parser.cc:19647
0x7c5435 cp_parser_type_specifier
../../src/gcc/cp/parser.cc:19424
0x7c6349 cp_parser_decl_specifier_seq
../../src/gcc/cp/parser.cc:15905
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.

[Bug bootstrap/106145] New: [12/13 Regression] /usr/bin/ld: libcommon.a(input.o): copy relocation against non-copyable protected symbol `__cxa_pure_virtual' on aarch64-linux-gnu

2022-06-30 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106145

Bug ID: 106145
   Summary: [12/13 Regression] /usr/bin/ld: libcommon.a(input.o):
copy relocation against non-copyable protected symbol
`__cxa_pure_virtual' on aarch64-linux-gnu
   Product: gcc
   Version: 12.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

this is seen building a native compiler on aarch64-linux-gnu using trunk and
also using the current gcc-12 branch. binutils trunk and glibc 2.35 are used
for the build.

[Bug bootstrap/106156] New: [13 Regression] libtool fails to link liblto_plugin.la on riscv64-linux-gnu

2022-06-30 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106156

Bug ID: 106156
   Summary: [13 Regression] libtool fails to link liblto_plugin.la
on riscv64-linux-gnu
   Product: gcc
   Version: 13.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20220630 on riscv64-linux-gnu, using binutils trunk/2.39. Not
seen in the same environment building GCC 11 and 12:

/bin/bash ./libtool --tag=CC --tag=disable-static  --mode=link
/<>/build/./prev-gcc
/xgcc -B/<>/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/riscv64-linux-gnu/bin/ -B/usr
/lib/gcc-snapshot/riscv64-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/riscv64-linux-gnu/lib/ -isystem
 /usr/lib/gcc-snapshot/riscv64-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/riscv64-linux-gn
u/sys-include   -fno-checking -Wall  -g -O2 -fno-checking -gtoggle   -module
-avoid-version -bin
dir /usr/lib/gcc-snapshot/libexec/gcc/riscv64-linux-gnu/13
-export-symbols-regex onload-Xcom
piler '-static-libstdc++' -Xcompiler '-static-libgcc' '-Wl,-z,relro' -o
liblto_plugin.la -rpath 
/usr/lib/gcc-snapshot/libexec/gcc/riscv64-linux-gnu/13 lto-plugin.lo 
-Wc,../libiberty/pic/libib
erty.a 
libtool: link: riscv64-linux-gnu-nm  .libs/lto-plugin.o   |  | /bin/sed 's/.*
//' | sort | uniq 
> .libs/liblto_plugin.exp
./libtool: eval: line 1118: syntax error near unexpected token `|'
./libtool: eval: line 1118: `riscv64-linux-gnu-nm  .libs/lto-plugin.o   |  |
/bin/sed 's/.* //' 
| sort | uniq > .libs/liblto_plugin.exp'
make[6]: *** [Makefile:471: liblto_plugin.la] Error 2
make[6]: Leaving directory '/<>/build/lto-plugin'
make[5]: *** [Makefile:382: all] Error 2
make[5]: Leaving directory '/<>/build/lto-plugin'
make[4]: *** [Makefile:15935: all-stage2-lto-plugin] Error 2

GCC is configured with

Configured with: -v
 --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++
 --prefix=/usr/lib/gcc-snapshot
 --with-gcc-major-version-only
 --program-prefix=
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --disable-libitm
 --disable-libquadmath
 --disable-libquadmath-support
 --enable-plugin
 --with-system-zlib
 --enable-libphobos-checking=release
 --with-target-system-zlib=auto
 --enable-objc-gc=auto
 --enable-multiarch
 --disable-werror
 --disable-multilib
 --with-arch=rv64gc
 --with-abi=lp64d
 --enable-checking=yes
 --build=riscv64-linux-gnu
 --host=riscv64-linux-gnu
 --target=riscv64-linux-gnu

[Bug bootstrap/106145] [12/13 Regression] /usr/bin/ld: libcommon.a(input.o): copy relocation against non-copyable protected symbol `__cxa_pure_virtual' on aarch64-linux-gnu

2022-07-01 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106145

--- Comment #2 from Matthias Klose  ---
also reported as https://sourceware.org/bugzilla/show_bug.cgi?id=29310

[Bug bootstrap/106156] [13 Regression] libtool fails to link liblto_plugin.la on riscv64-linux-gnu

2022-07-13 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106156

Matthias Klose  changed:

   What|Removed |Added

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

--- Comment #8 from Matthias Klose  ---
I still see this failing with trunk 20220711,
complete build log at
https://buildd.debian.org/status/fetch.php?pkg=gcc-snapshot&arch=riscv64&ver=1%3A20220711-1&stamp=1657550111&raw=1

[Bug d/103944] [12/13 Regression] Testsuite hang due to libphobos/testsuite/libphobos.gc/forkgc2.d

2022-07-18 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103944

Matthias Klose  changed:

   What|Removed |Added

 CC||doko at gcc dot gnu.org

--- Comment #9 from Matthias Klose  ---
also seen in both the current Debian and Ubuntu development releases in the
gcc-12 branch and the trunk 20220717.

 - glibc 2.33 (Debian), 2.35 (Ubuntu)
 - binutils 2.39 branch

configured with --enable-default-pie --enable-cet

seen on amd64, aarch64, s390x

[Bug d/113820] New: [14 Regression] libdruntime fails to build on arm-linux-gnueabi (armv5t)

2024-02-07 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113820

Bug ID: 113820
   Summary: [14 Regression] libdruntime fails to build on
arm-linux-gnueabi (armv5t)
   Product: gcc
   Version: 14.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: d
  Assignee: ibuclaw at gdcproject dot org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20240107, worked with 20240201 before the last merge from D
upstream:

libtool: compile: 
/home/packages/cross/14/p/gcc-cross-ports/gcc/build/./gcc/gdc -B/home/package
s/cross/14/p/gcc-cross-ports/gcc/build/./gcc/ -B/usr/arm-linux-gnueabi/bin/
-B/usr/arm-linux-gnu
eabi/lib/ -isystem /usr/arm-linux-gnueabi/include -isystem
/usr/arm-linux-gnueabi/sys-include -i
system /home/packages/cross/14/p/gcc-cross-ports/gcc/build/sys-include
-fversion=Shared -Wall -f
release -ffunction-sections -fdata-sections -O2 -g -fpreview=dip1000
-fpreview=fieldwise -fprevi
ew=dtorfields -nostdinc -I ../../../../src/libphobos/libdruntime -I . -c
../../../../src/libphob
os/libdruntime/core/stdc/stdarg.d  -fPIC -fversion=Shared -o core/stdc/stdarg.o
>/dev/null 2>&1
/home/packages/cross/14/p/gcc-cross-ports/gcc/src/libphobos/libdruntime/core/internal/atomic.d:6
12:53: error: cannot evaluate unimplemented builtin '__atomic_is_lock_free' at
compile time
  612 | enum IsAtomicLockFree(T) = __atomic_is_lock_free(T.sizeof, null);
  | ^
../../../../src/libphobos/libdruntime/core/stdc/stdatomic.d:65:30: error:
template instance 'cor
e.internal.atomic.IsAtomicLockFree!ulong' error instantiating
   65 | ATOMIC_LLONG_LOCK_FREE = IsAtomicLockFree!ulong ? 2 : 0,
  |  ^
checking for gethostname... make[7]: *** [Makefile:2580:
core/stdc/stdatomic.lo] Error 1

[Bug d/113772] [14 Regression] atomic.d compile error since recent upstream imports.

2024-02-07 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113772

--- Comment #14 from Matthias Klose  ---
the proposed patch also fixes the arm-linux-gnueabi build (armv5t)

[Bug ada/114065] New: gnat build with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 fails on 32bit archs

2024-02-22 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114065

Bug ID: 114065
   Summary: gnat build with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64
fails on 32bit archs
   Product: gcc
   Version: 14.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
CC: dkm at gcc dot gnu.org
  Target Milestone: ---

trying to build with time_t64 on 32bit archs fails with:

g-socket.adb:2860:26: error: value not in range of type "time_t" defined at
g-sothco.ads:47
g-socket.adb:2860:26: error: static expression fails Constraint_Check
g-socket.adb:2862:26: error: value not in range of type "time_t" defined at
g-sothco.ads:47
g-socket.adb:2862:26: error: static expression fails Constraint_Check
make[8]: *** [../gcc-interface/Makefile:301: g-socket.o] Error 1
make[8]: Leaving directory '/<>/build/gcc/ada/rts'

this can be fixed with

--- a/gcc/ada/libgnat/s-parame.ads
+++ b/gcc/ada/libgnat/s-parame.ads
@@ -102,7 +102,7 @@
-- Characteristics of time_t type --


-   time_t_bits : constant := Long_Integer'Size;
+   time_t_bits : constant := Long_Long_Integer'Size;
--  Number of bits in type time_t

--

however that's not the correct fix. Is there any way to fix this in a better
way?

Plust, this uncovered a bootstrap error on hppa-linux See PR114062

[Bug rtl-optimization/114062] "GNAT BUG DETECTED" 13.2.0 (hppa-linux-gnu) in remove, at alloc-pool.h:437

2024-02-23 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114062

--- Comment #2 from Matthias Klose  ---
this is seen when building with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64
and applying the proposed patch from PR114065.

[Bug target/114358] New: [13 Regression] ICE in change_address_1, at emit-rtl.cc:2287 on m68k-linux-gnu

2024-03-15 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114358

Bug ID: 114358
   Summary: [13 Regression] ICE in change_address_1, at
emit-rtl.cc:2287 on m68k-linux-gnu
   Product: gcc
   Version: 13.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

[forwarded from https://bugs.debian.org/1066891]

seen with the gcc-13 branch building openssh, removing either the
-fzero-call-used-regs=used or -fPIE avoids the issue.

I can't reproduce this with the trunk.

$ cat moduli.i
int snprintf_eta;
double snprintf_time_per_line;
int snprintf(char *, int, char *, ...) {
  snprintf_eta = snprintf_time_per_line;
}

$ m68k-linux-gnu-gcc -c -O2 -fno-strict-aliasing -fzero-call-used-regs=used
-fPIE moduli.i 
during RTL pass: zero_call_used_regs
moduli.i: In function ‘snprintf’:
moduli.i:5:1: internal compiler error: in change_address_1, at emit-rtl.cc:2287
5 | }
  | ^
0x7f8a86a666c9 __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0x7f8a86a66784 __libc_start_main_impl
../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using
-freport-bug).

[Bug libobjc/48626] --enable-objc-gc should be automatic

2024-03-19 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48626

--- Comment #11 from Matthias Klose  ---
> Note libobjc is not used by many folks even
> the GNUStep folks don't use it any more ...

that's wrong, looking at least at GNUstep base 1.29.

[Bug target/114419] New: amdgcn offload compiler fails to build with amdgcn tools based on LLVM 18

2024-03-21 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114419

Bug ID: 114419
   Summary: amdgcn offload compiler fails to build with amdgcn
tools based on LLVM 18
   Product: gcc
   Version: 13.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

The amdgcn offload compiler fails to build with amdgcn tools based on LLVM 18:

LLVM ERROR: Unsupported AMDHSA Code Object Version 3

[Bug target/114420] New: ICE in rs6000_output_function_epilogue, at config/rs6000/rs6000-logue.cc:5371 on powerpc64le-linux-gnu

2024-03-21 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114420

Bug ID: 114420
   Summary: ICE in rs6000_output_function_epilogue, at
config/rs6000/rs6000-logue.cc:5371 on
powerpc64le-linux-gnu
   Product: gcc
   Version: 13.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen, when trying to build ghdl 4.0.0 using the GCC 13 branch on
powerpc64le-linux-gnu. The package builds on x86_64-linux-gnu and
aarch64-linux-gnu.

/<>/builddir/gcc/build/gcc/ghdl -a
--GHDL1=/<>/builddir/gcc/build/gcc/ghdl1 --std=87 --bootstrap
--work=std ../../src/std/v87/textio.vhdl
during RTL pass: final
/<>/builddir/gcc/lib/ghdl/gcc/vhdl/std/v87/../../src/std/v87/textio.vhdl:
In function ‘std__textio__ELAB_SPEC’:
/<>/builddir/gcc/lib/ghdl/gcc/vhdl/std/v87/../../src/std/v87/textio.vhdl:1:
internal compiler error: in rs6000_output_function_epilogue, at
config/rs6000/rs6000-logue.cc:5371
1 | --  Std.Textio package declaration.  This file is part of GHDL.
  | 
0x111da203 rs6000_output_function_epilogue(_IO_FILE*)
../../src/gcc/config/rs6000/rs6000-logue.cc:5371
0x108920bb final_end_function()
../../src/gcc/final.cc:1860
0x10897a53 rest_of_handle_final
../../src/gcc/final.cc:4248
0x10897a53 execute
../../src/gcc/final.cc:4318
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.

complete build log at
https://launchpad.net/ubuntu/+source/ghdl/4.0.0+dfsg-0ubuntu1/+build/27947473

[Bug target/114420] ICE in rs6000_output_function_epilogue, at config/rs6000/rs6000-logue.cc:5371 on powerpc64le-linux-gnu

2024-03-21 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114420

--- Comment #1 from Matthias Klose  ---
ghdl report: https://github.com/ghdl/ghdl/issues/2629

[Bug ada/114424] New: gnat: Ada.Calendar.Clock crashes on 32bit architectures with 64bit time_t

2024-03-21 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114424

Bug ID: 114424
   Summary: gnat: Ada.Calendar.Clock crashes on 32bit
architectures with 64bit time_t
   Product: gcc
   Version: 13.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
CC: dkm at gcc dot gnu.org
  Target Milestone: ---

[forwarded from https://bugs.debian.org/1067453]

Ada packages randomly FTBFS on 32 bit architectures with
gprbuild: raised CONSTRAINT_ERROR : a-calend.adb:371 overflow check failed

The problem originates in the gcc-13 switch to time_t64.
gcc/ada/libgnat/s-os_prim__posix.adb is affected by two apparently
distinct issues.

* s-os_prim.adb allocates 3Long_Integer=3void*=3*32 bits for the
  timeval C struct, while 2*64bits = 2Long_Long_Integer are now needed.

  This issue affects other files, but is easy to find and fix.

* The switch breaks the call from Ada to the C gettimeofday function.

  Can anyone explain this, and ideally provide a real fix instead of
  the ugly work-around below?

cat > mycal.c <
int mygettimeofday(struct timeval *restrict tv,
   struct timezone *restrict tz) {
  return gettimeofday(tv, tz);
}
EOF

cat > foo.adb <

[Bug ada/114424] gnat: Ada.Calendar.Clock crashes on 32bit architectures with 64bit time_t

2024-03-21 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114424

Matthias Klose  changed:

   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|DUPLICATE   |---

--- Comment #2 from Matthias Klose  ---
I don't see a duplicate here.

[Bug ada/114065] gnat build with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 fails on 32bit archs

2024-03-21 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114065

--- Comment #3 from Matthias Klose  ---
Created attachment 57763
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57763&action=edit
proposed patch

is that the correct approach? most likely has to be guarded with a configure
option.

[Bug target/114432] New: [13 Regression] ICE in connect_traces, at dwarf2cfi.cc:3079 on s390x-linux-gnu

2024-03-22 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114432

Bug ID: 114432
   Summary: [13 Regression] ICE in connect_traces, at
dwarf2cfi.cc:3079 on s390x-linux-gnu
   Product: gcc
   Version: 13.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with the gcc-13 branch on s390x-linux-gnu, didn't try trunk yet, fails in
Ubuntu with --with-arch=z13 --with-tune=z16, but succeeds in Debian with
--with-arch=z196.

[...]
during RTL pass: dwarf2
+===GNAT BUG DETECTED==+
| 13.2.0 (s390x-linux-gnu) in connect_traces, at dwarf2cfi.cc:3079 |
| Error detected around
/<>/src/alog-protected_containers.adb:69:11|
| Compiling /<>/src/alog-protected_containers.adb|
| Please submit a bug report; see https://gcc.gnu.org/bugs/ . |
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box in the report. |
| Include the exact command that you entered. |
| Also include sources listed below. |
+==+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

/<>/src/alog-protected_containers.adb
/<>/src/alog-protected_containers.ads
/<>/src/alog.ads
/<>/src/alog-log_request.ads

raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:414

   compilation of alog-protected_containers.adb failed


full build log at
https://launchpad.net/ubuntu/+source/libalog/0.6.2-5/+build/27944112

[Bug ada/114424] gnat: Ada.Calendar.Clock crashes on 32bit architectures with 64bit time_t

2024-03-23 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114424

--- Comment #4 from Matthias Klose  ---
are there any other files which should be used?

[Bug ada/114424] gnat: Ada.Calendar.Clock crashes on 32bit architectures with 64bit time_t

2024-03-24 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114424

--- Comment #6 from Matthias Klose  ---
still seen, when both posix2008 files are used.

[Bug ada/114424] gnat: Ada.Calendar.Clock crashes on 32bit architectures with 64bit time_t

2024-03-24 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114424

--- Comment #7 from Matthias Klose  ---
something did change with Nicolas example:

date   '+Expected: %s'; ./foo 
Expected: 1711306699
local   : 1711306700. 1362
System.OS_Primitives:-6017917000.119493888

[Bug ada/114424] gnat: Ada.Calendar.Clock crashes on 32bit architectures with 64bit time_t

2024-03-25 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114424

--- Comment #9 from Matthias Klose  ---
not sure if that's the right forum here, however:

 - in both Debian and Ubuntu, we're currently doing
   the time_t 64bit transition, for gnat that is
   moving from packages built with gnat-12 (32bit time_t)
   to packages built with gnat-13 (64bit time_t),
   on at least armhf (arm-linux-gnueabihf).

 - packages succeeding to build are adasockets,
   libxmlada, libgmpada, gprbuild.

 - next packages failing to build are: ahven, adacgi with that error
   gprbuild: raised CONSTRAINT_ERROR : a-calend.adb:371 overflow check failed

 - libflorist fails with
   posix-c.ads:876:07: error: size for "suseconds_t" too small, minimum allowed
is 64
posix-c.ads:876:07: error: size for "suseconds_t" too small, minimum allowed is
64
posix-c.ads:876:07: error: size for "suseconds_t" too small, minimum allowed is
64
posix-c.ads:876:07: error: size for "suseconds_t" too small, minimum allowed is
64

   compilation of posix_signals.ads failed
   compilation of posix-timers.adb failed
   compilation of posix_process_primitives.ads failed
   compilation of posix-timers-extensions.adb failed

  which is https://sourceware.org/bugzilla/show_bug.cgi?id=31510

 - unrelated, the libtemplates-parser build is timing out

for complete build logs see (enabling "good")
https://ubuntu-archive-team.ubuntu.com/transitions/html/gnat-13.html

[Bug driver/114447] -fstack-protector-explicit ignored

2024-03-25 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114447

Matthias Klose  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #3 from Matthias Klose  ---
committed for the distro packages. it will take a while until these reach the
archives. closing the issue here, not an upstream issue.

[Bug libquadmath/114533] New: libquadmath: printf: fix misaligned access on args

2024-03-30 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114533

Bug ID: 114533
   Summary: libquadmath: printf: fix misaligned access on args
   Product: gcc
   Version: 13.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libquadmath
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

reported at
https://gcc.gnu.org/pipermail/gcc-patches/2024-March/647635.html

On x86, this compiles into movdqa which segfaults on unaligned access.

This kind of failure has been seen when running against glibc 2.39,
which incidentally changed the printf implementation to move away from
alloca() for this data to instead append it at the end of an existing
"scratch buffer", with arbitrary alignment, whereas alloca() was
probably more likely to be naturally aligned.

Tested by adding the patch to the Ubuntu gcc-14 package in
https://launchpad.net/~schopin/+archive/ubuntu/libquadmath

Signed-off-by: Simon Chopin 
---
 libquadmath/printf/printf_fp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libquadmath/printf/printf_fp.c b/libquadmath/printf/printf_fp.c
index 8effcee88fa..d86aa650d38 100644
--- a/libquadmath/printf/printf_fp.c
+++ b/libquadmath/printf/printf_fp.c
@@ -363,7 +363,7 @@ __quadmath_printf_fp (struct __quadmath_printf_file *fp,

   /* Fetch the argument value. */
 {
-  fpnum = **(const __float128 **) args[0];
+  memcpy(&fpnum, *(void* const *) args[0], sizeof(fpnum));

   /* Check for special values: not a number or infinity.  */
   if (isnanq (fpnum))

[Bug libquadmath/114533] libquadmath: printf: fix misaligned access on args

2024-04-02 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114533

--- Comment #11 from Matthias Klose  ---
while not a test case, that was seen when running autopkg tests of the evolver
package against glibc 2.39 packages.

https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2052929

the failing evolver test is:

echo "g 5; v; r ; g 10; v;" | evolver-nox-q cube

[Bug c++/108080] ICE: in core_vals, at cp/module.cc:6262 with -fmodule-header

2023-07-26 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108080

Matthias Klose  changed:

   What|Removed |Added

 CC||doko at gcc dot gnu.org

--- Comment #3 from Matthias Klose  ---
seen with trunk 20230718:

$ cat foo.ii
module;
# 1 "" 1 3
namespace std {
template  struct hash;
}
typedef long unsigned size_t;
namespace std {
template  struct pair {
  int second;
  template  constexpr pair();
};
template 
void operator>(pair<_T1, _T2>, pair<_T1, _T2>);
template  struct __new_allocator {
  allocate___n() { allocate___n > this; }
};
template  using __allocator_base = __new_allocator<_Tp>;
template  struct allocator : __allocator_base {
  __attribute__allocator() {}
};
template class allocator;
template  struct array;
void get(array<1>);
template 
template 
constexpr pair<_T1, _T2>::pair() : second(get) {}
struct vector {
  friend hash;
};
void swap(vector);
template  struct __uniq_ptr_impl {
  swap() { std::swap; }
};
template  struct unique_ptr {
  __uniq_ptr_impl pointer;
};
struct shared_ptr {
  operator=(unique_ptr<>);
};
struct __shared_ptr {
  friend shared_ptr;
};
void operator==(__shared_ptr, __shared_ptr);
template  struct array {
  size() { size == 0; }
};
} // namespace std
#pragma GCC optimize ""
namespace std {
struct id {
  friend operator>(id, id);
};
struct hash;
} // namespace std
# 7 "" 2
export module spdlog_wrapper;

$ /usr/lib/gcc-snapshot/bin/g++ -std=c++20 -fmodules-ts -Wall -c foo.ii
foo.ii:7:8: internal compiler error: in core_vals, at cp/module.cc:6262
7 | namespace std {
  |^~
0x11e5613 trees_out::core_vals(tree_node*)
../../src/gcc/cp/module.cc:6262
0x11e6353 trees_out::tree_node_vals(tree_node*)
../../src/gcc/cp/module.cc:7218
0x11ec349 trees_out::tree_value(tree_node*)
../../src/gcc/cp/module.cc:9083
0x11e8faf trees_out::tree_node(tree_node*)
../../src/gcc/cp/module.cc:9281
0x11e59be trees_out::core_vals(tree_node*)
../../src/gcc/cp/module.cc:6171
0x11e6353 trees_out::tree_node_vals(tree_node*)
../../src/gcc/cp/module.cc:7218
0x11e6cb7 trees_out::decl_value(tree_node*, depset*)
../../src/gcc/cp/module.cc:7797
0x11ee50d depset::hash::find_dependencies(module_state*)
../../src/gcc/cp/module.cc:13328
0x11eea54 module_state::write_begin(elf_out*, cpp_reader*,
module_state_config&, unsigned int&)
../../src/gcc/cp/module.cc:17895
0x79f4e7 finish_module_processing(cpp_reader*)
../../src/gcc/cp/module.cc:20237
0x1bc5fd5 c_parse_final_cleanups()
../../src/gcc/cp/decl2.cc:5184
0x21034b1 c_common_parse_file()
../../src/gcc/c-family/c-opts.cc:1274
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.

[Bug c++/108080] ICE: in core_vals, at cp/module.cc:6262 with -fmodule-header

2023-07-26 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108080

--- Comment #4 from Matthias Klose  ---
the original attached test case also fails

[Bug ada/111283] New: gnat bootstrap broken on trunk 20230902 on 32bit targets

2023-09-03 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283

Bug ID: 111283
   Summary: gnat bootstrap broken on trunk 20230902 on 32bit
targets
   Product: gcc
   Version: 14.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
CC: dkm at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20230902 on at least arm-linux-gnueabihf, i686-linux-gnu and
powerpc-linux-gnu:

/<>/build/./prev-gcc/xgcc -B/<>/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/arm-linux-gnueabihf/bin/
-B/usr/lib/gcc-snapshot/arm-linux-gnueabihf/bin/
-B/usr/lib/gcc-snapshot/arm-linux-gnueabihf/lib/ -isystem
/usr/lib/gcc-snapshot/arm-linux-gnueabihf/include -isystem
/usr/lib/gcc-snapshot/arm-linux-gnueabihf/sys-include-c -g -O2
-fprofile-use -fprofile-reproducible=parallel-runs  -gnatpg -gnata -W -Wall
-fno-PIE -nostdinc -I- -I. -Iada/generated -Iada -I../../src/gcc/ada
-Iada/libgnat -I../../src/gcc/ada/libgnat -Iada/gcc-interface
-I../../src/gcc/ada/gcc-interface ../../src/gcc/ada/nlists.adb -o ada/nlists.o
../../src/gcc/ada/nlists.adb: In function 'Nlists.New_List':
../../src/gcc/ada/nlists.adb:787:4: error: probability of edge 15->16 not
initialized
during IPA pass: inline
+===GNAT BUG DETECTED==+
| 14.0.0 20230902 (experimental) [master r14-3635-g4e2d53c9434]
(arm-linux-gnueabihf) GCC error:|
| verify_flow_info failed  |
| Error detected around ../../src/gcc/ada/nlists.adb:787:4 |
| Compiling ../../src/gcc/ada/nlists.adb   |
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .  |
| Use a subject line meaningful to you and us to track the bug.|
| Include the entire contents of this bug box in the report.   |
| Include the exact command that you entered.  |
| Also include sources listed below.   |
+==+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

../../src/gcc/ada/gcc-interface/system.ads
../../src/gcc/ada/nlists.adb
../../src/gcc/ada/nlists.ads
../../src/gcc/ada/types.ads
../../src/gcc/ada/libgnat/ada.ads
../../src/gcc/ada/libgnat/a-unccon.ads
../../src/gcc/ada/libgnat/a-uncdea.ads
../../src/gcc/ada/alloc.ads
../../src/gcc/ada/atree.ads
../../src/gcc/ada/sinfo.ads
../../src/gcc/ada/namet.ads
../../src/gcc/ada/hostparm.ads
../../src/gcc/ada/table.ads
../../src/gcc/ada/uintp.ads
../../src/gcc/ada/urealp.ads
ada/sinfo-nodes.ads
ada/seinfo.ads
../../src/gcc/ada/output.ads
../../src/gcc/ada/libgnat/s-os_lib.ads
../../src/gcc/ada/libgnat/s-string.ads
../../src/gcc/ada/einfo.ads
ada/snames.ads
../../src/gcc/ada/stand.ads
ada/einfo-entities.ads
../../src/gcc/ada/einfo-utils.ads
../../src/gcc/ada/debug.ads
../../src/gcc/ada/libgnat/s-exctab.ads
../../src/gcc/ada/libgnat/s-stalib.ads
../../src/gcc/ada/libgnat/s-unstyp.ads
../../src/gcc/ada/libgnat/s-conca2.ads
../../src/gcc/ada/libgnat/s-assert.ads
../../src/gcc/ada/libgnat/a-assert.ads
../../src/gcc/ada/table.adb
../../src/gcc/ada/opt.ads
../../src/gcc/ada/libgnat/s-wchcon.ads
../../src/gcc/ada/libgnat/s-memory.ads
../../src/gcc/ada/libgnat/a-except.ads
../../src/gcc/ada/libgnat/s-parame.ads
../../src/gcc/ada/libgnat/s-traent.ads


raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:412

[Bug ada/111283] gnat bootstrap broken on trunk 20230902 on 32bit targets

2023-09-03 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283

--- Comment #1 from Matthias Klose  ---
Configured with: -v
 --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2
 --with-gcc-major-version-only
 --program-prefix=
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --enable-bootstrap
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --disable-libitm
 --disable-libquadmath
 --disable-libquadmath-support
 --enable-plugin
 --with-system-zlib
 --enable-libphobos-checking=release
 --with-target-system-zlib=auto
 --enable-objc-gc=auto
 --enable-multiarch
 --disable-sjlj-exceptions
 --with-arch=armv7-a+fp
 --with-float=hard
 --with-mode=thumb
 --disable-werror
 --enable-checking=yes

make profiledbootstrap-lean

[Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets

2023-09-04 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283

--- Comment #5 from Matthias Klose  ---
a normal bootstrap (at least on i686-linux-gnu) succeeds

[Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets

2023-09-04 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283

--- Comment #6 from Matthias Klose  ---
last known successful profiled bootstrap with trunk 20230811

[Bug modula2/111510] New: Modula-2 runtime ICE on arm-linux-gnueabihf: iso/RTentity.mod:245:in findChildAndParent has caused internal runtime error, RTentity is either corrupt or the module storage ha

2023-09-20 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111510

Bug ID: 111510
   Summary: Modula-2 runtime ICE on arm-linux-gnueabihf:
iso/RTentity.mod:245:in findChildAndParent has caused
internal runtime error, RTentity is either corrupt or
the module storage has not been initialized yet
   Product: gcc
   Version: 13.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: modula2
  Assignee: gaius at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with current gcc-13 branch, that used to work with GCC 12 before (although
M2 was not yet merged at this time). running a simple HelloWorld.mod on
arm-linux-gnueabihf fails with:

2746s autopkgtest [17:26:10]: test libgm2-link: [---
2748s build: OK
2748s   libm2cor.so.18 => /lib/arm-linux-gnueabihf/libm2cor.so.18 (0xf7eec000)
2748s   libm2pim.so.18 => /lib/arm-linux-gnueabihf/libm2pim.so.18 (0xf7ec8000)
2748s   libm2iso.so.18 => /lib/arm-linux-gnueabihf/libm2iso.so.18 (0xf7ea1000)
2748s   libstdc++.so.6 => /lib/arm-linux-gnueabihf/libstdc++.so.6 (0xf7cf6000)
2748s   libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xf7cdc000)
2748s   libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xf7bac000)
2748s   /lib/ld-linux-armhf.so.3 (0xf7eff000)
2748s   libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xf7b6a000)
2748s
../../../../src/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/RTentity.mod:245:in
findChildAndParent has caused internal runtime error, RTentity is either
corrupt or the module storage has not been initialized yet
2749s autopkgtest [17:26:13]: test libgm2-link: ---]

[Bug bootstrap/111601] New: [14 Regression] bootstrap fails in stagestrain in libcody on x86_64-linux-gnu and powerpc64le-linux-gnu

2023-09-26 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111601

Bug ID: 111601
   Summary: [14 Regression] bootstrap fails in stagestrain in
libcody on x86_64-linux-gnu and powerpc64le-linux-gnu
   Product: gcc
   Version: 14.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20230917 and 20230926 on both x86_64-linux-gnu and
powerpc64le-linux-gnu with a profiled lto build. last successful build with
this configuration was 20230907.

not seen on aarch64, s390x, riscv64.


build/libcody/config.log just shows:

onfigure:2143: checking whether the C++ compiler works
configure:2165: 
/home/packages/gcc/snap/gcc-snapshot-20230917/build/./prev-gcc/xg++
-B/home/packages/gcc/snap/gcc-snapshot-20230917/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/x86_64-linux-gnu/bin/ -nostdinc++
-B/home/packages/gcc/snap/gcc-snapshot-20230917/build/prev-x86_64-linux-gnu/libstdc++-v3/src/.libs
-B/home/packages/gcc/snap/gcc-snapshot-20230917/build/prev-x86_64-linux-gnu/libstdc++-v3/libsupc++/.libs
 -isystem
/home/packages/gcc/snap/gcc-snapshot-20230917/build/prev-x86_64-linux-gnu/libstdc++-v3/include/x86_64-linux-gnu
 -isystem
/home/packages/gcc/snap/gcc-snapshot-20230917/build/prev-x86_64-linux-gnu/libstdc++-v3/include
 -isystem
/home/packages/gcc/snap/gcc-snapshot-20230917/src/libstdc++-v3/libsupc++
-L/home/packages/gcc/snap/gcc-snapshot-20230917/build/prev-x86_64-linux-gnu/libstdc++-v3/src/.libs
-L/home/packages/gcc/snap/gcc-snapshot-20230917/build/prev-x86_64-linux-gnu/libstdc++-v3/libsupc++/.libs
-g -O2  -static-libstdc++ -static-libgcc -Wl,-z,relro conftest.cpp  >&5
xg++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See  for instructions.
configure:2169: $? = 4
configure:2207: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "codylib"
| #define PACKAGE_TARNAME "codylib"
| #define PACKAGE_VERSION "0.0"
| #define PACKAGE_STRING "codylib 0.0"
| #define PACKAGE_BUGREPORT "github.com/urnathan/libcody"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2212: error: in
`/home/packages/gcc/snap/gcc-snapshot-20230917/build/libcody':
configure:2214: error: C++ compiler cannot create executables

GCC is configured with

Configured with: -v
 --with-pkgversion='Debian 20230926-1'
 --with-bugurl='file:///usr/share/doc/gcc-snapshot/README.Bugs'
 --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2
 --prefix=/usr/lib/gcc-snapshot
 --with-gcc-major-version-only
 --program-prefix=
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --enable-bootstrap
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --disable-vtable-verify
 --enable-plugin
 --with-system-zlib
 --enable-libphobos-checking=release
 --with-target-system-zlib=auto
 --enable-objc-gc=auto
 --enable-multiarch
 --disable-werror
 --enable-cet
 --with-arch-32=i686
 --with-abi=m64
 --with-multilib-list=m32,m64,mx32
 --enable-multilib
 --with-tune=generic

--enable-offload-targets=nvptx-none=/<>/debian/tmp-nvptx/usr/lib/gcc-snapshot,amdgcn-amdhsa=/<>/debian/tmp-gcn/usr/lib/gcc-snapshot
 --enable-offload-defaulted
 --without-cuda-driver
 --enable-checking=yes,extra,rtl
 --build=x86_64-linux-gnu
 --host=x86_64-linux-gnu
 --target=x86_64-linux-gnu
 --with-build-config=bootstrap-lto-lean
 --enable-link-serialization=3

and running make profiledbootstrap-lean

[Bug fortran/116249] New: [15 Regression] ICE in import_iso_c_binding_module on x86_64-linux-gnu and powerpc64le-linux-gn

2024-08-05 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116249

Bug ID: 116249
   Summary: [15 Regression] ICE in import_iso_c_binding_module on
x86_64-linux-gnu and powerpc64le-linux-gn
   Product: gcc
   Version: 15.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

trunk 20240805 fails to bootstrap with a profiled LTO build, seen on
x86_64-linux-gnu and powerpc64le-linux-gnu:

0x125cf6ff internal_error(char const*, ...)
../../src/gcc/diagnostic-global-context.cc:491
0x10ec87e3 crash_signal
../../src/gcc/toplev.cc:321
0x103a4594 import_iso_c_binding_module
../../src/gcc/fortran/module.cc:6796
0x103a4594 gfc_use_module
../../src/gcc/fortran/module.cc:7333
0x103a7c27 gfc_use_modules()
../../src/gcc/fortran/module.cc:7566
0x103cbfb7 use_modules
../../src/gcc/fortran/parse.cc:124
0x103ce693 decode_statement
../../src/gcc/fortran/parse.cc:387
0x103d860b next_free
../../src/gcc/fortran/parse.cc:1605
0x103d860b next_statement
../../src/gcc/fortran/parse.cc:1838
0x103da6db parse_spec
../../src/gcc/fortran/parse.cc:4425
0x103df137 parse_progunit
../../src/gcc/fortran/parse.cc:6680
0x103e1563 gfc_parse_file()
../../src/gcc/fortran/parse.cc:7232

0x10463d3f gfc_be_parse_file
../../src/gcc/fortran/f95-lang.cc:241
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
make[7]: *** [Makefile:833: openacc.lo] Error 1


Configured with: -v
 --with-pkgversion='Debian 20240805-1'
 --with-bugurl='file:///usr/share/doc/gcc-snapshot/README.Bugs'
 --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust
 --prefix=/usr/lib/gcc-snapshot
 --with-gcc-major-version-only
 --program-prefix=
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --enable-bootstrap
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-libstdcxx-backtrace
 --enable-gnu-unique-object
 --disable-vtable-verify
 --enable-plugin
 --with-system-zlib
 --enable-libphobos-checking=release
 --with-target-system-zlib=auto
 --enable-objc-gc=auto
 --enable-multiarch
 --disable-werror
 --enable-cet
 --with-arch-32=i686
 --with-abi=m64
 --with-multilib-list=m32,m64,mx32
 --enable-multilib
 --with-tune=generic

--enable-offload-targets=nvptx-none=/<>/debian/tmp-nvptx/usr/lib/gcc-snapshot,amdgcn-amdhsa=/<>/debian/tmp-gcn/usr/lib/gcc-snapshot
 --enable-offload-defaulted
 --without-cuda-driver
 --enable-checking=yes,extra,rtl
 --build=x86_64-linux-gnu
 --host=x86_64-linux-gnu
 --target=x86_64-linux-gnu
 --with-build-config=bootstrap-lto-lean
 --enable-link-serialization=3

[Bug target/116268] New: notes on arm-linux-gnueabi* cannot be turned off

2024-08-07 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116268

Bug ID: 116268
   Summary: notes on arm-linux-gnueabi* cannot be turned off
   Product: gcc
   Version: 15.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

while looking at an armhf build, still seeing that notes on arm-linux-gnueabi*
cannot be turned off.

e.g.
/usr/include/c++/14/bits/stl_algo.h:2667:28: note: parameter passing for
argument of type ‘__gnu_cxx::__normal_iterator >’ changed in GCC 7.1

I'm sure I even saw notes for GCC 5 as well.

Can we deprecates these notes, or have an option that ignores ancient notes, at
least these are for eight to ten year old compilers.

[Bug target/116268] notes on arm-linux-gnueabi* cannot be turned off

2024-08-07 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116268

Matthias Klose  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2024-08-07
 Resolution|INVALID |---
 Status|RESOLVED|NEW

--- Comment #3 from Matthias Klose  ---
reopening. Yes, there is the -Wno-psabi option, but there is no way to turn off
warnings about ancient notes, but keep warnings for more recent notes.

[Bug target/114578] New: [13/14 Regression] memory hog, virtual memory exhausted, building a c++ file on arm-linux-gnueabihf

2024-04-04 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114578

Bug ID: 114578
   Summary: [13/14 Regression] memory hog, virtual memory
exhausted, building a c++ file on arm-linux-gnueabihf
   Product: gcc
   Version: 13.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with the 13 branch and trunk, building on arm-linux-gnueabihf.

$ g++ -g -O0 -fstack-protector-strong -fno-stack-clash-protection
-fno-exceptions -std=gnu++17 -fvisibility=hidden -fvisibility-inlines-hidden
-fPIC -c qrc_assets.ii
virtual memory exhausted: Cannot allocate memory

the gcc-12 branch is able to build that with -g -O2.

preprocessed source (120MB uncompressed) at
https://people.debian.org/~doko/tmp/qrc_assets.ii.xz

[Bug ada/114065] gnat build with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 fails on 32bit archs

2024-04-24 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114065

--- Comment #20 from Matthias Klose  ---
Nicolas, the patch series fails to apply on the trunk.  Please could you update
it, then post it on gcc-patches to get a proper review?

[Bug ada/114065] gnat build with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 fails on 32bit archs

2024-04-24 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114065

--- Comment #21 from Matthias Klose  ---
trying to update your patches, the build then fails with:

../../xgcc -B../../ -c -g -O2 -W -Wall  -gnatpg 
-gnata -gnatn -I- -nostdinc
-I/home/packages/gcc/14/gcc-14-14-20240424/build/gcc/ada/rts -I.
-I/home/packages/
gcc/14/gcc-14-14-20240424/src/gcc/ada
/home/packages/gcc/14/gcc-14-14-20240424/src/gcc/ada/osint.adb -o osint.
o
osint.adb:3281:17: error: "time_t" is undefined (more references follow)
osint.adb:3295:28: error: invalid operand types for operator "*"
osint.adb:3295:28: error: right operand has type universal integer
make[5]: *** [../gcc-interface/Makefile:306: osint.o] Error 1

[Bug target/106271] Bootstrap on RISC-V on Ubuntu 22.04 LTS: bits/libc-header-start.h: No such file or directory

2023-10-11 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106271

--- Comment #9 from Matthias Klose  ---
yes, that's one which could be also backported. Let me submit the other bits
upstream as well.

[Bug bootstrap/111601] [14 Regression] bootstrap fails in stagestrain in libcody on x86_64-linux-gnu and powerpc64le-linux-gnu

2023-10-18 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111601

Matthias Klose  changed:

   What|Removed |Added

 Target|powerpc64le-linux   |powerpc64le-linux
   |x86_64-linux|

--- Comment #2 from Matthias Klose  ---
this seems to be fixed on x86_64-linux-gnu with trunk 20231017.
powerpc64le-linux now fails in a different way, trying to build the libstdc++
pch headers. 

Full build log at
https://buildd.debian.org/status/fetch.php?pkg=gcc-snapshot&arch=ppc64el&ver=1%3A20231017-1&stamp=1697561774&raw=1

Configured with: -v
 --with-pkgversion='Debian 20231017-1'
 --with-bugurl='file:///usr/share/doc/gcc-snapshot/README.Bugs'
 --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2
 --prefix=/usr/lib/gcc-snapshot
 --with-gcc-major-version-only
 --program-prefix=
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --enable-bootstrap
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --enable-plugin
 --with-system-zlib
 --enable-libphobos-checking=release
 --with-target-system-zlib=auto
 --with-libphobos-druntime-only=yes
 --enable-objc-gc=auto
 --enable-secureplt
 --enable-targets=powerpcle-linux
 --disable-multilib
 --enable-multiarch
 --disable-werror
 --with-long-double-128

--enable-offload-targets=nvptx-none=/<>/debian/tmp-nvptx/usr/lib/gcc-snapshot
 --enable-offload-defaulted
 --without-cuda-driver
 --enable-checking=yes,extra,rtl
 --build=powerpc64le-linux-gnu
 --host=powerpc64le-linux-gnu
 --target=powerpc64le-linux-gnu
 --with-build-config=bootstrap-lto-lean
 --enable-link-serialization=4

Build target is profiledbootstrap-lean

[Bug target/112777] New: [14 Regression] profiled bootstrap fails on powerpc-linux-gnu, undefined references to __atomic_fetch_add_8

2023-11-30 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112777

Bug ID: 112777
   Summary: [14 Regression] profiled bootstrap fails on
powerpc-linux-gnu, undefined references to
__atomic_fetch_add_8
   Product: gcc
   Version: 14.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

trunk 20231130 fails to build on powerpc-linux-gnu in stageprofile. Not seen on
powerpc64-linux-gnu and powerpc64el-linux-gnu

make profiledbootstrap-lean

[...]

configure:3088: checking whether the C compiler works
configure:3110:  /home/doko/gcc-snapshot-20231130/build/./prev-gcc/xgcc
-B/home/doko/gcc-snapshot-20231130/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/powerpc-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/powerpc-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/powerpc-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/powerpc-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/powerpc-linux-gnu/sys-include   -fno-checking -g -O2
-fno-checking -gtoggle -fprofile-generate  -static-libstdc++ -static-libgcc
-Wl,-z,relro conftest.c  >&5
/usr/bin/powerpc-linux-gnu-ld:
/home/doko/gcc-snapshot-20231130/build/./prev-gcc/libgcov.a(_gcov_indirect_call_profiler_v4.o):
in function `gcov_counter_add':
/home/doko/gcc-snapshot-20231130/build/powerpc-linux-gnu/libgcc/../../../src/libgcc/libgcov.h:423:(.text+0x4bc):
undefined reference to `__atomic_fetch_add_8'
/usr/bin/powerpc-linux-gnu-ld:
/home/doko/gcc-snapshot-20231130/build/powerpc-linux-gnu/libgcc/../../../src/libgcc/libgcov.h:423:(.text+0x740):
undefined reference to `__atomic_fetch_add_8'
/usr/bin/powerpc-linux-gnu-ld:
/home/doko/gcc-snapshot-20231130/build/powerpc-linux-gnu/libgcc/../../../src/libgcc/libgcov.h:423:(.text+0x798):
undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
configure:3114: $? = 1

[Bug target/112777] [14 Regression] profiled bootstrap fails on powerpc-linux-gnu, undefined references to __atomic_fetch_add_8

2023-11-30 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112777

--- Comment #2 from Matthias Klose  ---
that commit was from 20231123, my build is from 20231130, so it includes this
patch.

[Bug bootstrap/110275] [14 Regression] trunk fails to build with binutils trunk on riscv64-linux-gnu

2023-11-30 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110275

Matthias Klose  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Matthias Klose  ---
this works for me now with binutils trunk 20231125 and gcc trunk 20231125.

[Bug target/91035] [11/12/13/14 Regression] gotools fails to build on s390x-linux-gnu

2023-12-01 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91035

Matthias Klose  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 CC||doko at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #15 from Matthias Klose  ---
closing, fixed

[Bug target/102260] amdgcn offload compiler fails to configure, not matching target directive's target id

2023-12-01 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102260

Matthias Klose  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED
 CC||doko at gcc dot gnu.org

--- Comment #2 from Matthias Klose  ---
closing this one, LLVM 15, 16, 17 are known to work

[Bug modula2/93575] the modula2 frontend fails to build with a profiled bootstrap

2023-12-01 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93575

Matthias Klose  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 CC||doko at gcc dot gnu.org
 Status|UNCONFIRMED |RESOLVED

--- Comment #4 from Matthias Klose  ---
closing this one, works with 13.2.1 and 14.0

[Bug other/91209] gm2 bootstrap comparison failure

2023-12-01 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91209

Matthias Klose  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |WORKSFORME
 CC||doko at gcc dot gnu.org

--- Comment #5 from Matthias Klose  ---
closing this one, works on GCC 13 and 14

[Bug modula2/92148] gm2: race condition building gm2 on trunk

2023-12-01 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92148

Matthias Klose  changed:

   What|Removed |Added

 Resolution|--- |WORKSFORME
 Status|WAITING |RESOLVED
 CC||doko at gcc dot gnu.org

--- Comment #4 from Matthias Klose  ---
closing, works with GCC 13 and 14

[Bug bootstrap/79792] configuring a nvptx-none build with --program-suffix=-7 results in a misnamed installed binary

2023-12-01 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79792

Matthias Klose  changed:

   What|Removed |Added

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

--- Comment #3 from Matthias Klose  ---
closing, works with GCC 13 and 14

[Bug lto/110098] New: [11.4 Regression] binutils bootstrap tests fail when built with 11.4

2023-06-02 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110098

Bug ID: 110098
   Summary: [11.4 Regression] binutils bootstrap tests fail when
built with 11.4
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: lto
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
CC: marxin at gcc dot gnu.org
  Target Milestone: ---

binutils bootstrap tests fail when built with 11.4, same configuration runs
successful tests when built with 11.3 or 12.3. seems to be limited to
x86_64-linux-gnu and i686-linux-gnu.

seen with binutils builds (2.38, 2.39, 2.40), binutils configured with 
--enable-obsolete --enable-shared --enable-plugins --enable-threads
--enable-jansson --with-system-zlib --sysconfdir=/etc
--enable-deterministic-archives --disable-compressed-debug-sections
--enable-new-dtags --disable-x86-used-note
--with-gold-ldflags=-static-libstdc++ --disable-werror --enable-pgo-build=lto
--enable-gprofng

The triggering option is --enable-pgo-build=lto, the tests pass when configured
without this option. Failing tests are:

[...]
Running
/home/packages/binutils/binutils-2.40/ld/testsuite/ld-bootstrap/bootstrap.exp
...
FAIL: bootstrap
FAIL: bootstrap with strip
FAIL: bootstrap with -Wl,--traditional-format
FAIL: bootstrap with -Wl,--no-keep-memory
FAIL: bootstrap with -Wl,--relax
FAIL: bootstrap with -Wl,--max-cache-size=-1
[...]

[Bug lto/110098] [11.4 Regression] binutils bootstrap tests fail when built with 11.4

2023-06-02 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110098

--- Comment #1 from Matthias Klose  ---
Created attachment 55246
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55246&action=edit
log file

log file doesn't show any hint

[Bug bootstrap/110275] New: [14 Regression] trunk fails to build with binutils trunk on riscv64-linux-gnu

2023-06-15 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110275

Bug ID: 110275
   Summary: [14 Regression] trunk fails to build with binutils
trunk on riscv64-linux-gnu
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20230613, binutils trunk 20230611 on riscv64-linux-gnu:

[...]
insn-opinit.o: in function `init_all_optabs(target_optabs*)':
/<>/build/gcc/insn-opinit.cc:4150:(.text+0x928): relocation
truncated to fit: R_RIS
CV_JAL against `.L324'
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
make[5]: *** [../../src/gcc/c/Make-lang.in:87: cc1] Error 1

gcc is configured with:

Configured with: -v
 --prefix=/usr/lib/gcc-snapshot
 --with-gcc-major-version-only
 --program-prefix=
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --enable-bootstrap
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --disable-libitm
 --disable-libquadmath
 --disable-libquadmath-support
 --enable-plugin
 --with-system-zlib
 --enable-libphobos-checking=release
 --with-target-system-zlib=auto
 --enable-objc-gc=auto
 --enable-multiarch
 --disable-werror
 --disable-multilib
 --with-arch=rv64gc
 --with-abi=lp64d
 --enable-checking=yes
 --build=riscv64-linux-gnu
 --host=riscv64-linux-gnu
 --target=riscv64-linux-gnu
 --with-build-config=bootstrap-lto-lean
 --enable-link-serialization=2

[Bug bootstrap/110275] [14 Regression] trunk fails to build with binutils trunk on riscv64-linux-gnu

2023-06-15 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110275

--- Comment #1 from Matthias Klose  ---
... and built with make profiledbootstrap-lean

[Bug ipa/110276] New: [13 Regression] ICE building efibootguard on x86_64-linux-gnu

2023-06-15 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110276

Bug ID: 110276
   Summary: [13 Regression] ICE building efibootguard on
x86_64-linux-gnu
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ipa
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
CC: marxin at gcc dot gnu.org
  Target Milestone: ---

seen with the gcc-13 branch 20230611 on x86_64-linux-gnu:

works with -O1, fails with -O2

$ cat itco.i
typedef long (*EFI_PCI_IO_PROTOCOL_CONFIG)();
typedef struct {
  EFI_PCI_IO_PROTOCOL_CONFIG Read;
} EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS;
typedef struct {
  EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS Pci;
} EFI_PCI_IO_PROTOCOL;
int init_regs_0;
static void __attribute__((constructor)) init(EFI_PCI_IO_PROTOCOL *pci_io) {
  if (init_regs_0)
pci_io->Pci.Read();
}
$ gcc -c -O2 -std=gnu99 -fpic -fshort-wchar -ffreestanding -fno-strict-aliasing
-fno-stack-protector itco.i 
during IPA pass: sra
itco.i:12:1: internal compiler error: in adjust_parameter_descriptions, at
ipa-sra.cc:4263
   12 | }
  | ^
0x74317d adjust_parameter_descriptions
../../src/gcc/ipa-sra.cc:4263
0x74317d ipa_sra_analysis
../../src/gcc/ipa-sra.cc:4427
0x74317d execute
../../src/gcc/ipa-sra.cc:4554
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.

[Bug go/110297] New: [13/14 Regression] all libgo tests fail on arm-linux-gnueabi and arm-linxu-gnueabihf

2023-06-17 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110297

Bug ID: 110297
   Summary: [13/14 Regression] all libgo tests fail on
arm-linux-gnueabi and arm-linxu-gnueabihf
   Product: gcc
   Version: 13.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: go
  Assignee: ian at airs dot com
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen on the gcc-13 branch 20230611 on arm-linux-gnueabi and
arm-linux-gnueabihf:

and all libgo tests fail on ARM32, both on the gcc-13 branch and the trunk.

[...]
fatal error: runtime: cannot allocate memory

runtime stack:
runtime.dopanic__m
../../../src/libgo/go/runtime/panic.go:1207
runtime.fatalthrow
../../../src/libgo/go/runtime/panic.go:1073
runtime.throw
../../../src/libgo/go/runtime/panic.go:1044
runtime.persistentalloc1
../../../src/libgo/go/runtime/malloc.go:1475
runtime.persistentalloc..func1
../../../src/libgo/go/runtime/malloc.go:1429
runtime.systemstack
../../../src/libgo/go/runtime/stubs.go:61
runtime.persistentalloc
../../../src/libgo/go/runtime/malloc.go:1428
runtime.addrRanges.init
../../../src/libgo/go/runtime/mranges.go:170
runtime.pageAlloc.init
../../../src/libgo/go/runtime/mpagealloc.go:330
runtime.mheap.init
../../../src/libgo/go/runtime/mheap.go:723
runtime.mallocinit
../../../src/libgo/go/runtime/malloc.go:497
runtime.schedinit
../../../src/libgo/go/runtime/proc.go:681

:0

:0
__libc_start_main
:0


that's from a simple check:
GO=go-13

WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
cat < hello.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
EOF

$GO run hello.go
$GO build hello.go
echo "build: OK"
ldd hello
[ -x hello ]
./hello
echo "run: OK"

  1   2   3   >