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: [PATCH] Handle read-only vars initialized to string literals in c_strlen


On Monday 13 September 2004 19:38, Richard Kenner wrote:
>     On Monday 13 September 2004 18:16, Jakub Jelinek wrote:
>     > 	* expr.c (string_constant): Handle also read-only variables
>     > 	initialized to string literals.
>
>     Please don't add this here, add it in the tree optimizers instead.
>
> Why?  It seems to me that the lower-level we do such a check, the better.

It is not a check, it is constant folding.  The higher-level we
expose constants, the better.

Gr.
Steven


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