[Bug tree-optimization/94617] Simple if condition not optimized

2020-04-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94617 --- Comment #1 from Richard Biener --- Why do you think this is terrible? Aggressive use of conditional moves is not a good idea in general.

[Bug tree-optimization/94617] Simple if condition not optimized

2020-04-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94617 --- Comment #3 from Richard Biener --- Note the RTL if-conversion pass doesn't recognize what we present to it. If you alter initial RTL expansion via -fno-tree-ter (not recommended in general) we produce a more 1:1 translation of the code as _Z

[Bug tree-optimization/94617] Simple if condition not optimized

2020-04-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94617 --- Comment #4 from Richard Biener --- IIRC you can also express the range test this way: const char* vanilla_bandpass(int a, int b, int x, const char* low, const char* high) { const bool within_interval { (unsigned long)x - a < (unsigned long

[Bug tree-optimization/33315] stores not commoned by sinking

2020-04-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33315 --- Comment #14 from Richard Biener --- (In reply to Richard Biener from comment #13) > (In reply to Richard Biener from comment #12) > > Created attachment 48279 [details] > > patch > > > > Patch forward ported to current trunk. > > Surprising

[Bug tree-optimization/94617] Simple if condition not optimized

2020-04-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94617 --- Comment #7 from Richard Biener --- (In reply to Jakub Jelinek from comment #6) > (In reply to David Seifert from comment #5) > > just benchmarked the code on an oldish Ivybridge. GCC with vanilla_bandpass > > is 2.1x slower than GCC with funk

[Bug fortran/94129] Using almost any openacc !$acc directive causes ICE "compressed stream: data error"

2020-04-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94129 --- Comment #10 from Richard Biener --- (In reply to Martin Liška from comment #9) > (In reply to Martin Liška from comment #8) > > @Richi: Can you please enable zstd for our nvptx cross compiler: > > > > $ x86_64-suse-linux-accel-nvptx-none-gcc

[Bug libgomp/94612] Failed to build simple examples with offloading.

2020-04-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94612 --- Comment #10 from Richard Biener --- (In reply to Martin Liška from comment #3) > It's likely dup of PR94129. Note that that one ICEs on matching compression algorithms which here the ICE notes the compressed data stream is corrupt. There mu

[Bug rtl-optimization/94618] [8/9/10 Regression] '-fcompare-debug' failure (length) with -O2 -fnon-call-exceptions since r8-565-g7581ce9a1ad6df9c

2020-04-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94618 Richard Biener changed: What|Removed |Added CC||vmakarov at gcc dot gnu.org K

[Bug tree-optimization/94621] [9/10 Regression] GCC 9.2.1 segfaults when compiling file with -O3 since r9-5354

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94621 --- Comment #6 from Richard Biener --- (In reply to Ola Olsson from comment #5) > My god. Insanely fast. Dobra robota/prace! The power of Free Software / Open Source.

[Bug tree-optimization/94621] [9/10 Regression] GCC 9.2.1 segfaults when compiling file with -O3 since r9-5354

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94621 --- Comment #7 from Richard Biener --- (In reply to Jakub Jelinek from comment #4) > Created attachment 48294 [details] > gcc10-pr94621.patch > > Untested fix. LGTM (obvious even)

[Bug c++/94628] [8/9/10 Regression] ICE in invalid_nonstatic_memfn_p at cp/typeck.c:1979 since r9-640-g1268ecc26fc1289b

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94628 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Target Milestone|---

[Bug libstdc++/94627] [9/10 Regression] std::match_results equality comparisons should not be noexcept

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94627 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug target/94630] General bug for changes needed to switch the PowerPC long double default

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94630 Richard Biener changed: What|Removed |Added Version|unknown |10.0 Keywords|

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #1 from Richard Biener --- Picking those obvious to me at the moment.

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #2 from Richard Biener --- Created attachment 48298 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48298&action=edit parts I am testing

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment

[Bug rtl-optimization/94618] [8/9/10 Regression] '-fcompare-debug' failure (length) with -O2 -fnon-call-exceptions since r8-565-g7581ce9a1ad6df9c

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94618 --- Comment #6 from Richard Biener --- (In reply to Jakub Jelinek from comment #5) > Created attachment 48293 [details] > gcc10-pr94618.patch > > Untested fix. Looks logically correct - but are there no helpers for this on the RTL side? Like LA

[Bug c/94631] Wrong codegen for arithmetic on bitfields

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94631 --- Comment #4 from Richard Biener --- (In reply to Andrew Pinski from comment #3) > (In reply to Rich Felker from comment #2) > > So basically the outcome of DR120 was allowing the GCC behavior? It still > > seems like a bad thing, not required,

[Bug c++/94634] ++(fun(a)) is acts as lvalue

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94634 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug ipa/93385] [10 Regression] wrong code with u128 modulo at -O2 -fno-dce -fno-ipa-cp -fno-tree-dce

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93385 --- Comment #19 from Richard Biener --- (In reply to Martin Jambor from comment #17) > Created attachment 48302 [details] > Untested fix > > I'm playing with this - only very mildly tested - fix. Ugh. I was thinking of altering the parameter s

[Bug c++/94645] [10 Regression][concepts] incorrect concept evaluation with decltype, plus internal error

2020-04-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94645 Richard Biener changed: What|Removed |Added Target Milestone|--- |10.0 Summary|incorrect conce

[Bug middle-end/94647] [10 Regression] bogus -Warray-bounds on strncpy into a larger member array from a smaller array

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94647 Richard Biener changed: What|Removed |Added Target Milestone|--- |10.0 --- Comment #2 from Richard Biener

[Bug target/94649] 16-byte aligned atomic_compare_exchange doesn not generate cmpxcg16b on x86_64

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94649 Richard Biener changed: What|Removed |Added Target||x86_64-*-* --- Comment #1 from Richard

[Bug target/94650] Missed x86-64 peephole optimization: x >= large power of two

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94650 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug tree-optimization/94655] [10 Regression] Implicit assignment operator triggers stringop-overflow warning

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94655 Richard Biener changed: What|Removed |Added CC||msebor at gcc dot gnu.org Target Mile

[Bug middle-end/94658] Incorrect transformation with -fstrict-aliasing

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94658 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/57359] store motion causes wrong code for union access at -O3

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57359 Richard Biener changed: What|Removed |Added CC||pascal_cuoq at hotmail dot com --- Comm

[Bug ipa/94656] target_clones on alias leads to segfault in the compiler

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94656 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/57359] store motion causes wrong code for union access at -O3

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57359 --- Comment #22 from Richard Biener --- Created attachment 48311 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48311&action=edit patch Note that apart from the possible bad impact on optimization when fixing this bug an actual fix is comp

[Bug tree-optimization/57359] store motion causes wrong code for union access at -O3

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57359 --- Comment #23 from Richard Biener --- (In reply to Richard Biener from comment #22) > Created attachment 48311 [details] > patch > > Note that apart from the possible bad impact on optimization when fixing this > bug an actual fix is complicat

[Bug tree-optimization/57359] store motion causes wrong code for union access at -O3

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57359 --- Comment #24 from Richard Biener --- (In reply to Richard Biener from comment #22) > Created attachment 48311 [details] > patch > > Note that apart from the possible bad impact on optimization when fixing this > bug an actual fix is complicat

[Bug c++/94671] Wrong behavior with operator new overloading when using O2 for optimization

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94671 --- Comment #3 from Richard Biener --- The question is whether the standard allows eliding of the side-effect setting newCalled to true.

[Bug c++/94546] [10 Regression] unimplemented: unexpected AST of kind nontype_argument_pack

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94546 Richard Biener changed: What|Removed |Added Known to work||9.3.0 --- Comment #3 from Richard Biene

[Bug c++/94549] [10 Regression] Inherited and constrained constructors are "ambiguous" even if they aren't

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94549 Richard Biener changed: What|Removed |Added Known to work||9.3.0 --- Comment #2 from Richard Biene

[Bug c++/94583] [10 Regression] ICE in get_defaulted_eh_spec, at cp/method.c:2421

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94583 Richard Biener changed: What|Removed |Added Priority|P1 |P2 --- Comment #3 from Richard Biener

[Bug c++/94592] [10 Regression] ICE in non-type template parameter with constexpr constructor

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94592 Richard Biener changed: What|Removed |Added Known to work||9.3.0 --- Comment #9 from Richard Biene

[Bug rtl-optimization/92430] [9 Regression] Compile-time hog w/ -Os -fno-if-conversion -fno-tree-dce -fno-tree-loop-optimize -fno-tree-vrp

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92430 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|9.4

[Bug tree-optimization/90591] Avoid unnecessary data transfer out of OMP construct

2020-04-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90591 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org,

[Bug rtl-optimization/31485] C complex numbers, amd64 SSE, missed optimization opportunity

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31485 Richard Biener changed: What|Removed |Added Blocks||53947 CC|

[Bug tree-optimization/57359] store motion causes wrong code for union access at -O3

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57359 --- Comment #27 from Richard Biener --- (In reply to Richard Biener from comment #24) > (In reply to Richard Biener from comment #22) > > Created attachment 48311 [details] > > patch > > > > Note that apart from the possible bad impact on optimi

[Bug rtl-optimization/31485] C complex numbers, amd64 SSE, missed optimization opportunity

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31485 --- Comment #14 from Richard Biener --- (In reply to Joel Yliluoma from comment #13) > GCC 4.1.2 is indicated in the bug report headers. > Luckily, Compiler Explorer has a copy of that exact version, and it indeed > vectorizes the second function

[Bug tree-optimization/94675] [9 regression] -Warray-bounds false positive with -O2

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94675 Richard Biener changed: What|Removed |Added Target Milestone|--- |9.4 Version|unknown

[Bug tree-optimization/94675] [9/10 regression] -Warray-bounds false positive with -O2

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94675 Richard Biener changed: What|Removed |Added Known to fail||10.0, 9.3.0 Summary|[9 regre

[Bug ipa/93385] [10 Regression] wrong code with u128 modulo at -O2 -fno-dce -fno-ipa-cp -fno-tree-dce

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93385 Richard Biener changed: What|Removed |Added Priority|P1 |P2 --- Comment #31 from Richard Biener

[Bug ipa/94693] New: IPA SRA should elide unused out parameters

2020-04-21 Thread rguenth at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- IPA SRA should elide 'out' in struct outs { int kind; int i; }; void foo (struct outs *out) { if (out->kind == 0)

[Bug ipa/94693] IPA SRA should elide unused out parameters

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94693 Richard Biener changed: What|Removed |Added CC||jamborm at gcc dot gnu.org Ke

[Bug ipa/94693] IPA SRA should elide unused out parameters

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94693 Richard Biener changed: What|Removed |Added Blocks||90591 --- Comment #1 from Richard Biene

[Bug ipa/94693] IPA SRA should elide unused out parameters

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94693 --- Comment #2 from Richard Biener --- Another testcase would be like int foo (void **ret) { *ret = NULL; return 0; } int bar () { void *dummy; return bar (&dummy); } int main() { void *dummy; if (!foo (&dummy)) return 0; ab

[Bug ipa/94693] IPA SRA should elide unused out parameters

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94693 --- Comment #3 from Richard Biener --- Or a bit more twisty struct A { int key; double payload_A; }; struct B { int key; int payload_B; }; void foo (int *key) { switch (*key) { case 1: ((struct A *)key)->payload_A = 1.0; break;

[Bug libfortran/94694] [10 Regression][libgfortran] libgfortran does not compile on bare-metal aarch64-none-elf (newlib)

2020-04-21 Thread rguenth at gcc dot gnu.org
, ||rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener --- Note in another bug it was said that libgfortran requires a C99 runtime, when that's not available you should disable gfortran build. GCC (or libgfortran) is in no position to disable par

[Bug libfortran/94694] [10 Regression][libgfortran] libgfortran does not compile on bare-metal aarch64-none-elf (newlib)

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94694 Richard Biener changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug libfortran/94694] [10 Regression][libgfortran] libgfortran does not compile on bare-metal aarch64-none-elf (newlib)

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94694 --- Comment #6 from Richard Biener --- (In reply to Richard Earnshaw from comment #5) > (In reply to Richard Biener from comment #2) ... > > Since Fortran isn't release critical the only P1-ish part is that fortran > > build is enabled on aarch64

[Bug middle-end/91512] [10 Regression] Fortran compile time regression.

2020-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91512 --- Comment #28 from Richard Biener --- Note a possibility would be to emit the packing/unpacking functions as inline functions so whether inlining happens would be decided by the middle-end inlining heuristics. That has the advantage of inlinin

[Bug debug/92983] [8/9/10 Regression] Debug info regression since PR87428 changes

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92983 Richard Biener changed: What|Removed |Added Status|WAITING |NEW --- Comment #8 from Richard Biener

[Bug middle-end/94703] Small-sized memcpy leading to unnecessary register spillage unless done through a dummy union

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94703 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org

[Bug middle-end/94703] Small-sized memcpy leading to unnecessary register spillage unless done through a dummy union

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94703 Richard Biener changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #

[Bug target/94706] [8/9/10 Regression] class with empty base passed incorrectly with -std=c++17 on ia64

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94706 Richard Biener changed: What|Removed |Added Target Milestone|--- |8.5

[Bug rtl-optimization/94708] rtl combine should consider NaNs when generate fp min/max

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94708 --- Comment #1 from Richard Biener --- fold guards it with !HONOR_SIGNED_ZEROS && !HONOR_NANS (fold_cond_expr_with_comparison). I think the flag_unsafe_math_optmizations check is bogus. Note we now have fmax/fmin named patterns that can be used

[Bug middle-end/94703] Small-sized memcpy leading to unnecessary register spillage unless done through a dummy union

2020-04-22 Thread rguenth at gcc dot gnu.org
at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener --- ACtually I'll give it a quick try.

[Bug middle-end/94703] Small-sized memcpy leading to unnecessary register spillage unless done through a dummy union

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94703 --- Comment #4 from Richard Biener --- Created attachment 48335 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48335&action=edit untested patch Patch, easier than expected. Possibly needs some adjustment to the gimplifier, we'll see.

[Bug target/94710] [8/9/10 Regression] Assembler messages: Error: operand out of range (4 is not between 0 and 3) (xxsldwi 0,32,33,4)

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94710 Richard Biener changed: What|Removed |Added Target Milestone|--- |8.5

[Bug target/94279] [amdgcn] internal compiler error: RTL check: expected code 'const_int', have 'reg' in rtx_to_poly_int64, at rtl.h:2379

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94279 --- Comment #2 from Richard Biener --- set_noop_p is clearly buggy here, expecting a constant selector /* It is a NOOP if destination overlaps with selected src vector elements. */ if (GET_CODE (src) == VEC_SELECT && REG_P (XEXP

[Bug tree-optimization/94718] Failure to optimize opposite signs check

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94718 Richard Biener changed: What|Removed |Added Last reconfirmed||2020-04-23 Status|UNCONFIRM

[Bug testsuite/94725] Tests with proprietary license notices

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94725 Richard Biener changed: What|Removed |Added CC||jvdelisle2 at outlook dot com,

[Bug tree-optimization/94727] [10 Regression] GCC produces incorrect code with -O3 since r10-5071-g02d895504cc59be0

2020-04-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94727 Richard Biener changed: What|Removed |Added Target||x86_64-*-* --- Comment #2 from Richard

[Bug tree-optimization/94727] [10 Regression] GCC produces incorrect code with -O3 since r10-5071-g02d895504cc59be0

2020-04-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94727 --- Comment #3 from Richard Biener --- (In reply to Richard Biener from comment #2) > test() is basic-block vectorized on the c-loop body which has the d- and > e-loops > completely unrolled. We create some weird > > mask__84.17_18 = vect_cst

[Bug middle-end/94715] Squared multiplies are incorrectly signextended

2020-04-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94715 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org

[Bug rtl-optimization/94728] [haifa-sched][restore_pattern] recalculate INSN_TICK for the dependence type of REG_DEP_CONTROL

2020-04-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94728 Richard Biener changed: What|Removed |Added Keywords||missed-optimization CC|

[Bug tree-optimization/93507] Missed abstraction removal in VN

2020-04-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93507 --- Comment #2 from Richard Biener --- The fix for PR94703 at least makes RTL optimze it to foo: .LFB0: .cfi_startproc movl%edi, %eax ret GIMPLE is still foo (unsigned int x) { long unsigned int dst; long unsign

[Bug middle-end/94715] Squared multiplies are unnecessarily signextended

2020-04-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94715 Richard Biener changed: What|Removed |Added Keywords|wrong-code |missed-optimization Summary|

[Bug tree-optimization/94727] [10 Regression] GCC produces incorrect code with -O3 since r10-5071-g02d895504cc59be0

2020-04-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94727 --- Comment #6 from Richard Biener --- (In reply to rsand...@gcc.gnu.org from comment #5) > Well, this is a bit of mess (surprise). We have a "<" comparison > between two booleans that are leaves of the SLP tree, so > vectorizable_comparison fal

[Bug tree-optimization/92645] Hand written vector code is 450 times slower when compiled with GCC compared to Clang

2020-04-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92645 --- Comment #23 from Richard Biener --- So the issue is we're both not doing enough and too much, the half way early optimizations do confuse us later. Another such opportunity would maybe be: short unsigned int _950; _950 = BIT_FIELD_REF

[Bug other/94741] stringop-truncation is triggered or not depending on surrounding members

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94741 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug tree-optimization/94734] [10 Regression] Program crashes when compiled with -O2 since r10-1892-gb9ef6a2e04bfd013

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94734 --- Comment #8 from Richard Biener --- In particular tree_could_trap_p woudl consider the load possibly trapping due to the variable indexing but the patch seems to override that which I agree is bogus. I think we need to revert it and re-implem

[Bug tree-optimization/94734] [10 Regression] Program crashes when compiled with -O2 since r10-1892-gb9ef6a2e04bfd013

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94734 --- Comment #9 from Richard Biener --- (In reply to Richard Biener from comment #8) > In particular tree_could_trap_p woudl consider the load possibly trapping > due to the variable indexing but the patch seems to override that which > I agree is

[Bug c/94726] [10 Regression] ICE in uniform_vector_p, at tree.c:11214 since r10-2089-g21caa1a2649d586f

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94726 Richard Biener changed: What|Removed |Added CC||jsm28 at gcc dot gnu.org,

[Bug tree-optimization/94734] [10 Regression] Program crashes when compiled with -O2 since r10-1892-gb9ef6a2e04bfd013

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94734 --- Comment #15 from Richard Biener --- (In reply to Jakub Jelinek from comment #13) > Even better. Note none of the committed testcases would be handled with this. There's also the issue of store data races (not sure if the notrap handling is

[Bug rtl-optimization/94708] rtl combine should consider NaNs when generate fp min/max

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94708 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libfortran/94586] trigd_lib.inc:84:28: error: implicit declaration of function 'fmaf'

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94586 --- Comment #41 from Richard Biener --- If this is now fixed can you close the bug as such please, John?

[Bug c++/94745] No error emitted for unknown -Wno-meow argument

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94745 Richard Biener changed: What|Removed |Added Resolution|--- |WONTFIX Status|UNCONFIRMED

[Bug target/91518] [9 Regression] segfault when run CPU2006 465.tonto since r263875

2020-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91518 Richard Biener changed: What|Removed |Added Known to fail||9.3.0 Known to work|

[Bug c/94755] [9/10 Regression] internal compiler error: Segmentation fault

2020-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94755 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug tree-optimization/94757] GCC does not optimise unsigned multiplication known not to overflow

2020-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94757 Richard Biener changed: What|Removed |Added Last reconfirmed||2020-04-27 Status|UNCONFIRM

[Bug ipa/94762] [8/9/10 Regression] ICE: Segmentation fault (in is_tm_irrevocable) since r7-1710-g849a76a5a20db383

2020-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94762 Richard Biener changed: What|Removed |Added Target Milestone|--- |8.5

[Bug c++/94767] (unsigned bitfield) + (int) operation results in int, not unsigned int.

2020-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94767 Richard Biener changed: What|Removed |Added Keywords||diagnostic, wrong-code Ever confirm

[Bug c++/94772] [10 Regression] constructing constexpr variables fail with delegated constexpr constructors

2020-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94772 Richard Biener changed: What|Removed |Added Keywords||rejects-valid Priority|P3

[Bug tree-optimization/94775] [8/9/10 Regression] ICE in strip_typedefs, at cp/tree.c:1734 since r8-4668-g8a5ee94a082b3d48

2020-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94775 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/94779] Bad optimization of simple switch

2020-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94779 Richard Biener changed: What|Removed |Added Status|REOPENED|NEW --- Comment #7 from Richard Biener

[Bug c/94780] [8/9/10 Regression] ICE in walk_body at gcc/tree-nested.c:713 since r6-3632-gf6f69fb09c5f81df

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94780 Richard Biener changed: What|Removed |Added Target Milestone|--- |8.5 Priority|P3

[Bug tree-optimization/94782] Simple multiplication-related arithmetic not optimized to direct multiplication

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94782 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug middle-end/94783] Abs-equivalent pattern is not recognized as abs

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94783 Richard Biener changed: What|Removed |Added Component|tree-optimization |middle-end Keywords|

[Bug c++/94781] version 9.3 g++ compilation time is slower by 20% or much more (closer to 50 % sometimes) in comparison to v7.

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94781 Richard Biener changed: What|Removed |Added Status|WAITING |NEW --- Comment #4 from Richard Biener

[Bug middle-end/94785] Failure to detect abs pattern using multiplication

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94785 Richard Biener changed: What|Removed |Added Component|tree-optimization |middle-end Status|UNCONFIRM

[Bug tree-optimization/57359] store motion causes wrong code for union access at -O3

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57359 --- Comment #28 from Richard Biener --- OK, so more "advanced" testcases are a bit difficult because the ref_always_accessed_p logic is too simple and it's required for store-motion of accesses in conditional paths. Basically if we have if (test

[Bug tree-optimization/57359] store motion causes wrong code for union access at -O3

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57359 --- Comment #29 from Richard Biener --- And another testcase showing that with a conditional invariant store we may _never_ apply store-motion since conditional means we do not know the original order of stores in the loop. *sigh* typedef int A

[Bug tree-optimization/94793] Failure to optimize clz idiom

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94793 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug tree-optimization/94792] Missed SLP optimization in pr65930-2.c variation

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94792 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Status|

[Bug rtl-optimization/94790] Failure to use andn in specific pattern in which it is available

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94790 Richard Biener changed: What|Removed |Added Last reconfirmed||2020-04-27 Status|UNCONFIRM

[Bug target/94789] Failure to take advantage of shift operand semantics to turn subtraction into negate

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94789 Richard Biener changed: What|Removed |Added Last reconfirmed||2020-04-27 Ever confirmed|0

[Bug tree-optimization/94787] Failure to detect single bit popcount pattern

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94787 Richard Biener changed: What|Removed |Added Last reconfirmed||2020-04-27 Status|UNCONFIRM

<    1   2   3   4   5   6   7   8   9   10   >