public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/32693]  New: [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
@ 2007-07-09 12:14 Sushil dot Kothawade at kpitcummins dot com
  2007-07-17  6:10 ` [Bug target/32693] " Sushil dot Kothawade at kpitcummins dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Sushil dot Kothawade at kpitcummins dot com @ 2007-07-09 12:14 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-03 22:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-09 12:14 [Bug c/32693] New: [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693 Sushil dot Kothawade at kpitcummins dot com
2007-07-17  6:10 ` [Bug target/32693] " Sushil dot Kothawade at kpitcummins dot com
2010-02-24 15:34 ` law at redhat dot com
2010-02-24 15:35 ` law at redhat dot com
2010-02-24 15:36 ` law at redhat dot com
2010-03-03 22:10 ` [Bug middle-end/32693] " law at gcc dot gnu dot org
2010-03-03 22:10 ` law at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).