[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SOS :malign-align double problem with stream
From: |
Andreas Jaeger |
Subject: |
Re: SOS :malign-align double problem with stream |
Date: |
Wed, 24 Oct 2001 08:14:28 +0200 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Academic Rigor, i686-linux-gnu) |
"Kolay, Pradipto (MED)" <address@hidden> writes:
> Hi,
> I am working on porting a program from SGI to linux.
> In doing so,I've had to compile it with malign-double flag to align
> structures etc to go around the problem of events sent across
There's an attribute aligned that can be used, use it instead.
> heterogenous enviroment(big endian/little endian) getting corrupt. This
> in turn needs to link to libraries which may or may not be compiled with
> this flag depending upon whether they are third party software.
> The problem is -
> a) Processes compiled with this flag are dumping core at any place where
> there is a C++ stream operation.(gcc-2.96).Thses work fine without the
> malign-double flag. Has anyone faced this problem ? If so, could you
> please inform as to how you got around it? I understand I may need to
> compile the compiler with the malign double flag. If someonne has dome
> that can you keep me informed as to how to go about doing that coz I'm
> kinda new to this.
> b) Is it OK to have a program with some files compiled with this flag
> and some without it ?
It's expected to have problems in those circumstances,
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj