------- Comment #22 from mark at codesourcery dot com  2008-12-29 23:48 -------
Subject: Re:  miscalculation of asm labels with -g3

stsp at users dot sourceforge dot net wrote:

> Can this possibly be solved by emitting
> a warning if the asm in global scope is
> used with -ffunction-sections?

I think the generalization of Steven's point is that we can't really
know what section the user's assembly code should go in: text, data, or
something else, and therefore we'd better depend on the user to tell us.
 I still think it would be an OK idea to try to reduce the chances of
something bad happening -- and the inconsistency between -g levels -- by
popping back from the debug section, but the fundamental point is that
if the user wants full robustness they need to say what section in which
to put the assembly code.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33932

Reply via email to