[ ghc-Bugs-509359 ] empty structs
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 27 Jan 2002 16:53:57 -0800
Bugs item #509359, was opened at 2002-01-27 16:53
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=509359&group_id=8032
Category: Compiler
Group: 5.00
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: empty structs
Initial Comment:
This is informative rather than a bug.
I just downloaded the intel C compiler for linux and
tried to use it with ghc. I worked out some odd problems
with include files (I needed to compile the program in
the same directory as the include files - should they
be "#include <Stg.h>" rather than "#include "Stg.h"" ?
Anyway, having got through that I tried to compile again
and discovered that in the definitions with PROFILE
(or PAR) defined (I'm still trying to figure out the
way the compiler uses -U), that some of the structures
are empty - in Closures.h, for example, there is
typedef struct {
/* empty */
} StgProfHeader ;
If I'm reading the C standard correctly (I got a pdf
file from :
http://www.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.pdf.gz )
a "struct-declaration-list" needs to include at least
one "struct-declaration" (p 401)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=509359&group_id=8032