[Open64-devel] Compiler Error during WHIRL To C phase
Brought to you by:
ributzka,
suneeljain
From: Jairo B. T. <jb...@ac...> - 2004-09-08 13:56:24
|
Hi, I get the following error translating whirl IR to C using whirl2c: fargas:~> cat test.c struct s { int a; int b; int c; int d; int e; }; struct s f (void) { struct s ss; return ss; } fargas:~> sgicc -keep -fe test.c fargas:~> w2c test.B /homeB/cap/wg/open64/nthgen/lib/whirl2c translates test.B into test.w2c.h and test.w2c.c, based on source test.c ### Compiler Error in file test.c during WHIRL To C phase: ### PUinfo_Get_ReturnPreg: more than 2 return registers I have found that the number of return registers is computed in common/com/ia64/targ_sim.cxx:Get_Return_Info but I don't know why the limitation of two return registers. With a smaller struct (2 int's for example) everything goes ok. Why this error? Some ideas? Thanks, Jairo |