[libobjc-noheaders] Second patch to the branch
Andrew Pinski
pinskia@physics.uc.edu
Wed Nov 16 15:21:00 GMT 2005
>
> This is a multi-part message in MIME format.
> --------------060903050907030404010409
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
>
> > Yes, of course. My reasoning was "sizeof (char) == 1, so a char is a
> > unit and BITS_PER_UNIT is the bits in a char".
>
> Based on this reasoning, here is another step. Tested on
> i686-pc-linux-gnu, C/ObjC. I also built the library forcing HAVE_ABI_H
> to false, and it compiles cleanly.
>
> Ok to apply?
>
> Paolo
>
> 2005-11-16 Paolo Bonzini <bonzini@gnu.org>
>
> * sendmsg.c: Don't include GCC headers nor abi.h.
> (__objc_block_forward): Assume INVISIBLE_STRUCT_RETURN.
> (__objc_get_forward_imp): Assume OBJC_MAX_STRUCT_BY_VALUE undefined.
> * configure.ac: If not necessary, don't use config/backwards/abi.h
> and don't define HAVE_ABI_H.
> * encoding.c: Include limits.h, define MAX/MIN/ROUND here. Use
> CHAR_BIT instead of BITS_PER_UNIT.
> [!HAVE_ABI_H]: Do not include abi.h
> (objc_layout_structure): Inline default definition of
> STRUCTURE_SIZE_BOUNDARY.
> (objc_layout_structure_next_member): Remove commented code.
> * config/backwards/abi.h: Fix comment formatting.
> (gen_rtx_MEM, gen_rtx_REG, rtx, INVISIBLE_STRUCT_RETURN,
> STRUCTURE_SIZE_BOUNDARY, MAX, MIN, ROUND): Remove.
> (BITS_PER_UNIT): Redefine as __CHAR_BIT__.
>
> * config.h.in: Regenerate.
> * configure: Regenerate.
OK. I had a patch to move MAX/MIN/ROUND back to encoding.c last
night but I never got around to apply/posting it as I went to sleep first.
-- Pinski
More information about the Gcc-patches
mailing list