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]

Re: PR 14776


Hi,

On Wed, 31 Mar 2004, Jan Hubicka wrote:

> + 	/* Preserve EQUIV/EQUAL notes in trivial cases.  */
> + 	case REG_EQUIV:
> + 	case REG_EQUAL:
> + 	  {
> + 	    rtx set = single_set (insn_last);
> + 	    rtx set2 = single_set (trial);
> + 	    if (set && set2 && rtx_equal_p (SET_DEST (set), SET_DEST (set2)))
> + 	      REG_NOTES (insn_last)
> + 		= gen_rtx_EXPR_LIST (REG_NOTE_KIND (note),
> + 				     XEXP (note, 0),
> + 				     REG_NOTES (insn_last));
> + 	  }
>   	default:
>   	  break;

Although it works in this case, this depends on fallthrough.  Please add 
an explicit 'break;' in case anyone later adds more cases.


Ciao,
Michael.


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