[Bug lto/94157] [10 Regression] error: lto-wrapper failed with -Wa,--noexecstack -Wa,--noexecstack since r10-6807-gf1a681a174cdfb82

2020-03-12 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94157 --- Comment #4 from prathamesh3492 at gcc dot gnu.org --- (In reply to Martin Liška from comment #3) > I've got a patch candidate, will send it to GCC patches mailing list. Sorry for the breakage, and thanks for taking a look!

[Bug target/86753] [9/10 Regression] gcc.target/aarch64/sve/vcond_[45].c fail after recent combine patch

2019-10-17 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86753 --- Comment #10 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Fri Oct 18 05:13:26 2019 New Revision: 277141 URL: https://gcc.gnu.org/viewcvs?rev=277141&root=gcc&view=rev Log: 2019-10-18 Prathamesh

[Bug tree-optimization/92155] strlen(a) not folded after memset(a, 0, sizeof a)

2019-10-18 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92155 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/91532] [SVE] Redundant predicated store in gcc.target/aarch64/fmla_2.c

2019-10-21 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91532 --- Comment #4 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Mon Oct 21 07:31:45 2019 New Revision: 277237 URL: https://gcc.gnu.org/viewcvs?rev=277237&root=gcc&view=rev Log: 2019-10-21 Prathamesh Kulkarni

[Bug tree-optimization/92163] [10 Regression] ICE: Segmentation fault (in bitmap_set_bit)

2019-10-21 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92163 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- Created attachment 47079 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47079&action=edit Untested fix Does this patch look OK ? Thanks, Prathamesh

[Bug tree-optimization/92163] [10 Regression] ICE: Segmentation fault (in bitmap_set_bit)

2019-10-23 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92163 --- Comment #6 from prathamesh3492 at gcc dot gnu.org --- Posted updated patch upstream: https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01702.html Thanks, Prathamesh

[Bug middle-end/91272] [SVE] Use fully-masked loops for CLASTB reductions

2019-10-28 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91272 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Mon Oct 28 14:50:58 2019 New Revision: 277524 URL: https://gcc.gnu.org/viewcvs?rev=277524&root=gcc&view=rev Log: 2019-10-28 Prathamesh Kulkarni

[Bug tree-optimization/92163] [10 Regression] ICE: Segmentation fault (in bitmap_set_bit)

2019-10-28 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92163 --- Comment #7 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Mon Oct 28 15:01:24 2019 New Revision: 277525 URL: https://gcc.gnu.org/viewcvs?rev=277525&root=gcc&view=rev Log: 2019-10-28 Prathamesh Kulkarni

[Bug rtl-optimization/92342] [10 Regression] a small missed transformation into x?b:0

2019-11-03 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92342 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug rtl-optimization/92342] [10 Regression] a small missed transformation into x?b:0

2019-11-03 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92342 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- (In reply to prathamesh3492 from comment #1) > Hi, > I reverted Segher's commit in my local tree, but am still seeing the same > code-gen for g(). Oops I was modifying wron

[Bug tree-optimization/92328] [10 Regression] ICE in eliminate_stmt, at tree-ssa-sccvn.c:5497

2019-11-04 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92328 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/92608] [9/10 Regression] ICE: Segmentation fault (in find_loop_guard)

2019-11-20 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92608 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/92608] [9/10 Regression] ICE: Segmentation fault (in find_loop_guard)

2019-11-21 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92608 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Thu Nov 21 20:20:36 2019 New Revision: 278598 URL: https://gcc.gnu.org/viewcvs?rev=278598&root=gcc&view=rev Log: Use safe_dyn_cast instead of dyn

[Bug tree-optimization/92649] dead store elimination

2019-11-24 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92649 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/92704] [8/9/10 Regression] ICE: Segmentation fault (in process_bb)

2019-11-28 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92704 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/89007] [SVE] Implement generic vector average expansion

2019-12-09 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89007 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Mon Dec 9 09:59:42 2019 New Revision: 279112 URL: https://gcc.gnu.org/viewcvs?rev=279112&root=gcc&view=rev Log: 2019-12-09 Prathamesh Kulkarni

[Bug tree-optimization/92867] Use ERF_RETURNS_ARG in more places

2019-12-09 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92867 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/93054] ICE in gimple_set_lhs, at gimple.c:1820

2019-12-23 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93054 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/93397] [10 Regression] ICE in vect_create_epilog_for_reduction

2020-01-22 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93397 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug ipa/88788] [9 Regression] Infinite loop in malloc_candidate_p_1 since r264838

2019-01-10 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88788 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Sorry for the breakage, I will take a look. Regards, Prathamesh

[Bug ipa/88788] [9 Regression] Infinite loop in malloc_candidate_p_1 since r264838

2019-01-10 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88788 --- Comment #5 from prathamesh3492 at gcc dot gnu.org --- (In reply to Martin Liška from comment #4) > Created attachment 45403 [details] > reduced test-case Thanks!

[Bug ipa/88788] [9 Regression] Infinite loop in malloc_candidate_p_1 since r264838

2019-01-11 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88788 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |prathamesh3492

[Bug ipa/88788] [9 Regression] Infinite loop in malloc_candidate_p_1 since r264838

2019-01-11 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88788 --- Comment #10 from prathamesh3492 at gcc dot gnu.org --- Oops, I didn't realize there could be loop within phi (phi result being an arg too). I will try to come up with a better approach for handling nested PHI's. In the meantime, f

[Bug ipa/88788] [9 Regression] Infinite loop in malloc_candidate_p_1 since r264838

2019-01-14 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88788 --- Comment #12 from prathamesh3492 at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #11) > Look e.g. at -O2: > void bar (int); > > void > foo (int x) > { > int i = 0; > if (x == 8) > { >

[Bug ipa/88788] [9 Regression] Infinite loop in malloc_candidate_p_1 since r264838

2019-01-14 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88788 --- Comment #14 from prathamesh3492 at gcc dot gnu.org --- Created attachment 45425 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45425&action=edit Patch Hi, In the attached patch, I cache results of malloc_candidate_p_1 an

[Bug ipa/88788] [9 Regression] Infinite loop in malloc_candidate_p_1 since r264838

2019-01-15 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88788 --- Comment #16 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Tue Jan 15 09:37:22 2019 New Revision: 267933 URL: https://gcc.gnu.org/viewcvs?rev=267933&root=gcc&view=rev Log: 2019-01-15 Richar

[Bug ipa/85734] --suggest-attribute=malloc misdiagnoses static functions

2018-05-11 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85734 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug ipa/85734] --suggest-attribute=malloc misdiagnoses static functions

2018-05-14 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85734 --- Comment #4 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Tue May 15 04:44:33 2018 New Revision: 260249 URL: https://gcc.gnu.org/viewcvs?rev=260249&root=gcc&view=rev Log: 2018-05-15 Prathamesh Kulkarni

[Bug ipa/85734] --suggest-attribute=malloc misdiagnoses static functions

2018-05-14 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85734 --- Comment #5 from prathamesh3492 at gcc dot gnu.org --- Fixed on trunk.

[Bug c/85562] -Wsuggest-attribute=malloc misleads about "returning normally"

2018-05-14 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85562 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug ipa/85787] New: malloc_candidate_p fails to detect malloc attribute on nested phis

2018-05-14 Thread prathamesh3492 at gcc dot gnu.org
Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- For the following test-case, g should have been detected as malloc-like function by

[Bug ipa/85787] malloc_candidate_p fails to detect malloc attribute on nested phis

2018-05-14 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85787 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Working on a patch.

[Bug tree-optimization/83648] missing -Wsuggest-attribute=malloc on a trivial malloc-like function

2018-05-14 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83648 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Tue May 15 06:07:48 2018 New Revision: 260250 URL: https://gcc.gnu.org/viewcvs?rev=260250&root=gcc&view=rev Log: 2018-05-15 Prathamesh Kulkarni

[Bug ipa/85817] [9 Regression] ICE in expand_call at gcc/calls.c:4291

2018-05-17 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85817 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Created attachment 44142 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44142&action=edit Untested fix Oops, sorry about that. I put the condition if (integer_zerop

[Bug tree-optimization/85820] [9 Regression] internal compiler error: Segmentation fault

2018-05-17 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85820 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- This is most likely dup of PR85817. Could you check if the fix in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85817#c1 works ? Thanks, Prathamesh

[Bug middle-end/85817] [9 Regression] ICE in expand_call at gcc/calls.c:4291

2018-05-18 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85817 --- Comment #4 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Fri May 18 12:31:04 2018 New Revision: 260358 URL: https://gcc.gnu.org/viewcvs?rev=260358&root=gcc&view=rev Log: 2018-05-18 Prathamesh Kulkarni

[Bug middle-end/86332] New: Incorrect warning with Wstringop-overflow

2018-06-27 Thread prathamesh3492 at gcc dot gnu.org
-end Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, For the following test-case: void foo(void) { void escape(unsigned char *); unsigned char tmp[12]; unsigned char *p = tmp + 7; __builtin_memset (p, 0, 6

[Bug middle-end/86332] Incorrect warning with Wstringop-overflow

2018-06-27 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86332 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Created attachment 44325 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44325&action=edit Untested fix

[Bug middle-end/86332] Incorrect warning with Wstringop-overflow

2018-06-27 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86332 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Oops, looks like I messed up reducing the test-case from the original program which triggered this bug -;( Sorry for the noise.

[Bug middle-end/86332] Incorrect warning with Wstringop-overflow

2018-06-27 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86332 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug middle-end/91166] [SVE] Unfolded ZIPs of constants

2019-07-24 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91166 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Wed Jul 24 07:20:24 2019 New Revision: 273758 URL: https://gcc.gnu.org/viewcvs?rev=273758&root=gcc&view=rev Log: 2019-07-24 Prathamesh Kulkarni

[Bug target/91452] New: tls_preserve_1.c fails with -O3 -fpic -march=armv8.2-a+sve

2019-08-14 Thread prathamesh3492 at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, It seems tls_preserve_1.c is failing with -O3 -fpic -march=armv8.2-a+sve because it generates: stp q0, q1, [sp, 16

[Bug target/90724] ICE with __sync_bool_compare_and_swap with -march=armv8.2-a+sve

2019-08-21 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90724 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Wed Aug 21 18:34:43 2019 New Revision: 274805 URL: https://gcc.gnu.org/viewcvs?rev=274805&root=gcc&view=rev Log: 2019-08-21 Prathamesh Kulkarni

[Bug target/88839] [SVE] Poor implementation of blend-like permutes

2019-08-21 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88839 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Wed Aug 21 20:41:41 2019 New Revision: 274810 URL: https://gcc.gnu.org/viewcvs?rev=274810&root=gcc&view=rev Log: 2019-08-22 Prathamesh

[Bug target/90724] ICE with __sync_bool_compare_and_swap with -march=armv8.2-a+sve

2019-08-22 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90724 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- (In reply to Eric Gallager from comment #2) > (In reply to prathamesh3492 from comment #1) > > Author: prathamesh3492 > > Date: Wed Aug 21 18:34:43 2019 > >

[Bug libfortran/91593] New: Implicit enum conversions in libgfortran/io/transfer.c

2019-08-28 Thread prathamesh3492 at gcc dot gnu.org
Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, I added a patch for Wenum-conversion (PR78736), that exposes some implicit enum conversions in libgfortran/io/transfer.c: ./../../gcc/libgfortran/io

[Bug libfortran/91593] Implicit enum conversions in libgfortran/io/transfer.c

2019-08-28 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91593 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Patch for PR78736 that triggers the warnings: https://gcc.gnu.org/ml/gcc-patches/2019-08/msg01938.html Thanks, Prathamesh

[Bug tree-optimization/83661] sincos does not handle sin(2x)

2019-08-30 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83661 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- Oh, I thought sincos simultaneously calculated values of sin and cos ? If that's not the case, then I wonder how is sincos transform itself beneficial ? Thanks, Prathamesh

[Bug c/78736] enum warnings in GCC (request for -Wenum-conversion to be added)

2019-09-04 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78736 --- Comment #14 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Wed Sep 4 16:25:21 2019 New Revision: 275376 URL: https://gcc.gnu.org/viewcvs?rev=275376&root=gcc&view=rev Log: Add warning Wenum-conversion for C

[Bug target/91982] gcc.target/aarch64/sve/clastb_*.c tests failing with segfault

2019-10-03 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91982 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- Probably started with r276299 ? We segfault in vect_transform_stmt in call to dominated_by_p: if (!slp_node && STMT_VINFO_REDUC_DEF (orig_stmt_info) && STMT_

[Bug tree-optimization/91532] [SVE] Redundant predicated store in gcc.target/aarch64/fmla_2.c

2019-10-07 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91532 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Mon Oct 7 23:44:49 2019 New Revision: 276681 URL: https://gcc.gnu.org/viewcvs?rev=276681&root=gcc&view=rev Log: 2019-10-07 Prathamesh

[Bug tree-optimization/92033] New: ICE during dom with -march=armv8.2-a+sve

2019-10-08 Thread prathamesh3492 at gcc dot gnu.org
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, With PR89007 test-case: #define N 1024 unsigned char dst[N]; unsigned char in1[N]; unsigned char in2[N]; void foo () { for( int x = 0; x < N

[Bug tree-optimization/92033] ICE during dom with -march=armv8.2-a+sve

2019-10-08 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92033 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- This seems to happen pretty much for any arithmetic ops inside loop with SVE. For instance, with cases: for (int i = 0; i < N; i++) dst[i] = ~in1[i]; for (int i = 0; i < N; i++)

[Bug tree-optimization/92085] [10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:86

2019-10-14 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92085 --- Comment #4 from prathamesh3492 at gcc dot gnu.org --- Patch posted upstream: https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01031.html Thanks, Prathamesh

[Bug tree-optimization/92085] [10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:86

2019-10-15 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92085 --- Comment #5 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Tue Oct 15 07:19:41 2019 New Revision: 276984 URL: https://gcc.gnu.org/viewcvs?rev=276984&root=gcc&view=rev Log: 2019-10-15 Prathamesh Kulkarni

[Bug target/90723] pr88598-2.c segfaults with -msve-vector-bits=256

2019-10-15 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90723 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- (In reply to Eric Gallager from comment #2) > (In reply to prathamesh3492 from comment #1) > > Author: prathamesh3492 > > Date: Sat Jul 13 08:28:33 2019 > >

[Bug tree-optimization/83501] [8 Regression] strlen(a) not folded after strcpy(a, "...")

2017-12-19 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83501 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug ipa/83506] [8 Regression] ICE: Segmentation fault in force_nonfallthru_and_redirect

2017-12-20 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83506 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Sorry for the breakage, I will take a look. Regards, Prathamesh

[Bug ipa/83506] [8 Regression] ICE: Segmentation fault in force_nonfallthru_and_redirect

2017-12-20 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83506 --- Comment #5 from prathamesh3492 at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #4) > Though, I guess the real bug is that ipa_free_fn_summary (); is no longer > called for -fno-ipa-pure-const. While the ipa_inline pa

[Bug tree-optimization/83648] missing -Wsuggest-attribute=malloc on a trivial malloc-like function

2018-01-02 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83648 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/83648] missing -Wsuggest-attribute=malloc on a trivial malloc-like function

2018-01-02 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83648 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Created attachment 43004 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43004&action=edit Untested fix

[Bug tree-optimization/82665] missing value range optimization for memchr

2018-01-02 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82665 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/83661] New: sincos does not handle sin(2x)

2018-01-02 Thread prathamesh3492 at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, For the following test-case: double f(double x) { return __builtin_sin(2*x) + __builtin_sin(x); } optimzied dump with -O2 -funsafe-math-optimizations -ffast-math

[Bug tree-optimization/83661] sincos does not handle sin(2x)

2018-01-02 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83661 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added Keywords||missed-optimization

[Bug tree-optimization/83501] [8 Regression] strlen(a) not folded after strcpy(a, "...")

2018-01-03 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83501 --- Comment #5 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Wed Jan 3 16:07:32 2018 New Revision: 256180 URL: https://gcc.gnu.org/viewcvs?rev=256180&root=gcc&view=rev Log: 2018-01-03 Prathamesh Kulkarni

[Bug tree-optimization/83501] [8 Regression] strlen(a) not folded after strcpy(a, "...")

2018-01-03 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83501 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug tree-optimization/83750] New: CSE erf/erfc pair

2018-01-09 Thread prathamesh3492 at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- For the following test case: double f(double x) { double g(double, double); double t1 = __builtin_erf (x); double t2 = __builtin_erfc (x); return g(t1, t2); } optimized

[Bug tree-optimization/83751] New: CSE erf/erfc pair

2018-01-09 Thread prathamesh3492 at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- For the following test case: double f(double x) { double g(double, double); double t1 = __builtin_erf (x); double t2 = __builtin_erfc (x); return g(t1, t2); } optimized

[Bug tree-optimization/83751] CSE erf/erfc pair

2018-01-09 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83751 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Oops, looks like this got posted twice :( Sorry about that.

[Bug target/83775] New: Segfault in arm_declare_function_name()

2018-01-10 Thread prathamesh3492 at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, For the following test-case: #define STR "1234567" const char str[] = STR; char dst[10]; void copy_from_global_str (void) { __builtin_strcpy (dst, s

[Bug tree-optimization/81703] memcpy folding defeats strlen optimization

2018-01-10 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81703 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Thu Jan 11 04:37:48 2018 New Revision: 256475 URL: https://gcc.gnu.org/viewcvs?rev=256475&root=gcc&view=rev Log: 2018-01-11 Mart

[Bug tree-optimization/83501] [8 Regression] strlen(a) not folded after strcpy(a, "...")

2018-01-10 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83501 --- Comment #8 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Thu Jan 11 04:37:48 2018 New Revision: 256475 URL: https://gcc.gnu.org/viewcvs?rev=256475&root=gcc&view=rev Log: 2018-01-11 Mart

[Bug tree-optimization/81703] memcpy folding defeats strlen optimization

2018-01-10 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81703 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug target/83775] Segfault in arm_declare_function_name()

2018-01-11 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83775 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- (In reply to prathamesh3492 from comment #0) > Hi, > For the following test-case: > > #define STR "1234567" > > const char str[] = STR; > > char dst[1

[Bug target/83514] ABRT in arm_declare_function_name passing a null pointer to std::string

2018-01-11 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83514 --- Comment #5 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Thu Jan 11 12:13:42 2018 New Revision: 256529 URL: https://gcc.gnu.org/viewcvs?rev=256529&root=gcc&view=rev Log: 2018-01-11 Prathamesh Kulkarni

[Bug target/83514] ABRT in arm_declare_function_name passing a null pointer to std::string

2018-01-11 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83514 --- Comment #6 from prathamesh3492 at gcc dot gnu.org --- Committed patch to conditionally set arch_to_print after Kyrill's approval. Thanks, Prathamesh

[Bug tree-optimization/83501] [8 Regression] strlen(a) not folded after strcpy(a, "...")

2018-01-14 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83501 --- Comment #9 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Sun Jan 14 08:58:58 2018 New Revision: 256657 URL: https://gcc.gnu.org/viewcvs?rev=256657&root=gcc&view=rev Log: 2018-01-14 Prathamesh Kulkarni

[Bug c/83959] New: Missing buffer overflow warning on printf %s

2018-01-21 Thread prathamesh3492 at gcc dot gnu.org
: c Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- int main(void) { char a[3] = "xyz"; __builtin_printf ("%s", a); return 0; } No warning generated with -Wall -Wextra -Wstringop-overflow=

[Bug tree-optimization/89332] New: Missed detection of dead stores to array in a loop

2019-02-13 Thread prathamesh3492 at gcc dot gnu.org
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, For the following test-case: #define ARR_MAX 6 __attribute__((const)) int f(int); int foo() { int arr[ARR_MAX]; for (int i = 0; i < ARR_

[Bug target/88839] [SVE] Poor implementation of blend-like permutes

2019-04-06 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88839 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Fix committed to sve-acle-branch: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=2cd1f397ed5a155e74719977823b28777caa8312 Thanks, Prathamesh

[Bug target/90644] New: Call to __builtin_memcmp not folded for identical vectors

2019-05-27 Thread prathamesh3492 at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, For following test-case: #include typedef int32_t vnx4si __attribute__((vector_size (32))); void foo(int a, int b) { vnx4si v

[Bug target/88837] [SVE] Poor vector construction code in VL-specific mode

2019-06-03 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88837 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Mon Jun 3 09:35:37 2019 New Revision: 271857 URL: https://gcc.gnu.org/viewcvs?rev=271857&root=gcc&view=rev Log: 2019-06-03 Prathamesh Kulkarni

[Bug target/90722] New: ICE with __builtin_convertvector with -msve-vector-bits=256

2019-06-03 Thread prathamesh3492 at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- The following test-case: typedef int v4si __attribute__((vector_size (4 * sizeof (int; typedef double v4df __attribute__

[Bug target/90723] New: pr88598-2.c segfaults with -msve-vector-bits=256

2019-06-03 Thread prathamesh3492 at gcc dot gnu.org
: target Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- cc1 segfaults with the following test-case, with -O2 -march=armv8.2-a+sve -msve-vector-bits=256: typedef double v4df __attribute__ ((vector_size (32))); void foo

[Bug target/90724] New: ICE with __sync_bool_compare_and_swap with -march=armv8.2-a+sve

2019-06-03 Thread prathamesh3492 at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Following test (pr82096.c) and few others fail with following ICE with -march=armv8.2-a+sve that contain call to

[Bug target/88833] [SVE] Redundant moves for WHILELO-based loops

2019-07-03 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88833 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Thu Jul 4 06:48:42 2019 New Revision: 273040 URL: https://gcc.gnu.org/viewcvs?rev=273040&root=gcc&view=rev Log: 2019-07-04 Prathamesh Kulkarni

[Bug target/90723] pr88598-2.c segfaults with -msve-vector-bits=256

2019-07-13 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90723 --- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Sat Jul 13 08:28:33 2019 New Revision: 273466 URL: https://gcc.gnu.org/viewcvs?rev=273466&root=gcc&view=rev Log: 2019-07-15 Prathamesh Kulkarni

[Bug tree-optimization/86570] New: Conditional statement doesn't trigger sincos transform

2018-07-18 Thread prathamesh3492 at gcc dot gnu.org
y: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- For the following test-case: double f2(double x, double a, double b) { if (a == b) return __builtin_sin (a * x) + __builtin_cos (

[Bug tree-optimization/86570] Conditional statement doesn't trigger sincos transform (with -ffast-math)

2018-07-19 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86570 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- AFAIU, the underlying issue doesn't seem particular to float. For example, there's a similar missed optimization with divmod transform: unsigned f(unsigned x, unsigned y,

[Bug tree-optimization/80155] [7/8/9 regression] Performance regression with code hoisting enabled

2018-07-19 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155 --- Comment #38 from prathamesh3492 at gcc dot gnu.org --- Hi, The issue can be reproduced exactly, with pr77445-2.c. I am testing with making is_digit() noinline. * Reordering SINK before PRE SPEC2006 data for building SPEC2006 with sink

[Bug tree-optimization/80155] [7/8/9 regression] Performance regression with code hoisting enabled

2018-08-01 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155 --- Comment #40 from prathamesh3492 at gcc dot gnu.org --- ping https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155#c38 Thanks, Prathamesh

[Bug middle-end/87209] New: Wuninitialized or Wmaybe-uninitialized doesn't warn when malloc's return value is used without being initialized

2018-09-03 Thread prathamesh3492 at gcc dot gnu.org
rsion: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- There's no warnings emitted for the foll

[Bug tree-optimization/84712] New: Missed evaluating to constant at tree level

2018-03-05 Thread prathamesh3492 at gcc dot gnu.org
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, It seems GCC does not evaluate the following function to a constant at the tree level: int sum(void) { int a[] = {1, 2, 3, -1}; int x = 0; for (int

[Bug target/84759] Calculation of quotient and remainder with constant denominator uses __umoddi3+__udivdi3 instead of __udivmoddi4

2018-03-08 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84759 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug tree-optimization/85787] malloc_candidate_p fails to detect malloc attribute on nested phis

2018-10-04 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85787 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Thu Oct 4 11:06:24 2018 New Revision: 264838 URL: https://gcc.gnu.org/viewcvs?rev=264838&root=gcc&view=rev Log: 2018-10-04 Prathamesh Kulkarni

[Bug tree-optimization/80155] [7/8/9 regression] Performance regression with code hoisting enabled

2018-10-17 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155 --- Comment #42 from prathamesh3492 at gcc dot gnu.org --- Hi, This is another simpler approach I tried to apply "cost-model" on hoisting before approaching a more general solution: http://people.linaro.org/~prathamesh.kulkarni/ho

[Bug tree-optimization/80155] [7/8/9 regression] Performance regression with code hoisting enabled

2018-10-17 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155 --- Comment #43 from prathamesh3492 at gcc dot gnu.org --- Sorry for duplications / formatting errors in previous comment. Is there a way to edit posted comments ? Thanks, Prathamesh

[Bug target/87920] New: Lots of regression tests fail with bootstrap build of arm-linux-gnueabihf

2018-11-07 Thread prathamesh3492 at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: prathamesh3492 at gcc dot gnu.org Target Milestone: --- Hi, It seems lots of tests are failing with bootstrap build of arm-linux-gnueabihf with following ICE: during GIMPLE

[Bug target/87920] Lots of regression tests fail with bootstrap build of arm-linux-gnueabihf

2018-11-07 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87920 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug middle-end/87899] [9 regression]r264897 cause mis-compiled native arm-linux-gnueabihf toolchain

2018-11-07 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87899 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

  1   2   3   4   >