Re: undefined reference to `gt_ggc_mx_machine_function(void*)' `gt_pch_nx_machine_function(void*)'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux