public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/8396: [sparc] optimizer ICE
@ 2002-12-20  6:49 ehrhardt
  0 siblings, 0 replies; only message in thread
From: ehrhardt @ 2002-12-20  6:49 UTC (permalink / raw)
  To: ehrhardt, gcc-bugs, gcc-prs, nobody, papadopo

Old Synopsis: optimizer ICE on SPARC
New Synopsis: [sparc] optimizer ICE

State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Fri Dec 20 06:49:25 2002
State-Changed-Why:
    Confirmed with 3.2 and 3.4, it is a regression from 2.95.
    An even simpler testcase is this:
    
    ---------------------------- cut ---------------------------
    struct Foo {
    	static void bar(const short xs, const short xe) {
    		if (xe && (xs < xe ))
    			;
    	}
    };
     
    int main()
    {   
    	short xe;
    	Foo::bar(0, xe);
    }
    ---------------------------- cut ---------------------------
    
    It ICEs in explow.c:731 in this function because GET_MODE(x) == HImode:
    
    rtx
    copy_to_mode_reg (mode, x)
         enum machine_mode mode;
         rtx x;
    { 
      rtx temp = gen_reg_rtx (mode);
    
      /* If not an operand, must be an address with PLUS and MULT so
         do the computation.  */
      if (! general_operand (x, VOIDmode))
        x = force_operand (x, temp);
    
      if (GET_MODE (x) != mode && GET_MODE (x) != VOIDmode)
        abort ();
      if (x != temp)
        emit_move_insn (temp, x);
      return temp;
    }
    
         regards   Christian

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8396


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-20 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-20  6:49 optimization/8396: [sparc] optimizer ICE ehrhardt

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