This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Volatile MEMs in statement expressions and functions inlinedastrees
Jason Merrill wrote:
> >>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
> > So you really think there may be good uses for code such as:
>
> > int i;
> > ({ i; }) = 1;
>
> No, I think that since the tree inliner uses STMT_EXPRs for inline
> functions, and functions can return references, we need to support
> STMT_EXPRs with reference type. I don't really care what ({ i; }) means.
Oh, is *that* the problem this tread is about ...
Why couldn't the tree-inliner treat inline functions like the Fortran
frontend treats STATEMENT FUNCTIONs, i.e. by compiling them as (or
converting them to) inlined nested functions ?
Or is there a C-standardwise objection to doing just that ?
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)