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 Dec 2008 13:54:11 -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 #17 from stsp at users dot sourceforge dot net 2008-12-28 13:54 -------
> Which part of "...as I don't think people are trying to..." gives you the
> certainty that really "people don't"?
What gives me that certainty is the
fact that this happens only with -g3.
Do you think someone depended himself
on -g3 and is not compiling his programs
with -g[012], so that this gcc behaveour
is worth keeping?
> The real bug here, IMHO, is that it works at all for -g1 and -g2.
> The compiler should probably warn about top-level asm blocks without
> explicit section switches.
OK, that explains a bit, thanks!
It also works without -g at all,
so some people depended on that
for some reasons (dosemu breaks with -g3),
but I understand such a warning is
not possible to implement.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33932