[Bug ipa/103267] Wrong code with ipa-sra

2021-11-15 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103267 Martin Liška changed: What|Removed |Added Last reconfirmed||2021-11-16 Status|UNCONFIRME

[Bug testsuite/103270] New: [12 regression] gcc.dg/vect/pr96698.c inner loop turned from hot to cold after r12-4526

2021-11-15 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103270 Bug ID: 103270 Summary: [12 regression] gcc.dg/vect/pr96698.c inner loop turned from hot to cold after r12-4526 Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug tree-optimization/103266] [12 regression] llvm-13 miscompilation: __builtin_assume_aligned causes over-aggressive dce

2021-11-15 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103266 --- Comment #4 from rguenther at suse dot de --- On Mon, 15 Nov 2021, hubicka at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103266 > > Jan Hubicka changed: > >What|Removed |Added

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #19 from Hongtao.liu --- (In reply to Hongtao.liu from comment #18) > Created attachment 51806 [details] > untested patch. > > I'm testing this patch. This patch is for optimization.

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 --- Comment #18 from Andrew Pinski --- I will write the testcases tomorrow. The patch works in the most general case.

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #18 from Hongtao.liu --- Created attachment 51806 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51806&action=edit untested patch. I'm testing this patch.

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 --- Comment #17 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > *** Bug 102361 has been marked as a duplicate of this bug. *** Basic block 4 freq:0.00 size: 1 time:0.00 __write_overflow (); freq:0.00 size: 2 time:0.00

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug tree-optimization/103257] [9/10/11/12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103257 --- Comment #6 from Andrew Pinski --- Created attachment 51804 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51804&action=edit untested Patch This is the patch which I am testing. I checked all of tree-ssa.exp and there are no failures.

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization --- Comment #14 fro

[Bug tree-optimization/103228] [9/10/11/12 Regression] missed optimization with |^ at the gimple level

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103228 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug tree-optimization/103228] [9/10/11/12 Regression] missed optimization with |^ at the gimple level

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103228 Bug 103228 depends on bug 103245, which changed state. Bug 103245 Summary: Failure to detect abs pattern using multiplication with slightly different casts for unsigned case https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103245 What

[Bug tree-optimization/103245] Failure to detect abs pattern using multiplication with slightly different casts for unsigned case

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103245 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/103245] Failure to detect abs pattern using multiplication with slightly different casts for unsigned case

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103245 --- Comment #4 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3200de91bc70bfd6d4b7b40e769bc82756b9b555 commit r12-5291-g3200de91bc70bfd6d4b7b40e769bc82756b9b555 Author: Andrew Pinski Date: Mo

[Bug tree-optimization/103228] [9/10/11/12 Regression] missed optimization with |^ at the gimple level

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103228 --- Comment #5 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3200de91bc70bfd6d4b7b40e769bc82756b9b555 commit r12-5291-g3200de91bc70bfd6d4b7b40e769bc82756b9b555 Author: Andrew Pinski Date: Mo

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

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94785 --- Comment #5 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3200de91bc70bfd6d4b7b40e769bc82756b9b555 commit r12-5291-g3200de91bc70bfd6d4b7b40e769bc82756b9b555 Author: Andrew Pinski Date: Mon

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #17 from H.J. Lu --- (In reply to David Binderman from comment #0) > For this C code: > > long pscc_a_2_3; > int pscc_a_1_4; > void pscc() > { > pscc_a_1_4 = __sync_fetch_and_and(&pscc_a_2_3, 1); > } > > compiled by recent

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 --- Comment #6 from CVS Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:074ee8d9a91d7573c1e8774a22e4e08f923adb18 commit r12-5290-g074ee8d9a91d7573c1e8774a22e4e08f923adb18 Author: H.J. Lu Date: Mon Nov 15 17

[Bug tree-optimization/103192] [12 Regression] ICE on libgomp target-in-reduction-2.{C,c}

2021-11-15 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103192 Jeffrey A. Law changed: What|Removed |Added CC||law at gcc dot gnu.org --- Comment #16

[Bug target/103269] Enable ZMM in MOVE_MAX and STORE_MAX_PIECES without -mprefer-vector-width=512

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103269 --- Comment #1 from H.J. Lu --- Created attachment 51803 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51803&action=edit A patch Please try this.

[Bug target/93453] PPC: rldimi not taken into account to avoid shift+or

2021-11-15 Thread guihaoc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93453 --- Comment #4 from HaoChen Gui --- For the second issue, I drafted following insn_and_split pattern. It tries to combine the shift and ior when the nonzero_bits of operands[3] matches the condition. (define_insn_and_split "*rotl3_insert_8" [

[Bug tree-optimization/103245] Failure to detect abs pattern using multiplication with slightly different casts for unsigned case

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103245 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #16 from H.J. Lu --- (In reply to Hongtao.liu from comment #15) > (In reply to H.J. Lu from comment #13) > > (In reply to Hongtao.liu from comment #8) > > > unsigned long pscc_a_2_3; > > > int pscc_a_1_4; > > > unsigned long pc2; > >

[Bug tree-optimization/103226] [12 Regression] Recent change to copy-headers causes execution failure for gcc.dg/torture/pr80974

2021-11-15 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103226 --- Comment #3 from Jeffrey A. Law --- Agreed on P1 until we understand. If it's target specific P4 seems appropriate. I don't see this failure on any other target in the tester.

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #15 from Hongtao.liu --- (In reply to H.J. Lu from comment #13) > (In reply to Hongtao.liu from comment #8) > > unsigned long pscc_a_2_3; > > int pscc_a_1_4; > > unsigned long pc2; > > void pscc(int n) > > { > > long mask = 1ll <<

[Bug tree-optimization/29333] Jump threading getting in the way of PHI-OPT

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29333 --- Comment #10 from Andrew Pinski --- (In reply to rsand...@gcc.gnu.org from comment #8) > This may be worth filing as another PR (let me know if you > think I should), but another case of VRP stymieing phiopt is: > > void bar (int); > void > f

[Bug tree-optimization/102131] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136

2021-11-15 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102131 --- Comment #8 from Jiu Fu Guo --- (In reply to Jakub Jelinek from comment #7) > Any further progress on this? Thanks, Jabkub! There is a patch that may cover more cases (PR102636/PR100740.. and other cases where 'vi0.step - iv1.step > 0'), bu

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #14 from H.J. Lu --- Should we open a new bug for missed optimization?

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #13 from H.J. Lu --- (In reply to Hongtao.liu from comment #8) > unsigned long pscc_a_2_3; > int pscc_a_1_4; > unsigned long pc2; > void pscc(int n) > { > long mask = 1ll << n; > pc2 = __sync_fetch_and_or(&pscc_a_2_3, mask) & mas

[Bug tree-optimization/100802] VRP fails to fold comparison using known value orders

2021-11-15 Thread fxue at os dot amperecomputing.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100802 Feng Xue changed: What|Removed |Added Status|RESOLVED|VERIFIED --- Comment #2 from Feng Xue --- V

[Bug tree-optimization/86604] phiopt missed optimization of conditional add

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86604 --- Comment #3 from Andrew Pinski --- (In reply to Richard Biener from comment #1) > Sure it does but we 1) cannot make the dereference of t unconditional > because it > may trap, 2) we do not implement the transform > > if ([0, 1] var == 0) >

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 --- Comment #5 from Hongtao.liu --- I've verified my patch in pr103194, it can also fix this ICE.

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #12 from Hongtao.liu --- (In reply to Hongtao.liu from comment #9) > (In reply to H.J. Lu from comment #6) > > Created attachment 51785 [details] > > The v2 incomplete patch > > > > Hongtao, please finish it. Thanks. > > I'm tryi

[Bug c++/103238] c++ Feature: array-copy experimental extensions implementing P1997

2021-11-15 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103238 --- Comment #2 from Will Wray --- (It was my own 'interesting suggestion' to myself; going stir crazy coding!) (Apologies if I stirred anything other than thought.) Thank you for emphasising the important point on DRs. It's true that some C++ D

[Bug target/103252] questionable codegen with kmovd

2021-11-15 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103252 --- Comment #6 from Hongtao.liu --- > For the original example, though, it doesn't seem to even be saving a spill. > The non-k0 code is clearly better than the k0 code. I don't know much about > how the allocator works and interacts with various

[Bug tree-optimization/103257] [9/10/11/12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103257 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug tree-optimization/103257] [9/10/11/12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103257 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug tree-optimization/103257] [9/10/11/12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103257 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-11-16 Known to work|

[Bug tree-optimization/103257] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103257 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0 Keywords|

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 --- Comment #4 from H.J. Lu --- Created attachment 51802 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51802&action=edit A patch

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 H.J. Lu changed: What|Removed |Added CC||crazylht at gmail dot com,

[Bug c++/103238] c++ Feature: array-copy experimental extensions implementing P1997

2021-11-15 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103238 --- Comment #1 from joseph at codesourcery dot com --- On Sun, 14 Nov 2021, wjwray at gmail dot com via Gcc-bugs wrote: > An interesting suggestion is that these array extensions be incorporated into > C and C++ standards as a DR, applying as t

[Bug target/103269] New: Enable ZMM in MOVE_MAX and STORE_MAX_PIECES without -mprefer-vector-width=512

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103269 Bug ID: 103269 Summary: Enable ZMM in MOVE_MAX and STORE_MAX_PIECES without -mprefer-vector-width=512 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug analyzer/103233] Warning from system libraries in user code: CWE-476 -Werror=analyzer-null-dereference

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103233 --- Comment #7 from Andrew Pinski --- (In reply to Alejandro Colomar from comment #5) > If glibc had a bug, > and I compiled a C program that had perfectly defined behavior, > would I receive a report for that error? Most C headers don't conta

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Target Milestone|--

[Bug analyzer/103233] Warning from system libraries in user code: CWE-476 -Werror=analyzer-null-dereference

2021-11-15 Thread colomar.6.4.3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103233 --- Comment #6 from Alejandro Colomar --- I mean, I'm not against that, in fact I think it's good to know if my program is going to crash, even if it's not my fault, but then I wonder if cases such as

[Bug tree-optimization/103268] New: [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 Bug ID: 103268 Summary: [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626 Product: gcc Version

[Bug analyzer/103233] Warning from system libraries in user code: CWE-476 -Werror=analyzer-null-dereference

2021-11-15 Thread colomar.6.4.3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103233 --- Comment #5 from Alejandro Colomar --- Is `-fanalyzer` allowed to report errors from system headers exclusively? I mean, ignoring the fact that C++ is unsupported, there's no report at all that relates that error report to my code; not even

[Bug c++/103265] Default initializer on [[no_unique_address]] member initialized by lambda invoking guaranteed copy elision crashes gcc

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103265 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-11-15 Ever confirmed|0

[Bug analyzer/103233] Warning from system libraries in user code: CWE-476 -Werror=analyzer-null-dereference

2021-11-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103233 --- Comment #4 from David Malcolm --- The analyzer doesn't properly support C++ yet; in particular, it doesn't yet "understand" exception handling.

[Bug analyzer/102779] gcc.dg/analyzer/capacity-1.c etc.FAIL

2021-11-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102779 David Malcolm changed: What|Removed |Added Last reconfirmed||2021-11-15 Ever confirmed|0

[Bug tree-optimization/103245] Failure to detect abs pattern using multiplication with slightly different casts for unsigned case

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103245 --- Comment #2 from Andrew Pinski --- Created attachment 51801 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51801&action=edit patch which I am testing I noticed the patterns could be combined together.

[Bug tree-optimization/103223] [12 regression] Access attribute dropped when ipa-sra is applied

2021-11-15 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103223 --- Comment #9 from Martin Sebor --- Outside of code comments only the user-visible attribute access interface is documented in the manual. The main difference is probably that attribute access can be added by the user for any pair of arguments

[Bug tree-optimization/103192] [12 Regression] ICE on libgomp target-in-reduction-2.{C,c}

2021-11-15 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103192 --- Comment #15 from Andrew Macleod --- I added a series of vrp passes to see when things go amok. immediately before DOM3, we see: [local count: 22683134]: if (outer_ctx_1389 != 0B) goto ; [70.00%] else goto ; [30.00%] [loca

[Bug ipa/103267] New: Wrong code with ipa-sra

2021-11-15 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103267 Bug ID: 103267 Summary: Wrong code with ipa-sra Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee:

[Bug fortran/99061] [10/11/12 Regression] ICE in gfc_conv_intrinsic_atan2d, at fortran/trans-intrinsic.c:4728

2021-11-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99061 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu.

[Bug tree-optimization/103257] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-11-15 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103257 --- Comment #2 from Andrew Macleod --- At issue is GORI does not yet process COND_EXPRS, so we cannot do any evaluations to refine ranges on outgoing edges. It is on the list :-)

[Bug tree-optimization/103266] [12 regression] llvm-13 miscompilation: __builtin_assume_aligned causes over-aggressive dce

2021-11-15 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103266 Jan Hubicka changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug tree-optimization/103176] -foptimize-strlen causes stringop-overflow warning

2021-11-15 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103176 --- Comment #7 from Martin Sebor --- You're welcome and no need to apologize. We want to improve the warnings (and the rest of the compiler) and these reports help us understand both the limitations and opportunities for improvements, or at lea

[Bug tree-optimization/103266] [12 regression] llvm-13 miscompilation: __builtin_assume_aligned causes over-aggressive dce

2021-11-15 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103266 Jan Hubicka changed: What|Removed |Added CC||rguenther at suse dot de --- Comment #2 f

[Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c by r12-5244

2021-11-15 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103262 --- Comment #5 from seurer at gcc dot gnu.org --- re: "only on power 10". Not quite true. I tried running it a bunch of times on power 8, 9, and 10. r12-5244 fails consistently on power 9 and power 10 but not on power 8 (nor 7 from previous te

[Bug testsuite/103264] [12 regression] gcc.dg/tree-prof/merge_block.c fails after r12-5236

2021-11-15 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103264 --- Comment #1 from hubicka at kam dot mff.cuni.cz --- What breaks in the testcase is updating profile after complete loop unroling. I suspect the unrolling is enabled by the extra DSE.

[Bug tree-optimization/103223] [12 regression] Access attribute dropped when ipa-sra is applied

2021-11-15 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103223 --- Comment #8 from hubicka at kam dot mff.cuni.cz --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103223 > > --- Comment #5 from Martin Sebor --- > (In reply to Martin Jambor from comment #4) > > (In reply to Jan Hubicka from comment #0) >

[Bug middle-end/103184] [12 Regression] ICE caused by r12-5102

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103184 H.J. Lu changed: What|Removed |Added Component|tree-optimization |middle-end Resolution|---

[Bug tree-optimization/103184] [12 Regression] ICE caused by r12-5102

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103184 --- Comment #8 from CVS Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:4c19122bf5afa5cb479fd9445f0c591c52add09b commit r12-5282-g4c19122bf5afa5cb479fd9445f0c591c52add09b Author: H.J. Lu Date: Fri Nov 12 07

[Bug analyzer/102662] [12 Regression] ICE in validate, at analyzer/constraint-manager.cc:581 since r12-3101-g8ca7fa84a3af355c

2021-11-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102662 David Malcolm changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from David Malc

[Bug tree-optimization/102759] [12 Regression] ICE: Segmentation fault in maybe_check_access_sizes since r12-2976-gb48d4e6818674898

2021-11-15 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102759 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #4 from Martin Sebor

[Bug tree-optimization/103192] [12 Regression] ICE on libgomp target-in-reduction-2.{C,c}

2021-11-15 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103192 Andrew Macleod changed: What|Removed |Added CC||jeffreyalaw at gmail dot com --- Comme

[Bug tree-optimization/103223] [12 regression] Access attribute dropped when ipa-sra is applied

2021-11-15 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103223 --- Comment #7 from Martin Sebor --- For an attribute access that's explicitly specified on the declaration of a function I think these steps should work: 1) Call init_attr_rdwr_indices() to initialize the mapping for the original function with

[Bug libfortran/102992] fortran: redirecting standard out to a file does not work on macOS 12.0

2021-11-15 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #34 from Iain Sandoe --- I did ask for OK on back-ports We should let it bake on master for now - I see reports that 12.1 ia under test - but no idea when it will come out (or if this particular issue will be fixed in it). In any e

[Bug fortran/103259] [11/12 Regression] ICE in resolve_common_vars, at fortran/resolve.c:956

2021-11-15 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103259 kargl at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug libfortran/102992] fortran: redirecting standard out to a file does not work on macOS 12.0

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #33 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:fabe8cc41e9b01913e2016861237d1d99d7567bf commit r12-5281-gfabe8cc41e9b01913e2016861237d1d99d7567bf Author: Iain Sandoe Date: Th

[Bug tree-optimization/103208] [12 Regression] ICE: SSA corruption (Existing SSA name for symbol marked for renaming),or ICE in make_decl_rtl, at varasm.c:1446 since r12-4733-g2084b5f42a4432da

2021-11-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103208 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/103266] [12 regression] llvm-13 miscompilation: __builtin_assume_aligned causes over-aggressive dce

2021-11-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103266 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2021-11-15 Target Milestone|---

[Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c by r12-5244

2021-11-15 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103262 seurer at gcc dot gnu.org changed: What|Removed |Added CC||seurer at gcc dot gnu.org --

[Bug libfortran/102992] fortran: redirecting standard out to a file does not work on macOS 12.0

2021-11-15 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #32 from Francois-Xavier Coudert --- (In reply to Jürgen Reuter from comment #31) > Does this now mean that this is fixed within the gcc trunk/master? Or just in > a branch which has yet to be merged into the master? The patch was p

[Bug fortran/103115] [12 Regression] reallocation of character array fails when appending a constant size 4 array

2021-11-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103115 Thomas Koenig changed: What|Removed |Added Keywords||ice-on-valid-code, |

[Bug libfortran/102992] fortran: redirecting standard out to a file does not work on macOS 12.0

2021-11-15 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #31 from Jürgen Reuter --- (In reply to Iain Sandoe from comment #29) > (In reply to Francois-Xavier Coudert from comment #28) > I've posted a fix for this (it is the fix for darwin21 DTORs in general) > however CAVEAT : there is No

[Bug tree-optimization/103266] New: [12 regression] llvm-13 miscompilation: __builtin_assume_aligned causes over-aggressive dce

2021-11-15 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103266 Bug ID: 103266 Summary: [12 regression] llvm-13 miscompilation: __builtin_assume_aligned causes over-aggressive dce Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103262 --- Comment #3 from H.J. Lu --- merge_call_side_effects has modref_parm_map chain_map; ... for (auto kill : saved_kills) { if (kill.parm_index >= (int)parm_map.length ()) continue; modref_parm_map

[Bug c++/103265] New: Default initializer on [[no_unique_address]] member initialized by lambda invoking guaranteed copy elision crashes gcc

2021-11-15 Thread davidfromonline at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103265 Bug ID: 103265 Summary: Default initializer on [[no_unique_address]] member initialized by lambda invoking guaranteed copy elision crashes gcc Product: gcc Versi

[Bug testsuite/103264] New: [12 regression] gcc.dg/tree-prof/merge_block.c fails after r12-5236

2021-11-15 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103264 Bug ID: 103264 Summary: [12 regression] gcc.dg/tree-prof/merge_block.c fails after r12-5236 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/12228] [DR 244/399] syntax error calling a qualified template dtor

2021-11-15 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12228 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment #

[Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
pbase 20061220-1.c -dumpbase-ext .c -mtune=generic -march=pentium4 -O1 -version -o 20061220-1.s ==2421026== GNU C17 (GCC) version 12.0.0 2025 (experimental) (i686-linux) compiled by GNU C version 12.0.0 2025 (experimental), GMP version 6.2.0, MPFR version 4.1.0-p13, MPC version 1.2.1

[Bug tree-optimization/103257] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-11-15 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103257 Aldy Hernandez changed: What|Removed |Added CC||amacleod at redhat dot com --- Comment

[Bug tree-optimization/103255] [11/12 Regression] optimization breaks address of struct member

2021-11-15 Thread lipnitsk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103255 --- Comment #2 from Ilya Lipnitskiy --- Thanks for coming up with a better test case! Looks like tree-vrp is related for x64 as well[0]. -Os -fno-tree-vrp or -O2 -fno-tree-vrp appears to work-around the problem. [0]: https://github.com/openwrt

[Bug fortran/103263] ICE in gfc_check_reshape, at fortran/check.c:4830

2021-11-15 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103263 G. Steinmetz changed: What|Removed |Added Keywords||ice-on-valid-code --- Comment #1 from G.

[Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103262 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug fortran/103263] New: ICE in gfc_check_reshape, at fortran/check.c:4830

2021-11-15 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103263 Bug ID: 103263 Summary: ICE in gfc_check_reshape, at fortran/check.c:4830 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug middle-end/103262] New: [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103262 Bug ID: 103262 Summary: [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug fortran/103261] ICE in gfc_check_reshape, at fortran/check.c:4742

2021-11-15 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103261 G. Steinmetz changed: What|Removed |Added Keywords||ice-on-invalid-code --- Comment #1 from

[Bug fortran/103261] New: ICE in gfc_check_reshape, at fortran/check.c:4742

2021-11-15 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103261 Bug ID: 103261 Summary: ICE in gfc_check_reshape, at fortran/check.c:4742 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug fortran/103260] New: ICE in gfc_simplify_reshape, at fortran/simplify.c:6857

2021-11-15 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103260 Bug ID: 103260 Summary: ICE in gfc_simplify_reshape, at fortran/simplify.c:6857 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Prior

[Bug fortran/103259] New: [11/12 Regression] ICE in resolve_common_vars, at fortran/resolve.c:956

2021-11-15 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103259 Bug ID: 103259 Summary: [11/12 Regression] ICE in resolve_common_vars, at fortran/resolve.c:956 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/103137] [12 Regression] ICE in gfc_simplify_transpose, at fortran/simplify.c:8181 since r12-4967-gbcf3728abe848888

2021-11-15 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103137 --- Comment #7 from G. Steinmetz --- Thank you very much for fixing this issue (and for the other ones).

[Bug fortran/103258] New: [12 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1114

2021-11-15 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103258 Bug ID: 103258 Summary: [12 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1114 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: no

[Bug tree-optimization/103257] New: [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-11-15 Thread theodort at inf dot ethz.ch via Gcc-bugs
orl%edx, %edx xorl%eax, %eax movl%edx, c(%rip) popq%rcx .cfi_def_cfa_offset 8 ret .cfi_endproc gcc-trunk -v Target: x86_64-pc-linux-gnu Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 2025 (e

  1   2   3   >