Compiler issue...

Godmar Back gback at cs.utah.edu
Wed Jan 27 07:57:49 PST 1999


 I think Edouard's last patch removed the [0] arrays in favor of unions,
like so:
union {
	double x;
	whatever type y;
} data;
which achieve the same alignment.

	- Godmar

> 
> > Actually, I would suggest hiding the [0] arrays behind a macro called
> > ALIGNMENT(), as this would hide the GNU-ism and make it easier to fix
> > under other compilers (which might provide pragmas or somesuch for
> > defining the alignment of a structure).
> 
> Can you put a pragma inside a macro?  I didn't think you could put a
> #include inside a macro.
> 
> Jason
> 



More information about the kaffe mailing list