Re: [commit: ghc] master: Fix the OFFSET macro (53e9916)

Gabriel Dos Reis <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <CAAiZkiAoKeK0b9skuinmSWTnQCSZ07DaJ6vTpW5cof9EZ-=PHw@mail.gmail.com>
On Tue, Nov 13, 2012 at 1:41 PM, Ian Lynagh <[email protected]> wrote:
> Repository : ssh://darcs.haskell.org//srv/darcs/ghc
>
> On branch  : master
>
> http://hackage.haskell.org/trac/ghc/changeset/53e9916fb7908e79754f0f5c65008439bf53227e
>
>>---------------------------------------------------------------
>
> commit 53e9916fb7908e79754f0f5c65008439bf53227e
> Author: Ian Lynagh <[email protected]>
> Date:   Tue Nov 13 16:20:17 2012 +0000
>
>     Fix the OFFSET macro
>
>     When offsetof is defined, we use that. This avoids "variably
>     modified at file scope" warnings/errors with recent gccs.

Hi Ian,

Is there at all any C compiler used to build GHC that does not
define offsetof?  It is a standard C macro defined in <stddef.h>
that even freestanding C compilers have to provide.

-- Gaby
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.