This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/33932] miscalculation of asm labels with -g3
- From: "stsp at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2007 19:25:14 -0000
- Subject: [Bug inline-asm/33932] miscalculation of asm labels with -g3
- References: <bug-33932-11104@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from stsp at users dot sourceforge dot net 2007-10-28 19:25 -------
Ohh... thanks for taking a look.
But is it documented anywhere that the
inline asm _must_ specify the section?
I thought the asm code, as well as the
C code, will utilize the .text, unless
the opposite is specified.
And now, since it is not the case only
with -g3, maybe it is a bug after all?
Is it really wise to have the default
section for asm to depend on -g switch?
dosemu seems to be miscompiled because
of this.
Also, even if the asm code is put into
another section, why it cannot be called
from there? (unless the section is NX,
of course)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33932