[libobjc-noheaders] First patch to the branch
Andrew Pinski
pinskia@physics.uc.edu
Wed Nov 16 01:10:00 GMT 2005
First this branch is an experiment in removing the including
of gcc's target headers from libobjc. This first patch
provides a configure mechanism to include a cpu/os specific
header. We still have a backwards compatible directory which
later can be removed once all targets are moved over.
I will later tonight post a patch to svn.html to include the
branch. I will also add a wiki page about this. If I can
get some major of the targets converted done before 4.2's
stage 1 is over, I will ask for testing on the targets which
I converted and then I will post a patch and commit it into
the mainline and then work on converting the rest.
This first step just adds a config/backwards/ directory
with an abi.h header which just includes what was
needed for the old including GCC's headers. It also
has a #warning in it so that we know that we are using
it and that makes people more worry when their target
does not have a header to use. I will try to get
some docs on how to convert your target later tonight
after I convert x86_64-linux-gnu's header (only 64bit since
I am using debian which has a weird lib directory structure).
I might also make a new configure.host, just like what libstdc++
has so that a lot of the host configurations can be in one spot.
I don't know if I will put that on the mainline first and then
backport it or create on the branch first.
Also if someone else can think of a better name for the header,
instead of abi.h, please do say because I cannot think of anything
else.
Thanks,
Andrew Pinski
ChangeLog.noheader:
* configure.ac (target_config_directory): New variable and
substitute it.
* configure: Regenerate.
* Makefile.in (target_config_directory): Define.
(ALL_CFLAGS): Use target_config_directory.
* config/backwards/abi.h: New file.
* encoding: Don't include tm.h, tconfig.h, and coretypes.h
Include abi.h.
(MAX, MIN, ROUND, TREE_CODE, TREE_TYPE, RECORD_TYPE, UNION_TYPE,
QUAL_UNION_TYPE, ARRAY_TYPE, REAL_TYPE, VECTOR_TYPE, TYPE_FIELDS,
DECL_MODE, TYPE_MODE, DFmode, get_inner_array_type, BITS_PER_UNIT,
STRUCTURE_SIZE_BOUNDARY, ALTIVEC_VECTOR_MODE,
rs6000_special_round_type_align, target_flags): Don't define
(not_target_flags): Don't declare.
* sendmsg.c: Don't include tm.h.
Include abi.h.
(gen_rtx, gen_rtx_MEM, gen_rtx_REG, rtx): Don't define.
(INVISIBLE_STRUCT_RETURN): Don't define.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: first_patch.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20051116/cb5a510f/attachment.txt>
More information about the Gcc-patches
mailing list