undefined reference to `gt_ggc_mx_machine_function(void*)' `gt_pch_nx_machine_function(void*)'
Segher Boessenkool
segher@kernel.crashing.org
Fri Mar 22 06:55:00 GMT 2019
On Thu, Mar 21, 2019 at 10:30:31PM -0500, William Tambe wrote:
> I am porting GCC to a new 32bits cpu.
>
> Any idea what could be the reason that I am getting undefined references to:
> gt_ggc_mx_machine_function(void*)
> gt_pch_nx_machine_function(void*)
>
> Which macro or target-macro should I define to avoid such error ?
You probably forgot to mark your machine_function as GTY. It should be
something like
struct GTY (()) machine_function {
int a;
int b;
};
(See other ports for examples).
Segher
More information about the Gcc-help
mailing list