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

* [Bug target/32693] [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
  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 ` Sushil dot Kothawade at kpitcummins dot com
  2010-02-24 15:34 ` law at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Sushil dot Kothawade at kpitcummins dot com @ 2007-07-17  6:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from Sushil dot Kothawade at kpitcummins dot com  2007-07-17 06:10 -------
Created an attachment (id=13928)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13928&action=view)
patch to get rid of ICE...

Hi,

Investigation Details :

While debugging gcc, I found that the reason behind this behavior is
definition of flags HAVE_insv and HAVE_extzv in "insn-flags.h" file that
gets generated while building. define_expand "insv" and
define_expand "extzv" insns from "h8300.md" file are responsible for
these definitions.

If the above patch is applied i.e. if the above insns are modified
not to support h8sx target, much relaxed regression results are obtained.

The number of passes increase by 451 and failures decrease by 447 
for h8 family.

Also,the code does not end into ICE.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32693


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

* [Bug target/32693] [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2010-02-24 15:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from law at redhat dot com  2010-02-24 15:34 -------
Created an attachment (id=19948)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19948&action=view)
Fix for assertion failure


-- 

law at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |law at redhat dot com
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32693


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

* [Bug target/32693] [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2010-02-24 15:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from law at redhat dot com  2010-02-24 15:35 -------
Additional info here:

http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00950.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32693


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

* [Bug target/32693] [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
  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
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2010-02-24 15:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from law at redhat dot com  2010-02-24 15:36 -------
*** Bug 32739 has been marked as a duplicate of this bug. ***


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32693


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

* [Bug middle-end/32693] [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
  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
                   ` (4 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2010-03-03 22:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from law at redhat dot com  2010-03-03 22:10 -------
Fixed for gcc-4.5


-- 

law at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32693


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

* [Bug middle-end/32693] [H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693
  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
                   ` (3 preceding siblings ...)
  2010-02-24 15:36 ` law at redhat dot com
@ 2010-03-03 22:10 ` law at gcc dot gnu dot org
  2010-03-03 22:10 ` law at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: law at gcc dot gnu dot org @ 2010-03-03 22:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from law at gcc dot gnu dot org  2010-03-03 22:10 -------
Subject: Bug 32693

Author: law
Date: Wed Mar  3 22:10:17 2010
New Revision: 157207

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157207
Log:
        * PR middle-end/32693
        * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
        than gen_rtx_SUBREG.
        (extract_bit_field_1): Likewise.



Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/expmed.c


-- 


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).