[Python-checkins] python/dist/src/PC/os2emx Makefile,1.13,1.14 README.os2emx,1.6,1.7 pyconfig.h,1.6,1.7 python23.def,1.7,1.8
aimacintyre@users.sourceforge.net
aimacintyre@users.sourceforge.net
Wed, 16 Jul 2003 06:31:14 -0700
Update of /cvsroot/python/python/dist/src/PC/os2emx
In directory sc8-pr-cvs1:/tmp/cvs-serv28638
Modified Files:
Makefile README.os2emx pyconfig.h python23.def
Log Message:
More pre-2.3 build tweaks for the OS/2 EMX port:
- more clean up of the generated import library definiton (.DEF file)
following checking of patch 770521, and tightening of the sed regexps.
- use -O3 even with gcc 2.8.1 - worth nearly 10% with 2.3; worth
nothing with 2.2.x.
- clean up a couple of whitespace issues introduced by a cut'n'paste.
Index: Makefile
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/os2emx/Makefile,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Makefile 13 Jul 2003 13:41:59 -0000 1.13
--- Makefile 16 Jul 2003 13:31:11 -0000 1.14
***************
*** 92,96 ****
LDFLAGS+= -g
else
! CFLAGS+= -s -O2 -fomit-frame-pointer
LDFLAGS+= -s
endif
--- 92,96 ----
LDFLAGS+= -g
else
! CFLAGS+= -s -O3 -fomit-frame-pointer
LDFLAGS+= -s
endif
***************
*** 516,541 ****
@echo EXPORTS >>$@
$(EXPLIB) -u $(PYTHON.LIB) |\
! sed -e "/ .init.*/s/^ /; /" \
! -e "/ .pcre_.*/s/^ /; /" \
! -e "/ .array_methods/s/^ /; /" \
! -e "/ .fast_save_leave/s/^ /; /" \
! -e "/ .dlopen/s/^ /; /" \
! -e "/ .dlsym/s/^ /; /" \
! -e "/ .dlclose/s/^ /; /" \
! -e "/ .dlerror/s/^ /; /" \
! -e "/ .cycle_type/s/^ /; /" \
! -e "/ .dropwhile_type/s/^ /; /" \
! -e "/ .takewhile_type/s/^ /; /" \
! -e "/ .islice_type/s/^ /; /" \
! -e "/ .starmap_type/s/^ /; /" \
! -e "/ .imap_type/s/^ /; /" \
! -e "/ .chain_type/s/^ /; /" \
! -e "/ .ifilter_type/s/^ /; /" \
! -e "/ .ifilterfalse_type/s/^ /; /" \
! -e "/ .count_type/s/^ /; /" \
! -e "/ .izip_type/s/^ /; /" \
! -e "/ .repeat_type/s/^ /; /" \
! -e "/ ._Py_re_.*/s/^ /; /" \
! -e "/ ._Py_MD5.*/s/^ /; /" >>$@
$(PYTHON.IMPLIB): $(PYTHON.DEF)
--- 516,529 ----
@echo EXPORTS >>$@
$(EXPLIB) -u $(PYTHON.LIB) |\
! sed -e "/^ .init.*/s/^ /; /" \
! -e "/^ .pcre_.*/s/^ /; /" \
! -e "/^ .array_methods/s/^ /; /" \
! -e "/^ .fast_save_leave/s/^ /; /" \
! -e "/^ .dlopen/s/^ /; /" \
! -e "/^ .dlsym/s/^ /; /" \
! -e "/^ .dlclose/s/^ /; /" \
! -e "/^ .dlerror/s/^ /; /" \
! -e "/^ ._Py_re_.*/s/^ /; /" \
! -e "/^ ._Py_MD5.*/s/^ /; /" >>$@
$(PYTHON.IMPLIB): $(PYTHON.DEF)
Index: README.os2emx
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/os2emx/README.os2emx,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** README.os2emx 10 Jul 2003 12:55:30 -0000 1.6
--- README.os2emx 16 Jul 2003 13:31:11 -0000 1.7
***************
*** 555,562 ****
v2.8.1.
! While gcc supports more aggressive optimisation than I use, a lot of
! benchmarking indicates that Python's performance is at best only
! marginally improved by more aggressive optimisation, at least on my
! hardware (AMD Athlon 1.4GHz, VIA C3 800MHz).
17. os.spawnv() and os.spawnve() expose EMX's library routines rather
--- 555,567 ----
v2.8.1.
! This release sees the default optimisation change to
! "-O3 -fomit-frame-pointer". This works fine too for pgcc 2.95 but not
! for gcc 3.2.1.
!
! With gcc 3.2.1, -O3 causes 2 unexpected test failures: test_format and
! test_unicode. Both these tests pass if -O2 is instead of -O3 with this
! compiler, and the performance difference is negligible (in contrast to
! gcc 2.8.1 and pgcc 2.95, where the performance difference between the
! 2 optimisation settings approaches 10%).
17. os.spawnv() and os.spawnve() expose EMX's library routines rather
Index: pyconfig.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/os2emx/pyconfig.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** pyconfig.h 13 Jul 2003 13:41:59 -0000 1.6
--- pyconfig.h 16 Jul 2003 13:31:11 -0000 1.7
***************
*** 32,41 ****
*/
#ifdef Py_BUILD_CORE
! # define PyAPI_FUNC(RTYPE) RTYPE
#else
! # define PyAPI_FUNC(RTYPE) extern RTYPE
#endif
! #define PyAPI_DATA(RTYPE) extern RTYPE
! #define PyMODINIT_FUNC void
/* Use OS/2 flavour of threads */
--- 32,41 ----
*/
#ifdef Py_BUILD_CORE
! # define PyAPI_FUNC(RTYPE) RTYPE
#else
! # define PyAPI_FUNC(RTYPE) extern RTYPE
#endif
! #define PyAPI_DATA(RTYPE) extern RTYPE
! #define PyMODINIT_FUNC void
/* Use OS/2 flavour of threads */
Index: python23.def
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/os2emx/python23.def,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** python23.def 13 Jul 2003 13:41:59 -0000 1.7
--- python23.def 16 Jul 2003 13:31:11 -0000 1.8
***************
*** 1071,1086 ****
; From python23_s.lib(itertoolsmodule)
; "inititertools"
- ; "cycle_type"
- ; "dropwhile_type"
- ; "takewhile_type"
- ; "islice_type"
- ; "starmap_type"
- ; "imap_type"
- ; "chain_type"
- ; "ifilter_type"
- ; "ifilterfalse_type"
- ; "count_type"
- ; "izip_type"
- ; "repeat_type"
; From python23_s.lib(_localemodule)
--- 1071,1074 ----