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]

tm_p.h


When porting to 4.8.x (own backend), I am getting an error when
compiling due to 'TARGET_CPU_CPP_BUILTINS' not defined when compiling
c-family/c-cppbuiltin.c. I am defining TARGET_CPU_CPP_BUILTINS and
related run-time macros in <machine>.h.

>From c-family/c-cppbuiltin.c I saw:

#include "tm_p.h" /* For TARGET_CPU_CPP_BUILTINS & friends.  */

But when checking tm_p.h:

#ifndef GCC_TM_P_H
#define GCC_TM_P_H
#ifdef IN_GCC
# include "config/<machine>/<machine>-protos.h"
# include "tm-preds.h"
#endif
#endif /* GCC_TM_P_H */

What's the proper way to do this? I see other backends (e.g. mips)
also defining this in <machine>.h.

Thanks,
Regards,
Hendrik Greving


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]