[Bug debug/119317] Named loops (C2y) do not compile with -O1 and -ggdb2 or higher

2025-03-16 Thread gandalf at winds dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119317 --- Comment #1 from gandalf at winds dot org --- Created attachment 60783 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60783&action=edit test17.i

[Bug debug/119317] New: Named loops (C2y) do not compile with -O1 and -ggdb2 or higher

2025-03-16 Thread gandalf at winds dot org via Gcc-bugs
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- Created attachment 60782 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60782&action=edit gcc output The following functio

[Bug tree-optimization/113224] Warning "is used uninitialized" raised for an initialized variable

2024-01-03 Thread gandalf at winds dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113224 --- Comment #3 from gandalf at winds dot org --- Thank you for the suggestion. I'll try the union.

[Bug tree-optimization/113224] New: Warning "is used uninitialized" raised for an initialized variable

2024-01-03 Thread gandalf at winds dot org via Gcc-bugs
ty: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- Target: x86_64-pc-linux-gnu In an attempt to convert a float value bytewise to an integer, thi

[Bug target/112615] gcc incorrectly assumes char *x[2]={"str1", "str2"} has 16-byte minimum alignment and generates SSE instructions (e.g. movaps) when accessing this data

2023-11-18 Thread gandalf at winds dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112615 gandalf at winds dot org changed: What|Removed |Added Resolution|FIXED |INVALID

[Bug target/112615] gcc incorrectly assumes char *x[2]={"str1", "str2"} has 16-byte minimum alignment and generates SSE instructions (e.g. movaps) when accessing this data

2023-11-18 Thread gandalf at winds dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112615 gandalf at winds dot org changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #3 from

[Bug c/112615] New: gcc incorrectly assumes char *x[2]={"str1", "str2"} has 16-byte minimum alignment and generates SSE instructions (e.g. movaps) when accessing this data

2023-11-18 Thread gandalf at winds dot org via Gcc-bugs
accessing this data Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- I ra

[Bug target/109236] [avr] Invalid code of signed 16-bit compare optimization

2023-03-21 Thread gandalf at winds dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109236 gandalf at winds dot org changed: What|Removed |Added Resolution|--- |INVALID Status

[Bug c/109236] New: [avr] Invalid code of signed 16-bit compare optimization

2023-03-21 Thread gandalf at winds dot org via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- I'm seeing incorrect code when -O1 or higher is used on AVR (atmega1284p). The compiler generates code that compares "x" to

[Bug debug/107012] [debug, dwarf-5] Missing line information for evaluating macros

2022-09-22 Thread gandalf at winds dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107012 --- Comment #1 from gandalf at winds dot org --- Created attachment 53615 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53615&action=edit objdump output for dwarf-5

[Bug debug/107012] New: [debug, dwarf-5] Missing line information for evaluating macros

2022-09-22 Thread gandalf at winds dot org via Gcc-bugs
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- Created attachment 53614 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53614&action=edit objdump output for dwarf-4 GCC

[Bug tree-optimization/100256] New: spurious stringop-overflow warning with memset(..., sizeof(dest)) on variable-length array at -O3

2021-04-25 Thread gandalf at winds dot org via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- When 'j_degree' is unknown per the function below, -O3 causes a stringop-overfl

[Bug middle-end/89998] [7/8 regression] ICE: verify_gimple failed in printf-return-value

2019-04-09 Thread gandalf at winds dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89998 --- Comment #10 from gandalf at winds dot org --- (In reply to Jakub Jelinek from comment #9) > Fixed for trunk. As a workaround I'd suggest using a correct prototype or > -fno-builtin-sprintf if you intentionally use a different o

[Bug middle-end/89270] [9 regression] AVR ICE: verify_gimple failed

2019-04-07 Thread gandalf at winds dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89270 --- Comment #3 from gandalf at winds dot org --- (In reply to Georg-Johann Lay from comment #2) > For the time being, you can work around this by a macro from AVR-LibC or > some equivalent inline asm Thanks, that workaround does indeed wor

[Bug middle-end/89998] New: [9 regression] AVR ICE: verify_gimple failed in printf-return-value

2019-04-07 Thread gandalf at winds dot org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- I get an ICE on the following code with GCC 9.0.1 20190407 (experimental) compiled for AVR. Works in GCC 8.x. If the __flash

[Bug middle-end/89996] New: [avr] ICE in expand_expr_real_2 with -O3

2019-04-06 Thread gandalf at winds dot org
-end Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- The following fails with GCC 8.2 and 8.3 on AVR. The below output is from 8.3: # avr-gcc -v -O3 -mmcu=atmega1284p -c test2.c -o test2.o Using built-in specs. Reading specs

[Bug c/89270] New: [9 regression] AVR ICE: verify_gimple failed

2019-02-09 Thread gandalf at winds dot org
Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- I get an ICE on the following code with GCC 9.0.1 20190209 (experimental) compiled for AVR. Works in GCC 8.x. void test() { extern const unsigned char __memx __data_load_end

[Bug c/85623] New: strncmp() warns about attribute 'nonstring' incorrectly in -Wstringop-overflow

2018-05-02 Thread gandalf at winds dot org
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- The following code emits a warning when using strncmp() to compare a small quoted string with a "char data[4]&

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-12 Thread gandalf at winds dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #10 from gandalf at winds dot org --- This fix resolves the issues for me. Thank you!

[Bug c/83801] [8 Regression][avr] String constant in __flash not put into .progmem

2018-01-11 Thread gandalf at winds dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #6 from gandalf at winds dot org --- (In reply to Georg-Johann Lay from comment #1) > Old v7.2 does it correctly: one string in flash, one in RAM. My more specific testcase (comment #3 in PR83729) references a 32-byte string i

[Bug middle-end/83729] [8 Regression] AVR ICE on convert_memory_address_addr_space_1 at explow.c:300

2018-01-09 Thread gandalf at winds dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83729 --- Comment #3 from gandalf at winds dot org --- Another regression test case (compile with -O): void code_to_ascii(char buf[1], unsigned int code) { __attribute__((used)) static const char __flash test[5]="ABCDE"; static

[Bug middle-end/83729] New: AVR ICE on convert_memory_address_addr_space_1 at explow.c:300

2018-01-07 Thread gandalf at winds dot org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- Created attachment 43054 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43054&action=edit Preprocessed file gcc versio

[Bug target/49487] Internal compiler error in AVR code

2011-06-21 Thread gandalf at winds dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49487 --- Comment #3 from gandalf at winds dot org 2011-06-21 17:17:20 UTC --- (In reply to comment #1) > (In reply to comment #0) > > Compiling the following function triggers an internal compiler error in (at > > least) GCC versions 4.

[Bug c/49487] New: Internal compiler error in AVR code

2011-06-21 Thread gandalf at winds dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49487 Summary: Internal compiler error in AVR code Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu

[Bug middle-end/42898] [4.3/4.4/4.5 Regression] volatile structures and compound literal initializers

2010-01-30 Thread gandalf at winds dot org
--- Comment #6 from gandalf at winds dot org 2010-01-30 20:56 --- The patch provided fixes this issue and brings the original GCC 4.2.2 behavior back. Thanks so much for your quick response! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42898

[Bug c/42898] New: Problem initializing volatile structures

2010-01-29 Thread gandalf at winds dot org
Thanks, -Byron -- Summary: Problem initializing volatile structures Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org R