[PATCH,Take 3] Fix make closures.c use dlmmap,dlmunmap on cygwin.

Dave Korn dave.korn.cygwin@googlemail.com
Wed Jul 8 18:36:00 GMT 2009


[ refs: http://gcc.gnu.org/ml/gcc-patches/2009-06/threads.html#02228
        http://gcc.gnu.org/ml/gcc-patches/2009-07/threads.html#00352 ]


    Hi again,

  This time I let it complete bootstrap before posting and ran the testsuite too.

>                 === libffi tests ===
> 
> 
> Running target unix
> FAIL: libffi.call/cls_1_1byte.c output pattern test, is 12 178: 190
> FAIL: libffi.call/cls_2byte.c output pattern test, is 12 127 1 13: 13 140
> FAIL: libffi.call/cls_align_pointer.c (test for excess errors)
> FAIL: libffi.call/return_sc.c execution test
> FAIL: libffi.call/struct5.c execution test
> FAIL: libffi.call/cls_1_1byte.c output pattern test, is 12 178: 190
> FAIL: libffi.call/cls_2byte.c output pattern test, is 12 127 1 13: 13 140
> FAIL: libffi.call/return_sc.c execution test
> FAIL: libffi.call/struct5.c execution test
> FAIL: libffi.call/cls_1_1byte.c output pattern test, is 12 178: 190
> FAIL: libffi.call/cls_2byte.c output pattern test, is 12 127 1 13: 13 140
> FAIL: libffi.call/return_sc.c execution test
> FAIL: libffi.call/struct5.c execution test
> FAIL: libffi.call/cls_1_1byte.c output pattern test, is 12 178: 190
> FAIL: libffi.call/cls_2byte.c output pattern test, is 12 127 1 13: 13 140
> FAIL: libffi.call/struct5.c execution test
> FAIL: libffi.call/cls_1_1byte.c output pattern test, is 12 178: 190
> FAIL: libffi.call/cls_2byte.c output pattern test, is 12 127 1 13: 13 140
> FAIL: libffi.call/return_sc.c execution test
> FAIL: libffi.call/struct5.c execution test
> 
>                 === libffi Summary ===
> 
> # of expected passes            1609
> # of unexpected failures        20
> # of expected failures          10

  These are comparable to the last recorded results on the
-testresults list:

  http://gcc.gnu.org/ml/gcc-testresults/2009-06/msg00433.html

although there appears to be one regression:

+FAIL: libffi.call/cls_align_pointer.c (test for excess errors)

which is an unrelated format string warning.  The remaining new failures are
in new tests.  At least it builds again now and works comparably to how it
used to.

libffi/ChangeLog:

	* src/closures.c (is_selinux_enabled):  Define to 0 for cygwin.
	(dlmmap, dlmunmap):  Use POSIX versions on cygwin.

  Ok?

    cheers,
      DaveK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libffi-cygwin-mmap-fix-take-3.diff
Type: text/x-c
Size: 1761 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20090708/e423fef3/attachment.bin>


More information about the Java-patches mailing list