User account creation filtered due to spam.

Bug 36284

Summary: gcc.dg-struct-layout fails AVR target - multiple reasons
Product: gcc Reporter: Andy Hutchinson <hutchinsonandy>
Component: testsuiteAssignee: Not yet assigned to anyone <unassigned>
Severity: normal CC: eric.weddington, gcc-bugs
Priority: P3    
Version: 4.4.0   
Target Milestone: ---   
Host: i686-pc-linux-gnu Target: avr-unknown-none
Build: Known to work:
Known to fail: Last reconfirmed:
Attachments: Extract from gcc.log

Description Andy Hutchinson 2008-05-20 22:39:11 UTC
gcc/testsuite/gcc/gcc.dg-struct-layout-1 fails multiple times for AVR target due to non-portable testcase.

This test has 28 generated variants, all fail.
Problems include:

1)Assumes int are 32 bit

gcc/gcc.dg-struct-layout-1//t001_test.h:119: error: width of 'a'

2) Assumes availability of DF mode
gcc.dg/compat/vector-defs.h:9: error: unable to emulate 'DF'

3) Some undefined problem - maybe size >32767?
short_enums30131.c:3: error: size of array 's' is negative

I will post snippet of log file to aid correction.
Comment 1 Andy Hutchinson 2008-05-20 22:41:52 UTC
Created attachment 15658 [details]
Extract from gcc.log

Extract from gcc.log showing failure details. For economy, not all 28 tests are shown.
Comment 2 Andy Hutchinson 2008-06-18 21:54:04 UTC
Subject: Bug 36284

Author: hutchinsonandy
Date: Wed Jun 18 21:53:20 2008
New Revision: 136920

PR testsuite/36284
* gcc.dg/compat/struct-layout-1_generate.c (switchfiles): Require int32plus for generated main files.


Comment 3 Andy Hutchinson 2008-06-19 02:16:08 UTC
Testcase fixed for 4.4