2 msgExtra semicolons in C++.
1 msgMIPS Cross compilation -ffreestanding option
2 msgPowerPC implicit pass-by-reference for structs?
22 msgTiny GCC: Pure, Unadulterated, Object Code
3 msgDebugging Macros
2 msgCortex-M3 Support
1 msgPassing (typedef_name *) args into (typedef_nam...
6 msgIs 'long unsigned long' compliant to standard?
5 msgunrecognized command line option '-c' and '-pipe'
3 msgg77 compiler
1 msgexpr_no_commas

build_modify_expr
\ polina (20 Jan 2008)

8 msgwarning: comparison with string literal results...
5 msgLibrary error message.
1 msgRe: merging with binutils + some bootstrap ques...
1 msgHow to Include kernel macros in a program and c...
1 msgI Love Thee
1 msgalignment/padding when mixing C struct and fort...
2 msgHow can I get help about modifying the gcc code?
2 msgCompatibility between g++ 4.1 and 4.2
Subject:build_modify_expr
Group:Gcc-help
From:polina
Date:20 Jan 2008



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.



© 2004-2008 readlist.com