[Bug middle-end/83805] [8 Regression] Wrong constant merging for objects in different address spaces

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83805 --- Comment #5 from Georg-Johann Lay --- (In reply to Jakub Jelinek from comment #4) > Well, 7.2 certainly doesn't have any special casing for address spaces in > categorize_decl_for_section etc., so before claiming it is a regression > you'd

[Bug middle-end/83805] [8 Regression] Wrong constant merging for objects in different address spaces

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83805 Georg-Johann Lay changed: What|Removed |Added Known to work||7.2.1 Summary|Wrong

[Bug middle-end/83805] Wrong constant merging for objects in different address spaces

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83805 --- Comment #2 from Georg-Johann Lay --- (In reply to Jakub Jelinek from comment #1) > If so, avr should override the select_section and unique_section target > hooks and return something different for the __flash strings. I am just working on

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

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 --- Comment #2 from Georg-Johann Lay --- Created attachment 43107 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43107=edit proposed patch

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

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 Georg-Johann Lay changed: What|Removed |Added Known to work||7.2.1 Summary|[avr]

[Bug other/83805] Wrong constant merging for objects in different address spaces

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83805 Georg-Johann Lay changed: What|Removed |Added Keywords||addr-space, wrong-code

[Bug other/83805] New: Wrong constant merging for objects in different address spaces

2018-01-11 Thread gjl at gcc dot gnu.org
Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Compile the following code with $ avr-gcc -Os bug.c -S -mmcu=avr5 char fun1 (unsigned i) { static const __flash char str1[] = "01234

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

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83729 --- Comment #4 from Georg-Johann Lay --- (In reply to gandalf from comment #3) > Another regression test case (compile with -O): > > void code_to_ascii(char buf[1], unsigned int code) > { > __attribute__((used)) > static const char __flash

[Bug target/83801] [avr] String constant in __flash not put into .progmem

2018-01-11 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83801 Georg-Johann Lay changed: What|Removed |Added Target||avr Status|UNCONFIRMED

[Bug target/83801] New: [avr] String constant in __flash not put into .progmem

2018-01-11 Thread gjl at gcc dot gnu.org
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- char to_ascii (unsigned i) { static const char __flash code_tab[] = "0123456789"; return code_tab[i]; } In the above test case, code_tab is put in

[Bug target/79883] avr i18n: untranslated "interrupt" or "signal"

2018-01-09 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79883 --- Comment #18 from Georg-Johann Lay --- Author: gjl Date: Tue Jan 9 11:27:34 2018 New Revision: 256376 URL: https://gcc.gnu.org/viewcvs?rev=256376=gcc=rev Log: PR target/79883 * gcc.target/avr/torture/pr57631.c (dg-warning):

[Bug testsuite/83737] FAIL: gcc.dg/stdint-width-1.c (test for excess errors) for with newlib stdint.h

2018-01-09 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83737 --- Comment #3 from Georg-Johann Lay --- (In reply to Georg-Johann Lay from comment #2) > Author: gjl > Date: Tue Jan 9 10:38:45 2018 > New Revision: 256373 Typo in the ChangeLog :-( This was intended for PR83738

[Bug target/83738] [avr] Don't save registers in main

2018-01-09 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83738 Georg-Johann Lay changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug testsuite/83737] FAIL: gcc.dg/stdint-width-1.c (test for excess errors) for with newlib stdint.h

2018-01-09 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83737 --- Comment #2 from Georg-Johann Lay --- Author: gjl Date: Tue Jan 9 10:38:45 2018 New Revision: 256373 URL: https://gcc.gnu.org/viewcvs?rev=256373=gcc=rev Log: gcc/ Don't save registers in main(). PR target/83737 *

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

2018-01-08 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83729 --- Comment #2 from Georg-Johann Lay --- ...and this is a middle-end flaw because POINTERS_EXTEND_UNSIGNED states: [...] You need not define this macro [which is the case for avr] if the ptr_mode, Pmode and word_mode are all the same width

[Bug target/83738] [avr] Don't save registers in main

2018-01-08 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83738 Georg-Johann Lay changed: What|Removed |Added Keywords||missed-optimization

[Bug target/83738] New: [avr] Don't save registers in main

2018-01-08 Thread gjl at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: ---

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

2018-01-08 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83729 Georg-Johann Lay changed: What|Removed |Added Keywords||ice-on-valid-code

[Bug c++/83484] constexpr not evaluated at compile time

2017-12-19 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83484 --- Comment #2 from Georg-Johann Lay --- Using built-in specs. COLLECT_GCC=g++-8 COLLECT_LTO_WRAPPER=/srv/local/gnu/install/gcc-8-host/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with:

[Bug c++/83484] constexpr not evaluated at compile time

2017-12-19 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83484 --- Comment #1 from Georg-Johann Lay --- Created attachment 42917 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42917=edit tmp.cpp: C++11 test case

[Bug c++/83484] New: constexpr not evaluated at compile time

2017-12-19 Thread gjl at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- The following test case triggers a link failure because the constexpr are not evaluated at compile time: $ g++-8 tmp.cpp -Os -save-temps tmp.o: In function `Port<7>::set(Port<

[Bug target/41076] [avr] pessimal code for logical OR of 8-bit fields

2017-10-02 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41076 --- Comment #10 from Georg-Johann Lay --- Author: gjl Date: Mon Oct 2 11:31:03 2017 New Revision: 253343 URL: https://gcc.gnu.org/viewcvs?rev=253343=gcc=rev Log: PR target/41076 * confg/avr/avr.md (*iorhi3.ashift8-ext.zerox):

[Bug target/81268] [avr] Support __gcc_isr pseudo-instruction for more efficient ISR prologues

2017-09-14 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81268 --- Comment #7 from Georg-Johann Lay --- (In reply to Aldy Hernandez from comment #6) > Author: aldyh > Date: Wed Sep 13 16:56:35 2017 > New Revision: 252421 > > URL: https://gcc.gnu.org/viewcvs?rev=252421=gcc=rev > Log: > gcc/ > PR

[Bug c++/43745] [avr] g++ puts VTABLES in SRAM

2017-09-02 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43745 --- Comment #13 from Georg-Johann Lay --- (In reply to Matthijs Kooijman from comment #12) > Apologies if this is an obvious question, but I'm not familiar with gcc/g++ > internals. Georg-Johann, you say this requires address space support in

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487 --- Comment #7 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 10:32:36 2017 New Revision: 251272 URL: https://gcc.gnu.org/viewcvs?rev=251272=gcc=rev Log: lto-plugin/ Backport from 2017-07-26 gcc-7-branch r250562. PR

[Bug rtl-optimization/75964] insn combiner removes comparison after ABS

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75964 --- Comment #11 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 10:07:51 2017 New Revision: 251271 URL: https://gcc.gnu.org/viewcvs?rev=251271=gcc=rev Log: gcc/ Backport from 2017-05-06 trunk r247719. PR

[Bug target/81305] [avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81305 --- Comment #7 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 10:01:38 2017 New Revision: 251270 URL: https://gcc.gnu.org/viewcvs?rev=251270=gcc=rev Log: gcc/ Backport from 2017-07-05 trunk r249995. PR target/81305

[Bug target/79883] avr i18n: untranslated "interrupt" or "signal"

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79883 --- Comment #16 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 09:48:48 2017 New Revision: 251269 URL: https://gcc.gnu.org/viewcvs?rev=251269=gcc=rev Log: gcc/ Backport from 2016-06-15 trunk r237486. Backport from

[Bug target/67353] [avr] Option-ize Warning "appears to be a misspelled signal / interrupt handler"

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67353 --- Comment #6 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 09:48:48 2017 New Revision: 251269 URL: https://gcc.gnu.org/viewcvs?rev=251269=gcc=rev Log: gcc/ Backport from 2016-06-15 trunk r237486. Backport from

[Bug target/80462] [avr] Incorrect "warning: uninitialized variable 'xxx' put into program memory area" for identical strings

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80462 --- Comment #4 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 09:29:30 2017 New Revision: 251267 URL: https://gcc.gnu.org/viewcvs?rev=251267=gcc=rev Log: gcc/ Backport from 2017-04-19 trunk r246997. PR target/80462

[Bug target/81407] [avr] Diagnose if a variable in progmem needs constructing.

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81407 --- Comment #6 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 09:29:30 2017 New Revision: 251267 URL: https://gcc.gnu.org/viewcvs?rev=251267=gcc=rev Log: gcc/ Backport from 2017-04-19 trunk r246997. PR target/80462

[Bug target/81910] [avr] ICE with "address" attribute on type

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81910 --- Comment #4 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 08:40:15 2017 New Revision: 251261 URL: https://gcc.gnu.org/viewcvs?rev=251261=gcc=rev Log: gcc/ Backport from 2017-08-22 trunk r251256. PR target/81910

[Bug target/81910] [avr] ICE with "address" attribute on type

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81910 --- Comment #3 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 07:57:40 2017 New Revision: 251258 URL: https://gcc.gnu.org/viewcvs?rev=251258=gcc=rev Log: Backport from 2017-08-22 trunk r251256. PR target/81910 *

[Bug target/81910] [avr] ICE with "address" attribute on type

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81910 --- Comment #2 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 07:55:34 2017 New Revision: 251257 URL: https://gcc.gnu.org/viewcvs?rev=251257=gcc=rev Log: gcc/ Backport from 2017-08-22 trunk r251256. PR target/81910

[Bug target/81910] [avr] ICE with "address" attribute on type

2017-08-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81910 --- Comment #1 from Georg-Johann Lay --- Author: gjl Date: Tue Aug 22 07:52:42 2017 New Revision: 251256 URL: https://gcc.gnu.org/viewcvs?rev=251256=gcc=rev Log: gcc/ PR target/81910 * config/avr/avr.c

[Bug target/79883] avr i18n: untranslated "interrupt" or "signal"

2017-08-21 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79883 Georg-Johann Lay changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug target/79883] avr i18n: untranslated "interrupt" or "signal"

2017-08-21 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79883 --- Comment #14 from Georg-Johann Lay --- Author: gjl Date: Mon Aug 21 12:44:23 2017 New Revision: 251225 URL: https://gcc.gnu.org/viewcvs?rev=251225=gcc=rev Log: PR target/79883 * config/avr/avr.c (avr_set_current_function):

[Bug target/79883] avr i18n: untranslated "interrupt" or "signal"

2017-08-21 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79883 --- Comment #13 from Georg-Johann Lay --- Author: gjl Date: Mon Aug 21 12:42:47 2017 New Revision: 251224 URL: https://gcc.gnu.org/viewcvs?rev=251224=gcc=rev Log: PR target/79883 * config/avr/avr.c (avr_set_current_function):

[Bug target/79883] avr i18n: untranslated "interrupt" or "signal"

2017-08-21 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79883 --- Comment #12 from Georg-Johann Lay --- Author: gjl Date: Mon Aug 21 12:39:59 2017 New Revision: 251223 URL: https://gcc.gnu.org/viewcvs?rev=251223=gcc=rev Log: PR target/79883 * config/avr/avr.c (avr_set_current_function):

[Bug target/81910] New: [avr] ICE with "address" attribute on type

2017-08-21 Thread gjl at gcc dot gnu.org
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- struct { char a; } __attribute((address(1))); ICEs the compiler: cc1: warning: 'address' attribute only applies to variables x.c:1:8: internal compiler error: Se

[Bug target/81910] [avr] ICE with "address" attribute on type

2017-08-21 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81910 Georg-Johann Lay changed: What|Removed |Added Keywords||ice-on-invalid-code

[Bug c++/81533] g++ pops up a constructor for objects that could be initialized at load-time

2017-08-18 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81533 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/81754] Building of cross compiler avr-elf is broken

2017-08-18 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81754 Georg-Johann Lay changed: What|Removed |Added Keywords||build Priority|P3

[Bug target/81268] [avr] Support __gcc_isr pseudo-instruction for more efficient ISR prologues

2017-08-18 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81268 --- Comment #4 from Georg-Johann Lay --- (In reply to Eric Gallager from comment #3) > Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01469.html I guess due to some server crash / glitch? > New Revision: 251085 > > URL:

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-08-16 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-08-14 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/81754] Building of cross compiler avr-elf is broken

2017-08-14 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81754 --- Comment #1 from Georg-Johann Lay --- Author: gjl Date: Mon Aug 14 09:14:16 2017 New Revision: 251085 URL: https://gcc.gnu.org/viewcvs?rev=251085=gcc=rev Log: gcc/ PR target/81754 PR target/81268 * config/avr/avr.opt

[Bug target/81754] Building of cross compiler avr-elf is broken

2017-08-14 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81754 Georg-Johann Lay changed: What|Removed |Added Keywords||build Priority|P3

[Bug target/81268] [avr] Support __gcc_isr pseudo-instruction for more efficient ISR prologues

2017-08-14 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81268 --- Comment #3 from Georg-Johann Lay --- Author: gjl Date: Mon Aug 14 09:14:16 2017 New Revision: 251085 URL: https://gcc.gnu.org/viewcvs?rev=251085=gcc=rev Log: gcc/ PR target/81754 PR target/81268 * config/avr/avr.opt

[Bug c++/43745] [avr] g++ puts VTABLES in SRAM

2017-07-31 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43745 Georg-Johann Lay changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/49857] Put constant switch-tables into flash

2017-07-31 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49857 Georg-Johann Lay changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/81625] GCC v4.7 ... v8 is bloating code by > 25% compared to v3.4

2017-07-31 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81625 --- Comment #1 from Georg-Johann Lay --- Created attachment 41868 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41868=edit Assembly as generated by 3.4.6 for reference.

[Bug rtl-optimization/81625] New: GCC v4.7 ... v8 is bloating code by > 25% compared to v3.4

2017-07-31 Thread gjl at gcc dot gnu.org
mal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Created attachment 41867 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41867=edit snake-i.c: C test case. The attached tes

[Bug middle-end/80929] [6/7/8 Regression] Division with constant no more optimized to mult highpart

2017-07-30 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug rtl-optimization/81611] gcc un-learned loop / post-increment optimization

2017-07-30 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81611 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart

2017-07-30 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929 --- Comment #6 from Georg-Johann Lay --- Created attachment 41861 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41861=edit time-i.c: C test case (In reply to Richard Biener from comment #4) > Fixed? No. The attached test case $

[Bug inline-asm/54450] Extended asm in global scope

2017-07-29 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54450 --- Comment #7 from Georg-Johann Lay --- (In reply to Eric Gallager from comment #6) > (In reply to Marek Polacek from comment #2) > > Probably dup of http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045 > > Agreed, closing as a duplicate of it >

[Bug other/81611] New: gcc un-learned loop / post-increment optimization

2017-07-29 Thread gjl at gcc dot gnu.org
: other Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- C test case: void func1 (unsigned char x, char *str) { do { *str++ = '0' + (x & 1); x = x / 2; } while (x); *str = 0; } $ avr-gcc-8 foo.c -S -

[Bug other/81582] -Wimplicit-fallthrough= wrong warning with -save-temps

2017-07-27 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81582 --- Comment #9 from Georg-Johann Lay --- With -fdirectives-only locations go bananas: #include int f1 (int x) { switch (x) { case 1: x++; // FALLTHRU case 2: x--; /* FALLTHRU */ case 3: x++; // line #9 case 4: return

[Bug other/81582] -Wimplicit-fallthrough= wrong warning with -save-temps

2017-07-27 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81582 --- Comment #7 from Georg-Johann Lay --- (In reply to Jakub Jelinek from comment #6) > If you are preprocessing without -C and without -fdirectives-only, then > comments are gone, so you really can't use them to inhibit the warning. Yes, so

[Bug other/81582] -Wimplicit-fallthrough= wrong warning with -save-temps

2017-07-27 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81582 Georg-Johann Lay changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Bug other/81582] -Wimplicit-fallthrough= wrong warning with -save-temps

2017-07-27 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81582 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug other/81582] New: -Wimplicit-fallthrough= wrong warning with -save-temps

2017-07-27 Thread gjl at gcc dot gnu.org
Component: other Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- int f1 (int x) { switch (x) { case 1: x++; // FALLTHRU case 2: x--; /* FALLTHRU */ case 3: x++; // FALLTHRU case 4: return x; default

[Bug target/67353] [avr] Option-ize Warning "appears to be a misspelled signal / interrupt handler"

2017-07-26 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67353 Georg-Johann Lay changed: What|Removed |Added Target Milestone|--- |6.5

[Bug target/79883] avr i18n: untranslated "interrupt" or "signal"

2017-07-26 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79883 --- Comment #10 from Georg-Johann Lay --- Author: gjl Date: Wed Jul 26 14:58:42 2017 New Revision: 250577 URL: https://gcc.gnu.org/viewcvs?rev=250577=gcc=rev Log: gcc/ Backport from 2016-06-15 trunk r237486. Backport from

[Bug target/67353] [avr] Option-ize Warning "appears to be a misspelled signal / interrupt handler"

2017-07-26 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67353 --- Comment #5 from Georg-Johann Lay --- Author: gjl Date: Wed Jul 26 14:58:42 2017 New Revision: 250577 URL: https://gcc.gnu.org/viewcvs?rev=250577=gcc=rev Log: gcc/ Backport from 2016-06-15 trunk r237486. Backport from

[Bug target/81305] [avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.

2017-07-26 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81305 --- Comment #6 from Georg-Johann Lay --- Author: gjl Date: Wed Jul 26 14:22:31 2017 New Revision: 250576 URL: https://gcc.gnu.org/viewcvs?rev=250576=gcc=rev Log: gcc/ Backport from 2017-07-05 trunk r249995. PR target/81305

[Bug target/81407] [avr] Diagnose if a variable in progmem needs constructing.

2017-07-26 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81407 Georg-Johann Lay changed: What|Removed |Added Known to work||6.4.1, 7.1.1 --- Comment #5 from

[Bug target/81407] [avr] Diagnose if a variable in progmem needs constructing.

2017-07-26 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81407 --- Comment #4 from Georg-Johann Lay --- Author: gjl Date: Wed Jul 26 14:08:56 2017 New Revision: 250574 URL: https://gcc.gnu.org/viewcvs?rev=250574=gcc=rev Log: gcc/ Backport from 2017-07-12 trunk r250151. PR target/81407

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-07-26 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487 --- Comment #5 from Georg-Johann Lay --- Author: gjl Date: Wed Jul 26 13:59:54 2017 New Revision: 250573 URL: https://gcc.gnu.org/viewcvs?rev=250573=gcc=rev Log: lto-plugin/ Backport from 2017-07-26 gcc-7-branch r250562. PR

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-07-26 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487 Georg-Johann Lay changed: What|Removed |Added Target Milestone|--- |7.2

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-07-26 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487 --- Comment #4 from Georg-Johann Lay --- Author: gjl Date: Wed Jul 26 08:58:37 2017 New Revision: 250562 URL: https://gcc.gnu.org/viewcvs?rev=250562=gcc=rev Log: lto-plugin/ Backport from 2017-07-21 trunk r250428. PR lto/81487

[Bug target/81407] [avr] Diagnose if a variable in progmem needs constructing.

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81407 Georg-Johann Lay changed: What|Removed |Added Target Milestone|8.0 |7.2

[Bug target/81407] [avr] Diagnose if a variable in progmem needs constructing.

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81407 --- Comment #3 from Georg-Johann Lay --- Author: gjl Date: Tue Jul 25 14:32:30 2017 New Revision: 250522 URL: https://gcc.gnu.org/viewcvs?rev=250522=gcc=rev Log: gcc/ Backport from 2017-07-12 trunk r250151. PR target/81407

[Bug c++/81533] g++ pops up a constructor for objects that could be initialized at load-time

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81533 --- Comment #2 from Georg-Johann Lay --- (In reply to Richard Biener from comment #1) > I think there's a separate PR with the suggestion to try constexpr > evaluation of all constructors for optimization. Addresses are not constexpr because

[Bug tree-optimization/49857] Put constant switch-tables into flash

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49857 --- Comment #16 from Georg-Johann Lay --- (In reply to Georg-Johann Lay from comment #15) > pr49857-v2-all.diff: Proposed patch Problems so far: * ivopts may shred address-space which results in wrong code. This is is the reason for why the

[Bug tree-optimization/49857] Put constant switch-tables into flash

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49857 --- Comment #15 from Georg-Johann Lay --- Created attachment 41829 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41829=edit pr49857-v2-all.diff: Proposed patch PR 49857 * target.def

[Bug rtl-optimization/75964] insn combiner removes comparison after ABS

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75964 Georg-Johann Lay changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug rtl-optimization/75964] insn combiner removes comparison after ABS

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75964 --- Comment #9 from Georg-Johann Lay --- Author: gjl Date: Tue Jul 25 11:55:44 2017 New Revision: 250511 URL: https://gcc.gnu.org/viewcvs?rev=250511=gcc=rev Log: gcc/ Backport from 2017-05-06 trunk r247719. PR

[Bug rtl-optimization/75964] insn combiner removes comparison after ABS

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75964 Georg-Johann Lay changed: What|Removed |Added Target Milestone|--- |7.2

[Bug rtl-optimization/75964] insn combiner removes comparison after ABS

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75964 --- Comment #8 from Georg-Johann Lay --- Author: gjl Date: Tue Jul 25 11:39:23 2017 New Revision: 250509 URL: https://gcc.gnu.org/viewcvs?rev=250509=gcc=rev Log: gcc/ Backport from 2017-05-06 trunk r247719. PR

[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929 --- Comment #5 from Georg-Johann Lay --- (In reply to Richard Biener from comment #4) > Fixed? Not sure; the middle-end (rtlanal.c::insn_rtx_cost, seq_cost) are still bypassing PARALLELs with more than 1 SET, i.e. assume cost of 1.

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487 --- Comment #3 from Georg-Johann Lay --- Author: gjl Date: Tue Jul 25 09:59:44 2017 New Revision: 250499 URL: https://gcc.gnu.org/viewcvs?rev=250499=gcc=rev Log: gcc/ PR 81487 * hsa-brig.c (brig_init): Use xasprintf instead of

[Bug tree-optimization/81540] tree-switch-conversion leads to code bloat

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81540 --- Comment #4 from Georg-Johann Lay --- (In reply to Jakub Jelinek from comment #3) > Estimating the size for non-switch converted switches is going to be really > hard. The point is that with -fno-tree-switch-conversion there is no switch at

[Bug tree-optimization/81540] tree-switch-conversion leads to code bloat

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81540 Georg-Johann Lay changed: What|Removed |Added Target|avr |avr,x86_64 --- Comment #2 from

[Bug tree-optimization/81540] New: tree-switch-conversion leads to code bloat

2017-07-24 Thread gjl at gcc dot gnu.org
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Created attachment 41821 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41821=edit cswtch.c: C test case The following code gets blown by tree-switch-convers

[Bug c++/81533] New: g++ pops up a constructor for objects that could be initialized at load-time

2017-07-24 Thread gjl at gcc dot gnu.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Created attachment 41817 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41817=edit foo.cpp: C++ test case When compil

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-07-21 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487 --- Comment #2 from Georg-Johann Lay --- Author: gjl Date: Fri Jul 21 15:58:14 2017 New Revision: 250428 URL: https://gcc.gnu.org/viewcvs?rev=250428=gcc=rev Log: lto-plugin/ PR lto/81487 * lto-plugin.c (claim_file_handler): Use

[Bug c++/81147] [avr] C++ for -mmcu=atmega2560 doesn't do NRVO or RVO when class inherits from empty base

2017-07-20 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81147 --- Comment #7 from Georg-Johann Lay --- With your options (no -fverbose-asm for brevity), avr-gcc from trunk gives me _Z3abcv: push r28 ; 19 pushqi1/1 [length = 1] push r29 ; 20 pushqi1/1 [length

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-07-20 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487 --- Comment #1 from Georg-Johann Lay --- FYI, the build compiler identifies as $ i686-w64-mingw32-gcc -v Using built-in specs. COLLECT_GCC=i686-w64-mingw32-gcc

[Bug lto/81487] New: [mingw32] ld.exe: error: asprintf failed

2017-07-19 Thread gjl at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Compiling a trivial program fails: int main() { return 0; } $ avr-gcc simple.c -mmcu=atmega8 -v Using built-in specs. Reading specs

[Bug target/81473] [avr] build fails due to INT8_MIN and friends.

2017-07-18 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81473 Georg-Johann Lay changed: What|Removed |Added Priority|P3 |P4 Status|UNCONFIRMED

[Bug target/81473] [avr] build fails due to INT8_MIN and friends.

2017-07-18 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81473 --- Comment #2 from Georg-Johann Lay --- Author: gjl Date: Tue Jul 18 09:39:53 2017 New Revision: 250302 URL: https://gcc.gnu.org/viewcvs?rev=250302=gcc=rev Log: gcc/ Backport from 2017-07-18 trunk r250301. PR target/81473

[Bug target/81473] [avr] build fails due to INT8_MIN and friends.

2017-07-18 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81473 --- Comment #1 from Georg-Johann Lay --- Author: gjl Date: Tue Jul 18 09:36:21 2017 New Revision: 250301 URL: https://gcc.gnu.org/viewcvs?rev=250301=gcc=rev Log: gcc/ PR target/81473 * config/avr/avr.c (avr_optimize_casesi):

[Bug target/81473] [avr] build fails due to INT8_MIN and friends.

2017-07-18 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81473 Georg-Johann Lay changed: What|Removed |Added Keywords||build Target|

[Bug target/81473] New: [avr] build fails due to INT8_MIN and friends.

2017-07-18 Thread gjl at gcc dot gnu.org
: target Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Mentioned macros from stdint.h are not available in older C++ standards which leads to abort when the compiler is being built with such a compiler.

[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart

2017-07-17 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929 --- Comment #3 from Georg-Johann Lay --- Author: gjl Date: Mon Jul 17 09:09:42 2017 New Revision: 250260 URL: https://gcc.gnu.org/viewcvs?rev=250260=gcc=rev Log: Backport from 2017-07-17 trunk r250258. PR 80929 *

[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart

2017-07-17 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929 --- Comment #2 from Georg-Johann Lay --- Author: gjl Date: Mon Jul 17 09:06:39 2017 New Revision: 250259 URL: https://gcc.gnu.org/viewcvs?rev=250259=gcc=rev Log: Backport from 2017-07-17 trunk r250258. PR 80929 *

[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart

2017-07-17 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929 --- Comment #1 from Georg-Johann Lay --- Author: gjl Date: Mon Jul 17 08:56:06 2017 New Revision: 250258 URL: https://gcc.gnu.org/viewcvs?rev=250258=gcc=rev Log: PR 80929 * config/avr/avr.c (avr_mul_highpart_cost): New static

[Bug c++/81147] [avr] C++ for -mmcu=atmega2560 doesn't do NRVO or RVO when class inherits from empty base

2017-07-14 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81147 --- Comment #5 from Georg-Johann Lay --- What you mean by "NRVO" and "RVO" ?

<    1   2   3   4   5   6   7   8   9   10   >