Duplicated typedef trips my gcc over

Hi all, look: $ git grep "typedef struct LibDwSession_ " rts/Libdw.c:typedef struct LibDwSession_ LibDwSession; rts/Libdw.h:typedef struct LibDwSession_ LibDwSession; $ which gcc /usr/bin/gcc $ gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Any reason why we need the typedef in rts/Libdw.c ?? My gcc complains about it... Cheers, Gabor

I cannot build HEAD for the same reason. Same GCC version.
On 21 October 2015 at 13:08, Gabor Greif
Hi all,
look:
$ git grep "typedef struct LibDwSession_ " rts/Libdw.c:typedef struct LibDwSession_ LibDwSession; rts/Libdw.h:typedef struct LibDwSession_ LibDwSession;
$ which gcc /usr/bin/gcc
$ gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Any reason why we need the typedef in rts/Libdw.c ?? My gcc complains about it...
Cheers,
Gabor _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

I have just committed a tentative fix I am using for a while, and keep
watching the buildbots.
Cheers,
Gabor
On 10/26/15, Christiaan Baaij
I cannot build HEAD for the same reason. Same GCC version.
On 21 October 2015 at 13:08, Gabor Greif
wrote: Hi all,
look:
$ git grep "typedef struct LibDwSession_ " rts/Libdw.c:typedef struct LibDwSession_ LibDwSession; rts/Libdw.h:typedef struct LibDwSession_ LibDwSession;
$ which gcc /usr/bin/gcc
$ gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Any reason why we need the typedef in rts/Libdw.c ?? My gcc complains about it...
Cheers,
Gabor _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Gabor Greif
Hi all,
look:
$ git grep "typedef struct LibDwSession_ " rts/Libdw.c:typedef struct LibDwSession_ LibDwSession; rts/Libdw.h:typedef struct LibDwSession_ LibDwSession;
$ which gcc /usr/bin/gcc
$ gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Any reason why we need the typedef in rts/Libdw.c ?? My gcc complains about it...
Nope; your fix ought to be fine. Thanks! - Ben
participants (3)
-
Ben Gamari
-
Christiaan Baaij
-
Gabor Greif