This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Documentation problem with TEXT_SECTION_ASM_OP


On Tue, 23 Oct 2012, Paulo Matos wrote:

> Since this is most likely a problem with the docs, how can I achieve 
> something like this and have only a string literal as value or 
> TEXT_SECTION_ASM_OP?

At <http://gcc.gnu.org/wiki/Top-Level_Libgcc_Migration> I listed this 
macro, and lots of others, under "used by the compiler itself and libgcc 
(probably predefine macros if -fbuilding-libgcc in most cases, unless 
predefined macros considered more generally useful)".  I think that 
approach still makes sense for improving the host / target tm.h 
separation: use these tm.h macros directly only in the compiler, and make 
the compiler, if -fbuilding-libgcc, predefine a macro for use in GCC's own 
libraries.

So far only TRAMPOLINE_SIZE is handled like that; conversions of other 
macros are welcome.  The list on that wiki page may be a bit out of date, 
but should still be a good starting point for this project.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]