------- Comment #7 from stsp at users dot sourceforge dot net 2008-01-11 22:02 ------- Thank you for the prompt reply!
I also think simply changing to the previous section is the good fix because the main problem, as I see it, is that the -g3 currently has the different behaveour than the other -gX options. The fact that asm() doesn't automatically change to .text is, as you say, not really a bug. But the erratic behaveour of -g3 certainly is. I guess the problem is that currently it is not officially documented what section is used by default, so the one may say any random section is OK. But IMHO it would be much better to have a particular section be a default, and have it documented. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33932