[Bug target/68390] Incorrect code due to indirect tail call of varargs function with hard float ABI

2015-11-22 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68390 --- Comment #1 from kugan at gcc dot gnu.org --- Author: kugan Date: Sun Nov 22 23:07:58 2015 New Revision: 230730 URL: https://gcc.gnu.org/viewcvs?rev=230730=gcc=rev Log: gcc/ChangeLog: 2015-11-23 Kugan Vivekanandarajah <kug...@linaro.

[Bug target/68390] New: Incorrect code due to indirect tail call of varargs function with hard float ABI

2015-11-17 Thread kugan at gcc dot gnu.org
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kugan at gcc dot gnu.org Target Milestone: --- __attribute__ ((noinline)) double direct(int x, ...) { return x*x; } __attribute__ ((noinline)) double broken(double

[Bug middle-end/67714] [6 Regression] signed char is zero-extended instead of sign-extended

2015-09-24 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67714 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug middle-end/67714] [6 Regression] signed char is zero-extended instead of sign-extended

2015-09-24 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67714 --- Comment #2 from kugan at gcc dot gnu.org --- It is the same issue and the patch posted in https://gcc.gnu.org/ml/gcc-patches/2015-09/msg00403.html fixes this test-case too.

[Bug rtl-optimization/66865] [6 Regression] wine64 segfaults from gcc in trunk (r225757) (regression)

2015-07-15 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #12 from kugan at gcc dot gnu.org --- (In reply to austinenglish from comment #5) (In reply to kugan from comment #4) Ok, I downloaded wine-1.7.47.tar.bz2 and built it with trunk gcc. What do I have to do to reproduce this please

[Bug c/66865] wine segfaults from gcc in trunk (r225757) (regression)

2015-07-14 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR

2015-07-14 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66726 --- Comment #12 from kugan at gcc dot gnu.org --- Created attachment 35976 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35976action=edit patch for tree-ssa-reassoc Here is a prototype patch (to fix comment 9) that makes tree-ssa-reassoc

[Bug rtl-optimization/66865] [6 Regression] wine segfaults from gcc in trunk (r225757) (regression)

2015-07-14 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66865 --- Comment #4 from kugan at gcc dot gnu.org --- Ok, I downloaded wine-1.7.47.tar.bz2 and built it with trunk gcc. What do I have to do to reproduce this please?

[Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR

2015-07-13 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66726 --- Comment #11 from kugan at gcc dot gnu.org --- Thanks for reporting. This test case is valid for targets that has branch cost greater than 1. One way to handle this is by disabling this for convections involving bool that are part of branch

[Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR

2015-07-12 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66726 --- Comment #8 from kugan at gcc dot gnu.org --- Author: kugan Date: Sun Jul 12 11:22:42 2015 New Revision: 225722 URL: https://gcc.gnu.org/viewcvs?rev=225722root=gccview=rev Log: gcc/testsuite/ChangeLog: 2015-07-12 Kugan Vivekanandarajah kug

[Bug tree-optimization/66759] [6 Regression] ICE in generic-match.c on 456.hmmer

2015-07-04 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66759 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR

2015-07-03 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66726 --- Comment #5 from kugan at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #4) (In reply to kugan from comment #3) really you should handle more than two arguments to phis. I am not sure how we can handle phi stmt with more

[Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR

2015-07-03 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66726 --- Comment #3 from kugan at gcc dot gnu.org --- really you should handle more than two arguments to phis. I am not sure how we can handle phi stmt with more than two arguments here. Any hints please?

[Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR

2015-07-02 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66726 --- Comment #1 from kugan at gcc dot gnu.org --- Created attachment 35888 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35888action=edit untested prototype patch Hi Jeff, Here is a patch (without debug dumps and not tesetd fully

[Bug tree-optimization/64130] vrp: handle non zero constant divided by range cannot be zero.

2015-06-28 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64130 --- Comment #11 from kugan at gcc dot gnu.org --- Author: kugan Date: Mon Jun 29 00:15:41 2015 New Revision: 225108 URL: https://gcc.gnu.org/viewcvs?rev=225108root=gccview=rev Log: gcc/ChangeLog: 2015-06-29 Kugan Vivekanandarajah kug

[Bug target/65375] aarch64: poor codegen for vld2q_f32 and vst2q_f32

2015-06-24 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65375 kugan at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution

[Bug tree-optimization/64130] vrp: handle non zero constant divided by range cannot be zero.

2015-06-19 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64130 --- Comment #10 from kugan at gcc dot gnu.org --- (In reply to Marc Glisse from comment #6) (In reply to kugan from comment #5) I think it should be in from front-end? ? Sorry for the confusing terminology. for the case int fsigned(int

[Bug tree-optimization/64130] vrp: handle non zero constant divided by range cannot be zero.

2015-06-18 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64130 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug target/66554] [4.9 Regression] ICE (in expand_fix, at optabs.c:5365) on aarch64-linux-gnu

2015-06-18 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66554 --- Comment #8 from kugan at gcc dot gnu.org --- Starting bisect now.

[Bug target/66554] [4.9 Regression] ICE (in expand_fix, at optabs.c:5365) on aarch64-linux-gnu

2015-06-18 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66554 --- Comment #6 from kugan at gcc dot gnu.org --- -fno-tree-forwprop works. forwprop propagates: vect__11.22_96 = (vector(4) float) vect_c.21_94; vect__13.24_98 = (vector(4) signed int) vect__11.22_96; into: vect__13.24_98 = (vector(4) signed

[Bug target/66554] [4.9 Regression] ICE (in expand_fix, at optabs.c:5365) on aarch64-linux-gnu

2015-06-17 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66554 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug target/66554] [4.9 Regression] ICE (in expand_fix, at optabs.c:5365) on aarch64-linux-gnu

2015-06-17 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66554 --- Comment #2 from kugan at gcc dot gnu.org --- can_fix_p is returining CODE_FOR_nothing for converting from tomode=V4SImode to frommode=V4SFmode with branch 4.9. With trunk it is returning CODE_FOR_fix_truncv4sfv4si2.

[Bug target/66554] [4.9 Regression] ICE (in expand_fix, at optabs.c:5365) on aarch64-linux-gnu

2015-06-17 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66554 --- Comment #3 from kugan at gcc dot gnu.org --- correction: with 4.9 when it ICE we have: Breakpoint 1, expand_fix (to=to@entry=0x765b5480, from=0x765b2000, unsignedp=unsignedp@entry=0) at /home/kugan/work/sources/gcc-fsf/4.9/gcc

[Bug target/65768] sub-optimimal code for constant Uses in loop

2015-06-02 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65768 kugan at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug target/65768] sub-optimimal code for constant Uses in loop

2015-06-02 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65768 --- Comment #3 from kugan at gcc dot gnu.org --- Author: kugan Date: Tue Jun 2 22:53:15 2015 New Revision: 224048 URL: https://gcc.gnu.org/viewcvs?rev=224048root=gccview=rev Log: gcc/ChangeLog: 2015-06-03 Kugan Vivekanandarajah kug

[Bug target/65768] sub-optimimal code for constant Uses in loop

2015-05-16 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65768 --- Comment #2 from kugan at gcc dot gnu.org --- Author: kugan Date: Sat May 16 09:35:52 2015 New Revision: 223235 URL: https://gcc.gnu.org/viewcvs?rev=223235root=gccview=rev Log: gcc/ChangeLog: 2015-05-16 Kugan Vivekanandarajah kug

[Bug libstdc++/66018] opendir configure test not working when GCC_NO_EXECUTABLES

2015-05-13 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66018 --- Comment #5 from kugan at gcc dot gnu.org --- For aarch64-none-elf it fails during. 01:53:39 checking for dirent.h that defines DIR... no 01:53:39 checking for sys/ndir.h that defines DIR... no 01:53:39 checking for sys/dir.h that defines DIR

[Bug c/66090] Wrong loop code generation with -O2 on ARM

2015-05-10 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66090 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug c/66066] [6 Regression] r222889 causes bogus error: initializer element is not constant

2015-05-09 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66066 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug target/65768] sub-optimimal code for constant Uses in loop

2015-04-15 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65768 kugan at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |kugan at gcc dot

[Bug target/65768] New: sub-optimimal code for constant Uses in loop

2015-04-15 Thread kugan at gcc dot gnu.org
: target Assignee: unassigned at gcc dot gnu.org Reporter: kugan at gcc dot gnu.org #include stdint.h void maskdata(int32_t * data, unsigned int len) { const int32_t mask = 0x00ff00ff; for (int i=len; i-- 0 ;) { data[i] = mask; } } Is producing the following with arm-none

[Bug target/65375] aarch64: poor codegen for vld2q_f32 and vst2q_f32

2015-04-14 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65375 --- Comment #8 from kugan at gcc dot gnu.org --- Patch is at https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00857.html and not approved yet.

[Bug target/64263] [5.0 Regression] ICE where adddi3_aarch64 does not satisfy its constraints after r217546

2015-04-08 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64263 --- Comment #5 from kugan at gcc dot gnu.org --- Author: kugan Date: Wed Apr 8 21:37:47 2015 New Revision: 221936 URL: https://gcc.gnu.org/viewcvs?rev=221936root=gccview=rev Log: 2015-04-09 Kugan Vivekanandarajah kugan.vivekanandara

[Bug target/65375] poor codegen for ld[234]/st[234]

2015-03-10 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65375 --- Comment #1 from kugan at gcc dot gnu.org --- arm-none-linux-gnueabi-gcc -O2 -ffast-math -unsafe-math-optimisations -mfpu=neon produces just: hello_vst2: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args

[Bug target/65375] New: poor codegen for ld[234]/st[234]

2015-03-10 Thread kugan at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: kugan at gcc dot gnu.org #include arm_neon.h void hello_vst2(float* fout, float *fin) { float32x4x2_t a; a = vld2q_f32 (fin); vst2q_f32 (fout, a); } with aarch64-none-linux-gnu-gcc -O2 -ffast-math -unsafe-math-optimisations produces

[Bug target/65375] poor codegen for ld[234]/st[234]

2015-03-10 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65375 --- Comment #2 from kugan at gcc dot gnu.org --- aarch64-none-linux-gnu-gcc -O2 -ffast-math -unsafe-math-optimisations -fno-split-wide-types produces : ld2{v2.4s - v3.4s}, [x1] orrv0.16b, v2.16b, v2.16b orrv1.16b, v3.16b

[Bug target/65375] poor codegen for ld[234]/st[234]

2015-03-10 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65375 kugan at gcc dot gnu.org changed: What|Removed |Added Target||aarch64 Assignee

[Bug middle-end/61207] [4.9 Regression] Win64 gcc 4.9.0: ICE in in expand_expr_addr_expr_1 at -Os compiling some C++ code

2015-03-06 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61207 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug rtl-optimization/64537] Aarch64 redundant sxth instruction gets generated

2015-01-18 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64537 --- Comment #5 from kugan at gcc dot gnu.org --- Is this sort of multiple-use potential candidate for ree pass? Haven't looked ree in detail yet.

[Bug rtl-optimization/64537] Aarch64 redundant sxth instruction gets generated

2015-01-08 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64537 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug rtl-optimization/64537] Aarch64 redundant sxth instruction gets generated

2015-01-08 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64537 --- Comment #3 from kugan at gcc dot gnu.org --- But isn't w1 is passed with 16bit value (short b) here. Am I missing something here?

[Bug rtl-optimization/64532] [5 regression on ARM]internal compiler error: Max. number of generated reload insns per insn is achieved (90)

2015-01-07 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64532 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug target/64525] Duplicate instructions in both paths in conditional code

2015-01-07 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64525 --- Comment #1 from kugan at gcc dot gnu.org --- compiler options: arm-none-linux-gnueabi-gcc -O3 -S test.c arm-none-linux-gnueabi-gcc -v Using built-in specs. COLLECT_GCC=/home/kugan/work/builds/gcc-fsf-gcc/tools/bin/arm-none-linux-gnueabi-gcc

[Bug target/64525] New: Duplicate instructions in both paths in conditional code

2015-01-07 Thread kugan at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kugan at gcc dot gnu.org Created attachment 34395 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34395action=edit testcase gcc is generating the same instructions down both paths

[Bug target/64304] AArch64 miscompilation with -mgeneral-regs-only

2014-12-14 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64304 kugan at gcc dot gnu.org changed: What|Removed |Added CC||kugan at gcc dot gnu.org

[Bug target/64045] New: fortran.dg/pr45636.f90 fails for AArch64 - memcpy and memset are not combined

2014-11-24 Thread kugan at gcc dot gnu.org
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kugan at gcc dot gnu.org In current trunk, fortran.dg/pr45636.f90 fails for AArch64 as memcpy and memset are not combined.

[Bug target/64045] fortran.dg/pr45636.f90 fails for AArch64 - memcpy and memset are not combined

2014-11-24 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64045 --- Comment #1 from kugan at gcc dot gnu.org --- Look at gcc/tree-ssa-fwprop.c:1650 /* If the new memcpy wouldn't be emitted by storing the literal by pieces, this optimization might enlarge .rodata too much, as commonly

[Bug target/62254] New: gcc-4.9 miscompiles linux kernel zlib for armv3

2014-08-25 Thread kugan at gcc dot gnu.org
: target Assignee: unassigned at gcc dot gnu.org Reporter: kugan at gcc dot gnu.org Created attachment 33392 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33392action=edit testcase rm-none-linux-gnueabi-gcc -O -march=armv3 inffast.i inffast.i: In function ‘inflate_fast

[Bug target/62254] gcc-4.9 miscompiles linux kernel zlib for armv3

2014-08-25 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62254 --- Comment #1 from kugan at gcc dot gnu.org --- Imported from LP https://bugs.launchpad.net/gcc-linaro/+bug/1307197

[Bug tree-optimization/52904] -Wstrict-overflow false alarm with bounded loop

2014-08-18 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52904 --- Comment #12 from kugan at gcc dot gnu.org --- Author: kugan Date: Mon Aug 18 06:28:35 2014 New Revision: 214084 URL: https://gcc.gnu.org/viewcvs?rev=214084root=gccview=rev Log: gcc/testsuite 2014-08-18 Kugan Vivekanandarajah kug

[Bug tree-optimization/52904] -Wstrict-overflow false alarm with bounded loop

2014-08-08 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52904 kugan at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED CC

[Bug tree-optimization/52904] -Wstrict-overflow false alarm with bounded loop

2014-08-08 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52904 --- Comment #11 from kugan at gcc dot gnu.org --- I agree. I will post a patch to add this test-case and let the maintainers decide if this is necessary.

[Bug target/60034] invalid expression as operand in aarch64 inline asm

2014-03-30 Thread kugan at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60034 --- Comment #6 from kugan at gcc dot gnu.org --- Author: kugan Date: Sun Mar 30 22:41:59 2014 New Revision: 208949 URL: http://gcc.gnu.org/viewcvs?rev=208949root=gccview=rev Log: PR target/60034 * aarch64/aarch64.c (aarch64_classify_address): Fix

<    1   2   3