4f;
return v;
}
double fun3(void)
{
return 3.13;
}
typedef struct {double x;} Double;
Double fun4(void)
{
Double v;
v.x = 3.13;
return v;
}
Mateusz@Mateusz-i7 /c/temp
$ g++ -c -Wall -O2 -o t.o t.cpp
Mateusz@Mateusz-i7 /c/temp
$ objdump -dr t.o
t.o: file format pe-x86-6
During determining the intent of variable I run into problems with PHI nodes.
The problematical GIMPLE code looks:
# BLOCK 196
# PRED: 194 (false)
(...)
ndycD.8665_1099 = 1;
# BLOCK 197
# PRED: 196 (true) 207 (false)
# ndycD.8665_4 = PHI
(...)
# BLOC
Mateusz Grabowski wrote:
>
>
>
If a function calls another, the intent of variables should be passed to the
first one. But what if the callee is in the other compilation unit? Does
anyone have knowledge of using LTO mode?
>
>
At this moment I have many compilation units.
Richard Guenther-2 wrote:
>
>
> The latter.
>
>
But how to do it? I want to have all functions after SSA pass, but before
any optimizations. Maybe you could tell me how to enforce it (or even better
- a small example)?
Thanks in advance.
--
View this message in context:
http://old.nabble.
Thank you for all the answers. Now I have another problem.
When I reach a function call during statement iteration, I want to go to
this function's code.
if (is_gimple_call(stmt)) {
tree fndecl = gimple_call_fndecl(stmt); // This returns
function_decl ;-)