gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Compiler seg fault

#141556 - simonjhall - Wed Sep 26, 2007 10:07 pm

Word.
I'm getting a crash within the r20 compiler every time I compile a pretty simple-looking file. However, I never get it with -Os, only with -O2 and no -O at all, ie -O0 (and maybe with -O3 too). I can replicate this very easily.
Code:
vid_null.c: In function 'void VID_ShiftPalette(unsigned char*)':
vid_null.c:87: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://devkitpro.sourceforge.net/bugs.shtml> for instructions.
So, who'd like to know about this? WinterMute, is this something for you?
_________________
Big thanks to everyone who donated for Quake2

#141722 - strager - Fri Sep 28, 2007 9:08 pm

Try isolating which option changed by -O2 is causing the crash. First man gcc and copy/paste the list of enabled/disabled options by -O2, then start removing them until you don't get an error.

Also, can you simplify the source file and still replicate the bug?

#141738 - josath - Fri Sep 28, 2007 11:50 pm

it looks like the new url is: http://devkitpro.org/bugs.shtml