[Bug c/81996] New: __builtin_return_address(0) does not work on powerpc in -fPIC mode and causes SIGSEGVs

2017-08-27 Thread slyfox at inbox dot ru
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Target Milestone: --- I've found a problem on glibc-2.25 where glibc crashes at startup. Minimal reproducer does not crash the progra

[Bug c/81996] __builtin_return_address(0) does not work on powerpc in -fPIC mode and causes SIGSEGVs

2017-08-27 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81996 --- Comment #1 from Sergei Trofimovich --- Compiler version: Target: powerpc-unknown-linux-gnu Configured with: /dev/shm/portage/sys-devel/gcc-7.2.0/work/gcc-7.2.0/configure --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --pr

[Bug c/81996] __builtin_return_address(0) does not work on powerpc in -fPIC mode and causes SIGSEGVs

2017-08-27 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81996 --- Comment #2 from Sergei Trofimovich --- gcc master is slightly better here but is still inefficient in fPIC mode: gcc -O2 -fno-PIC: f: mflr 3 blr gcc -O2 -fPIC: f: stwu 1,-16(1) mflr 0 stw 0,

[Bug c/81996] __builtin_return_address(0) does not work on powerpc in -fPIC mode and causes SIGSEGVs

2017-08-27 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81996 --- Comment #3 from Sergei Trofimovich --- Built vanilla gcc from head to make sure it's not local patches. -fstack-protector-all is the trigger breaking return address: Target: powerpc-unknown-linux-gnu Configured with: ../gcc/configure --p

[Bug debug/82155] New: gcc-8 ICE in dwarf2out_abstract_function, at dwarf2out.c:21655

2017-09-08 Thread slyfox at inbox dot ru
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Target Milestone: --- The crash is extracted from ceph-10.2.9. [1] is the minimal reproducer (a bit big as I did not clean it after 'creduce'): Crashes o

[Bug debug/82155] gcc-8 ICE in dwarf2out_abstract_function, at dwarf2out.c:21655

2017-09-08 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82155 --- Comment #1 from Sergei Trofimovich --- Created attachment 42143 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42143&action=edit ECBackend.ii Attaching original reproducer as well.

[Bug tree-optimization/78969] bogus snprintf truncation warning due to missing range info

2017-05-23 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru --- Comment

[Bug c++/82759] New: SIGSEGV in gcc-7.2.0/gcc/tree-ssa-sccvn.c:3087: vn_phi_lookup()

2017-10-28 Thread slyfox at inbox dot ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 42492 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42492&action=edit _png.ii Original build failure was fo

[Bug c++/82759] SIGSEGV in gcc-7.2.0/gcc/tree-ssa-sccvn.c:3087: vn_phi_lookup()

2017-10-28 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82759 Sergei Trofimovich changed: What|Removed |Added CC||rguenther at suse dot de --- Commen

[Bug c++/82953] New: ICE in tree_check() ../../gcc/gcc/tree.h:3087

2017-11-12 Thread slyfox at inbox dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 42588 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42588&action=edit gcc-bug.ii Originally reported in https://bugs.gentoo.org/636646 Minimal

[Bug c++/82953] ICE in tree_check() ../../gcc/gcc/tree.h:3087

2017-11-12 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82953 --- Comment #1 from Sergei Trofimovich --- gdb backtrace: (gdb) bt #0 any_dependent_bases_p (type=type@entry=0x7003f7e0) at ../../gcc/gcc/cp/search.c:2617 #1 0x0083ee53 in finish_class_member_access_expr (object=..., name=, name@en

[Bug target/78553] GCC 5.3.0 and 5.4.0 segfault during bootstrap when --enable-vtable-verify is enabled on PowerPC musl

2017-11-25 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78553 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru --- Comment

[Bug c++/60551] __attribute__((used)) is ignored for 'static' function declarations

2014-03-31 Thread slyfox at inbox dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60551 --- Comment #1 from Sergei Trofimovich --- Clarification: 'a.cc' should be named as 'a.hh' as it's a header included in many other .cc files.

[Bug c/43470] New: ICE: powerpc64 with -fno-strict-aliasing -O2 on interersting asm volatiles

2010-03-21 Thread slyfox at inbox dot ru
interersting asm volatiles Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: slyfox at inbox dot ru GCC build triplet: powerpc64-un

[Bug c/43470] ICE: powerpc64 with -fno-strict-aliasing -O2 on interersting asm volatiles

2010-03-21 Thread slyfox at inbox dot ru
--- Comment #1 from slyfox at inbox dot ru 2010-03-21 20:09 --- Created an attachment (id=20153) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20153&action=view) ghc30321_0.i - preprocessed offending file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43470

[Bug c/43470] ICE: powerpc64 with -fno-strict-aliasing -O2 on interersting asm volatiles

2010-03-21 Thread slyfox at inbox dot ru
--- Comment #2 from slyfox at inbox dot ru 2010-03-21 20:11 --- Created an attachment (id=20154) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20154&action=view) valgrind.log - sheds some light on SIGSEGV reason ... ==10526== Invalid write of size 8 ==10526==at 0x1

[Bug rtl-optimization/43470] ICE: powerpc64 with -fno-strict-aliasing -O2 on interersting asm volatiles

2010-03-22 Thread slyfox at inbox dot ru
--- Comment #5 from slyfox at inbox dot ru 2010-03-22 09:50 --- Yes, i can confirm gcc-trunk does not fail on this file. What prevents this fix to be merged to 4.4. branch? Thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43470

[Bug c/60291] New: slow compile times for any mode (-O0/-O1/-O2) on large .c source file (30MBs)

2014-02-20 Thread slyfox at inbox dot ru
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Created attachment 32182 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32182&action=edit ghc14232_3.hc.i.bz2 - compressed source file

[Bug c/60291] slow compile times for any mode (-O0/-O1/-O2) on large .c source file (30MBs)

2014-02-20 Thread slyfox at inbox dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60291 --- Comment #1 from Sergei Trofimovich --- For -ftime-report -O1 most highlighting lines are: phase opt and generate : 175.81 (98%) usr 4.61 (51%) sys 180.95 (95%) wall 1833542 kB (86%) ggc expand : 20.05 (11%) usr 0.71 (

[Bug c++/60551] New: __attribute__((used)) is ignored for 'static' function declarations

2014-03-17 Thread slyfox at inbox dot ru
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru // a.cc: // I plan to implement it in only one .cc module // and not this one, thus I don't need external visibility. static void fr

[Bug other/53313] Add warning levels

2014-03-17 Thread slyfox at inbox dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53313 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru --- Comment

[Bug other/60465] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2015-12-24 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru --- Comment

[Bug other/60465] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2015-12-25 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465 --- Comment #30 from Sergei Trofimovich --- Aha, got it. I've factored out GNU_HASH section setup crash into separate very simple function: void __attribute__ ((unused, noinline)) do_it_again (struct link_map *l, ElfW(Dyn) *dyn) { Elf

[Bug other/60465] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2015-12-26 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465 --- Comment #32 from Sergei Trofimovich --- (In reply to Andreas Schwab from comment #31) > @ltoffx on symbol+addend doesn't make any sense. This computes an offset > into the GOT, so any addend needs to be added _after_ loading the actual > sym

[Bug other/60465] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2015-12-26 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465 --- Comment #33 from Sergei Trofimovich --- Sent glibc workaround for review as: https://sourceware.org/ml/libc-alpha/2015-12/msg00556.html

[Bug other/60465] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2015-12-27 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465 --- Comment #34 from Sergei Trofimovich --- Wrote more details on how exactly things were broken: http://trofi.github.io/posts/189-glibc-on-ia64-or-how-relocations-bootstrap.html

[Bug other/60465] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2015-12-28 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465 --- Comment #35 from Sergei Trofimovich --- Created attachment 37180 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37180&action=edit 0001-ia64-don-t-use-dynamic-relocations-for-local-symbols.patch 0001-ia64-don-t-use-dynamic-relocations-f

[Bug other/60465] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2015-12-28 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465 --- Comment #36 from Sergei Trofimovich --- Tested the patch on top of gcc-5.3.0 / glibc-2.22-r1. Relocation in rtld.os is R_IA64_GPREL64I and is just an immediate offset in ld.so: # objdump -r -d elf/rtld.os | grep -C4 rtld_local+0x38 97c0

[Bug other/60465] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2015-12-29 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465 --- Comment #37 from Sergei Trofimovich --- The patch also fixes this old bug: https://bugzilla.redhat.com/show_bug.cgi?id=33354 Despite being marked as fixed it fails on modern toolchain with slight overflow. Address of local constant was d

[Bug c/69221] New: gcc on m68k miscompiles function type casts

2016-01-10 Thread slyfox at inbox dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 37298 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37298&action=edit sample with broken ABI This came up as a miscompilation of GHC:

[Bug c/69221] gcc on m68k miscompiles function type casts

2016-01-10 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69221 --- Comment #2 from Sergei Trofimovich --- (In reply to Andreas Schwab from comment #1) > The declaration of f isn't compatible with its defintion. A cast doesn't > change that fact. Correct. But is it relevant here? Cast is the only real thing

[Bug driver/69351] New: response files on linux don't get populated and leave undeleted temporary files

2016-01-18 Thread slyfox at inbox dot ru
erity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Target Milestone: --- Target: x86_64-pc-linux-gnu Was originally found in GHC: https://ghc.haskell.org/trac/ghc/ticket/10986#comment:10

[Bug driver/69351] response files on linux leave undeleted temporary files

2016-01-22 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69351 --- Comment #2 from Sergei Trofimovich --- My failing versions are: $ LANG=C gcc -v Using built-in specs. COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/5.3.0/lto-wrapper Target: x

[Bug driver/69351] response files on linux leave undeleted temporary files

2016-01-22 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69351 --- Comment #3 from Sergei Trofimovich --- Built gcc from master (binutils 2.25.1). Error does not happen there: Using built-in specs. COLLECT_GCC=bin/gcc COLLECT_LTO_WRAPPER=/home/slyfox/dev/git/gcc-native-quick-installed/bin/../libexec/gcc/x86

[Bug driver/69351] [5 only] response files on linux leave undeleted temporary files

2016-01-22 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69351 --- Comment #4 from Sergei Trofimovich --- One more data point: gcc-5-branch still has the bug: LANG=C bin/gcc -v Using built-in specs. COLLECT_GCC=bin/gcc COLLECT_LTO_WRAPPER=/home/slyfox/dev/git/gcc-native-quick-installed/bin/../libexec/gcc/x8

[Bug c/42506] New: remove useless '-fkeep-inline-functions' from gcc flags

2009-12-26 Thread slyfox at inbox dot ru
Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: slyfox at inbox dot ru GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42506

[Bug c/42506] remove useless '-fkeep-inline-functions' from gcc flags

2009-12-26 Thread slyfox at inbox dot ru
--- Comment #2 from slyfox at inbox dot ru 2009-12-26 15:34 --- (In reply to comment #1) > It is not useless, the reason you in some cases want to keep out of line > copies > of inline functions is e.g. debugging, if there is no out of line copy of a > function, you can&#x

[Bug c++/46075] New: g++ wrongly lookups builtin types in ADL (compiles wrong code)

2010-10-18 Thread slyfox at inbox dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46075 Summary: g++ wrongly lookups builtin types in ADL (compiles wrong code) Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c++/46075] g++ wrongly lookups builtin types in ADL (compiles wrong code)

2010-10-18 Thread slyfox at inbox dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46075 --- Comment #1 from Sergei Trofimovich 2010-10-18 20:23:10 UTC --- Created attachment 22084 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22084 test example. compilation should fail

[Bug c++/46075] g++ wrongly lookups builtin types in ADL (compiles wrong code)

2010-10-18 Thread slyfox at inbox dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46075 --- Comment #4 from Sergei Trofimovich 2010-10-18 20:43:24 UTC --- (In reply to comment #2) > Actually there is an open question if clang or gcc is correct according to the > C++ standards committee. There is a defect report about foundational t

[Bug libgcc/85621] savms/resms have executable stack (lack GNU-stack marking)

2021-02-06 Thread slyfox at inbox dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85621 Sergei Trofimovich changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

<    1   2   3