Updating gcc

Topics for the Eclipse Environment
Post Reply
ben71792
Posts: 2
Joined: Thu May 31, 2012 2:12 pm

Updating gcc

Post 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
User avatar
Forrest
Posts: 285
Joined: Wed Apr 23, 2008 10:05 am

Re: Updating gcc

Post by Forrest »

What error are you getting? Could you copy and paste in a build log?
Forrest Stanley
Project Engineer
NetBurner, Inc

NetBurner Learn Articles: http://www.netburner.com/learn
ben71792
Posts: 2
Joined: Thu May 31, 2012 2:12 pm

Re: Updating gcc

Post 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.
donericb50
Posts: 5
Joined: Sat May 17, 2008 6:11 am

Re: Updating gcc

Post 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.
Attachments
gcc switch-complexity.pdf
(74.34 KiB) Downloaded 371 times
Post Reply