* gimple assignment
@ 2010-01-15 14:49 charfi asma
2010-01-28 16:07 ` Diego Novillo
0 siblings, 1 reply; 3+ messages in thread
From: charfi asma @ 2010-01-15 14:49 UTC (permalink / raw)
To: gcc-help
Hello,
According to the gcc internals doc http://gcc.gnu.org/onlinedocs/gccint/Logical-Operators.html#Logical-Operators:
a=b+c will be transformed to GIMPLE_ASSIGN <PLUS_EXPR, VAR_DECL <a>, VAR_DECL <b>, VAR_DECL <c> >
but when I generate gimple using gcc 4.4.2, I do not find the same presentation:
a gimple_assign tuple is not used, I find instead gimple_modify_stmt used without plus_expr.
did the internals correpend to previous gcc version. if yes, is there a more recent gimple doc.
Thank you
Asma
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gimple assignment
2010-01-15 14:49 gimple assignment charfi asma
@ 2010-01-28 16:07 ` Diego Novillo
2010-01-29 9:01 ` Re : " charfi asma
0 siblings, 1 reply; 3+ messages in thread
From: Diego Novillo @ 2010-01-28 16:07 UTC (permalink / raw)
To: charfi asma; +Cc: gcc-help
On Fri, Jan 15, 2010 at 09:49, charfi asma <charfiasma@yahoo.fr> wrote:
> but when I generate gimple using gcc 4.4.2, I do not find the same presentation:
> a gimple_assign tuple is not used, I find instead gimple_modify_stmt used without plus_expr.
That doesn't sound right. Are you sure you are using 4.4.x?
$ gcc -c -fdump-tree-gimple-raw a.c
$ cat a.c.004t.gimple
foo (int i, int j)
gimple_bind <
int D.1594;
int x;
gimple_assign <plus_expr, x, i, j>
gimple_assign <var_decl, D.1594, x, NULL>
gimple_return <D.1594>
>
$ gcc --version
gcc ([...]) 4.4.0
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Diego.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re : gimple assignment
2010-01-28 16:07 ` Diego Novillo
@ 2010-01-29 9:01 ` charfi asma
0 siblings, 0 replies; 3+ messages in thread
From: charfi asma @ 2010-01-29 9:01 UTC (permalink / raw)
To: Diego Novillo; +Cc: gcc-help
Hello Diego,
You are right.
I am so sorry, I used to use gcc3.4.2 and not gcc 4.4.2
now, when I update my gcc I find the same presentation explained in http://gcc.gnu.org/onlinedocs/gccint/
thank you.
----- Message d'origine ----
De : Diego Novillo <dnovillo@google.com>
À : charfi asma <charfiasma@yahoo.fr>
Cc : gcc-help@gcc.gnu.org
Envoyé le : Jeu 28 Janvier 2010, 17 h 07 min 34 s
Objet : Re: gimple assignment
On Fri, Jan 15, 2010 at 09:49, charfi asma <charfiasma@yahoo.fr> wrote:
> but when I generate gimple using gcc 4.4.2, I do not find the same presentation:
> a gimple_assign tuple is not used, I find instead gimple_modify_stmt used without plus_expr.
That doesn't sound right. Are you sure you are using 4.4.x?
$ gcc -c -fdump-tree-gimple-raw a.c
$ cat a.c.004t.gimple
foo (int i, int j)
gimple_bind <
int D.1594;
int x;
gimple_assign <plus_expr, x, i, j>
gimple_assign <var_decl, D.1594, x, NULL>
gimple_return <D.1594>
>
$ gcc --version
gcc ([...]) 4.4.0
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Diego.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-29 9:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-15 14:49 gimple assignment charfi asma
2010-01-28 16:07 ` Diego Novillo
2010-01-29 9:01 ` Re : " charfi asma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).