This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

i386 fix


Hi,
on the cfg-branch I get abort while compiling memcpy-bi test, because the strcmp
pattern do have (USE flags). Combine combines instructions and then attempts
to split them again and call SELECT_CC_MODE with code USE, that is not expected
by the i386 backend and I get failure.

I've installed following fix to the branch, OK for mainline?

Sat Nov 17 21:06:14 CET 2001  Jan Hubicka  <jh@suse.cz>
	* i386.c (ix86_cc_mode): Accept USE.

*** config/i386/i386.c.old	Sat Nov 17 21:46:41 2001
--- config/i386/i386.c	Sat Nov 17 21:48:48 2001
*************** ix86_cc_mode (code, op0, op1)
*** 7099,7104 ****
--- 7099,7108 ----
  	return CCNOmode;
        else
  	return CCGCmode;
+       /* strcmp pattern do (use flags) and combine may ask us for proper
+          mode.  */
+     case USE:
+       return CCmode;
      default:
        abort ();
      }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]