Bug 18338 - mmix-knuth-mmixware testsuite failure: gcc.dg/bitfld-4.c and g++.dg/abi/bitfield4.C
Summary: mmix-knuth-mmixware testsuite failure: gcc.dg/bitfld-4.c and g++.dg/abi/bitfi...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Hans-Peter Nilsson
URL:
Keywords: patch
: 18483 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-07 04:22 UTC by Hans-Peter Nilsson
Modified: 2005-11-02 03:09 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: mmix-knuth-mmixware
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-10-23 23:00:15


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Peter Nilsson 2004-11-07 04:22:44 UTC
With LAST_UPDATED: "Sat Nov  6 19:25:03 GMT 2004" I get:
FAIL: gcc.dg/bitfld-4.c execution test

With the message in the .log being:
sizeof short failed
__alignof__ short failed
sizeof signed short failed
__alignof__ signed short failed
sizeof unsigned short failed
__alignof__ unsigned short failed
sizeof int failed
__alignof__ int failed
sizeof signed int failed
__alignof__ signed int failed
sizeof unsigned int failed
__alignof__ unsigned int failed
sizeof long failed
__alignof__ long failed
sizeof signed long failed
__alignof__ signed long failed
sizeof unsigned long failed
__alignof__ unsigned long failed
sizeof long long failed
__alignof__ long long failed
sizeof signed long long failed
__alignof__ signed long long failed
sizeof unsigned long long failed
__alignof__ unsigned long long failed

It looks like this test has never passed (fails on 3.3 and 3.4 too).
Comment 1 Hans-Peter Nilsson 2004-11-09 09:49:03 UTC
Confirmed, separate system than original report, with "Tue Nov  9 00:36:20 UTC
2004" (no .log reconfirmation)
Comment 2 Andrew Pinski 2004-11-14 22:14:19 UTC
*** Bug 18483 has been marked as a duplicate of this bug. ***
Comment 3 Andrew Pinski 2004-11-14 22:15:00 UTC
g++.dg/abi/bitfield4.C is the same test except with the C++ front-end compiling it.
Comment 4 Hans-Peter Nilsson 2005-05-18 21:02:12 UTC
Habitual reconfirm.
Comment 5 Hans-Peter Nilsson 2005-10-23 23:00:15 UTC
These tests assume a certain structure layout, so they have to be gated.
Reconfirmed with LAST_UPDATED "Mon Oct 17 15:28:21 UTC 2005".
Patch coming up.
Comment 6 Hans-Peter Nilsson 2005-10-23 23:58:16 UTC
Removing wrong-code keyword.  Maybe have a wrong-test keyword? ;-)
Comment 7 Hans-Peter Nilsson 2005-10-23 23:59:21 UTC
Patch at <URL:http://gcc.gnu.org/ml/gcc-patches/2005-10/msg01414.html>.
Comment 8 Andrew Pinski 2005-10-24 00:10:30 UTC
(In reply to comment #6)
> Removing wrong-code keyword.  Maybe have a wrong-test keyword? ;-)

Just move it to the testsuite component :).
Comment 9 Hans-Peter Nilsson 2005-11-02 03:02:06 UTC
Subject: Bug 18338

Author: hp
Date: Wed Nov  2 03:02:00 2005
New Revision: 106377

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106377
Log:
	PR target/18338
	* gcc.dg/bitfld-4.c, g++.dg/abi/bitfield4.C: Gate on
	pcc_bitfield_type_matters || default_packed.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/abi/bitfield4.C
    trunk/gcc/testsuite/gcc.dg/bitfld-4.c

Comment 10 Hans-Peter Nilsson 2005-11-02 03:09:31 UTC
Test-case now corrected.