2009-12-05 13:21 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/src/rtl/gtos2/Makefile
  * harbour/config/os2/watcom.mk
    * disable -s in GTOS2 OpenWatcom builds using HB_CSTACK_CHECK variable.
      This is workaround for wrong code generated by OpenWatcom <= 1.8
      when -s switch is used for functions calling APIENTRY16 functions.
      Such code executed from non main thread causes GPF.
This commit is contained in:
Przemyslaw Czerpak
2009-12-05 12:21:39 +00:00
parent b3ba627781
commit 3c6be6883f
3 changed files with 13 additions and 2 deletions

View File

@@ -17,6 +17,14 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-05 13:21 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtos2/Makefile
* harbour/config/os2/watcom.mk
* disable -s in GTOS2 OpenWatcom builds using HB_CSTACK_CHECK variable.
This is workaround for wrong code generated by OpenWatcom <= 1.8
when -s switch is used for functions calling APIENTRY16 functions.
Such code executed from non main thread causes GPF.
2009-12-05 13:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* win-make.exe
* INSTALL

View File

@@ -36,10 +36,13 @@ ifneq ($(HB_BUILD_OPTIM),no)
# architecture flags
CFLAGS += -5r -fp5
ifneq ($(HB_CSTACK_CHECK),yes)
CFLAGS += -s
endif
# optimization flags
# don't enable -ol optimization in OpenWatcom 1.1 - gives buggy code
# -oxaht
CFLAGS += -onaehtr -s -ei -zp4 -zt0
CFLAGS += -onaehtr -ei -zp4 -zt0
#CFLAGS += -obl+m
ifeq ($(CC),wpp386)
CFLAGS += -oi+

View File

@@ -16,7 +16,7 @@ ifeq ($(HB_PLATFORM),os2)
# This is workaround for wrong code generated by OpenWatcom 1.8
# when -s switch is used for functions calling APIENTRY16 functions.
# Such code executed from non main thread causes GPF.
HB_CFLAGS += -sg
HB_CSTACK_CHECK := yes
endif
include $(TOP)$(ROOT)config/lib.mk
else