Opened 13 years ago

Closed 13 years ago

Last modified 46 years ago

#45 closed bug (Fixed)

empty structs

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: 5.0
Keywords: Cc:
Operating System: Architecture:
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

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) 

Change History (1)

comment:1 Changed 13 years ago by simonmar

  • Status changed from assigned to closed
Logged In: YES 
user_id=48280

I've removed these empty structs.
Note: See TracTickets for help on using tickets.