[PSP] toolchain and gcc

Create a single thread for each patch to be added to the repository. Please try to stay on topic.
Post Reply
xantares
Posts: 16
Joined: Tue Dec 30, 2008 4:09 am

[PSP] toolchain and gcc

Post by xantares »

Hi,

The toolchain-sudo.sh installation defaults gcc 4.2 as compiler.
I think this behaviour is obsolete as the toolchain builds fine under ubuntu with it's default gcc 4.3, and even with fedora's gcc 4.4
Also, this version of gcc tends not to be packaged as newer versions of gcc get released.

To me, this should be removed :

Code: Select all

 ## Temporary workaround for gcc.
 export CC=gcc-4.2
xantares
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

There are bugs in the toolchain. When it is compiled with GCC 4.3 or newer, these bugs cause crashes at runtime.
xantares
Posts: 16
Joined: Tue Dec 30, 2008 4:09 am

Post by xantares »

Hi,

I see 'CC=gcc-4.2' was removed from the install script
so what'sup ? does compiling with gcc>4.2 fully works now ?
I didn't notice any runtime error with fedora and 4.4, although i only use very few, basic stuff, and a little sdl.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Yep, the bug should be fixed by http://forums.ps2dev.org/viewtopic.php?t=12528
and gcc > 4.2 should be OK. Let me know if you run into any problems.

Note that gcc > 4.2 was always OK buffer overflow checks aren't enabled (Ubuntu and OSX at least seem to enable them by default).
Post Reply