[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/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/70677] Suboptimal cond on AVR: unneeded stack frame

2016-05-24 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70677 --- Comment #4 from night_ghost at ykoctpa dot ru --- Created attachment 38550 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38550&action=edit testcase in attachment for AVR platform arduino.h is the most that neither is a standard :)

[Bug target/70676] suboptimal code generation on AVR

2016-05-24 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70676 --- Comment #4 from night_ghost at ykoctpa dot ru --- Created attachment 38551 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38551&action=edit testcase in attachment without -no-optimize-sibling-call reported bug can be f

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

2016-05-25 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70677 --- Comment #6 from night_ghost at ykoctpa dot ru --- Thank you again for such good key - it saves me 150 bytes. Moreover this key is not listed in GCC's possible optimisations for AVR. PS. Why it not included by default to -Os? What c

[Bug target/70676] New: suboptimal code generation on AVR

2016-04-15 Thread night_ghost at ykoctpa dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: night_ghost at ykoctpa dot ru Target Milestone: --- gcc -Os -fno-optimize-sibling-calls don't optimizes out tail recursion: return SPI::transfer(0xff); f54:8f ef ldi r24, 0xFF; 255 f56:0e 94 d9 2e call 0

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

2016-04-15 Thread night_ghost at ykoctpa dot ru
: target Assignee: unassigned at gcc dot gnu.org Reporter: night_ghost at ykoctpa dot ru Target Milestone: --- here a lot of commands to deal with stack frame for only one byte //(out of scope: struct Point { byte x; byte y; }; static boolean inline is_alt(point p

[Bug c/69049] New: [avr] strange/unnecessary commands in compiled code

2015-12-24 Thread night_ghost at ykoctpa dot ru
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: night_ghost at ykoctpa dot ru Target Milestone: --- small code void deepSleep(uint16_t milliseconds) { uint32_t microseconds = milliseconds * 1000L; uint16_t sleep_periods = (microseconds - watchdogTime_us

[Bug lto/69408] New: LD crashes with LTO

2016-01-21 Thread night_ghost at ykoctpa dot ru
: unassigned at gcc dot gnu.org Reporter: night_ghost at ykoctpa dot ru Target Milestone: --- trying to compile Arducopter 3.2.1 for AVR I got crash: %% ArduCopter.cpp %% ArduCopter.elf collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped compilation

[Bug lto/69408] LD crashes with LTO

2016-01-21 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69408 --- Comment #2 from night_ghost at ykoctpa dot ru --- there are reqirements for reporting *language* bugs but no LTO bugs in https://gcc.gnu.org/bugs.html I can ZIP build tree but I saw a list of all that i can send in the "we do not

[Bug lto/69408] LD crashes with LTO

2016-01-25 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69408 --- Comment #4 from night_ghost at ykoctpa dot ru --- I can attach script which GCC has been built, and ZIP of the project tree which cause crash.

[Bug lto/69408] LD crashes with LTO

2016-01-27 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69408 --- Comment #14 from night_ghost at ykoctpa dot ru --- Created attachment 37487 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37487&action=edit script to build GCC-avr and other tools use this script to build GCC

[Bug lto/69408] LD crashes with LTO

2016-01-27 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69408 --- Comment #15 from night_ghost at ykoctpa dot ru --- steps to repeat: Arduino recent version should be installed GCC created by the above script should be in PATH and in Arduino's /usr/share/arduino/hardware/tools/avr un-tar testcas

[Bug target/69049] [avr] strange/unnecessary commands in compiled code

2016-01-29 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69049 --- Comment #2 from night_ghost at ykoctpa dot ru --- 1) this is part of Arduino project so it should #include Arduino.h 2) GCC 5.3 don't has this bug so it can be closed

[Bug target/70676] suboptimal code generation on AVR

2017-07-03 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70676 night_ghost at ykoctpa dot ru changed: What|Removed |Added Status|RESOLVED|REOPENED

[Bug target/70676] suboptimal code generation on AVR

2016-12-05 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70676 --- Comment #6 from night_ghost at ykoctpa dot ru --- I reported not one case but suboptimal behavior while optimizing size - GCC optimization of sibling calls increases size of binary. There are a lot of such places in this code. And GCC never

[Bug c++/79241] New: error wen compiling -Os, OK with another optimizations

2017-01-26 Thread night_ghost at ykoctpa dot ru
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: night_ghost at ykoctpa dot ru Target Milestone: --- When I compile this (https://github.com/night-ghost/ardupilot) project with -Os I got errors == In file included from /mnt/disk_d/src/quad-copter/ardu

[Bug c++/79241] error wen compiling -Os, OK with another optimizations

2017-01-26 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79241 --- Comment #2 from night_ghost at ykoctpa dot ru --- 90mbytes of code? you must be joking! But when I try to do a testcase with only few files then all compiles OK. Moreover the classes which uses FUNCTOR_BIND_MEMBER without additional "

[Bug c++/79241] error wen compiling -Os, OK with another optimizations

2017-01-26 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79241 --- Comment #5 from night_ghost at ykoctpa dot ru --- I'll try to exclude maximum of unneeded code from testcase and then upload it.

[Bug c++/79241] error wen compiling -Os, OK with another optimizations

2017-02-20 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79241 --- Comment #7 from night_ghost at ykoctpa dot ru --- Created attachment 40779 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40779&action=edit testcase ii and console log. If I change from -Os to any other mode then it compiles OK

[Bug c++/79241] error wen compiling -Os, OK with another optimizations

2018-11-20 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79241 --- Comment #9 from night_ghost at ykoctpa dot ru --- Seems that I missed a bugfix patch. Where I can download fixed GCC 5.4 to test?