This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] tree-ssa vs. fold


    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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]