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?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70676
night_ghost at ykoctpa dot ru changed:
What|Removed |Added
Status|RESOLVED|REOPENED
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
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.
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 "
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
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
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
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
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 :)
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
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
: 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
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
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
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
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
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.
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
: 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
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
21 matches
Mail list logo