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]
Other format: [Raw text]

[Bug rtl-optimization/18628] [4.0/4.1 regression] miscompilation of switch statement in loop


------- Additional Comments From rth at gcc dot gnu dot org  2005-03-10 13:46 -------
Subject: Re: [PR middle-end/18628] do not fold to label load from tablejump to reg

On Wed, Mar 09, 2005 at 07:26:37AM -0300, Alexandre Oliva wrote:
> +		/* If it's not a REG, the REG_EQUAL note is inappropriate.  */
> +		if (REG_P (SET_DEST (set)))
> +		  set_unique_reg_note (insn, REG_EQUAL, label);

I don't think this is a good idea at all.  This is just
asking for reload to recreate a reference to the deleted label.


r~


-- 


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


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