[Bug fortran/104328] [12 Regression] ICE in resolve_omp_atomic, at fortran/openmp.cc:7760 (etc.) since r12-5793-g689407ef916503b2

2022-02-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104328 --- Comment #4 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:54d21dd5b5c5c5539505b3e037cdecb3b0ab3918 commit r12-7011-g54d21dd5b5c5c5539505b3e037cdecb3b0ab3918 Author: Jakub Jelinek Date: T

[Bug fortran/104328] [12 Regression] ICE in resolve_omp_atomic, at fortran/openmp.cc:7760 (etc.) since r12-5793-g689407ef916503b2

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104328 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/104361] New: Biased Reference Counting for the standard library

2022-02-03 Thread antoshkka at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104361 Bug ID: 104361 Summary: Biased Reference Counting for the standard library Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug target/104362] New: ICE in ix86_expand_epilogue, at config/i386/i386.c:9362 since r12-3433-ga25e0b5e6ac8a77a

2022-02-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104362 Bug ID: 104362 Summary: ICE in ix86_expand_epilogue, at config/i386/i386.c:9362 since r12-3433-ga25e0b5e6ac8a77a Product: gcc Version: 12.0 Status: U

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #6 from rguenther at suse dot de --- On Thu, 3 Feb 2022, pinskia at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 > > --- Comment #4 from Andrew Pinski --- > (In reply to Andrew Pinski from comment #

[Bug target/104362] [12 Regression] ICE in ix86_expand_epilogue, at config/i386/i386.c:9362

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104362 Andrew Pinski changed: What|Removed |Added Summary|ICE in |[12 Regression] ICE in

[Bug analyzer/104247] Compiler warnings on 32-bit system

2022-02-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104247 --- Comment #5 from Martin Liška --- /home/marxin/Programming/gcc/gcc/analyzer/region-model-manager.cc: In instantiation of ‘void ana::log_uniq_map(ana::logger*, bool, const char*, const hash_map&) [with K = tree_node*; T = ana::string_region]’:

[Bug tree-optimization/104334] [12 Regression] Ranger/dom miscompilation since r12-4694-gcb153222404e2e

2022-02-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104334 --- Comment #21 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:de67f943b858099b40f73632a51e66147ec79c9b commit r12-7012-gde67f943b858099b40f73632a51e66147ec79c9b Author: Jakub Jelinek Date:

[Bug tree-optimization/104334] [12 Regression] Ranger/dom miscompilation since r12-4694-gcb153222404e2e

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104334 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/104327] [12 Regression] Inlining error on s390x since r12-1039

2022-02-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104327 Martin Liška changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|marxin at gcc dot

[Bug target/104362] [12 Regression] ICE in ix86_expand_epilogue, at config/i386/i386.c:9362 since r12-3117-g6e5401e87d02919b

2022-02-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104362 Martin Liška changed: What|Removed |Added Priority|P3 |P1 Keywords|needs-bisection

[Bug target/104327] [12 Regression] Inlining error on s390x since r12-1039

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104327 --- Comment #7 from Jakub Jelinek --- The testcase should be in a generic directory, so that we catch it on other targets too. Note, e.g. i386/ can_inline_p hook is quite different from this one. E.g. for the ISA options it allows the caller to

[Bug c++/104347] internal compiler error- default template arguments - missing angle brackets

2022-02-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104347 Martin Liška changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/104347] internal compiler error- default template arguments - missing angle brackets

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104347 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c++/102479] segfault when deducing class template arguments for tuple with libc++-14

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102479 Andrew Pinski changed: What|Removed |Added CC||dev at gutoehrlein dot eu --- Comment #

[Bug c++/104347] internal compiler error- default template arguments - missing angle brackets

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104347 --- Comment #5 from Andrew Pinski --- Oh clang does not implement alias deduction even in C++20 mode. So yes this is still valid C++20.

[Bug c++/104302] [12 Regression] ICE Segmentation fault since r12-6825-g2da90ad39bf8fa9e

2022-02-03 Thread m.cencora at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104302 m.cencora at gmail dot com changed: What|Removed |Added CC||m.cencora at gmail dot com

[Bug libstdc++/104361] Biased Reference Counting for the standard library

2022-02-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104361 --- Comment #1 from Jonathan Wakely --- Thanks for the link.

[Bug target/104362] [12 Regression] ICE in ix86_expand_epilogue, at config/i386/i386.c:9362 since r12-3117-g6e5401e87d02919b

2022-02-03 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104362 --- Comment #3 from Uroš Bizjak --- diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index ad5a5caa413..a61a5390127 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -7403,6 +7403,10 @@ find_drap_reg (void)

[Bug target/104327] [12 Regression] Inlining error on s390x since r12-1039

2022-02-03 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104327 --- Comment #8 from Andreas Krebbel --- I will work on a patch. Thanks for the hint! I agree for HTM. VX is an ABI switch since it changes the calling conventions for vector types.

[Bug target/104362] [12 Regression] ICE in ix86_expand_epilogue, at config/i386/i386.c:9362 since r12-3117-g6e5401e87d02919b

2022-02-03 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104362 --- Comment #4 from Uroš Bizjak --- Or simply: --cut here-- diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index ad5a5caa413..dd5584fb8ed 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -7400,7 +7400,8 @@ f

[Bug c/104363] New: hppa: __asm__ directive .global and multiple .symver not supported

2022-02-03 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104363 Bug ID: 104363 Summary: hppa: __asm__ directive .global and multiple .symver not supported Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal

[Bug target/104363] hppa: __asm__ directive .global and multiple .symver not supported

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104363 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Target|

[Bug c++/104359] GCC Treats bool with value != 1 as falsey when picking branches

2022-02-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104359 --- Comment #4 from Jonathan Wakely --- (In reply to Will Usher from comment #0) > However, b's "value" is 255, which should evaluate to "true". No. The only valid values of bool are true and false. If you set its bits to some other value repre

[Bug target/104363] hppa: __asm__ directive .global and multiple .symver not supported

2022-02-03 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104363 --- Comment #2 from Mathieu Malaterre --- I've downgraded binutils to version from bullseye, and I am getting the exact same symptoms: ``` libtool: link: ( cd ".libs" && rm -f "libkcapi.la" && ln -s "../libkcapi.la" "libkcapi.la" ) /bin/bash ./

[Bug target/104363] hppa: __asm__ directive .global and multiple .symver not supported

2022-02-03 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104363 --- Comment #3 from Mathieu Malaterre --- Original description states: > Steps using gcc-10 (Debian/buster): This is a typo, it should states: > Steps using gcc-10 (Debian/bullseye):

[Bug target/104364] New: [12 Regression] OpenMP/nvptx regressions after "[nvptx] Add some support for .local atomics"

2022-02-03 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104364 Bug ID: 104364 Summary: [12 Regression] OpenMP/nvptx regressions after "[nvptx] Add some support for .local atomics" Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/104365] New: Overload ambiguity not detected

2022-02-03 Thread andris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365 Bug ID: 104365 Summary: Overload ambiguity not detected Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/104364] [12 Regression] OpenMP/nvptx regressions after "[nvptx] Add some support for .local atomics"

2022-02-03 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104364 --- Comment #1 from Tom de Vries --- (In reply to Thomas Schwinge from comment #0) > 'nvptx-none/mgomp/libatomic/cas_1_.o' (complete diff): > > @@ -113,7 +113,7 @@ > .loc 3 80 9 > or.b64 %r61,%r60,%r39; > .loc 3 82 11 >

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/104319] better error message for parsing error when >= or >> ends a template variable.

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104319 --- Comment #7 from Jakub Jelinek --- Created attachment 52337 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52337&action=edit gcc12-pr104319.patch Untested fix. That said, now that I think about it, >>= doesn't need to be misspelling of

[Bug rtl-optimization/101885] [10/11/12 Regression] wrong code at -O3 on x86_64-linux-gnu

2022-02-03 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101885 Roger Sayle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |roger at nextmovesoftware dot com

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #8 from rguenther at suse dot de --- On Thu, 3 Feb 2022, ebotcazou at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 > > Eric Botcazou changed: > >What|Removed |Ad

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Andrew P

[Bug c++/104319] better error message for parsing error when >= or >> ends a template variable.

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104319 --- Comment #8 from Jakub Jelinek --- Created attachment 52338 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52338&action=edit gcc12-pr104319.patch Improved patch. The error recovery doesn't work well for some reason though as can be se

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #9 from Eric Botcazou --- > So for Ada it would be valid to optimize it as > > tem = D; > if (tem != 0) > D := 1 / tem; > else > D = tem; > > basically carrying out the division conditionally only? > (I've tried hard

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread andris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365 --- Comment #2 from Andris Pavenis --- OK. Then warning would be nice. Otherwise it is a trap when one chooses to add bool parameter at end after string parameter and other overloaded method with one more string parameter at end is also presen

[Bug target/104363] hppa: __asm__ directive .global and multiple .symver not supported

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104363 --- Comment #4 from Andrew Pinski --- Can you provide an easier testcase that shows the issue?

[Bug target/104363] hppa: __asm__ directive .global and multiple .symver not supported

2022-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104363 --- Comment #5 from Andrew Pinski --- (In reply to Mathieu Malaterre from comment #2) > I've downgraded binutils to version from bullseye, and I am getting the > exact same symptoms: Did you build from scratch or reuse the object files?

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #10 from Jakub Jelinek --- So what does Ada do on targets like powerpc that do not raise an exception? >From what I can see, 1 / 0 yields 0 there.

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #11 from Eric Botcazou --- > So what does Ada do on targets like powerpc that do not raise an exception? > From what I can see, 1 / 0 yields 0 there. It generates an explicit check for division-by-zero in the general case (remove th

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #12 from Richard Biener --- (In reply to Eric Botcazou from comment #9) > > So for Ada it would be valid to optimize it as > > > > tem = D; > > if (tem != 0) > > D := 1 / tem; > > else > > D = tem; > > > > basically c

[Bug target/104364] [12 Regression] OpenMP/nvptx regressions after "[nvptx] Add some support for .local atomics"

2022-02-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104364 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #13 from Jakub Jelinek --- Anyway, if integer division by zero is not considered UB in Ada, we need some flag_whatever that will represent that to the middle-end and check it in all places where we assume it is UB. It can be of cour

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365 Richard Biener changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #14 from Eric Botcazou --- > OK, so a division by zero is not invoking undefined behavior but is > well-defined and traps. And the idea is that -fnon-call-exceptions alone > carries this over to middle-end semantics? (I don't think

[Bug target/104364] [12 Regression] OpenMP/nvptx regressions after "[nvptx] Add some support for .local atomics"

2022-02-03 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104364 --- Comment #2 from Tom de Vries --- (In reply to Tom de Vries from comment #1) > What is odd is that the resulting insn is still validated, I would have > expected that to fail. Ah, the change is just silently rejected, this makes the problem

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #15 from Eric Botcazou --- And in rtlanal.cc, see may_trap_p_1: /* Division by a non-constant might trap. */ case DIV: case MOD: case UDIV: case UMOD: if (HONOR_SNANS (x)) return 1; if (FLO

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #16 from Richard Biener --- Related simplifications: /* X / bool_range_Y is X. */ (simplify (div @0 SSA_NAME@1) (if (INTEGRAL_TYPE_P (type) && ssa_name_has_boolean_range (@1)) @0)) /* X / abs (X) is X < 0 ? -1 : 1. */

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #17 from Richard Biener --- (In reply to Eric Botcazou from comment #14) > > OK, so a division by zero is not invoking undefined behavior but is > > well-defined and traps. And the idea is that -fnon-call-exceptions alone > > carrie

[Bug lto/104366] New: Regression: infinite loop in add_sibling_attributes

2022-02-03 Thread bjorn--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104366 Bug ID: 104366 Summary: Regression: infinite loop in add_sibling_attributes Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug tree-optimization/101340] SLP discovery via vect_slp_linearize_chain is imperfect

2022-02-03 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101340 rsandifo at gcc dot gnu.org changed: What|Removed |Added CC||rsandifo at gcc dot gnu.or

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #18 from Richard Biener --- So we'd add (!flag_non_call_exceptions || tree_expr_nonzero_p (@..)) to the offending and extra listed match.pd transforms. I guess that works for me.

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #19 from Jakub Jelinek --- Those correctly say that division by zero may trap. That doesn't tell that division by zero is not undefined behavior, but well defined to trap. This new optimization, or e.g. operator_div::wi_fold's //

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #20 from Jakub Jelinek --- flag_non_call_exceptions can be used even in C/C++ and other languages, so I'd strongly prefer a new flag which will e.g. make it clearer what is it about, will make it easier for grep for such dependencies

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #21 from Eric Botcazou --- > But sure, so you say that -fnon-call-exceptions makes operations that > may trap according to the EH machinery well-defined, irrespective of what > the language standards say? That certainly makes sense,

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #22 from Eric Botcazou --- > So we'd add > > (!flag_non_call_exceptions || tree_expr_nonzero_p (@..)) > > to the offending and extra listed match.pd transforms. I guess that works > for me. For me as well.

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #23 from rguenther at suse dot de --- On Thu, 3 Feb 2022, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 > > --- Comment #20 from Jakub Jelinek --- > flag_non_call_exceptions can be used even

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #24 from Richard Biener --- (In reply to Eric Botcazou from comment #22) > > So we'd add > > > > (!flag_non_call_exceptions || tree_expr_nonzero_p (@..)) > > > > to the offending and extra listed match.pd transforms. I guess tha

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #25 from Jakub Jelinek --- GENERIC folding can be done with NULL cfun too though.

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #26 from Eric Botcazou --- > Oh, with the little detail that it should be > cfun->can_throw_non_call_exceptions > (with the unfortunate reference to cfun) Yes, and note that this will also solve the libgcc2.c issue because of: ifeq

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2022-02-03 Status|UNCONFI

[Bug c/104367] New: Possible improvements for -Wmisleading-indentation

2022-02-03 Thread frantisek at sumsal dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104367 Bug ID: 104367 Summary: Possible improvements for -Wmisleading-indentation Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #27 from CVS Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:635504510a9410844991c68880f2e7352cacfd86 commit r12-7021-g635504510a9410844991c68880f2e7352cacfd86 Author: Eric Botcazou Date:

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365 --- Comment #4 from Jonathan Wakely --- Your original testcase shows one example where you want a warning, but that's not a specification. Should it only warn when std::string and bool are involved, and there's a char* argument? Or should it be

[Bug c/104367] Possible improvements for -Wmisleading-indentation

2022-02-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104367 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug lto/104366] [12 Regression] Regression: infinite loop in add_sibling_attributes

2022-02-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104366 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #28 from Eric Botcazou --- > Oh, with the little detail that it should be > cfun->can_throw_non_call_exceptions > (with the unfortunate reference to cfun) We have global references to flag_trapping_math in match.pd so I think that g

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #29 from Jakub Jelinek --- (In reply to Richard Biener from comment #24) > (In reply to Eric Botcazou from comment #22) > > > So we'd add > > > > > > (!flag_non_call_exceptions || tree_expr_nonzero_p (@..)) > > > > > > to the off

[Bug target/104364] [12 Regression] OpenMP/nvptx regressions after "[nvptx] Add some support for .local atomics"

2022-02-03 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104364 --- Comment #3 from Tom de Vries --- (In reply to Thomas Schwinge from comment #0) > And, is it correct here to use the non-'atom' replacement, though? '%frame' > comes from: > > .visible .func GOMP_taskwait > { > .reg .u64 %stack

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #30 from Eric Botcazou --- > Why does cfun->can_throw_non_call_exceptions and > cfun->can_delete_dead_exceptions exist btw? Jan asked me to create them when he was working on option merging for LTO. > Now that both flag_non_call_ex

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #31 from Eric Botcazou --- Created attachment 52340 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52340&action=edit Tentative fix To be further tested.

[Bug c++/104079] [9/10/11/12 Regression] internal compiler error: in nothrow_spec_p, at cp/except.c:1192 since r9-4662-g0d699def39bb937e

2022-02-03 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104079 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org S

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread andris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365 --- Comment #5 from Andris Pavenis --- The warning should be in case when both 1) there is preferred standard conversion sequence for parameter of one overloaded method 2) there is other user defined conversion sequences for one more more other

[Bug target/104364] [12 Regression] OpenMP/nvptx regressions after "[nvptx] Add some support for .local atomics"

2022-02-03 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104364 --- Comment #4 from Tom de Vries --- Created attachment 52341 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52341&action=edit Tentative patch

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #32 from Jakub Jelinek --- Comment on attachment 52340 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52340 Tentative fix For the X / bool_range_Y is X. case I think just !flag_non_call_exceptions would be better. If @1 has b

[Bug fortran/91316] Derived type finalization failing

2022-02-03 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91316 Paul Thomas changed: What|Removed |Added CC||pault at gcc dot gnu.org Block

[Bug lto/104366] [12 Regression] Regression: infinite loop in add_sibling_attributes

2022-02-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104366 Martin Liška changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #33 from rguenther at suse dot de --- On Thu, 3 Feb 2022, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 > > --- Comment #29 from Jakub Jelinek --- > (In reply to Richard Biener from comment

[Bug fortran/91648] [9/10/11/12 Regression] ICE in generate_finalization_wrapper, at fortran/class.c:2009

2022-02-03 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91648 Paul Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/37336] [F03] Finish derived-type finalization

2022-02-03 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37336 Bug 37336 depends on bug 91648, which changed state. Bug 91648 Summary: [9/10/11/12 Regression] ICE in generate_finalization_wrapper, at fortran/class.c:2009 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91648 What|Removed

[Bug target/104364] [12 Regression] OpenMP/nvptx regressions after "[nvptx] Add some support for .local atomics"

2022-02-03 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104364 --- Comment #5 from Tom de Vries --- (In reply to Thomas Schwinge from comment #0) > ... but only seen regressing for: > > - Nvidia Tesla K20c, Driver Version: 346.46 > - Nvidia Tesla K20c, Driver Version: 455.38 > - Nvidia Tesla K40c, Dr

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread andris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365 --- Comment #6 from Andris Pavenis --- Suggested format (changed types to get real ambiguity and edited generated message): 20220203-1.cpp: In function 'int main()': 20220203-1.cpp:19:24: warning: call of overloaded 'Tes

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365 Jonathan Wakely changed: What|Removed |Added Ever confirmed|1 |0 Status|WAITING

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread redi at gcc dot gnu.org via Gcc-bugs
-member functions? (In reply to Andris Pavenis from comment #6) > 20220203-1.cpp:19:24: warning: call of overloaded 'Test(const char [4], > unsigned > char[4])' is ambiguous "is ambiguous" is incorrect though, so it would have to be clear that there is no ambiguity in C++ terms, just potential for confusion.

[Bug c++/104365] Overload ambiguity not detected

2022-02-03 Thread andris at gcc dot gnu.org via Gcc-bugs
ve warning. I do not have other examples currently. >> 2) there is other user defined conversion sequences for one more more other >> overloaded methods > >And non-member functions? Should be handled in the same way as member functions >> 20220203-1.cpp:19:24: warning: call

[Bug target/104345] [12 Regression] "nvptx: Transition nvptx backend to STORE_FLAG_VALUE = 1" patch made some code generation worse

2022-02-03 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104345 --- Comment #2 from Tom de Vries --- (In reply to Roger Sayle from comment #1) > The other patches in the "nvptx Boolean" series are: > patchq3: nvptx: Expand QI mode operations using SI mode instructions. > https://gcc.gnu.org/pipermail/gcc-pat

[Bug lto/104366] [12 Regression] Regression: infinite loop in add_sibling_attributes

2022-02-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104366 --- Comment #3 from Martin Liška --- Created attachment 52342 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52342&action=edit Reduced test-case

[Bug tree-optimization/104368] New: [12 Regression] Failure to vectorise conditional grouped accesses after PR102659

2022-02-03 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104368 Bug ID: 104368 Summary: [12 Regression] Failure to vectorise conditional grouped accesses after PR102659 Product: gcc Version: 12.0 Status: UNCONFIRMED Keyword

[Bug analyzer/104369] New: False positive from -Wanalyzer-use-of-uninitialized-value with realloc moving buffer

2022-02-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104369 Bug ID: 104369 Summary: False positive from -Wanalyzer-use-of-uninitialized-value with realloc moving buffer Product: gcc Version: 12.0 Status: UNCON

[Bug debug/104337] [9/10/11/12 Regression] ICE when compiling with optimize attribute and always_inline at -m32 -g3 -O0

2022-02-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104337 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:1d5c7584fd6e72bfdbede86cef5ff04ae35f9744 commit r12-7026-g1d5c7584fd6e72bfdbede86cef5ff04ae35f9744 Author: Richard Biener Date:

[Bug analyzer/104370] New: False positive from -Wanalyzer-mismatching-deallocation with reallocarray

2022-02-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104370 Bug ID: 104370 Summary: False positive from -Wanalyzer-mismatching-deallocation with reallocarray Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: norm

[Bug go/104290] [12 Regression] trunk 20220126 fails to build libgo on i686-gnu

2022-02-03 Thread svante.signell at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290 Svante Signell changed: What|Removed |Added CC||svante.signell at gmail dot com --- Co

[Bug c++/104319] better error message for parsing error when >= or >> ends a template variable.

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104319 --- Comment #9 from Jakub Jelinek --- Though, the cp_parser_next_token_ends_template_argument_p change can't be right. E.g. struct A{}; A<1>=2> a; is not A<1> =2> a; I bet we can't treat at least >= as terminating template argument, perhaps we

[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #34 from Eric Botcazou --- > For the X / bool_range_Y is X. case I think just !flag_non_call_exceptions > would be better. If @1 has boolean range and is known to be non-zero, it is > known to be 1, so we should be optimizing it els

[Bug c++/104359] GCC Treats bool with value != 1 as falsey when picking branches

2022-02-03 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104359 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #5

[Bug tree-optimization/104356] [12 Regression] divide by zero trap incorrectly optimized away

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #35 from Jakub Jelinek --- I meant something like: with System.Unsigned_Types; use System.Unsigned_Types; function F (X, Y : Unsigned) return Unsigned is Z : Unsigned; begin if X >=2 then return 0; end if; Z := Y; if X

[Bug tree-optimization/104356] [12 Regression] divide by zero trap incorrectly optimized away

2022-02-03 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #36 from Eric Botcazou --- > with System.Unsigned_Types; use System.Unsigned_Types; > > function F (X, Y : Unsigned) return Unsigned is > Z : Unsigned; > begin > if X >=2 then > return 0; > end if; > Z := Y; > if X = 1

[Bug tree-optimization/104356] [12 Regression] divide by zero trap incorrectly optimized away

2022-02-03 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #37 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #35) > I meant something like: > return Z / X; > and there evrp does with -O2 -gnatp optimize away the division. > Though that is likely the X / boolean_range_Y c

[Bug tree-optimization/104356] [12 Regression] divide by zero trap incorrectly optimized away

2022-02-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356 --- Comment #38 from Jakub Jelinek --- (In reply to Andrew Macleod from comment #37) > As for ranger, range-ops will return UNDEFINED for the range if x is known > to be [0,0]. This can be propagated around, and depending on how it ends up > be

  1   2   >