www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/07/08:48:33

Xref: news2.mv.net comp.os.msdos.djgpp:6721
From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: __attribute__ probs
Date: Thu, 01 Aug 1996 20:13:24 GMT
Lines: 30
Message-ID: <838930293.23607.2@abwillms.demon.co.uk>
References: <6DuayK2cWSB AT xyz DOT prima DOT ruhr DOT de>
NNTP-Posting-Host: abwillms.demon.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Piotr DOT Kasprzak AT xyz DOT prima DOT ruhr DOT de (Piotr Kasprzak) wrote:

>Hi all !

>I've got serious problems with __attribute__((packed)) and  
>__attribute__((unused)). Let's start with the first one :) :

>I use the following struct to do file IO:

>#define PACKED __attribute__((packed))

>struct Test {
>        unsigned short int i1 PACKED;
>        unsigned long int i2 PACKED;
>};

It's a bug in gcc. You have to use the pragma for now...

Seems __attribute__ is generally duffed!

Regards,


ABW
--
I have become... Comfortably numb...

Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.hardcafe.co.uk/Alaric/">http://www.hardcafe.co.uk/Alaric/</A>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019