This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32693] New: [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
- From: "Sushil dot Kothawade at kpitcummins dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2007 12:13:53 -0000
- Subject: [Bug c/32693] New: [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
Compiling following testcase for "h8sx" target with optimization (-O1
onwards), gives ICE (internal compiler error) . The testcase works fine
for other H8 targets.
// Start Of Testcase
=======================================================================
#include <stdlib.h>
typedef union
{
unsigned long LONG;
struct
{
unsigned long Year : 14,
Month : 18;
} Bit;
} test;
typedef struct
{
unsigned int year ;
} Date;
unsigned int foo(Date *ptr_Date)
{
Date obj_Date;
test obj_test;
obj_test.LONG = 2000;
obj_Date.year = (unsigned int)obj_test.Bit.Year;
if(ptr_Date!=NULL) *ptr_Date=obj_Date;
return(0);
}
=======================================================================
// End Of Testcase
--
Summary: [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Sushil dot Kothawade at kpitcummins dot com
GCC build triplet: i686-pc-linux
GCC host triplet: i686-pc-linux
GCC target triplet: h8300-unknown-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32693