Browse Source

* -Ur added

peter 24 years ago
parent
commit
1d7e2bb6cb

+ 8 - 1
rtl/beos/Makefile

@@ -1,5 +1,5 @@
 #
-# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/06]
+# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/10]
 #
 default: all
 override PATH:=$(subst \,/,$(PATH))
@@ -125,6 +125,13 @@ INC=$(RTL)/inc
 PROCINC=$(RTL)/$(CPU_TARGET)
 UNIXINC=$(RTL)/unix
 UNITPREFIX=rtl
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph
 override TARGET_UNITS+=system objpas strings beos dos sysutils typinfo math varutils cpu mmx getopts heaptrc lineinfo

+ 11 - 0
rtl/beos/Makefile.fpc

@@ -38,6 +38,17 @@ UNIXINC=$(RTL)/unix
 
 UNITPREFIX=rtl
 
+# Use new feature from 1.0.5 version
+# that generates release PPU files
+# which will not be recompiled
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
+
 # Paths
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph

+ 11 - 1
rtl/freebsd/Makefile.fpc

@@ -25,7 +25,6 @@ fpcpackage=y
 [default]
 fpcdir=../..
 target=freebsd
-cpu=i386
 
 [compiler]
 includedir=$(INC) $(PROCINC) $(UNIXINC)
@@ -60,6 +59,17 @@ override FPCOPT+=-dUNIX
 PRT0=prt0_10
 endif
 
+# Use new feature from 1.0.5 version
+# that generates release PPU files
+# which will not be recompiled
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
+
 # Paths
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph

+ 8 - 1
rtl/go32v1/Makefile

@@ -1,5 +1,5 @@
 #
-# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/06]
+# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/10]
 #
 default: all
 override PATH:=$(subst \,/,$(PATH))
@@ -123,6 +123,13 @@ override PACKAGE_NAME=rtl
 RTL=..
 INC=../inc
 PROCINC=../$(CPU_TARGET)
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph
 SYSTEMUNIT=system

+ 11 - 0
rtl/go32v1/Makefile.fpc

@@ -36,6 +36,17 @@ RTL=..
 INC=../inc
 PROCINC=../$(CPU_TARGET)
 
+# Use new feature from 1.0.5 version
+# that generates release PPU files
+# which will not be recompiled
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
+
 # Paths
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph

+ 8 - 1
rtl/go32v2/Makefile

@@ -1,5 +1,5 @@
 #
-# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/06]
+# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/10]
 #
 default: all
 override PATH:=$(subst \,/,$(PATH))
@@ -124,6 +124,13 @@ RTL=..
 INC=../inc
 PROCINC=../$(CPU_TARGET)
 UNITPREFIX=rtl
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph
 ifdef EXCEPTIONS_IN_SYSTEM

+ 11 - 0
rtl/go32v2/Makefile.fpc

@@ -40,6 +40,17 @@ PROCINC=../$(CPU_TARGET)
 
 UNITPREFIX=rtl
 
+# Use new feature from 1.0.5 version
+# that generates release PPU files
+# which will not be recompiled
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
+
 # Paths
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph

+ 9 - 3
rtl/go32v2/dpmiexcp.pp

@@ -1032,7 +1032,10 @@ begin
   { if a subfunction calls runerror !!      }
   exceptions_on:=not exceptions_on;
   v2prt0_exceptions_on:=exceptions_on;
-  for i:=0 to EXCEPTIONCOUNT-1 do
+  { Exceptions 18 and 19 settings generates a bug in
+    the DJGPP debug code PM }
+
+  for i:=0 to 17{EXCEPTIONCOUNT-1} do
    begin
      if get_pm_exception_handler(i,_except) then
       begin
@@ -1288,7 +1291,7 @@ begin
   { the first 18 exceptions start at offset +8 since exception
     #18 and #19 had to be put in front of the table. }
   _except.offset:=@djgpp_exception_table + 8;
-  for i:=0 to ExceptionCount-3 do
+  for i:=0 to 17 do
    begin
      except_ori[i] := _except;    { New value to set }
      inc(_except.offset,4);       { This is the size of push n, jmp }
@@ -1480,7 +1483,10 @@ end;
 {$endif IN_SYSTEM}
 {
   $Log$
-  Revision 1.5  2001-06-13 18:27:14  peter
+  Revision 1.6  2001-06-18 20:36:29  peter
+    * -Ur added
+
+  Revision 1.5  2001/06/13 18:27:14  peter
     * missing exceptions for restoring (merged)
 
   Revision 1.4  2000/10/05 21:56:45  pierre

+ 8 - 2
rtl/linux/Makefile

@@ -1,5 +1,5 @@
 #
-# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/06]
+# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/10]
 #
 default: all
 override PATH:=$(subst \,/,$(PATH))
@@ -58,7 +58,6 @@ else
 BASEDIR=.
 endif
 override OS_TARGET=linux
-override CPU_TARGET=i386
 ifndef FPC
 ifdef PP
 FPC=$(PP)
@@ -135,6 +134,13 @@ LINUXUNIT=linux
 PRT0=prt0_10
 override FPCOPT+=-dUNIX
 endif
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph
 ifndef USELIBGGI

+ 11 - 1
rtl/linux/Makefile.fpc

@@ -28,7 +28,6 @@ fpcpackage=y
 [default]
 fpcdir=../..
 target=linux
-cpu=i386
 
 [compiler]
 includedir=$(INC) $(PROCINC) $(UNIXINC)
@@ -64,6 +63,17 @@ PRT0=prt0_10
 override FPCOPT+=-dUNIX
 endif
 
+# Use new feature from 1.0.5 version
+# that generates release PPU files
+# which will not be recompiled
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
+
 # Paths
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph

+ 8 - 1
rtl/os2/Makefile

@@ -1,5 +1,5 @@
 #
-# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/06]
+# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/10]
 #
 default: all
 override PATH:=$(subst \,/,$(PATH))
@@ -129,6 +129,13 @@ SYSTEMUNIT=system
 else
 SYSTEMUNIT=sysos2
 endif
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph
 override TARGET_UNITS+=$(SYSTEMUNIT) objpas strings ports os2def doscalls moncalls kbdcalls moucalls viocalls pmbitmap pmwin pmgpi dive dos crt objects printer sysutils math typinfo varutils ucomplex cpu mmx getopts heaptrc lineinfo dynlibs video mouse keyboard

+ 11 - 0
rtl/os2/Makefile.fpc

@@ -46,6 +46,17 @@ else
 SYSTEMUNIT=sysos2
 endif
 
+# Use new feature from 1.0.5 version
+# that generates release PPU files
+# which will not be recompiled
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
+
 # Paths
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph

+ 8 - 2
rtl/win32/Makefile

@@ -1,5 +1,5 @@
 #
-# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/06]
+# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/10]
 #
 default: all
 override PATH:=$(subst \,/,$(PATH))
@@ -58,7 +58,6 @@ else
 BASEDIR=.
 endif
 override OS_TARGET=win32
-override CPU_TARGET=i386
 ifndef FPC
 ifdef PP
 FPC=$(PP)
@@ -132,6 +131,13 @@ else
 SYSTEMUNIT=syswin32
 PRT0=wprt0_10
 endif
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph
 include $(WININC)/makefile.inc

+ 11 - 1
rtl/win32/Makefile.fpc

@@ -25,7 +25,6 @@ fpcpackage=y
 [default]
 fpcdir=../..
 target=win32
-cpu=i386
 
 [compiler]
 includedir=$(INC) $(PROCINC)
@@ -49,6 +48,17 @@ SYSTEMUNIT=syswin32
 PRT0=wprt0_10
 endif
 
+# Use new feature from 1.0.5 version
+# that generates release PPU files
+# which will not be recompiled
+ifdef RELEASE
+ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
+ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
+override FPCOPT+=-Ur
+endif
+endif
+endif
+
 # Paths
 OBJPASDIR=$(RTL)/objpas
 GRAPHDIR=$(INC)/graph