public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* build_modify_expr
@ 2008-01-22  1:47 polina
  0 siblings, 0 replies; only message in thread
From: polina @ 2008-01-22  1:47 UTC (permalink / raw)
  To: gcc-help


Hello,

I am doing a research project and for it I need a way to detect the parsing
of the following line of code:

String = (char *) malloc(1000); 

In c-parse.in I found a call to build_modify_expr which is defined in
c-typeck.c. There's little comments to go along with this function, but from
what I understand this function just builds any statement such that the
right hand side modifies the left hand side. Including just assigning the
RHS to LHS. 

But suppose I had the following statement:

char * String = (char *) malloc(1000);

Somehow I don't think build_modify_expr is called in this situation. From
what I understand start_init is called to initialize this cariable. 

So, I am a little confused about which cases are covered by
build_modify_expr. I would appreciate any information on build_modify_expr.
Thank you.


P.S. I am using GCC 2.7.2 and I do realize that this is a very old version,
however I don't have a choice, I must use GCC 2.7.2. 

-- 
View this message in context: http://www.nabble.com/build_modify_expr-tp14984929p14984929.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-20 18:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-22  1:47 build_modify_expr polina

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).