From 791d16c3fee2fee54185d115a46f113a9b1ddfd5 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 15 Dec 2009 20:15:33 +0000 Subject: [PATCH] 2009-12-15 21:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbinit.h * use more portable asm() directive instead of __asm__() * explicitly restore .text segment for compilers which do not make it automatically Thanks to Tamas for the information. --- harbour/ChangeLog | 7 +++++++ harbour/include/hbinit.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 96174a2046..a8e7236ea7 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-12-15 21:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/include/hbinit.h + * use more portable asm() directive instead of __asm__() + * explicitly restore .text segment for compilers which do not make + it automatically + Thanks to Tamas for the information. + 2009-12-15 20:43 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbinit.h * eliminated from ASM code used in HB_INITSEG_STARTUP direct references diff --git a/harbour/include/hbinit.h b/harbour/include/hbinit.h index c62a9748ef..147a8fc92b 100644 --- a/harbour/include/hbinit.h +++ b/harbour/include/hbinit.h @@ -131,7 +131,7 @@ extern HB_EXPORT PHB_SYMB hb_vmProcessSymbols( PHB_SYMB pSymbols, USHORT uiSymbo #define HB_CALL_ON_STARTUP_END( func ) \ } \ HB_INIT_FUNCTION_REF( func ) \ - __asm__ ( ".section .init\n\tcall " HB_MACRO2STRING( func ) "\n\t" ); + asm ( ".section .init\n\tcall " HB_MACRO2STRING( func ) "\n\t.section .init\n\t" ); #define HB_INIT_FUNCTION_REF( func ) \