]> granicus.if.org Git - gc/commit
Prevent use of unsupported __builtin_return_address(1) in GC_DBG_EXTRAS
authorIvan Maidanski <ivmai@mail.ru>
Sat, 24 Aug 2013 16:32:11 +0000 (20:32 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 25 Aug 2013 18:42:35 +0000 (22:42 +0400)
commite432c9688374ffb31721caf8ffac6d28b1472365
treef43f3f5db4c3a30399f068bee9e79283379f1229
parent5f4f005c4adb2079bc36f36ebce519cf0e9bc4a8
Prevent use of unsupported __builtin_return_address(1) in GC_DBG_EXTRAS

* include/gc_config_macros.h (GC_CAN_SAVE_CALL_STACKS): Define also
for __amd64__ (synonym for __x86_64__).
* include/gc_config_macros.h (GC_RETURN_ADDR_PARENT): Define only for
x86 and x86_64 (which have frame-pointer register, for other targets
GCC might report "unsupported argument to __builtin_return_address"
warning).
include/gc_config_macros.h