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: Volatile MEMs in statement expressions and functions inlined astrees


>>>>> "Paul" == Paul Schlie <schlie@mediaone.net> writes:

 > At risk of exposing my ignorance, after looking through the C syntax
 > definition, it's not even clear to me that "p;" is syntactically valid.

Yeah sure.  P; is just a statment.  Evaluate p, nothing else:

        load R1, @p     ;; load p into a register

Gcc will realize the value of p is not used and opt not to generate
code for it at all, at least for -On (n > 0).

Aldy


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