[Bug c/94968] [10/11 Regression] internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:87

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

[Bug tree-optimization/94786] Missed min/max pattern using xor+and+less

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

[Bug tree-optimization/94786] Missed min/max pattern using xor+and+less

2020-05-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94786 --- Comment #3 from Jakub Jelinek --- Created attachment 48475 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48475&action=edit gcc11-pr94786.patch Untested fix.

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

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

[Bug rtl-optimization/94798] Failure to optimize subtraction and 0 literal properly

2020-05-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94798 --- Comment #4 from Jakub Jelinek --- As for the subtraction followed by comparison, I think this is something normally optimized through peephole2, but that one doesn't trigger in this case due to RA decisions, where it sees different operands:

[Bug target/94857] Failure to optimize load+add+store into add on memory when getting carry flag afterwards on x86

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

[Bug target/94857] Failure to optimize load+add+store into add on memory when getting carry flag afterwards on x86

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

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

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

[Bug tree-optimization/94956] Unable to remove impossible ffs() test for zero

2020-05-08 Thread jakub at gcc dot gnu.org
|RESOLVED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek --- Fixed for 11+.

[Bug bootstrap/94961] [11 Regression] ICE in df_refs_verify, at df-scan.c:4002 since r11-87-gd44f14ccef831d90feb57fab56bc3389d543ffdd

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

[Bug tree-optimization/94913] Failure to optimize not+cmp into overflow check

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

[Bug c/94994] [10/11 Regression] possible miscompilation of word-at-a-time copy via packed structs

2020-05-08 Thread jakub at gcc dot gnu.org
|miscompilation of |miscompilation of |word-at-a-time copy via |word-at-a-time copy via |packed structs |packed structs CC||jakub at gcc dot gnu.org

[Bug target/94857] Failure to optimize load+add+store into add on memory when getting carry flag afterwards on x86

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

[Bug tree-optimization/94786] Missed min/max pattern using xor+and+less

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

[Bug analyzer/95000] -fanalyzer confused by switch

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

[Bug tree-optimization/95001] std::terminate() and abort() do not have __builtin_unreachable() semantics

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

[Bug tree-optimization/95001] std::terminate() and abort() do not have __builtin_unreachable() semantics

2020-05-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95001 --- Comment #4 from Jakub Jelinek --- The on-demand VRP (or if it can do non-zero bits too, even better), ought to handle this kind of things, but it isn't something we can store in the SSA_NAMEs unless we create the ASSERT_EXPRs (which means dur

[Bug testsuite/95008] [11 regression] excess errors in gcc.dg/analyzer/pr93382.c and gcc.dg/two-types-6.c after r11-169

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

[Bug c/95057] missing -Wunused-but-set-variable warning on multiple assignments, not all of them used

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

[Bug c/95057] missing -Wunused-but-set-variable warning on multiple assignments, not all of them used

2020-05-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95057 --- Comment #3 from Jakub Jelinek --- It can't. The warning isn't flow sensitive, doesn't know about assignments, conditionals etc. What you are thinking of is something that can be only done much later, but at that point one risks that there is

[Bug c/95002] VLA: 'var = sizeof array' gives spurous '= array, ' instead of just '= '

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

[Bug c++/95063] [11 Regression] ICE in tsubst_decl, at cp/pt.c:14633

2020-05-11 Thread jakub at gcc dot gnu.org
||jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- It is not valid OpenMP, clang is incorrect to accept it. Of course g++ shouldn't ICE.

[Bug c++/95063] [11 Regression] ICE in tsubst_decl, at cp/pt.c:14633

2020-05-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95063 --- Comment #3 from Jakub Jelinek --- Reduced testcase that is valid: template struct S { T a:12; S () : a(0) { #pragma omp for linear(a) for (int k = 0; k < 64; ++k) a++; } }; S s; I guess this boils down to what type shoul

[Bug c++/95063] [11 Regression] ICE in tsubst_decl, at cp/pt.c:14633

2020-05-11 Thread jakub at gcc dot gnu.org
at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek --- Created attachment 48510 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48510&action=edit gcc11-pr95063.patch Untested fix.

[Bug middle-end/95052] Excess padding of partially initialized strings/char arrays

2020-05-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95052 --- Comment #6 from Jakub Jelinek --- Created attachment 48511 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48511&action=edit gcc11-pr95052.patch Untested fix.

[Bug tree-optimization/95060] vfnmsub132ps is not generated with -ffast-math

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

[Bug tree-optimization/95060] vfnmsub132ps is not generated with -ffast-math

2020-05-12 Thread jakub at gcc dot gnu.org
at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek --- Created attachment 48515 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48515&action=edit gcc11-pr95060.patch Untested fix.

[Bug target/95076] Failure to tail-call on function call of different return type

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

[Bug debug/95080] [10/11 Regression] -fcompare-debug failure (length) with -Og -fcse-follow-jumps -fnon-call-exceptions

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

[Bug debug/95080] [10/11 Regression] -fcompare-debug failure (length) with -Og -fcse-follow-jumps -fnon-call-exceptions

2020-05-12 Thread jakub at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Jakub Jelinek --- Created attachment 48521 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48521&acti

[Bug tree-optimization/95060] vfnmsub132ps is not generated with -ffast-math

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

[Bug debug/95080] [10 Regression] -fcompare-debug failure (length) with -Og -fcse-follow-jumps -fnon-call-exceptions

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

[Bug c/95108] [9/10/11 Regression] ICE in tree_fits_uhwi_p, at tree.c:7292

2020-05-13 Thread jakub at gcc dot gnu.org
||jakub at gcc dot gnu.org Ever confirmed|0 |1 Target Milestone|--- |9.4 Status|UNCONFIRMED |NEW Summary|[10/11 Regression] ICE in |[9/10/11 Regression] ICE in

[Bug tree-optimization/95113] [10/11 Regression] Wrong code w/ -O2 -fexceptions -fnon-call-exceptions

2020-05-13 Thread jakub at gcc dot gnu.org
||jakub at gcc dot gnu.org Ever confirmed|0 |1 Target Milestone|--- |10.2 Status|UNCONFIRMED |NEW --- Comment #1 from Jakub Jelinek --- Started with r10-3542

[Bug tree-optimization/95113] [10/11 Regression] Wrong code w/ -O2 -fexceptions -fnon-call-exceptions

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

[Bug middle-end/95108] [9/10/11 Regression] ICE in tree_fits_uhwi_p, at tree.c:7292

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

[Bug middle-end/95108] [9/10 Regression] ICE in tree_fits_uhwi_p, at tree.c:7292

2020-05-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95108 Jakub Jelinek changed: What|Removed |Added Summary|[9/10/11 Regression] ICE in |[9/10 Regression] ICE in

[Bug sanitizer/95137] Sanitizers seem to be missing support for coroutines

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

[Bug middle-end/95140] [10/11 Regression] bogus -Wstringop-overflow for a loop unrolled past the end of a trailing array

2020-05-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95140 --- Comment #3 from Jakub Jelinek --- The warning should change, not the conservative assumption. There is a lot of code in the wild with such trailing arrays, not everything uses flexible array members, [0] or [1] for that.

[Bug c/95141] [8/9/10/11 Regression] Incorrect integer overflow warning message for bitand expression

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

[Bug c++/95149] lex.c:1729:8: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]

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

[Bug c++/95149] lex.c:1729:8: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]

2020-05-15 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95149 --- Comment #2 from Jakub Jelinek --- With string merging even "foobar" + 3 == "bar" (or not, depending on alignment decision, how hard does the linker optimize etc.). For static vars only if -fmerge-all-constants and the var would be const and

[Bug target/94934] Failure to inline addv

2020-05-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94934 --- Comment #4 from Jakub Jelinek --- (In reply to Gabriel Ravier from comment #3) > In that case, it looks really easy to reimplemnet `-ftrapv` as literally > just enabling `-fsanitize=signed-integer-overflow > -fsanitize-undefined-trap-on-error

[Bug target/94962] Suboptimal AVX2 code for _mm256_zextsi128_si256(_mm_set1_epi8(-1))

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

[Bug sanitizer/94910] detect_stack_use_after_return=1 is much slower than clang's

2020-05-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94910 --- Comment #6 from Jakub Jelinek --- (In reply to Martin Liška from comment #5) > > FakeStack (stack_size_log=20):bail out after 8192 > > FakeStack (stack_size_log=20):bail out after 16384 > > FakeStack (stack_size_log=20):bail out after 4096 >

[Bug c++/95063] [11 Regression] ICE in tsubst_decl, at cp/pt.c:14633

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

[Bug target/95216] Extra space in __builtin_ia32_vec_pack_sfix256 definition

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

[Bug target/95216] Extra space in __builtin_ia32_vec_pack_sfix256 definition

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

[Bug target/95218] [11 Regression] FAIL: gcc.target/i386/fma_run_double_1.c execution test since r11-455-g94f687bd9ae37ece

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

[Bug c++/95222] [10/11 Regression] GCC 10.1 x86 issue with function pointers with calling convention attribute and template specialization

2020-05-23 Thread jakub at gcc dot gnu.org
| Last reconfirmed||2020-05-23 Ever confirmed|0 |1 CC||jakub at gcc dot gnu.org, ||jason at gcc dot gnu.org --- Comment #2 from Jakub

[Bug middle-end/95189] [10/11 Regression] memcmp being wrongly stripped like strcmp

2020-05-23 Thread jakub at gcc dot gnu.org
||jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Regressed in r10-2769-g14b7950f126f84fa585e3a057940ff10d4c5b3f8

[Bug middle-end/95189] [10/11 Regression] memcmp being wrongly stripped like strcmp

2020-05-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189 --- Comment #3 from Jakub Jelinek --- For memcmp, it looks completely wrong to use c_getstr, I think in that case it should use string_constant instead, or if it uses it, it should punt if the returned length by it is smaller than the length of t

[Bug sanitizer/95279] UBSan doesn't seem to detect pointer overflow in certain cases

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95279 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 --- Comment #2 from Jakub Jelinek --- For - 0 it is diagnosed by: /* Technically we should check this for all subexpressions, but that runs into problems with our internal representation of pointer subtraction and the 5.19 rules are s

[Bug sanitizer/95279] UBSan doesn't seem to detect pointer overflow in certain cases

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95279 --- Comment #6 from Jakub Jelinek --- How would you know if there is or isn't an object at that those addresses? Sure, if you in #c4 change p + 1 into p, then it is undefined behavior, but as I said, UndefinedBehaviorSanitizer has no way to dete

[Bug sanitizer/95279] UBSan doesn't seem to detect pointer overflow in certain cases

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95279 --- Comment #9 from Jakub Jelinek --- (In reply to Frantisek Sumsal from comment #7) > Maybe I'm missing something here, but isn't detecting pointer overflows > (even in cases where it's apparently not an undefined behavior) the sole > purpose of

[Bug sanitizer/95279] UBSan doesn't seem to detect pointer overflow in certain cases

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95279 --- Comment #10 from Jakub Jelinek --- (In reply to Marc Glisse from comment #8) > (In reply to Jakub Jelinek from comment #4) > > There is nothing wrong on addition of -1, whether signed or cast to > > size_t/uintptr_t, to a pointer, > > Lookin

[Bug target/95211] [11 Regression] ICE in emit_unop_insn, at optabs.c:3622

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95211 --- Comment #4 from Jakub Jelinek --- Adjusted testcase, so that there is no UB. void bar (void); void foo (long int *x, int y, int *z, int v) { int a[y]; int b; for (b = 0; b < 3; ++b) z[b] = x[b] + 1.0f; if (v) return; bar (

[Bug sanitizer/95279] UBSan doesn't seem to detect pointer overflow in certain cases

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95279 --- Comment #11 from Jakub Jelinek --- (In reply to Jakub Jelinek from comment #9) > pointer-overflow is a cheap check without any context, for ptr + off > it will do > uintptr_t res = (uintptr_t) ptr + off; > if (((intptr_t) res) < 0 ? res > (ui

[Bug middle-end/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95163 Jakub Jelinek changed: What|Removed |Added Keywords|ice-on-valid-code |ice-on-invalid-code Component|l

[Bug fortran/95163] [8/9/10/11 Regression] ICE in gimplify_adjust_omp_clauses, at gimplify.c:10440 since r7-4447-gb4c3a85be9658537

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

[Bug sanitizer/95279] UBSan doesn't seem to detect pointer overflow in certain cases

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

[Bug jit/95314] Sharing a local reference to a global variable in multiple functions results in location references block not in block tree

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

[Bug jit/95314] Sharing a local reference to a global variable in multiple functions results in location references block not in block tree

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95314 --- Comment #4 from Jakub Jelinek --- unshare_expr can handle that.

[Bug c++/95197] libgomp/testsuite/libgomp.c++/for-27.C fails with -std=c++17

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95197 --- Comment #1 from Jakub Jelinek --- For e.g. void bar (I &a); void foo (I &a) { #pragma omp task //firstprivate (a) bar (a); } with the same templates this is handled by omp_cxx_notice_variable, which will 1068 get_copy_ct

[Bug c++/95197] libgomp/testsuite/libgomp.c++/for-27.C fails with -std=c++17

2020-05-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95197 --- Comment #2 from Jakub Jelinek --- Reduced testcase: // { dg-do link } typedef __PTRDIFF_TYPE__ ptrdiff_t; template class I { public: typedef ptrdiff_t difference_type; I (); ~I (); I (T *); I (const I &); T &operator * (); T

[Bug c++/95197] libgomp/testsuite/libgomp.c++/for-27.C fails with -std=c++17

2020-05-25 Thread jakub at gcc dot gnu.org
at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed||2020-05-25 --- Comment #3 from Jakub Jelinek --- Created attachment 48597 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48597&acti

[Bug middle-end/95315] [11 Regression] ICE: Segmentation fault (in lookup_page_table_entry) since r11-382-g7a50e7087567cffb

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

[Bug c/95329] fmaxf(inf, nan) does not always work

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

[Bug c/95329] fmaxf(inf, nan) does not always work

2020-05-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95329 Jakub Jelinek changed: What|Removed |Added Resolution|--- |MOVED Status|UNCONFIRMED

[Bug c++/95328] structured binding of template type inside template function is reported as "incomplete class type"

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

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 --- Comment #5 from Jakub Jelinek --- I've tried: --- gcc/cp/constexpr.c.jj 2020-05-25 10:06:59.886175941 +0200 +++ gcc/cp/constexpr.c 2020-05-26 22:02:23.661355854 +0200 @@ -6196,6 +6196,18 @@ cxx_eval_constant_expression (const cons

[Bug middle-end/95315] [11 Regression] ICE: Segmentation fault (in lookup_page_table_entry) since r11-382-g7a50e7087567cffb

2020-05-27 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95315 --- Comment #5 from Jakub Jelinek --- (In reply to Arseny Solokha from comment #4) > Shouldn't there be > > if (!node_removal_hook_holder) > node_removal_hook_holder > = symtab->add_cgraph_removal_hook (… > > instead? Of course, go

[Bug libfortran/95390] New: _gfortran_{,m,s}findloc[01]_c10 not exported from libgfortran.so.5

2020-05-28 Thread jakub at gcc dot gnu.org
Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- complex(kind=10) :: a(6), b, d(2,2) logical :: m(6), n, o(2,2) integer :: c(1), e(2) a = (/ 1., 2., 17., 2., 2., 6. /) b

[Bug libfortran/95390] _gfortran_{,m,s}findloc[01]_c10 not exported from libgfortran.so.5

2020-05-28 Thread jakub at gcc dot gnu.org
at gcc dot gnu.org |jakub at gcc dot gnu.org Last reconfirmed||2020-05-28 Ever confirmed|0 |1

[Bug libfortran/95390] _gfortran_{,m,s}findloc[01]_c10 not exported from libgfortran.so.5

2020-05-28 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95390 --- Comment #1 from Jakub Jelinek --- Created attachment 48630 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48630&action=edit gcc11-pr95390.patch Untested fix.

[Bug bootstrap/95402] freebsd make: "/usr/home/cqwrteur/gcc_build/Makefile" line 26: Missing dependency operator

2020-05-29 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95402 --- Comment #1 from Jakub Jelinek --- As mentioned in https://gcc.gnu.org/install/prerequisites.html one needs to use GNU make to build gcc, are you sure make is a GNU make?

[Bug middle-end/95315] [11 Regression] ICE: Segmentation fault (in lookup_page_table_entry) since r11-382-g7a50e7087567cffb

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

[Bug bootstrap/95413] [11 regression] i686-linux --enable-targets=all cannot configure m64 libgomp

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

[Bug libfortran/95390] _gfortran_{,m,s}findloc[01]_c10 not exported from libgfortran.so.5

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

[Bug middle-end/95052] [9/10/11 Regression] Excess padding of partially initialized strings/char arrays

2020-05-29 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95052 --- Comment #12 from Jakub Jelinek --- Reduced testcase with -O2 -fconserve-stack: void bar (char *); void foo (void) { char buf[70] = ""; bar (buf); }

[Bug target/95436] [11 Regression] ICE in store_expr, at expr.c:5845 since r11-711-g43a4fc095e30188392cc42299c4081297e321104

2020-05-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95436 --- Comment #1 from Jakub Jelinek --- https://gcc.gnu.org/pipermail/gcc-patches/2020-May/546851.html

[Bug c++/95430] GCC doesn't detect out of bounds runtime error in a simple case

2020-06-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95430 --- Comment #2 from Jakub Jelinek --- Already doing such address arithmetics is UB (though of course a + 10 is ok above), but we don't have a warning for that and as I said in another PR, ubsan could detect only the cases where the compiler can s

[Bug c++/95455] ICE in capture with initializer in requires block

2020-06-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95455 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug middle-end/95464] [10/11 Regression] Miscompilation of mesa on x86_64-linux since r10-6426

2020-06-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95464 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2020-06-01 Status|UNCONFIRME

[Bug middle-end/95464] New: [10/11 Regression] Miscompilation of mesa on x86_64-linux since r10-6426

2020-06-01 Thread jakub at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- Since r10-6426-g5f0653a8b75a5ad5a5405a27dd92d3a5759eed4c we on x86_64-linux miscompile following testcase at -O2: struct S

[Bug c++/95465] New: [8/9/10/11 Regression] ICE on jump into a statement expression

2020-06-01 Thread jakub at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- void foo () { sizeof (({ label: 0; })); goto label; } ICEs with C++: during GIMPLE pass: cfg rh1842304.C: In function ‘void foo

[Bug c++/95465] [8/9/10/11 Regression] ICE on jump into a statement expression

2020-06-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95465 Jakub Jelinek changed: What|Removed |Added CC||gabravier at gmail dot com Target Mile

[Bug middle-end/95464] [10/11 Regression] Miscompilation of mesa on x86_64-linux since r10-6426

2020-06-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95464 Jakub Jelinek changed: What|Removed |Added CC||uros at gcc dot gnu.org --- Comment #3 f

[Bug c++/95475] Imprecise column number of runtime error in unreachable program point

2020-06-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95475 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug c++/95474] class member array cannot be mapped

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

[Bug fortran/95467] ICE in parse_omp_structured_block: OpenMP Offload (target_parallel__simd)

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

[Bug c++/95474] class member array cannot be mapped

2020-06-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95474 --- Comment #3 from Jakub Jelinek --- 4.0 had a clear "A variable that is part of another variable (such as a field of a structure) but is not an array element or an array section cannot appear in a map clause." restriction, this has been lifted

[Bug c++/95474] class member array cannot be mapped

2020-06-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95474 --- Comment #5 from Jakub Jelinek --- Hopefully this year. What you can do in the meantime is auto *mydata = data; and use mydata instead of data.

[Bug tree-optimization/95487] [10/11 Regression] ICE: verify_gimple failed (error: invalid vector types in nop conversion) with -O3 -march=skylake-avx512 since r10-1052-gc29c92c789d93848

2020-06-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95487 --- Comment #3 from Jakub Jelinek --- (In reply to Richard Biener from comment #2) > Jakub, you added the scatter support - do you remember what the code tries to > do here? I've only added gathers myself (and only the AVX2-ish), scatters were a

[Bug c++/95508] New: [10/11 Regression] ICE on unexpected expression implicit_conv_expr since r10-7096

2020-06-03 Thread jakub at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- Since r10-7096-gd417b4f5414d9076300ab41974a14424f722688c the following testcase ICEs: template struct A; template struct

[Bug c++/95508] [10/11 Regression] ICE on unexpected expression implicit_conv_expr since r10-7096

2020-06-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95508 Jakub Jelinek changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug sanitizer/95496] [10/11 Regression] Bogus -Wformat-overflow= warnings with -fsanitize=undefined

2020-06-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95496 --- Comment #4 from Jakub Jelinek --- (In reply to Martin Sebor from comment #2) > The instrumentation added by the sanitizers is known to lead to introducing > invalid code (typically by jump threading) that triggers spurious warnings. I don't

[Bug tree-optimization/95534] Failure to optimize out atoi when used as operand of _tzcnt_u64

2020-06-04 Thread jakub at gcc dot gnu.org
|tree-optimization Last reconfirmed||2020-06-04 Status|UNCONFIRMED |NEW CC||hubicka at gcc dot gnu.org, ||jakub at gcc dot gnu.org

[Bug target/95532] Failure to optimize __builtin_ctz & 0x1F to __builtin_ctz on x86 with BMI

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

<    7   8   9   10   11   12   13   14   15   16   >