This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: extract_muldiv bug
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: jakub at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 7 Jul 03 16:02:27 EDT
- Subject: Re: extract_muldiv bug
The problem seems to be in extract_muldiv, but before fixing it I'd
like to know whether convert()/extract_muldiv()/fold() etc. functions
are allowed to destroy its arguments if returning non-NULL or not,
ie. if one does:
t1 = convert (sometype, t);
and t1 is != NULL, can t1 be thrown away and returned original t or not?
I'd say "yes". convert is not supposed to modify its operand under
any conditions. Trees are allowed to be arbitrarily shared.