[ ghc-Bugs-509359 ] empty structs

noreply@sourceforge.net noreply@sourceforge.net
Tue, 29 Jan 2002 08:59:45 -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: Closed
>Resolution: Fixed
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) 


----------------------------------------------------------------------

>Comment By: Simon Marlow (simonmar)
Date: 2002-01-29 08:59

Message:
Logged In: YES 
user_id=48280

I've removed these empty structs.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=509359&group_id=8032