This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
error found in get_ivts_expr() function.
- From: Uttam Pawar <uttamp at us dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Cc: uttamp at us dot ibm dot com
- Date: Fri, 20 Jan 2006 16:48:04 -0800
- Subject: error found in get_ivts_expr() function.
Hi All,
I found following code snippet in file, trunk/gcc/loop-unroll.c
1814 /* Locate in EXPR the expression corresponding to the location recorded
1815 in IVTS, and return a pointer to the RTX for this location. */
1816
1817 static rtx *
1818 get_ivts_expr (rtx expr, struct iv_to_split *ivts)
1819 {
1820 unsigned i;
1821 rtx *ret = &expr;
1822
1823 for (i = 0; i < ivts->n_loc; i++)
1824 ret = &XEXP (*ret, ivts->loc[i]);
1825
1826 return ret;
1827 }
at line 1821, what is the point of taking address of a stack variable? and returning it, if the
'condition' in for loop fails. Is this done intentionally or is it an error?
Thanks,
Uttam