[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#93481: marked as done (pragma pack works on x86; ignored on arm)



Your message dated Wed, 18 Apr 2001 13:52:03 +0100
with message-id <E14prRD-0004m6-00@kings-cross.london.uk.eu.org>
and subject line 
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 10 Apr 2001 02:37:25 +0000
>From bgdarnel@tecumseh2.dyn.dhs.org Mon Apr 09 21:37:25 2001
Return-path: <bgdarnel@tecumseh2.dyn.dhs.org>
Received: from rdu26-240-185.nc.rr.com (tecumseh2.dyn.dhs.org) [66.26.240.185] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 14mo21-0000Sp-00; Mon, 09 Apr 2001 21:37:25 -0500
Received: from bgdarnel (mail@[172.16.1.19])
	by tecumseh2.dyn.dhs.org (8.9.3/8.8.7) with ESMTP id WAA11167;
	Mon, 9 Apr 2001 22:43:46 -0400
Received: from bgdarnel by bgdarnel with local (Exim 3.22 #1 (Debian))
	id 14mo1k-0000u0-00; Mon, 09 Apr 2001 22:37:08 -0400
From: Ben Darnell <bgdarnel@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: pragma pack works on x86; ignored on arm
X-Reportbug-Version: 1.14
X-Mailer: reportbug 1.14
Date: Mon, 09 Apr 2001 22:37:08 -0400
Message-Id: <E14mo1k-0000u0-00@bgdarnel>
Sender: Ben Darnell <bgdarnel@tecumseh2.dyn.dhs.org>
Delivered-To: submit@bugs.debian.org

Package: gcc
Version: 1:2.95.3-7
Severity: normal

Pragma pack works as expected on x86, but is ignored on arm (test case at the
end of this mail, verified on rameau.debian.org).  I understand that pragmas
are deprecated in favor of __attribute__, but this breaks quite a bit of
existing code (see, for example, bug #91911).  I think this should at
least be consistent across all platforms supported by Debian.

Thanks,
-Ben

#pragma pack(2)
struct foo {
	short a;
	long b;
};

int main() {
	/* prints 6 on x86, 8 on arm */
	printf("%d\n", sizeof(struct foo));
	return 0;
};

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux bgdarnel 2.4.1 #10 Fri Feb 23 14:57:57 EST 2001 i686

Versions of packages gcc depends on:
ii  cpp                          1:2.95.3-7  The GNU C preprocessor.           
ii  cpp-2.95                     1:2.95.3-10 The GNU C preprocessor.           
ii  gcc-2.95                     1:2.95.3-10 The GNU C compiler.               


---------------------------------------
Received: (at 93481-done) by bugs.debian.org; 18 Apr 2001 12:52:09 +0000
>From philb@gnu.org Wed Apr 18 07:52:09 2001
Return-path: <philb@gnu.org>
Received: from pc57-cam4.cable.ntl.com (kings-cross.london.uk.eu.org) [62.253.135.57] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 14prRJ-0007E7-00; Wed, 18 Apr 2001 07:52:09 -0500
Received: from localhost
	([::ffff:127.0.0.1] helo=kings-cross.london.uk.eu.org ident=pb)
	by kings-cross.london.uk.eu.org with esmtp (Exim 3.12 #1 (Debian))
	id 14prRD-0004m6-00
	for <93481-done@bugs.debian.org>; Wed, 18 Apr 2001 13:52:03 +0100
X-Mailer: exmh version 2.3.1 01/18/2001 (debian 2.3.1-1) with nmh-1.0.4+dev
To: 93481-done@bugs.debian.org
Subject: 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 18 Apr 2001 13:52:03 +0100
From: Philip Blundell <philb@gnu.org>
Message-Id: <E14prRD-0004m6-00@kings-cross.london.uk.eu.org>
Delivered-To: 93481-done@bugs.debian.org

This isn't a bug in GCC.




Reply to: