[Bug target/101188] [AVR] Miscompilation and function pointers

2021-06-25 Thread saaadhu at gcc dot gnu.org via Gcc-bugs
||saaadhu at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed||2021-06-25 --- Comment #1 from Senthil Kumar Selvaraj --- Confirmed with 12.0.0 20210625 Here's a reduced testcase that hangs indefinitely

[Bug target/92729] [avr] Convert the backend to MODE_CC so it can be kept in future releases

2021-04-30 Thread saaadhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92729 Senthil Kumar Selvaraj changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/92729] [avr] Convert the backend to MODE_CC so it can be kept in future releases

2021-02-06 Thread saaadhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92729 --- Comment #48 from Senthil Kumar Selvaraj --- Submitted https://gcc.gnu.org/pipermail/gcc-patches/2021-January/563638.html, which addresses comments made when the work-in-progress version was submitted. There are no regression failures (save fo

[Bug target/98762] New: Wrong code for avrtiny if source is Z and destination is R30 or R31

2021-01-20 Thread saaadhu at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- avr_out_movqi_r_mr_reg_disp_tiny skips restoration of the base pointer reg pair (using subi/sbci) if reg_overlap_mentioned_p or

[Bug target/92729] [avr] Convert the backend to MODE_CC so it can be kept in future releases

2020-11-30 Thread saaadhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92729 Senthil Kumar Selvaraj changed: What|Removed |Added CC||saaadhu at gcc dot gnu.org

[Bug middle-end/91354] New: verify_gimple triggers ICE after reporting 'invalid types in nop conversion' error for avr target

2019-08-05 Thread saaadhu at gcc dot gnu.org
NCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- For the avr target, compiling the below code causes an 'invalid types in nop co

[Bug rtl-optimization/88253] Inlining of function incorrectly deletes volatile register access when using XOR in avr-gcc

2018-12-17 Thread saaadhu at gcc dot gnu.org
|--- |FIXED Assignee|segher at gcc dot gnu.org |saaadhu at gcc dot gnu.org --- Comment #8 from Senthil Kumar Selvaraj --- Fixed in trunk, and backported to gcc-8-branch and gcc-7-branch.

[Bug rtl-optimization/88253] Inlining of function incorrectly deletes volatile register access when using XOR in avr-gcc

2018-12-17 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88253 --- Comment #7 from Senthil Kumar Selvaraj --- Author: saaadhu Date: Mon Dec 17 13:26:50 2018 New Revision: 267201 URL: https://gcc.gnu.org/viewcvs?rev=267201&root=gcc&view=rev Log: 2018-12-17 Senthil Kumar Selvaraj Backport from tru

[Bug rtl-optimization/88253] Inlining of function incorrectly deletes volatile register access when using XOR in avr-gcc

2018-12-17 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88253 --- Comment #6 from Senthil Kumar Selvaraj --- Author: saaadhu Date: Mon Dec 17 12:07:26 2018 New Revision: 267199 URL: https://gcc.gnu.org/viewcvs?rev=267199&root=gcc&view=rev Log: 2018-12-17 Senthil Kumar Selvaraj Backport from tru

[Bug rtl-optimization/88253] Inlining of function incorrectly deletes volatile register access when using XOR in avr-gcc

2018-12-17 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88253 --- Comment #5 from Senthil Kumar Selvaraj --- Author: saaadhu Date: Mon Dec 17 10:50:54 2018 New Revision: 267198 URL: https://gcc.gnu.org/viewcvs?rev=267198&root=gcc&view=rev Log: Fix PR 88253 gcc/ChangeLog: PR rtl-optimization/88253

[Bug rtl-optimization/88253] Inlining of function incorrectly deletes volatile register access when using XOR in avr-gcc

2018-12-14 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88253 Senthil Kumar Selvaraj changed: What|Removed |Added CC||saaadhu at gcc dot gnu.org

[Bug target/88236] [avr] Invalid code generated for __memx char pointer deference for avr5 arch

2018-11-29 Thread saaadhu at gcc dot gnu.org
|unassigned at gcc dot gnu.org |saaadhu at gcc dot gnu.org --- Comment #2 from Senthil Kumar Selvaraj --- Created attachment 45119 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45119&action=edit Bug fix patch If reload choses r30 (or r31) as operand 0 of xload_8, the lpmx con

[Bug target/88236] New: [avr] Invalid code generated for __memx deference for avr5 arch

2018-11-28 Thread saaadhu at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- Compiling the below code with -mmcu=avr5 -Os (trunk gcc version 9.0.0 20181127 (experimental) (GCC)) void foo (char *a, const __memx

[Bug target/87376] New: [avr] Miscompilation with __memx and long long addition

2018-09-21 Thread saaadhu at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- Attempting to add a __memx long long with a long long in the generic address space results in wrong code. 2 of the 8 bytes of the variable in

[Bug middle-end/87325] New: determine_base_object does not consider consider address space of base expr

2018-09-16 Thread saaadhu at gcc dot gnu.org
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- determine_base_object fold_converts the result of build_fold_addr_expr to ptr_type_node, and this causes wrong code if

[Bug target/86869] New: ICE when taking address of array member of __memx struct pointer

2018-08-06 Thread saaadhu at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- The following code struct S { char y[2]; }; void foo(const __memx struct S *s) { const char (*p)[2] = &s->y; } causes an I

[Bug target/86635] [avr] Miscompilation with __memx and libgcc float function __gtsf2

2018-07-23 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86635 --- Comment #1 from Senthil Kumar Selvaraj --- Created attachment 44422 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44422&action=edit pr86635.patch Looks like ud_dce removes the insn that sets reg:SF r22 because the insn says r22 is clo

[Bug target/86635] New: [avr] Miscompilation with __memx and libgcc float function __gtsf2

2018-07-22 Thread saaadhu at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- A libgcc float function invocation (_e.g. _gtsf2) with one of its arguments in the __memx address space is miscompiled - that

[Bug target/86635] [avr] Miscompilation with __memx and libgcc float function __gtsf2

2018-07-22 Thread saaadhu at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Last reconfirmed||2018-07-23 Assignee|unassigned at gcc dot gnu.org |saaadhu at gcc dot gnu.org Ever confirmed|0 |1

[Bug target/85624] ICE when initializing array that is 128-byte aligned

2018-07-18 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85624 Senthil Kumar Selvaraj changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug target/85624] ICE when initializing array that is 128-byte aligned

2018-07-18 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85624 --- Comment #2 from Senthil Kumar Selvaraj --- When cfgexpand invokes gen_setmemhi, operands[1] is (const_int 6) - it's the pattern which copies it to (reg:QI). Setting the mode of operands[1] to HImode makes the problem go away - clrmemhi match

[Bug target/85624] New: ICE when initializing array that is 128-byte aligned

2018-05-03 Thread saaadhu at gcc dot gnu.org
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- avr-gcc 9.0.0 20180502 (and older versions) crashes with an ICE for the following piece of code void foo() { volatile int arr[3] __attribute__((aligned(128

[Bug middle-end/79012] New: basic block reordering causes suboptimal code

2017-01-05 Thread saaadhu at gcc dot gnu.org
: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org CC: segher at kernel dot crashing.org Target Milestone: --- For this C code (slightly modified from PR 30908) void wait(int i) { while (i-- > 0)

[Bug middle-end/30908] tree cost for types which are > WORD_SIZE

2016-12-19 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30908 Senthil Kumar Selvaraj changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #22 from S

[Bug tree-optimization/78170] [7 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2016-11-03 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78170 --- Comment #8 from Senthil Kumar Selvaraj --- Author: saaadhu Date: Thu Nov 3 08:04:40 2016 New Revision: 241809 URL: https://gcc.gnu.org/viewcvs?rev=241809&root=gcc&view=rev Log: Fix bougs PR 78170 failure for avr The test defines int bitfie

[Bug debug/49775] [5/6/7 Regression] on AVR ICE in based_loc_descr

2016-11-02 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49775 Senthil Kumar Selvaraj changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/63752] avr ICE at reload1.c:2128 building newlib

2016-11-02 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63752 Senthil Kumar Selvaraj changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug other/60040] AVR: error: unable to find a register to spill in class 'POINTER_REGS'

2016-10-24 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040 Senthil Kumar Selvaraj changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug other/56183] [meta-bug][avr] Problems with register allocation

2016-10-24 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56183 Bug 56183 depends on bug 60040, which changed state. Bug 60040 Summary: AVR: error: unable to find a register to spill in class 'POINTER_REGS' https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040 What|Removed |Ad

[Bug other/56183] [meta-bug][avr] Problems with register allocation

2016-10-23 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56183 Bug 56183 depends on bug 71627, which changed state. Bug 71627 Summary: AVR error: unable to find a register to spill in class 'POINTER_X_REGS' https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71627 What|Removed |A

[Bug other/71627] AVR error: unable to find a register to spill in class 'POINTER_X_REGS'

2016-10-23 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71627 Senthil Kumar Selvaraj changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug other/71627] AVR error: unable to find a register to spill in class 'POINTER_X_REGS'

2016-10-21 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71627 --- Comment #4 from Senthil Kumar Selvaraj --- Author: saaadhu Date: Fri Oct 21 11:48:19 2016 New Revision: 241400 URL: https://gcc.gnu.org/viewcvs?rev=241400&root=gcc&view=rev Log: Fix PR 71627 - unable to find a register to spill Tweak find_v

[Bug target/50739] [avr] nameless error with -fmerge-all-constants

2016-10-20 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50739 Senthil Kumar Selvaraj changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug other/56183] [meta-bug][avr] Problems with register allocation

2016-10-20 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56183 Bug 56183 depends on bug 56164, which changed state. Bug 56164 Summary: [avr] ICE: spill fail with __flash keyword https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164 What|Removed |Added -

[Bug target/56164] [avr] ICE: spill fail with __flash keyword

2016-10-20 Thread saaadhu at gcc dot gnu.org
||saaadhu at gcc dot gnu.org Resolution|--- |WORKSFORME --- Comment #8 from Senthil Kumar Selvaraj --- Could not reproduce this on 5.4 or trunk (7.0), closing as worksforme.

[Bug target/71932] internal compiler error: in push_reload, at reload.c:1360

2016-10-20 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71932 Senthil Kumar Selvaraj changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/71873] ICE in push_reload

2016-10-20 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71873 Senthil Kumar Selvaraj changed: What|Removed |Added CC||RichardFalk at comcast dot net

[Bug target/71932] internal compiler error: in push_reload, at reload.c:1360

2016-10-20 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71932 Senthil Kumar Selvaraj changed: What|Removed |Added Resolution|FIXED |DUPLICATE --- Comment #5 from S

[Bug target/65210] [avr] ICE: when using attributs 'address' and 'io_low'

2016-09-26 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65210 Senthil Kumar Selvaraj changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/65210] [avr] ICE: when using attributs 'address' and 'io_low'

2016-09-26 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65210 --- Comment #6 from Senthil Kumar Selvaraj --- Author: saaadhu Date: Tue Sep 27 06:39:59 2016 New Revision: 240521 URL: https://gcc.gnu.org/viewcvs?rev=240521&root=gcc&view=rev Log: Backport fix for PR 65210 gcc/ChangeLog 2016-09-27 Senthil K

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-08-31 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151 --- Comment #23 from Senthil Kumar Selvaraj --- Tracking binutils bug https://sourceware.org/bugzilla/show_bug.cgi?id=20545

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-08-31 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151 --- Comment #22 from Senthil Kumar Selvaraj --- Confirmed that it's a linker issue related to adjusting reloc addends in the presence of align directives. Found two separate bugs, will post patches later this week.

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-08-30 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151 --- Comment #21 from Senthil Kumar Selvaraj --- It occurs with "7.0.0 20160824 (experimental) (GCC)". Besides, the errors go away if I remove --relax, so I think it's a linker issue.

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-08-27 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151 --- Comment #19 from Senthil Kumar Selvaraj --- Can reproduce this on trunk with binutils master. Mostly likely a binutils/linker bug, as turning off relaxation fixes the error. Will debug further and post the conclusions.

[Bug target/71873] ICE in push_reload

2016-08-22 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71873 Senthil Kumar Selvaraj changed: What|Removed |Added CC||gccbugs at dima dot secretsauce

[Bug other/67031] avr-gcc internal compiler error: segmentation fault in push_reload, at reload.c

2016-08-22 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67031 Senthil Kumar Selvaraj changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug other/67031] avr-gcc internal compiler error: segmentation fault in push_reload, at reload.c

2016-08-22 Thread saaadhu at gcc dot gnu.org
||saaadhu at gcc dot gnu.org

[Bug target/71873] ICE in push_reload

2016-08-22 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71873 Senthil Kumar Selvaraj changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/71873] ICE in push_reload

2016-08-10 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71873 --- Comment #1 from Senthil Kumar Selvaraj --- Author: saaadhu Date: Wed Aug 10 12:35:57 2016 New Revision: 239321 URL: https://gcc.gnu.org/viewcvs?rev=239321&root=gcc&view=rev Log: Fix PR 71873 - ICE in push_reload Extend computation of subreg

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-08-08 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151 Senthil Kumar Selvaraj changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-08-08 Thread saaadhu at gcc dot gnu.org
||2016-08-08 CC||saaadhu at gcc dot gnu.org Ever confirmed|0 |1

[Bug target/71873] ICE in push_reload

2016-07-14 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71873 Senthil Kumar Selvaraj changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug target/71873] New: ICE in push_reload

2016-07-14 Thread saaadhu at gcc dot gnu.org
: unassigned at gcc dot gnu.org Reporter: saaadhu at gcc dot gnu.org Target Milestone: --- The following testcase causes an ICE in push_reload when compiled with $ cat test.c #include typedef struct { uint8_t x; uint32_t y; } A; A a; extern int bar(int); extern int foo (char *s

[Bug target/71873] ICE in push_reload

2016-07-14 Thread saaadhu at gcc dot gnu.org
|unassigned at gcc dot gnu.org |saaadhu at gcc dot gnu.org Target Milestone|--- |7.0

[Bug target/30417] Section .data cannot be moved with -mmcu=atmega88

2016-07-06 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30417 --- Comment #15 from Senthil Kumar Selvaraj --- FWIW, the linker behavior is now fixed - https://sourceware.org/bugzilla/show_bug.cgi?id=20302

[Bug target/50739] [avr] nameless error with -fmerge-all-constants

2016-07-06 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50739 --- Comment #5 from Senthil Kumar Selvaraj --- Author: saaadhu Date: Wed Jul 6 13:53:36 2016 New Revision: 238053 URL: https://gcc.gnu.org/viewcvs?rev=238053&root=gcc&view=rev Log: 2016-07-06 Senthil Kumar Selvaraj gcc/ Backport fro

[Bug target/50739] [avr] nameless error with -fmerge-all-constants

2016-07-06 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50739 --- Comment #4 from Senthil Kumar Selvaraj --- Author: saaadhu Date: Wed Jul 6 11:40:17 2016 New Revision: 238041 URL: https://gcc.gnu.org/viewcvs?rev=238041&root=gcc&view=rev Log: Fix PR target/50739 This patch fixes a problem with fmerge-all

[Bug target/30417] Section .data cannot be moved with -mmcu=atmega88

2016-06-27 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30417 --- Comment #14 from Senthil Kumar Selvaraj --- Filed https://sourceware.org/bugzilla/show_bug.cgi?id=20302 to have the linker treat -T like all other options - i.e. consider the last occurrence of an option rather than the first one.

[Bug target/30417] Section .data cannot be moved with -mmcu=atmega88

2016-06-22 Thread saaadhu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30417 Senthil Kumar Selvaraj changed: What|Removed |Added CC||saaadhu at gcc dot gnu.org