[tree-ssa] tree-ssa vs. fold

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Sun Jun 8 14:47:00 GMT 2003


    Hum, perhaps.  However, it does seem like we ought be
    be able to do *something* in the extremely common case of
    a plain "int" variable.

No, it's the "plain 'int' variable" that is the source of the problem!

Consider:

void
sub1 (int n)
{
   int arr[n];

   n = 10;

     .... sizeof (arr) ...

You want the sizeof to use the value of N on entry, so you need the
SAVE_EXPR.



More information about the Gcc mailing list