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
Updating gcc
Re: Updating gcc
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
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn
Re: Updating gcc
..\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.
..\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.
-
- Posts: 5
- Joined: Sat May 17, 2008 6:11 am
Re: Updating gcc
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 403 times