Well I tried the 2.1.1 branch. I got the source from the daily snapshots.

the -Cg switch generates an error when compiling. Without the switch is compiles OK, but behaves the same way as 2.0.4..

back to the drawing board then...

I'll post this on the Free Pascal community section.