This is the mail archive of the gcc-patches@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: [fortran PATCH] Reduce NON_LVALUE_EXPR usage in array indices


roger@eyesopen.com wrote on Mon, 18 Dec 2006:
As shown in my post of just a few minutes ago, gfortran has a habit of
producing initial statement trees that look like:

(*a)[NON_LVALUE_EXPR <S.0> + -1] = 0;

whilst prefectly valid, the NON_LVALUE_EXPR tends to make debugging fortran
array dependencies slightly harder than they need to be.  The source of these
nodes is fold, which when simplifying 1*x and x+0 uses this annotation to
assist the C/C++ front-ends from thinking that the returned "x" is a
potential lvalue.

Sounds like the C/C++ frontends should be fixed instead :) As long as these kind of things don't proliferate, we can live with it, though.


- Tobi

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



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