[Bug target/96377] [10/11 Regression] GCC 10.2/11 doesn't build Linux kernel anymore

2020-07-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96377 --- Comment #7 from Jakub Jelinek --- I guess that is reasonable thing to do, if the two vector types aren't really compatible one will get an error. But then, for trunk, won't the stripping of the attributes from vector types still mean that com

[Bug d/96393] [11 regression] All 32-bit execution tests FAIL: internal error printing module cycle

2020-07-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96393 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug debug/96383] [8/9/10/11 Regression] Full ABI information missing from GCC compiled C

2020-07-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96383 --- Comment #13 from Jakub Jelinek --- (In reply to Eric Botcazou from comment #12) > > So with the attached 'updated patch' I see > > > > === gnat tests === > > > > > > Running target unix/ > > FAIL: gnat.dg/debug11_pkg.adb sc

[Bug debug/96383] [8/9/10/11 Regression] Full ABI information missing from GCC compiled C

2020-07-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96383 --- Comment #15 from Jakub Jelinek --- Unless we want for C/C++ to emit DW_AT_external DIEs for all function prototypes that appear in the TU, we need ME help, because only there we analyze the callgraph and prune cgraph nodes that are unreachab

[Bug debug/96383] [8/9/10/11 Regression] Full ABI information missing from GCC compiled C

2020-07-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96383 --- Comment #18 from Jakub Jelinek --- (In reply to rguent...@suse.de from comment #17) > Well, not sure - FEs do quite a good job with unused warnings by > simply tracking things with TREE_USED so I guess global extern decls > can be tracked as

[Bug debug/96383] [8/9/10/11 Regression] Full ABI information missing from GCC compiled C

2020-07-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96383 --- Comment #20 from Jakub Jelinek --- lang_hooks.finalize_early_debug_info ? In the default definition move there just the /* Emit early debug for reachable functions, and by consequence, locally scoped symbols. */ struct c

[Bug c/96399] Arithmetic shift with vector extension becomes logical right shift on s390x

2020-07-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96399 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug debug/96383] [8/9/10/11 Regression] Full ABI information missing from GCC compiled C

2020-07-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96383 --- Comment #23 from Jakub Jelinek --- I guess one question is what will e.g. LTO do when merging a DECL_IGNORED DECL_EXTERNAL FUNCTION_DECL with !DECL_IGNORED definition.

[Bug target/96402] [10/11 Regression] Wrong code with -moutline-atomics

2020-08-03 Thread jakub at gcc dot gnu.org
||jakub at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2020-08-03 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek --- Created attachment 48985

[Bug debug/96354] [10/11 Regression] ICE in maybe_canonicalize_mem_ref_addr, at gimple-fold.c:4903 since r10-2271-gd81ab49d0586fca0

2020-08-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96354 --- Comment #21 from Jakub Jelinek --- Created attachment 48987 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48987&action=edit gcc11-pr96354.patch So like this?

[Bug target/96415] GCC produces incorrect code for loops with -O3 for skylake-avx512 and icelake-server

2020-08-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96415 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug tree-optimization/96433] Failed to optimize (A / N) * N <= A

2020-08-03 Thread jakub at gcc dot gnu.org
, ||jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- Or handle that during VRP with symbolic ranges. But am not sure to what extent symbolic ranges are going to stay.

[Bug target/96402] [10/11 Regression] Wrong code with -moutline-atomics

2020-08-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96402 --- Comment #9 from Jakub Jelinek --- Should be fixed now for 10.3+ and 11+. If -moutline-atomics has been backported to older releases, it should go there too.

[Bug go/96450] [11 Regression] Go bootstrap failure on i686-linux

2020-08-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96450 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |11.0

[Bug go/96450] New: [11 Regression] Go bootstrap failure on i686-linux

2020-08-04 Thread jakub at gcc dot gnu.org
: go Assignee: ian at airs dot com Reporter: jakub at gcc dot gnu.org CC: cmang at google dot com Target Milestone: --- libgo doesn't build for me anymore on i686-linux on the trunk, last good build was July 30, and last night's build failed with: /

[Bug tree-optimization/96451] New: [11 Regression] gcc.dg/pr68766.c ICE since r11-2453

2020-08-04 Thread jakub at gcc dot gnu.org
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- Since r11-2453-gc89366b12ff4f36253bae125b794cbe687f7e40b the pr68766.c testcase ICEs on x86_64-linux, with: ./cc1 -quiet -O2 -ftree-vectorize -fdbg-cnt

[Bug tree-optimization/96451] [11 Regression] gcc.dg/pr68766.c ICE since r11-2453

2020-08-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96451 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |11.0 CC|

[Bug tree-optimization/95731] Faiilure to optimize a >= 0 && b >= 0 to (a | b) >= 0

2020-08-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95731 --- Comment #4 from Jakub Jelinek --- I think doing it only in the last reassoc would have the advantage that it wouldn't break other optimizations done by reassoc. E.g. if (a >= 0 && b >= 0 && a < 32 && b < 128) which can be now optimized into a

[Bug c++/95726] ICE with aarch64 __Float32x4_t as template argument

2020-08-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95726 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/96454] [11 Regression] wrong code with -Og -march=cascadelake since r11-1445

2020-08-04 Thread jakub at gcc dot gnu.org
||jakub at gcc dot gnu.org Summary|[11 Regression] wrong code |[11 Regression] wrong code |with -Og -march=cascadelake |with -Og -march=cascadelake ||since r11-1445 Last reconfirmed

[Bug middle-end/96459] New: OpenMP host teams reductions ignored

2020-08-04 Thread jakub at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- #include int main () { int niters = 0, i, j, k; #pragma omp teams reduction(+:niters) { #pragma omp distribute collapse(3) for (i = 0; i < 3; i++) for (j

[Bug middle-end/96459] OpenMP host teams reductions ignored

2020-08-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96459 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug middle-end/96459] OpenMP host teams reductions ignored

2020-08-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96459 --- Comment #2 from Jakub Jelinek --- Created attachment 48994 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48994&action=edit gcc11-pr96459.patch Untested fix.

[Bug middle-end/96459] OpenMP host teams reductions ignored

2020-08-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96459 --- Comment #3 from Jakub Jelinek --- (In reply to Jakub Jelinek from comment #0) > if (niters != 96) if (niters != 108) Can't count, sorry.

[Bug c++/96480] [8/9/10/11 Regression] missed optimisation: unnecessary compare in standard algorithms

2020-08-05 Thread jakub at gcc dot gnu.org
Last reconfirmed||2020-08-05 CC||jakub at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #1 from Jakub Jelinek --- Started with r8-565-g7581ce9a1ad6df9c8998a3c74256837a1ff6f7cc

[Bug c++/96480] [8/9/10/11 Regression] missed optimisation: unnecessary compare in standard algorithms

2020-08-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96480 --- Comment #2 from Jakub Jelinek --- That commit changes the pre-reassoc2 dump like: --- pr96480.ii.172t.printf-return-value2_ 2020-08-05 07:22:42.0 -0400 +++ pr96480.ii.172t.printf-return-value22020-08-05 07:23:32.

[Bug tree-optimization/96480] [8/9/10/11 Regression] missed optimisation: unnecessary compare in standard algorithms

2020-08-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96480 --- Comment #3 from Jakub Jelinek --- Simplified testcase: int v[4]; int foo (int x) { int *p; if (x == 0) p = &v[0]; else if (x == 1) p = &v[1]; else if (x == 2) p = &v[2]; else if (x == 3) p = &v[3]; else p = &v

[Bug tree-optimization/96480] [8/9/10/11 Regression] missed optimisation: unnecessary compare in standard algorithms

2020-08-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96480 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug c++/96485] Lambda parsing regression in GCCs 9 and onwards

2020-08-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96485 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug c++/96485] Lambda parsing regression in GCCs 9 and onwards

2020-08-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96485 --- Comment #2 from Jakub Jelinek --- [[gnu::no_sanitize_undefined]] instead of the GNU __attribute__ is accepted, but as the C++ specification requires it applies to the type not the declaration and therefore it is ignored.

[Bug bootstrap/96492] : internal compiler error: Segmentation fault

2020-08-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96492 --- Comment #3 from Jakub Jelinek --- Can you run gdb --args ./cc1 -quiet -fself-test=../../gcc/gcc/testsuite/selftests /dev/null -o /dev/null and do run bt ?

[Bug middle-end/82004] [8 Regression] SPEC CPU2017 628.pop2_s miscompare

2020-08-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82004 --- Comment #44 from Jakub Jelinek --- Sorry if my comment sounded harsh. Anyway, the older issue I was referring to was https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53073 with SPEC2k6 464.h264ref.

[Bug tree-optimization/96480] [8/9/10 Regression] missed optimisation: unnecessary compare in standard algorithms

2020-08-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96480 Jakub Jelinek changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10 Regression] missed

[Bug tree-optimization/96424] ICE: verify_flow_info failed (error: wrong outgoing edge flags at end of bb 23); or ICE: Segmentation fault (in expand_omp_for_init_vars/contains_struct_check)

2020-08-07 Thread jakub at gcc dot gnu.org
dot gnu.org |jakub at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2020-08-07 --- Comment #1 from Jakub Jelinek --- Created attachment 49018 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49018&acti

[Bug c++/96497] Compare std::variant with int using C++20 <=> is not a constant expression

2020-08-07 Thread jakub at gcc dot gnu.org
at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Created attachment 49019 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49019&action=edit gcc11-pr96497.patch Untested fix.

[Bug tree-optimization/96522] [9/10/11 Regression] Incorrect with with -O -fno-tree-pta

2020-08-07 Thread jakub at gcc dot gnu.org
|NEW CC||jakub at gcc dot gnu.org Ever confirmed|0 |1 Summary|Incorrect with with -O |[9/10/11 Regression] |-fno-tree-pta |Incorrect with with -O

[Bug tree-optimization/96522] [9/10/11 Regression] Incorrect with with -O -fno-tree-pta

2020-08-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96522 --- Comment #2 from Jakub Jelinek --- Slightly adjusted testcase that aborts if miscompiled: /* { dg-do run } */ /* { dg-options "-O -fno-tree-pta" } */ __attribute__((noipa)) void bar (void) { volatile int v = 1; if (v) __builtin_abort

[Bug tree-optimization/96522] [9/10/11 Regression] Incorrect with with -O -fno-tree-pta

2020-08-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96522 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P2

[Bug c/96527] __builtin_va_arg_pack_len produces error in documented sample code

2020-08-07 Thread jakub at gcc dot gnu.org
||jakub at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Jakub Jelinek --- The error is correct. __builtin_va_arg_pack_len or __builtin_va_arg_pack can't work in functions that are not inlined. And the documentation you refer

[Bug c/96527] __builtin_va_arg_pack_len produces error in documented sample code

2020-08-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96527 --- Comment #3 from Jakub Jelinek --- The extern inline __attribute__((__gnu_inline__)) usecase comes from actual code (e.g. glibc) where it is used this way a lot, I'm not aware of anybody using static inline __attribute__((__always_inline__)) t

[Bug tree-optimization/96424] ICE: verify_flow_info failed (error: wrong outgoing edge flags at end of bb 23); or ICE: Segmentation fault (in expand_omp_for_init_vars/contains_struct_check)

2020-08-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96424 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/96549] [10/11 Regression] Wrong evaluation of a comparison between long & short

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96549 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug middle-end/96549] [10/11 Regression] Wrong evaluation of a comparison between long & short

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96549 --- Comment #2 from Jakub Jelinek --- Created attachment 49033 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49033&action=edit gcc11-pr96549.patch Untested fix.

[Bug tree-optimization/96542] Failure to optimize simple code to a constant when storing part of the operation in a variable

2020-08-10 Thread jakub at gcc dot gnu.org
||jakub at gcc dot gnu.org Status|UNCONFIRMED |NEW Last reconfirmed||2020-08-10 --- Comment #1 from Jakub Jelinek --- unsigned char foo (unsigned int x) { _Bool y = x; return (((unsigned char) ~0) >> y) * 2; } unsigne

[Bug c/96545] ICE in get_atomic_generic_size

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96545 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/96542] Failure to optimize simple code to a constant when storing part of the operation in a variable

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96542 Jakub Jelinek changed: What|Removed |Added CC||aldyh at gcc dot gnu.org,

[Bug tree-optimization/96542] Failure to optimize simple code to a constant when storing part of the operation in a variable

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96542 --- Comment #4 from Jakub Jelinek --- As for COND_EXPR, if we do it that way, it should be rather keyed on a range with only two possible values in the range.

[Bug c/96550] gcc is smart in figuring out a non-returning function.

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96550 --- Comment #2 from Jakub Jelinek --- If FAIL is defined, your myfunc will always trigger undefined behavior if called, and as such anything can happen. Derefencing NULL is UB. If you are on an embedded system where there is memory mapped, you ca

[Bug rtl-optimization/96539] Unnecessary no-op copy with Os and tail call with struct argument

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96539 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Last

[Bug c/96550] gcc is smart in figuring out a non-returning function.

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96550 --- Comment #7 from Jakub Jelinek --- The compiler can't diagnose this as an error (unless -Werror* is used), because it is only an error if such code is ever called at runtime, which the compiler can't determine at compile time. That is why it i

[Bug c/96554] -Wall does not include -Wnull-dereference

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96554 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug c++/96497] Compare std::variant with int using C++20 <=> is not a constant expression

2020-08-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96497 --- Comment #4 from Jakub Jelinek --- Should be fixed for 11, I think we should backport to 10.3 too eventually.

[Bug middle-end/96564] [11 Regression] New maybe use of uninitialized variable warning since r11-959

2020-08-11 Thread jakub at gcc dot gnu.org
|--- |11.0 Status|UNCONFIRMED |NEW CC||jakub at gcc dot gnu.org, ||msebor at gcc dot gnu.org Summary|New maybe use of|[11 Regression] New

[Bug c++/96535] [10/11 Regression] GCC 10 ignoring function __attribute__ optimize for all x86 since r11-1019

2020-08-11 Thread jakub at gcc dot gnu.org
||guojiufu at gcc dot gnu.org, ||jakub at gcc dot gnu.org Status|UNCONFIRMED |NEW Target Milestone|--- |10.3 Ever confirmed|0 |1 Priority|P3

[Bug tree-optimization/96535] [10/11 Regression] GCC 10 ignoring function __attribute__ optimize for all x86 since r11-1019

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96535 --- Comment #4 from Jakub Jelinek --- Created attachment 49039 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49039&action=edit gcc11-pr96535.patch Ugh, process_options is called only once and thus I believe processing of options with Opti

[Bug tree-optimization/96535] [10/11 Regression] GCC 10 ignoring function __attribute__ optimize for all x86 since r11-1019

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96535 Jakub Jelinek changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #5

[Bug middle-end/96549] [10 Regression] Wrong evaluation of a comparison between long & short

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96549 Jakub Jelinek changed: What|Removed |Added Summary|[10/11 Regression] Wrong|[10 Regression] Wrong

[Bug rtl-optimization/96539] Unnecessary no-op copy with Os and tail call with struct argument

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96539 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/96566] [nvptx] Timeout in gcc.dg/builtin-object-size-21.c

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96566 --- Comment #3 from Jakub Jelinek --- Either the test can be skipped on nvptx or any targets that don't emit something like a .zero similar directive, or we should after the size of variable is too large diagnostic throw the initializer away (set

[Bug target/96566] [nvptx] Timeout in gcc.dg/builtin-object-size-21.c

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96566 --- Comment #4 from Jakub Jelinek --- Note, on x86_64-linux we'd likely time out on the adjusted testcase during assembly (unless it would will up the disks before that).

[Bug tree-optimization/96535] [10/11 Regression] GCC 10 ignoring function __attribute__ optimize for all x86 since r11-1019

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96535 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug target/96566] [nvptx] Timeout in gcc.dg/builtin-object-size-21.c

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96566 --- Comment #7 from Jakub Jelinek --- I'm not sure a target specific option is the way to go here, the only difference is that nvptx spends all the time on this (adjusted) testcase at compile time (and eats all disk space there too), while on x86

[Bug c/96545] ICE in get_atomic_generic_size

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96545 --- Comment #4 from Jakub Jelinek --- Fixed on the trunk so far.

[Bug target/95450] [10/11 regression] Wrong long double folding

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95450 --- Comment #6 from Jakub Jelinek --- The problem is that this gl_LDBL_MAX.ld is really the right maximum normalized double double number, but is one ulp larger than GCC's __LDBL_MAX__. The former is: 0x1.f7c000p+1023 and

[Bug target/95450] [10/11 regression] Wrong long double folding

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95450 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug target/95450] [10/11 regression] Wrong long double folding

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95450 --- Comment #8 from Jakub Jelinek --- Or as an ugly hack for floating types with MODE_COMPOSITE_P (TYPE_MODE (mode)) in that spot, after using native_interpret_expr do native_encode_expr again and compare if the bits are identical (or perhaps do

[Bug target/95450] [10/11 regression] Wrong long double folding

2020-08-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95450 --- Comment #9 from Jakub Jelinek --- Created attachment 49045 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49045&action=edit gcc11-pr95450.patch Untested fix. Or as I said, it could be limited to && COMPOSITE_MODE_P (element_mode (type

[Bug tree-optimization/96573] [10/11 Regression] Regression in optimization on x86-64 with -O3

2020-08-11 Thread jakub at gcc dot gnu.org
||2020-08-11 Status|UNCONFIRMED |NEW Target Milestone|--- |10.3 CC||jakub at gcc dot gnu.org Component|c |tree-optimization Summary

[Bug target/94077] gcc.dg/gomp/pr82374.c fails on power 7

2020-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94077 --- Comment #4 from Jakub Jelinek --- So add -fcommon to the gcc8/gcc9 version then? What the test wants to test is whether the optimize attribute is propagated properly...

[Bug target/94077] gcc.dg/gomp/pr82374.c fails on power 7

2020-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94077 --- Comment #5 from Jakub Jelinek --- I mean -fno-common, sorry.

[Bug c/96571] Bad "set but not used" warning with _Generic

2020-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96571 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug target/96587] [11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O2 -fno-dce -fno-tree-forwprop

2020-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96587 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug target/96558] [11 Regression] ICE in extract_constrain_insn, at recog.c:2195 (error: insn does not satisfy its constraints)

2020-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96558 Jakub Jelinek changed: What|Removed |Added CC||zsojka at seznam dot cz --- Comment #3 f

[Bug target/96587] [11 Regression] ICE: in extract_constrain_insn, at recog.c:2195 (insn does not satisfy its constraints) with -O2 -fno-dce -fno-tree-forwprop

2020-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96587 Jakub Jelinek changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug rtl-optimization/96539] Unnecessary no-op copy with Os and tail call with struct argument

2020-08-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96539 --- Comment #6 from Jakub Jelinek --- But it doesn't have to kick everywhere, it depends on lots of target details whether it will do a noop copy or not.

[Bug c++/96594] Compiled code behaves differently with -O1 and -O0 on s390x

2020-08-12 Thread jakub at gcc dot gnu.org
|RESOLVED CC||jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- That is just a user error, you didn't read the XChangeProperty man page. "If the specified format is 16, the property data must be a short arra

[Bug target/96600] __builtin_modfl returns incorrect value

2020-08-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96600 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug target/96600] __builtin_modfl returns incorrect value

2020-08-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96600 --- Comment #4 from Jakub Jelinek --- Printing the numbers in detail (for all of them the long double and the two double portions after that)): a -0x1.f1d5d27f89914ab924b2cd0995p+69 -0x1.f1d5d27f89915000p+69 0x1.51b6d34cbd9ac000p+15 b -0x

[Bug target/96600] __builtin_modfl returns incorrect value

2020-08-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96600 --- Comment #5 from Jakub Jelinek --- Actually, I think this is a glibc bug rather than gcc, because the values computed at compile time look right, rather than those at runtime. Consider: int e = 69; int main() { long double a = -__builtin_lde

[Bug target/96600] __builtin_modfl returns incorrect value

2020-08-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96600 Jakub Jelinek changed: What|Removed |Added CC||amodra at gcc dot gnu.org --- Comment #6

[Bug target/96600] __builtin_modfl returns incorrect value

2020-08-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96600 Jakub Jelinek changed: What|Removed |Added URL||https://sourceware.org/bugz

[Bug c/96571] Bad "set but not used" warning with _Generic

2020-08-13 Thread jakub at gcc dot gnu.org
|1 Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Created attachment 49057 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49057&acti

[Bug c++/96690] New: [10/11 Regression] ICE in write_type since r10-6087

2020-08-18 Thread jakub at gcc dot gnu.org
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- Since r10-6087-g991b91497fd50f6e70e5f2c0cfa96e1b74157bdc the following testcase (distilled from firefox) ICEs with -flto -flto-fat-objects -g: struct A { A (int

[Bug c++/96690] [10/11 Regression] ICE in write_type since r10-6087

2020-08-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96690 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Target Milestone|---

[Bug c++/96690] [10/11 Regression] ICE in write_type since r10-6087

2020-08-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96690 --- Comment #2 from Jakub Jelinek --- Maybe related to or same as PR93028, but that one is missing a test, so hard to say.

[Bug c++/96717] -flifetime-dse=2 breaks webkit-gtk-2.28.4

2020-08-20 Thread jakub at gcc dot gnu.org
||2020-08-20 CC||jakub at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #3 from Jakub Jelinek --- The __builtin_trap is there because of: if (isEmptyBucket(oldEntry)) { do { if

[Bug c++/96721] New: [11 Regression] pseudo-destructor calls on pointers since r11-2238

2020-08-20 Thread jakub at gcc dot gnu.org
-bisection, needs-reduction Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: jakub at gcc dot gnu.org, slyfox at gcc dot gnu.org, unassigned at gcc

[Bug c++/96721] [11 Regression] pseudo-destructor calls on pointers since r11-2238

2020-08-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96721 Jakub Jelinek changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/96722] [8/9/10/11 Regression] Clobbers on NULL since r8-1519

2020-08-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96722 Jakub Jelinek changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/96722] New: [8/9/10/11 Regression] Clobbers on NULL since r8-1519

2020-08-20 Thread jakub at gcc dot gnu.org
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: jakub at gcc dot gnu.org, slyfox at gcc dot gnu.org, unassigned at gcc dot gnu.org

[Bug c++/96717] -flifetime-dse=2 breaks webkit-gtk-2.28.4

2020-08-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96717 --- Comment #4 from Jakub Jelinek --- I've moved the #c3 issues into PR96721 and PR96722 as they are separate. And either this bug turns a dup of the former, or not.

[Bug c++/96721] [11 Regression] pseudo-destructor calls on pointers since r11-2238

2020-08-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96721 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P1

[Bug c++/96721] [11 Regression] pseudo-destructor calls on pointers since r11-2238

2020-08-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96721 --- Comment #1 from Jakub Jelinek --- More reduced testcase: typedef int *T; int main () { T a = nullptr; a.~T (); }

[Bug c++/96721] [11 Regression] pseudo-destructor calls on pointers since r11-2238

2020-08-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96721 --- Comment #2 from Jakub Jelinek --- build_trivial_dtor_call has: if (INDIRECT_TYPE_P (TREE_TYPE (instance))) { if (VOID_TYPE_P (TREE_TYPE (TREE_TYPE (instance goto no_clobber; instance = cp_build_fold_indirect_ref

[Bug tree-optimization/96758] [10/11 Regression] strncmp miscompiles as memcmp since r10-3920-g27c14dbc6b01d5b7

2020-08-24 Thread jakub at gcc dot gnu.org
|P2 Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/96758] [10/11 Regression] strncmp miscompiles as memcmp since r10-3920-g27c14dbc6b01d5b7

2020-08-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96758 --- Comment #2 from Jakub Jelinek --- Created attachment 49109 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49109&action=edit gcc11-pr96758.patch Untested fix. cmpsiz has been computed incorrectly and while the code had the intent to ha

[Bug c++/96721] [11 Regression] pseudo-destructor calls on pointers since r11-2238

2020-08-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96721 --- Comment #3 from Jakub Jelinek --- Created attachment 49110 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49110&action=edit gcc11-pr96721.patch Untested fix.

[Bug tree-optimization/96722] [8/9/10/11 Regression] Clobbers on NULL since r8-1519

2020-08-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96722 --- Comment #3 from Jakub Jelinek --- Created attachment 49111 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49111&action=edit gcc11-pr96722.patch If *0 ={v} {CLOBBER}; is supposed to be a fancy nop, then we should ignore it during path i

[Bug debug/96690] [10/11 Regression] ICE in write_type since r10-6087

2020-08-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96690 --- Comment #6 from Jakub Jelinek --- Without LTO, gen_remaining_tmpl_value_param_die_attribute will try to get it, and will mangle the foo decl, but shortly after will throw it away due to const_ok_for_output failing on it. Your patch makes sens

[Bug c++/96761] "error: call of overloaded ‘func(size_t)’ is ambiguous" when argument is size_t(0) and func(int) and func(const char *) are visible

2020-08-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96761 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

<    10   11   12   13   14   15   16   17   18   19   >