This is the mail archive of the gcc-patches@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: Solaris pragma macro expansion


On Mon, 22 Nov 2004, Richard Henderson wrote:

> On Fri, Nov 19, 2004 at 08:06:09PM +0000, Joseph S. Myers wrote:
> > In particular, #pragma align may appear after the first
> > declaration...
> 
> What happens if it's instead after the definition?  It does seem
> like this should continue to fail.  If you don't check, for gcc 
> it will fail (or not) depending on -funit-at-a-time.

I don't think Sun have that precise a definition of what can be done with 
this pragma.  Although there must have been some specification behind the 
original change

2004-08-04  Daniel Jacobowitz  <dan@debian.org>

        * config/sol2-c.c (solaris_pragma_align): Allow #pragma align after
        the first declaration.

I'll leave that part out for now given that Sun's pragma documentation 
that I know of 
<http://docs.sun.com/source/817-5064/sun.specific.html#48658> says the 
pragma *is* ignored after declarations.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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