This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
tm_p.h
- From: Hendrik Greving <hendrik dot greving dot intel at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 16 Jul 2013 15:09:49 -0700
- Subject: 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