Hi all!
There are problems compiling msp patched gcc-3.4-20040310
under Linux
1. variable "machine" is empty when make executes gcc/config.gcc
I temporary solve it by inserting line:
machine=$target
Why orginal variable "target" is rename to "machine" in mspgcc
version of gcc/config.gcc?
2. I must define variable
configure_default_options="{ { NULL, NULL} }" or like
before make or syntax error in gcc/configargs.h is generated
3. I must patch file gcc/config/msp430/msp430.h
------------------------------------------------------------------
*** msp430.h.org Wed Mar 10 12:04:52 2004
--- msp430.h Mon Mar 15 12:10:40 2004
***************
*** 288,294 ****
int regno; /* next available register number */
} CUMULATIVE_ARGS;
! #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT) \
init_cumulative_args (&(CUM), FNTYPE, LIBNAME, INDIRECT)
#define INIT_CUMULATIVE_INCOMING_ARGS(CUM, FNTYPE, LIBNAME) \
--- 288,294 ----
int regno; /* next available register number */
} CUMULATIVE_ARGS;
! #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT, N_NAMED_ARGS)
\
init_cumulative_args (&(CUM), FNTYPE, LIBNAME, INDIRECT)
#define INIT_CUMULATIVE_INCOMING_ARGS(CUM, FNTYPE, LIBNAME) \
----------------------------------------------------------------------
Albert