Migration of cross compiler
Thu Sep 7 09:36:00 GMT 2006
I am involved with the migration of a cross compiler
from gcc 3.2 to gcc 3.4.6
My target.h has the following macros
#define PROMOTE_PROTOTYPES 1 and
#define STRUCT_VALUE 0
These two macros are now a target hook in GCC 3.4.6.
namely PROMOTE_PROTOTYPES as TARGET_PROMOTE_PROTOTYPES
STRUCT_VALUE as TARGET_STRUCT_VALUE_RTX.
But almost all the backends in gcc 3.4.6 have
maintained as macros
Will it be a problem if i also follow that?
I am not sure what to do with this.If i go by what gcc
internal document says
is this the right way to do it?
#define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_true
#define TARGET_STRUCT_VALUE_RTX hook_rtx_tree_int_null
Can anyone suggest an option?
Thanks in advance.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Gcc-help