Page 1 of 1

Updating gcc

Posted: Thu May 31, 2012 2:16 pm
by ben71792
I'm working on a net burner project and I'm getting internal compiler error. Is there a way to update gcc to a more recent version?

Thanks

Re: Updating gcc

Posted: Thu May 31, 2012 2:26 pm
by Forrest
What error are you getting? Could you copy and paste in a build log?

Re: Updating gcc

Posted: Fri Jun 01, 2012 8:56 am
by ben71792
..\Serial.cpp
..\Serial.cpp: In function 'void Serial_ATC_worker(void*)':
..\Serial.cpp:164: warning: unused variable 'fd0'
..\Serial.cpp: In function 'void Serial_ACSES_worker(void*)':
..\Serial.cpp:258: internal compiler error: output_operand: invalid expression as operand
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Build error occurred, build is stopped
Time consumed: 8192 ms.

This happens when the optimization level is Optimize More (-O2). When its set to Optimize (-O1) it builds just fine.

Re: Updating gcc

Posted: Fri Jun 01, 2012 1:52 pm
by donericb50
This is a "feature" of gcc when using nested swtich statements such when implementing an ASM. Please see the attached pdf. Building your own table based ASM is one way of solving the problem. This is actually not a version based problem ( from my experience ) with gcc.