Erick my friend,

That's exactly why I'm such a big fan of creating things
anew each time I mess with them.  😉

Later,

Gary

________________________________
From: Erick Ochoa <eoc...@gcc.gnu.org>
Sent: Tuesday, March 8, 2022 7:29 AM
To: Martin Jambor <mjam...@suse.cz>
Cc: gcc@gcc.gnu.org <gcc@gcc.gnu.org>
Subject: Re: Question on updating function body on specialized functions

Hi Martin!

Thanks for replying, turns out that while I was trying to reply to you I
was able to get the answer. Turns out there is indeed one tree node which
is shared across the two functions. And that is

TREE_OPERAND (MEM_REF, 1).

When I was assigning to

TREE_TYPE ( TREE_OPERAND (MEM_REF, 1) ) in one function, I was modifying
the other. The solution was to create a new tree and assign it directly to
TREE_OPERAND (MEM_REF, 1) in both functions.

Thanks!

Reply via email to