This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
In avr.c there is:
... #include "c-family/c-common.h" ...
That is the problem: avr.c should be language independent. Here you are trying to link code calling C-family functions in a non-C language (lto1 is just another front end for gcc, just like cc1/cc1plus/etc...).
You should use extra target files for language specific target code. Plenty examples in config/*/*-c.* ...
Ciao! Steven
Is is legitimate to use MEM_ADDR_SPACE in avr.c? Is is legitimate to use TYPE_ADDR_SPACE in avr.c? Must all this put into avr-c.c?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |