ARM EABI wchar_t markings
Paul Brook
paul@codesourcery.com
Wed Jun 20 20:30:00 GMT 2007
The attached patch ensures that ARM EABI objects are marked with the correct
wchar_t size attributes. The problem is that WCHAR_TYPE_SIZE only specifies
the default size, and may be overridden with -fshort-wchar. It's necessary to
poke at the frontend types to find the correct size.
The C specific bits of the backend are initialized by REGISTER_TARGET_PRAGMAS.
This is a hack, but one already used by other targets.
Tested on arm-non-eabi.
I will apply to SVN head once we're out of lockdown.
Paul
2007-06-20 Paul Brook <paul@codesourcery.com>
gcc/
* config.gcc (arm*-*-*): Set c_target_objs and cxx_target_objs.
* config/arm/arm.c (arm_lang_output_object_attributes_hook): New.
(arm_file_start): Don't set Tag_ABI_PCS_wchar_t. Call
arm_lang_output_object_attributes_hook.
* config/arm/arm.h (arm_lang_output_object_attributes_hook): Declare.
(REGISTER_TARGET_PRAGMAS): Call arm_lang_object_attributes_init.
* config/arm/arm-protos.h (arm_lang_object_attributes_init): Add
prototype.
* config/arm/t-arm.c (arm.o): New rule.
* config/arm/arm-c.c: New file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.wchar_size_head
Type: text/x-diff
Size: 4872 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070620/321f2dbb/attachment.bin>
More information about the Gcc-patches
mailing list