[Bug middle-end/71224] Looping over local copy of aggregate invokes undefined behavior -Waggressive-loop-optimizations

2016-05-22 Thread ibuclaw at gdcproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71224 --- Comment #4 from Iain Buclaw --- (In reply to Andrew Pinski from comment #3) > I think the warning is correct and here is why: > If we look at the final code which is produced on the tree level: > > _3 = pthis_2(D)->length; > _4 = _3 + 1;

[Bug middle-end/71230] New: [7 Regression] ICE : in zero_one_operation, at tree-ssa-reassoc.c:1230

2016-05-22 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71230 Bug ID: 71230 Summary: [7 Regression] ICE : in zero_one_operation, at tree-ssa-reassoc.c:1230 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal

[Bug target/70677] Suboptimal cond on AVR: unneeded stack frame

2016-05-22 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70677 --- Comment #2 from night_ghost at ykoctpa dot ru --- all code samples from https://github.com/night-ghost/minimosd-extra/tree/master/MinimOsd_Extra. When I try to isolate a piece of code with a bug in one file, it is compiled differently than in

[Bug target/70676] suboptimal code generation on AVR

2016-05-22 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70676 --- Comment #2 from night_ghost at ykoctpa dot ru --- *** testcase for call+ret: (all code from https://github.com/night-ghost/minimosd-extra/tree/master/MinimOsd_Extra), compile with -fno-optimize-sibling-calls #include class SPI { public:

[Bug target/70738] Add -mgeneral-regs-only option

2016-05-22 Thread tschwinge at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70738 Thomas Schwinge changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug fortran/66461] [4.9/5/6/7 Regression] ICE on missing end program in fixed source

2016-05-22 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66461 --- Comment #22 from Jerry DeLisle --- This patch, by itself, fixes the whole issue. Regression tested on x86-64. Mikael shook the old brain cells. diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c index f4dedd69..6a7a5b68 100644 ---

[Bug fortran/66461] [4.9/5/6/7 Regression] ICE on missing end program in fixed source

2016-05-22 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66461 --- Comment #21 from Jerry DeLisle --- (In reply to Mikael Morin from comment #20) > (In reply to Mikael Morin from comment #19) > > > > what I don't understand is that error itself, > > It comes from scanner.c's end_flag which is cleared on t

[Bug c++/71229] New: cinternal compiler error: Segmentation fault, when copying an array in a constexpr function

2016-05-22 Thread gcc at tnix dot eu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71229 Bug ID: 71229 Summary: cinternal compiler error: Segmentation fault, when copying an array in a constexpr function Product: gcc Version: 6.1.0 Status: UNCONFIRMED

[Bug fortran/66461] [4.9/5/6/7 Regression] ICE on missing end program in fixed source

2016-05-22 Thread mikael at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66461 --- Comment #20 from Mikael Morin --- (In reply to Mikael Morin from comment #19) > > what I don't understand is that error itself, It comes from scanner.c's end_flag which is cleared on the first match, but it is set at some point later, and

[Bug c/71228] New: Add a warning when a variable gets initialised with itself

2016-05-22 Thread gcc at linkmauve dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71228 Bug ID: 71228 Summary: Add a warning when a variable gets initialised with itself Product: gcc Version: 6.1.1 Status: UNCONFIRMED Severity: enhancement

[Bug c++/71227] New: template friend function cannot be resolved

2016-05-22 Thread ppwwyyxxc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71227 Bug ID: 71227 Summary: template friend function cannot be resolved Product: gcc Version: 6.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug middle-end/71224] Looping over local copy of aggregate invokes undefined behavior -Waggressive-loop-optimizations

2016-05-22 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71224 --- Comment #3 from Andrew Pinski --- I think the warning is correct and here is why: If we look at the final code which is produced on the tree level: _3 = pthis_2(D)->length; _4 = _3 + 1; if (_3 > _4) goto ; else goto ; If pth

[Bug c++/71226] New: ICE in fold_binary_loc, at fold-const.c:9252, from constexpr function

2016-05-22 Thread gccbug at kundor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71226 Bug ID: 71226 Summary: ICE in fold_binary_loc, at fold-const.c:9252, from constexpr function Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/66461] [4.9/5/6/7 Regression] ICE on missing end program in fixed source

2016-05-22 Thread mikael at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66461 Mikael Morin changed: What|Removed |Added CC||mikael at gcc dot gnu.org --- Comment #19

[Bug middle-end/71224] Looping over local copy of aggregate invokes undefined behavior -Waggressive-loop-optimizations

2016-05-22 Thread ibuclaw at gdcproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71224 --- Comment #2 from Iain Buclaw --- Created attachment 38541 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38541&action=edit Reduced test Attaching complete minimal test, as the mechanically reduced test perhaps removes a bit too much. N

[Bug target/70738] Add -mgeneral-regs-only option

2016-05-22 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70738 --- Comment #4 from uros at gcc dot gnu.org --- Author: uros Date: Sun May 22 17:20:10 2016 New Revision: 236570 URL: https://gcc.gnu.org/viewcvs?rev=236570&root=gcc&view=rev Log: Revert: gcc/ PR target/70738 * common/config/i38

[Bug c++/71225] New: [7 Regression] Overeager instantiation of members of non-template class nested in class template

2016-05-22 Thread Casey at Carter dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71225 Bug ID: 71225 Summary: [7 Regression] Overeager instantiation of members of non-template class nested in class template Product: gcc Version: 7.0 Status: UNCONFIRMED

[Bug bootstrap/66319] [6 Regression] gcov-tool.c:84:65: error: invalid conversion from 'int (*)(const c har*, const stat*, int, FTW*)' to 'int (*)(const char*, const stat*, int, FTW)'

2016-05-22 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66319 --- Comment #12 from dave.anglin at bell dot net --- On 2016-05-22, at 4:36 AM, internetos at outlook dot com wrote: > hI am porting GCC 6.1.0 to HP-UX 11.31 IA64, could anybody give me detailed > instruction on how to construct similar change at

[Bug target/71103] avr-gcc crashes with unrecognizable insn error

2016-05-22 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71103 --- Comment #3 from Georg-Johann Lay --- This change is at least incomplete: it does not handle CONST. To see this change the test case to returnValue.response = response + 1; Who is generating these SUBREGs? If it's in a push insn, we should

[Bug c++/68377] [c++17] "binary expression in operand of fold-expression" error when folding an expression

2016-05-22 Thread adrian.wielgosik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68377 Adrian Wielgosik changed: What|Removed |Added CC||adrian.wielgosik at gmail dot com --

[Bug middle-end/71224] Looping over local copy of aggregate invokes undefined behavior -Waggressive-loop-optimizations

2016-05-22 Thread ibuclaw at gdcproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71224 --- Comment #1 from Iain Buclaw --- Oh, and also happens if I move the pointer + length adjustment into the loop. --- void setlength(Array* pthis, size_t nlength) { Array aggr = {.length=pthis->length, .ptr=pthis->ptr}; for (size_t key

[Bug middle-end/71224] New: Looping over local copy of aggregate invokes undefined behavior -Waggressive-loop-optimizations

2016-05-22 Thread ibuclaw at gdcproject dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71224 Bug ID: 71224 Summary: Looping over local copy of aggregate invokes undefined behavior -Waggressive-loop-optimizations Product: gcc Version: 7.0 Status: UNCONFIRMED

[Bug target/67973] All the tests for -gstabs* fail on x86_64-apple-darwin14 with Xcode 7

2016-05-22 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67973 Dominique d'Humieres changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/67973] All the tests for -gstabs* fail on x86_64-apple-darwin14 with Xcode 7

2016-05-22 Thread dominiq at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67973 --- Comment #22 from dominiq at gcc dot gnu.org --- Author: dominiq Date: Sun May 22 08:53:32 2016 New Revision: 236565 URL: https://gcc.gnu.org/viewcvs?rev=236565&root=gcc&view=rev Log: 2016-05-22 Iain Sandoe Dominique d'Humieres

[Bug bootstrap/66319] [6 Regression] gcov-tool.c:84:65: error: invalid conversion from 'int (*)(const c har*, const stat*, int, FTW*)' to 'int (*)(const char*, const stat*, int, FTW)'

2016-05-22 Thread internetos at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66319 Han changed: What|Removed |Added CC||internetos at outlook dot com --- Comment #11 from

[Bug target/71056] [6 Regression] __builtin_bswap32 NEON instruction error with -O3

2016-05-22 Thread ktkachov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71056 ktkachov at gcc dot gnu.org changed: What|Removed |Added Summary|[6/7 Regression]|[6 Regression]

[Bug tree-optimization/40921] missed optimization: x + (-y * z * z) => x - y * z * z

2016-05-22 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40921 --- Comment #5 from kugan at gcc dot gnu.org --- Author: kugan Date: Sun May 22 08:13:13 2016 New Revision: 236564 URL: https://gcc.gnu.org/viewcvs?rev=236564&root=gcc&view=rev Log: gcc/testsuite/ChangeLog: 2016-05-22 Kugan Vivekanandarajah