This is the mail archive of the
mailing list for the GCC project.
Re: Volatile MEMs in statement expressions and functions inlined astrees
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Paul Schlie <schlie at mediaone dot net>
- Cc: Linus Torvalds <torvalds at transmeta dot com>, Richard Henderson <rth at redhat dot com>, <gdr at codesourcery dot com>, Jason Merrill <jason at redhat dot com>, <gcc-patches at gcc dot gnu dot org>, Alexandre Oliva <aoliva at redhat dot com>
- Date: 18 Dec 2001 18:04:50 -0800
- Subject: Re: Volatile MEMs in statement expressions and functions inlined astrees
- References: <B8455818.3B5Bemail@example.com>
>>>>> "Paul" == Paul Schlie <firstname.lastname@example.org> 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).