[Bug target/93061] Optimising for size -Os causes segfault with AES-NI reference

2019-12-23 Thread mutex at fastmail dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93061 --- Comment #3 from Mutex --- Repeated with gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 The latest I have access to. Same thing. $ gcc -maes -Os *.c *.s $ ./a.out Segmentation fault (core dumped) $ gcc -maes *.c *.s $ ./a.out $

[Bug target/93061] Optimising for size -Os causes segfault with AES-NI reference

2019-12-23 Thread mutex at fastmail dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93061 --- Comment #2 from Mutex --- Created attachment 47545 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47545=edit Updated example Made a mistake in the first update which might've introduced a non-relevant segfault. This fixes it.

[Bug ipa/83411] function multiversioning should clone the entire sub-callgraph

2019-12-23 Thread ygribov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83411 Yury Gribov changed: What|Removed |Added CC||ygribov at gcc dot gnu.org --- Comment #5

[Bug target/93062] New: Failed to generate indirect branch for long branches on risc-v

2019-12-23 Thread adrien.sf.wu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93062 Bug ID: 93062 Summary: Failed to generate indirect branch for long branches on risc-v Product: gcc Version: 9.2.1 Status: UNCONFIRMED Severity: normal

[Bug target/93061] Optimising for size -Os causes segfault with AES-NI reference

2019-12-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93061 Andrew Pinski changed: What|Removed |Added Target||x86_64-linux-gnu

[Bug rtl-optimization/93061] New: Optimising for size -Os causes segfault with AES-NI reference

2019-12-23 Thread mutex at fastmail dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93061 Bug ID: 93061 Summary: Optimising for size -Os causes segfault with AES-NI reference Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/93060] __uint128_t is not an std::integral/std::unsigned_integral

2019-12-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93060 --- Comment #4 from Andrew Pinski --- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49595#c11 : The implementation-defined extended integer types are documented alongside the other implementation-defined behavior in implement-c.texi: "GCC does

[Bug libstdc++/93060] __uint128_t is not an std::integral/std::unsigned_integral

2019-12-23 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93060 --- Comment #2 from fdlbxtqi --- (In reply to Andrew Pinski from comment #1) > >extended integer types > > Because it is not an extended integer type. Ok. Thank you for your answer

[Bug libstdc++/93060] __uint128_t is not an std::integral/std::unsigned_integral

2019-12-23 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93060 fdlbxtqi changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/93060] __uint128_t is not an std::integral/std::unsigned_integral

2019-12-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93060 --- Comment #1 from Andrew Pinski --- >extended integer types Because it is not an extended integer type.

[Bug libstdc++/93060] New: __uint128_t is not an std::integral/std::unsigned_integral

2019-12-23 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93060 Bug ID: 93060 Summary: __uint128_t is not an std::integral/std::unsigned_integral Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug go/93020] Final patches to build gcc-10 on GNU/Hurd

2019-12-23 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93020 Ian Lance Taylor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug go/93020] Final patches to build gcc-10 on GNU/Hurd

2019-12-23 Thread ian at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93020 --- Comment #3 from ian at gcc dot gnu.org --- Author: ian Date: Tue Dec 24 05:05:32 2019 New Revision: 279724 URL: https://gcc.gnu.org/viewcvs?rev=279724=gcc=rev Log: PR go/93020 libgo: Hurd portability patches By Svante

[Bug libstdc++/93059] char and char8_t does not talk with each other with memcpy. std::copy std::copy_n, std::fill, std::fill_n, std::uninitialized_copy std::uninitialized_copy_n, std::fill, std::unin

2019-12-23 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93059 --- Comment #4 from fdlbxtqi --- A demo fix would be like this i think: template inline constexpr output_iter my_copy_n(input_iter first,std::size_t count,output_iter result) { using input_value_type = typename

[Bug libstdc++/93059] char and char8_t does not talk with each other with memcpy. std::copy std::copy_n, std::fill, std::fill_n, std::uninitialized_copy std::uninitialized_copy_n, std::fill, std::unin

2019-12-23 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93059 --- Comment #3 from fdlbxtqi --- https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/stl_algobase.h I have found out the problem. 1. libstdc++ does not use memmove for different trivially copyable objects. It only uses

[Bug libstdc++/93059] char and char8_t does not talk with each other with memcpy. std::copy std::copy_n, std::fill, std::fill_n, std::uninitialized_copy std::uninitialized_copy_n, std::fill, std::unin

2019-12-23 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93059 --- Comment #2 from fdlbxtqi --- Also find a bug of __memmove /* * A constexpr wrapper for __builtin_memmove. * @param __num The number of elements of type _Tp (not bytes). */ template _GLIBCXX14_CONSTEXPR inline void*

[Bug target/93047] frename-registers does not work well with __builtin_return

2019-12-23 Thread guojiufu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93047 --- Comment #2 from Jiu Fu Guo --- Sorry for missing -fpic gcc builtin-return-1.c -O3 -fpic -frename-registers -o ./builtin-return-1.exe and this issue can be reproduced on gcc7.4, gcc6.4 is ok.

[Bug tree-optimization/93023] give preference to address iv without offset in ivopts

2019-12-23 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93023 Wilco changed: What|Removed |Added CC||wilco at gcc dot gnu.org --- Comment #1 from

[Bug target/93047] frename-registers does not work well with __builtin_return

2019-12-23 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93047 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org ---

[Bug libstdc++/93059] char and char8_t does not talk with each other with memcpy. std::copy std::copy_n, std::fill, std::fill_n, std::uninitialized_copy std::uninitialized_copy_n, std::fill, std::unin

2019-12-23 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93059 --- Comment #1 from fdlbxtqi --- I am going to rewrite these functions by C++20 concepts + if constexpr for C++20 for you, Jwakely. I do not believe these enable-if/ overloading functions would not be a problem.

[Bug c++/93033] [10 Regression] error: incorrect sharing of tree nodes

2019-12-23 Thread zwen7 at binghamton dot edu
ported LTO compression algorithms: zlib gcc version 10.0.0 20191223 (experimental) (somegcc)

[Bug testsuite/93058] FAIL: g++.dg/asan/asan_test.C -O2 (test for excess errors)

2019-12-23 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93058 --- Comment #1 from Sergei Trofimovich --- Th important bits seems to be: gcc/testsuite/g++.dg/asan/asan_test.cc:129:22: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] I think it happens because glibc marks

[Bug libstdc++/93059] New: char and char8_t does not talk with each other with memcpy. std::copy std::copy_n, std::fill, std::fill_n, std::uninitialized_copy std::uninitialized_copy_n, std::fill, std:

2019-12-23 Thread euloanty at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93059 Bug ID: 93059 Summary: char and char8_t does not talk with each other with memcpy. std::copy std::copy_n, std::fill, std::fill_n, std::uninitialized_copy std::uninitialized_copy_n,

[Bug testsuite/93058] New: FAIL: g++.dg/asan/asan_test.C -O2 (test for excess errors)

2019-12-23 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93058 Bug ID: 93058 Summary: FAIL: g++.dg/asan/asan_test.C -O2 (test for excess errors) Product: gcc Version: 9.2.0 Status: UNCONFIRMED Severity: normal

[Bug lto/93057] New: -flto=64 -o "t#o" leads to an error

2019-12-23 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93057 Bug ID: 93057 Summary: -flto=64 -o "t#o" leads to an error Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto

[Bug c++/86238] No diagnostic for virtual base class with inaccessible destructor

2019-12-23 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86238 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #4 from TC

[Bug tree-optimization/93056] New: Poor codegen for heapsort in stephanov_vector benchmark

2019-12-23 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93056 Bug ID: 93056 Summary: Poor codegen for heapsort in stephanov_vector benchmark Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/93055] New: accumulation loops in stepanov_vector benchmark use more instruction level parpallelism

2019-12-23 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93055 Bug ID: 93055 Summary: accumulation loops in stepanov_vector benchmark use more instruction level parpallelism Product: gcc Version: 10.0 Status: UNCONFIRMED

[Bug tree-optimization/93054] ICE in gimple_set_lhs, at gimple.c:1820

2019-12-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93054 --- Comment #2 from Andrew Pinski --- (In reply to prathamesh3492 from comment #1) > I wonder if we should emit an error in the front-end if a noreturn function > has non-void return type ? For above test-case, the function cb() is marked > with

[Bug libgcc/93053] libgcc build failure with old binutils on aarch64

2019-12-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93053 --- Comment #3 from Andrew Pinski --- I think https://gcc.gnu.org/install/specific.html#aarch64-x-x should be updated rather than anything else.

[Bug libgcc/93053] libgcc build failure with old binutils on aarch64

2019-12-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93053 --- Comment #2 from Andrew Pinski --- Yes for aarch64, a 6 old binutils is too old. A 5 year old one is not though.

[Bug tree-optimization/93052] Wrong optimizations for pointers: `p == q ? p : q` -> `q`

2019-12-23 Thread ch3root at openwall dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93052 --- Comment #4 from Alexander Cherepanov --- Could you please provide a bit more specific reference? If you mean various discussions about C provenance semantics then they are not about these cases. All examples in pr93051 and in this pr fully

[Bug tree-optimization/93054] ICE in gimple_set_lhs, at gimple.c:1820

2019-12-23 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93054 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug ada/70786] Missing "not" breaks Ada.Text_IO.Get_Immediate(File, Item, Available)

2019-12-23 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70786 --- Comment #9 from Richard Earnshaw --- comment 8 should be for pr70876.

Re: [Bug other/93049] limits.h generated by fixincludes breaks cross-compilation

2019-12-23 Thread Svante Signell
On Mon, 2019-12-23 at 10:09 +, sch...@linux-m68k.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93049 > > --- Comment #1 from Andreas Schwab --- > Make sure you have sysroot properly set up so that the gcc Makefile finds the > system limits.h. Do you mean this:

[Bug libgcc/93053] libgcc build failure with old binutils on aarch64

2019-12-23 Thread zhroma at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93053 --- Comment #1 from Roman Zhuykov --- Now I can confirm it started with r275967.

[Bug rtl-optimization/37377] [4.4 Regression] Bootstrap failure compiling libgcc

2019-12-23 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37377 --- Comment #17 from Richard Earnshaw --- last patch was for pr37577.

[Bug tree-optimization/93054] New: ICE in gimple_set_lhs, at gimple.c:1820

2019-12-23 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93054 Bug ID: 93054 Summary: ICE in gimple_set_lhs, at gimple.c:1820 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal

[Bug libgcc/93053] New: libgcc build failure with old binutils on aarch64

2019-12-23 Thread zhroma at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93053 Bug ID: 93053 Summary: libgcc build failure with old binutils on aarch64 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/93052] Wrong optimizations for pointers: `p == q ? p : q` -> `q`

2019-12-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93052 --- Comment #3 from Andrew Pinski --- There is a C defect report about these cases.

[Bug tree-optimization/65752] Too strong optimizations int -> pointer casts

2019-12-23 Thread ch3root at openwall dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #60 from Alexander Cherepanov --- It seems to me that problems with the optimization `p == q ? p : q` -> `q` (comment 15, comment 38, comment 56 etc.) are not specific to past-the-end pointers. So I filed a separated bug for it with

[Bug tree-optimization/61502] == comparison on "one-past" pointer gives wrong result

2019-12-23 Thread ch3root at openwall dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61502 --- Comment #34 from Alexander Cherepanov --- It seems to me that problems with the optimization `if (p == q) use p` -> `if (p == q) use q` (comment 4 etc.) are not specific to past-the-end pointers. So I filed a separated bug for it with

[Bug tree-optimization/93052] Wrong optimizations for pointers: `p == q ? p : q` -> `q`

2019-12-23 Thread ch3root at openwall dot com
mp;& ./a.out result: 1 -- gcc x86-64 version: gcc (GCC) 10.0.0 20191223 (experimental) --

[Bug tree-optimization/93052] New: Wrong optimizations for pointers: `p == q ? p : q` -> `q`

2019-12-23 Thread ch3root at openwall dot com
-64 version: gcc (GCC) 10.0.0 20191223 (experimental) --

[Bug tree-optimization/93052] Wrong optimizations for pointers: `p == q ? p : q` -> `q`

2019-12-23 Thread ch3root at openwall dot com
ounds of ‘int[1]’ [-Warray-bounds] 33 | *r = 2; | ^~ test.c:22:9: note: while referencing ‘y’ 22 | int y[1]; | ^ result: 1 -- gcc x86-64 version: gcc (GCC) 10.0.0 20191223 (experimental) --

[Bug tree-optimization/93051] Wrong optimizations for pointers: `if (p == q) use p` -> `if (p == q) use q`

2019-12-23 Thread ch3root at openwall dot com
test.c && ./a.out result: 1 -- gcc x86-64 version: gcc (GCC) 10.0.0 20191223 (experimental) --

[Bug tree-optimization/93051] Wrong optimizations for pointers: `if (p == q) use p` -> `if (p == q) use q`

2019-12-23 Thread ch3root at openwall dot com
[-Wrestrict] 22 | f(, ); | ^~ ~~ result: 1 -- gcc x86-64 version: gcc (GCC) 10.0.0 20191223 (experimental) -- Strictly speaking this example is

[Bug tree-optimization/93051] New: Wrong optimizations for pointers: `if (p == q) use p` -> `if (p == q) use q`

2019-12-23 Thread ch3root at openwall dot com
; | ^ result: 1 -- gcc x86-64 version: gcc (GCC) 10.0.0 20191223 (experimental) -- The warning nicely illustrates the problem:-) Based on the example from Harald van Dijk in pr61502#c4.

[Bug fortran/92961] [8/9/10 Regression] ICE in gfc_zero_size_array, at fortran/arith.c:1680

2019-12-23 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92961 Thomas Koenig changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/93050] New: throw within constructor initialisation list causes invalid free in destructor

2019-12-23 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93050 Bug ID: 93050 Summary: throw within constructor initialisation list causes invalid free in destructor Product: gcc Version: unknown Status: UNCONFIRMED

[Bug c++/93048] ICE in verify_gimple

2019-12-23 Thread pilarlatiesa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93048 --- Comment #4 from Pilar Latiesa --- Minimal testcase ;-) #include struct TTensor {}; struct TCoefs { double aP; std::valarray aF; TTensor b; }; TCoefs CalcCoefs() { double aP = 0.0; return {aP, {}, {}}; }

[Bug tree-optimization/92644] [9 Regression] ICE in wide_int_to_tree_1, at tree.c:1530

2019-12-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92644 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug other/93049] limits.h generated by fixincludes breaks cross-compilation

2019-12-23 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93049 --- Comment #1 from Andreas Schwab --- Make sure you have sysroot properly set up so that the gcc Makefile finds the system limits.h.

[Bug c++/93048] ICE in verify_gimple

2019-12-23 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93048 Arseny Solokha changed: What|Removed |Added CC||asolokha at gmx dot com --- Comment #3

[Bug c++/93048] ICE in verify_gimple

2019-12-23 Thread pilarlatiesa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93048 --- Comment #2 from Pilar Latiesa --- Even more reduced: #include template struct TTensor {}; template struct TCoefs { double aP; std::valarray aF; TTensor b; }; template class TExprDiv { public: TCoefs

[Bug c++/93048] ICE in verify_gimple

2019-12-23 Thread pilarlatiesa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93048 --- Comment #1 from Pilar Latiesa --- Reduced: #include template class valarray {}; template struct TTensor {}; template struct TCoefs { double aP; std::valarray aF; TTensor b; }; template class TCampo

[Bug other/93049] New: limits.h generated by fixincludes breaks cross-compilation

2019-12-23 Thread svante.signell at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93049 Bug ID: 93049 Summary: limits.h generated by fixincludes breaks cross-compilation Product: gcc Version: 9.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/92789] Non-obvious ?: behaviour with structurally equivalent types

2019-12-23 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92789 --- Comment #1 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Mon Dec 23 09:43:46 2019 New Revision: 279717 URL: https://gcc.gnu.org/viewcvs?rev=279717=gcc=rev Log: [C++] Make same_type_p return false for gnu_vector_type_p

[Bug c++/93048] New: ICE in verify_gimple

2019-12-23 Thread pilarlatiesa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93048 Bug ID: 93048 Summary: ICE in verify_gimple Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3

[Bug c/90677] [9 Regression] gcc-9.1.0 fails to build __gcc_diag__ souce: error: 'cgraph_node' is not defined as a type

2019-12-23 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90677 Eric Botcazou changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

[Bug c/93047] New: frename-registers does not work well with __builtin_return

2019-12-23 Thread guojiufu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93047 Bug ID: 93047 Summary: frename-registers does not work well with __builtin_return Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/93041] GCC 10 removes an infinite loop and causes a null pointer to dereferenced

2019-12-23 Thread fxue at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93041 fxue at gcc dot gnu.org changed: What|Removed |Added CC||fxue at gcc dot gnu.org ---