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: [PR64164] drop copyrename, integrate into expand


On Aug 17, 2015, Andreas Schwab <schwab@linux-m68k.org> wrote:

> Alexandre Oliva <aoliva@redhat.com> writes:
>> Would you be so kind as to give it a spin on a m68k native?  TIA,

> I tried it on ia64, and it falls flat on the floor.

Doh, I see a logic flaw in the patch I posted.  The hunk in
assign_parm_setup_stack that looked like this:

+	  if (from_expand)
+	    gcc_assert (GET_MODE (from_expand) == GET_MODE (data->entry_parm));
+	  else if (!parm_in_unassigned_mem_p (parm, from_expand))
+	    data->stack_parm = from_expand;

should look like this:

+	  if (from_expand)
+	    gcc_assert (GET_MODE (from_expand) == GET_MODE (data->entry_parm));
+	  if (from_expand && !parm_in_unassigned_mem_p (parm, from_expand))
+	    data->stack_parm = from_expand;

I'll give it some more testing before submitting a formal patch.

Meanwhile, thanks for confirming the m68k issues are fixed by that one;
this one shouldn't regress them; it would only fix the unintended crashes.

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer


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