2011-05-03 00:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    + added mingw-w64 autodetection on *nix
  * doc/xhb-diff.txt
    ! typos
  * config/global.mk
    + added mingw-w64 autodetection on *nix. build with 'make HB_COMPILER=mingw64'
    ! supposedly fixed wce/mingw (intel) comp autodetection
    * had to change CC*/compiler autodetection on *nix cross builds
      and since this file is black magic, fallouts are possible.
      pls test it (disc: I'm no heavy linux user, you've been warned)

  ; NOTE: win/mingw64 build on linux results in broken exes (400+ hbtest failures
          and even the percentage of failure is calculated as 0.0%),
          most likely due to these (which may even be mingw64 bugs):

      ../../../hbarch.c: In function 'hb_put_ord_ieee754':
      ../../../hbarch.c:181: warning: 'iExp' may be used uninitialized in this function
      ../../../hbarch.c: In function 'hb_put_ieee754':
      ../../../hbarch.c:114: warning: 'iExp' may be used uninitialized in this function
      ../../../hbstr.c: In function 'hb_numRound':
      ../../../hbstr.c:500: warning: statement with no effect
      ../../../hbstr.c: In function 'hb_numInt':
      ../../../hbstr.c:525: warning: statement with no effect
      ../../../hbstr.c:519: warning: 'dInt' is used uninitialized in this function
      ../../../hbstr.c: In function 'hb_numRound':
      ../../../hbstr.c:512: warning: 'doComplete5i' may be used uninitialized in this function
      ../../../hbstr.c: In function 'hb_numDecConv':
      ../../../hbstr.c:514: warning: 'doComplete5i' may be used uninitialized in this function
      ../../../hbstr.c:396: note: 'doComplete5i' was declared here
      In file included from ../../../hvmall.c:105:
      ../../../itemapi.c: In function 'hb_itemStrBuf':
      ../../../itemapi.c:2329: warning: 'dDig' may be used uninitialized in this function
This commit is contained in:
Viktor Szakats
2011-05-02 22:39:29 +00:00
parent 8fbb6d658b
commit 6ee4c56abb
4 changed files with 540 additions and 399 deletions

View File

@@ -16,6 +16,40 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-05-03 00:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
+ added mingw-w64 autodetection on *nix
* doc/xhb-diff.txt
! typos
* config/global.mk
+ added mingw-w64 autodetection on *nix. build with 'make HB_COMPILER=mingw64'
! supposedly fixed wce/mingw (intel) comp autodetection
* had to change CC*/compiler autodetection on *nix cross builds
and since this file is black magic, fallouts are possible.
pls test it (disc: I'm no heavy linux user, you've been warned)
; NOTE: win/mingw64 build on linux results in broken exes (400+ hbtest failures
and even the percentage of failure is calculated as 0.0%),
most likely due to these (which may even be mingw64 bugs):
../../../hbarch.c: In function 'hb_put_ord_ieee754':
../../../hbarch.c:181: warning: 'iExp' may be used uninitialized in this function
../../../hbarch.c: In function 'hb_put_ieee754':
../../../hbarch.c:114: warning: 'iExp' may be used uninitialized in this function
../../../hbstr.c: In function 'hb_numRound':
../../../hbstr.c:500: warning: statement with no effect
../../../hbstr.c: In function 'hb_numInt':
../../../hbstr.c:525: warning: statement with no effect
../../../hbstr.c:519: warning: 'dInt' is used uninitialized in this function
../../../hbstr.c: In function 'hb_numRound':
../../../hbstr.c:512: warning: 'doComplete5i' may be used uninitialized in this function
../../../hbstr.c: In function 'hb_numDecConv':
../../../hbstr.c:514: warning: 'doComplete5i' may be used uninitialized in this function
../../../hbstr.c:396: note: 'doComplete5i' was declared here
In file included from ../../../hvmall.c:105:
../../../itemapi.c: In function 'hb_itemStrBuf':
../../../itemapi.c:2329: warning: 'dDig' may be used uninitialized in this function
2011-05-02 01:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/make.hbs
% normalize bin path (for *nix)

File diff suppressed because it is too large Load Diff

View File

@@ -634,7 +634,7 @@ Clipper does not. This example shows such macro messages usage:
proc main()
memvar var
local o := errorNew(), msg:="cargo"
local o := errorNew(), msg := "cargo"
private var := "CAR"
o:&msg := "<cargo>"
@@ -2346,7 +2346,7 @@ keep code clean and locate places where string constant values
are overwritten what is illegal. It also helps C compiler to better
optimize the code because it has additional information that some
variables/memory regions are readonly and cannot be modified during
code execution what can give some addition speed improvement.
code execution what can give some additional speed improvement.
If some C code does not respect it then during compilation with
Harbour header files C compilers usually generate warning and
C++ ones errors, i.e. code like:

View File

@@ -1612,7 +1612,14 @@ FUNCTION hbmk2( aArgs, nArgTarget, /* @ */ lPause, nLevel )
Empty( hbmk[ _HBMK_cCCPOSTFIX ] )
DO CASE
CASE hbmk[ _HBMK_cPLAT ] == "win"
CASE hbmk[ _HBMK_cCOMP ] == "mingw64"
FOR EACH tmp IN { "/usr", "/usr/local", "/usr/local/mingw32", "/opt/xmingw", "/opt/cross" }
FOR EACH tmp2 IN { "amd64-mingw32msvc" }
AAdd( aCOMPDET_EMBED, { {| cPrefix, tmp1 | iif( hb_FileExists( tmp1 + hb_ps() + cPrefix + "gcc" + hbmk[ _HBMK_cCCEXT ] ), tmp1, NIL ) }, "win", "mingw64", tmp2 + "-", tmp + hb_ps() + "bin", NIL } )
AAdd( aCOMPDET_EMBED, { {| cPrefix, tmp1 | iif( hb_FileExists( tmp1 + hb_ps() + cPrefix + "gcc" + hbmk[ _HBMK_cCCEXT ] ), tmp1, NIL ) }, "win", "mingw64", "", tmp + hb_ps() + tmp2 + hb_ps() + "bin", NIL } )
NEXT
NEXT
CASE hbmk[ _HBMK_cPLAT ] == "win" .OR. hbmk[ _HBMK_cCOMP ] == "mingw"
FOR EACH tmp IN { "/usr", "/usr/local", "/usr/local/mingw32", "/opt/xmingw", "/opt/cross" }
FOR EACH tmp2 IN { "i?86-mingw", "i?86-pc-mingw", "i?86-mingw32", "i?86-pc-mingw32", "i?86-mingw32msvc", "i?86-pc-mingw32msvc" }
FOR tmp3 := 3 TO 6