Try switching from -O2 to -O1 with configure CFLAGS="-g -O1" and rebuild. Does that help?
Yes. That works.
Regardless of whether that gets you past the problem, please file a bug in launchpad against gcc-4.5. Ideally they'd want you to run with -save-temps and give them a copy of pen.i.
https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/704633 Here's the bug. I http://www.network-theory.co.uk/docs/gccintro/gccintro_36.html
Dan, I can't work the -save-temps option. All three give me "no input files." /wine-git$ gcc -save-temps /wine-git$ gcc -save-temps=cwd (or =obj) gcc: no input files