This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hello,
In splay-tree.h the type of splay_tree_key and splay_tree_value is not
wide enough for x86_64-mingw target because the "long" type remains 32-bit
on this platform, but the pointer is 64-bit wide. By the reason, that
there are target where the "long"-type is bigger than a pointer, I suggest
the following patch. Because AFAIK x86_64-mingw is currently the only
target having this ABI, I used the target specific MACRO
_INTEGRAL_MAX_BITS for detection.
ChangeLog:
2007-03-30 Kai Tietz <kai.tietz@onevision.com>
* include/splay-tree.h: (longptr_t): New type definition with wide
enough for a long
and a pointer.
(splay_tree_key, splay_tree_value): Set base type to longptr_t.
Regards,
i.A. Kai Tietz
------------------------------------------------------------------------------------------
OneVision Software Entwicklungs GmbH & Co. KG
Dr.-Leo-Ritter-StraÃe 9 - 93049 Regensburg
Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 - www.OneVision.com
Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
Handelsregister: HRA 6744, Amtsgericht Regensburg
KomplementÃrin: OneVision Software Entwicklungs Verwaltungs GmbH
Dr.-Leo-Ritter-StraÃe 9 â 93049 Regensburg
Handelsregister: HRB 8932, Amtsgericht Regensburg - GeschÃftsfÃhrer:
Ulrike DÃhler, Manuela Kluger
Attachment:
s.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |