This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
What is the right usage of SAVE_EXPR?
- From: Wolfgang Gellerich <gellerich at de dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 24 Apr 2007 17:30:59 +0200
- Subject: What is the right usage of SAVE_EXPR?
What is the policy concerning the usage of SAVE_EXPRs? Who is
responsible for inserting them? I thought the respective language
front end were responsible to enclose any expressions with side
effects this way, so that later parts of GCC know how to treat these
expressions right.
However, also some of the code translating tree nodes into rtxes like
some functions found in builtins.c worry about the re-evaluation of
arguments and insert plenty of SAVE_EXPRs. Why is that necessary?
With best regards,
Wolfgang Gellerich
---
Dr. Wolfgang Gellerich
IBM Deutschland Entwicklung GmbH
Schönaicher Strasse 220
71032 Böblingen, Germany
Tel. +49 / 7031 / 162598
gellerich@de.ibm.com
=======================
IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Johann Weihen
Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294