This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to fix i960 build
- To: gcc-patches at gcc dot gnu dot org, john at feith dot com
- Subject: Re: Patch to fix i960 build
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Wed, 14 Mar 2001 15:20:23 -0800
Wed Mar 14 00:03:46 EST 2001 John Wehle (john@feith.com)
* i960.c (c_lex_func): New variable.
(i960_pr_align, i960_pr_noalign): Use it.
(i960_init_pragma): New function.
* i960.h (REGISTER_TARGET_PRAGMAS): Call it.
* i960-protos.h (c4x_init_pragma): New prototype.
This is OK.
While looking into this, I noticed that the v850 port implements a second
way of solving this problem. It puts the pragma functions into a separate
file, which is then only linked into the C and C++ compilers via config.gcc
variables c_target_objs and cxx_target_objs.
Jim