This is the mail archive of the gcc-bugs@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]

rtx_equal_for_memref_p


Hi,
  I just ran into

Internal compiler error in rtx_equal_for_memref_p, at alias.c:1121

with 3.0.x CVS on code that had a non-volatile asm in an inline function
returning a structure pointer.  After fixing the problem, noticed that
mainline already has

2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>

	* alias.c (rtx_equal_for_memref_p): Allow strings as types in
	operands.

which is:

	  /* This can happen for asm operands.  */
	case 's':
	  if (strcmp (XSTR (x, i), XSTR (y, i)))
	    return 0;
	  break;

Can this go over to the branch, please?  I note that it's somewhat
questionable to assume anything much about what an asm returns, but
this should do the right thing for most cases.

Alan


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