Hi cegcc-devel,
I think it would be helpful to have your new target-names implemented in
upstream binutils, and to that end I've extracted a bunch of patches from your
CVS and the related ChangeLog entries. I've also written a bunch of patches
for the upstream testsuite and although it's not perfect yet it's a start. I
haven't tried to extract any of the functional patches from your tree yet, I
leave that to others, but doing this would help us avoid introducing any
regressions against your targets upstream. Nor have I taken any of the
compiler changes; they can easily be done separately, and it makes sense to
start from the bottom of the toolchain up anyway.
Everyone in general, and Pedro in particular, are you happy for me to send
these upstream? I hope I got all the necessary attributions, please let me
know if anything's missing.
cheers,
DaveK
2009-05-26 Dave Korn <[email protected]>
Merge cegcc and mingw32ce target name changes from CeGCC project.
2008-09-24 Pedro Alves <[email protected]>
ld/
* configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
${tooldir}/lib/w32api.
2007-12-25 Pedro Alves <[email protected]>
bfd/
* config.bfd: Add arm*-*-cegcc* target.
2007-12-25 Pedro Alves <[email protected]>
binutils/
* configure.in: Add arm*-*-cegcc* and arm*-*-mingw32ce* targets.
* configure: Regenerate.
2007-12-25 Pedro Alves <[email protected]>
gas/
* configure.tgt: Add arm*-*-cegcc* target.
2007-12-25 Pedro Alves <[email protected]>
ld/
* configure.tgt: Add arm*-*-cegcc* target.
2007-12-17 Pedro Alves <[email protected]>
bfd/
* config.bfd: Add arm-*-mingw32ce* target.
2007-12-17 Pedro Alves <[email protected]>
gas/
* configure.tgt: Add arm-*-mingw32ce* target.
2007-12-17 Pedro Alves <[email protected]>
ld/
* configure.tgt: Add arm-*-mingw32ce* target.
Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.248
diff -p -u -r1.248 config.bfd
--- bfd/config.bfd 17 Apr 2009 13:46:11 -0000 1.248
+++ bfd/config.bfd 26 May 2009 18:26:05 -0000
@@ -238,7 +238,7 @@ case "${targ}" in
targ_underscore=no
targ_cflags=-DARM_COFF_BUGFIX
;;
- arm-wince-pe | arm-*-wince | arm-*-mingw32ce*)
+ arm-wince-pe | arm-*-wince | arm-*-mingw32ce* | arm*-*-cegcc*)
targ_defvec=arm_wince_pe_little_vec
targ_selvecs="arm_wince_pe_little_vec arm_wince_pe_big_vec arm_wince_pei_little_vec arm_wince_pei_big_vec"
targ_underscore=no
Index: binutils/configure
===================================================================
RCS file: /cvs/src/src/binutils/configure,v
retrieving revision 1.121
diff -p -u -r1.121 configure
--- binutils/configure 31 Mar 2009 08:08:33 -0000 1.121
+++ binutils/configure 26 May 2009 18:26:11 -0000
@@ -16116,7 +16116,7 @@ do
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
;;
- arm-wince-pe* | arm-*-wince)
+ arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
if test -z "$DLLTOOL_DEFAULT"; then
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
Index: binutils/configure.in
===================================================================
RCS file: /cvs/src/src/binutils/configure.in,v
retrieving revision 1.93
diff -p -u -r1.93 configure.in
--- binutils/configure.in 31 Mar 2009 08:08:33 -0000 1.93
+++ binutils/configure.in 26 May 2009 18:26:11 -0000
@@ -283,7 +283,7 @@ changequote([,])dnl
BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
;;
- arm-wince-pe* | arm-*-wince)
+ arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
if test -z "$DLLTOOL_DEFAULT"; then
DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
Index: gas/configure.tgt
===================================================================
RCS file: /cvs/src/src/gas/configure.tgt,v
retrieving revision 1.48
diff -p -u -r1.48 configure.tgt
--- gas/configure.tgt 16 Apr 2009 15:39:44 -0000 1.48
+++ gas/configure.tgt 26 May 2009 18:26:11 -0000
@@ -121,7 +121,8 @@ case ${generic_target} in
arm-*-*n*bsd*) fmt=aout em=nbsd ;;
arm-*-nto*) fmt=elf ;;
arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
- arm-wince-pe | arm-*-wince) fmt=coff em=wince-pe ;;
+ arm-wince-* | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
+ fmt=coff em=wince-pe ;;
arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
arm-*-riscix*) fmt=aout em=riscix ;;
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.226
diff -p -u -r1.226 configure.tgt
--- ld/configure.tgt 16 Apr 2009 15:39:46 -0000 1.226
+++ ld/configure.tgt 26 May 2009 18:26:20 -0000
@@ -44,7 +44,10 @@ alpha*-*-openbsd*) targ_emul=elf64alpha
arc-*-elf*) targ_emul=arcelf
;;
arm-epoc-pe) targ_emul=arm_epoc_pe ; targ_extra_ofiles="deffilep.o pe-dll.o" ;;
-arm-wince-pe | arm-*-wince) targ_emul=arm_wince_pe ; targ_extra_ofiles="deffilep.o pe-dll.o" ;;
+arm*-*-cegcc*) targ_emul=arm_wince_pe ; targ_extra_ofiles="deffilep.o pe-dll.o"
+ LIB_PATH='${tooldir}/lib/w32api' ;;
+arm-wince-pe | arm-*-wince | arm*-*-mingw32ce*)
+ targ_emul=arm_wince_pe ; targ_extra_ofiles="deffilep.o pe-dll.o" ;;
arm-*-pe) targ_emul=armpe ; targ_extra_ofiles="deffilep.o pe-dll.o" ;;
arm-*-aout | armel-*-aout) targ_emul=armaoutl ;;
armeb-*-aout) targ_emul=armaoutb ;;
2009-05-26 Dave Korn <[email protected]>
ld/testsuite/ChangeLog
* ld-pe/pe-run.exp (test_direct_link_dll): Add --enable-auto-import for
platforms where it is not enabled by default.
* ld-pe/vers-script-1.d: Replace escaped '$' signs by '_' throughout.
* ld-pe/vers-script-2.d: Likewise.
* ld-pe/vers-script-3.d: Likewise.
* ld-pe/vers-script-4.d: Likewise.
* ld-pe/vers-script-dll.c: Replace '$' by '_' throughout.
* lib/ld-lib.exp (is_pecoff_format): Also allow CeGCC targets.
Index: ld/testsuite/ld-pe/pe-run.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/pe-run.exp,v
retrieving revision 1.1
diff -p -u -r1.1 pe-run.exp
--- ld/testsuite/ld-pe/pe-run.exp 19 May 2009 16:08:08 -0000 1.1
+++ ld/testsuite/ld-pe/pe-run.exp 26 May 2009 15:02:13 -0000
@@ -83,7 +83,7 @@ proc test_direct_link_dll {} {
} else {
# Check linking directly to direct_dll.dll.
set msg "linking client (.dll)"
- if [ld_simple_link $CC $tmpdir/direct_client_dll.exe "$tmpdir/direct_client.o $tmpdir/direct_dll.dll" ] {
+ if [ld_simple_link "$CC -Wl,--enable-auto-import" $tmpdir/direct_client_dll.exe "$tmpdir/direct_client.o $tmpdir/direct_dll.dll" ] {
pass $msg
} else {
fail $msg
@@ -91,7 +91,7 @@ proc test_direct_link_dll {} {
# Check linking directly to direct_dll.sl.
set msg "linking client (.sl)"
- if [ld_simple_link $CC $tmpdir/direct_client_sl.exe "$tmpdir/direct_client.o $tmpdir/direct_dll.sl" ] {
+ if [ld_simple_link "$CC -Wl,--enable-auto-import" $tmpdir/direct_client_sl.exe "$tmpdir/direct_client.o $tmpdir/direct_dll.sl" ] {
pass $msg
} else {
fail $msg
@@ -101,7 +101,7 @@ proc test_direct_link_dll {} {
# Create symbolic link.
catch "exec ln -fs direct_dll.dll $tmpdir/libdirect_dll.dll.a" ln_catch
set msg "linking client (symlink -> .dll)"
- if [ld_simple_link $CC $tmpdir/direct_client_symlink_dll.exe "$tmpdir/direct_client.o $tmpdir/libdirect_dll.dll.a" ] {
+ if [ld_simple_link "$CC -Wl,--enable-auto-import" $tmpdir/direct_client_symlink_dll.exe "$tmpdir/direct_client.o $tmpdir/libdirect_dll.dll.a" ] {
pass $msg
} else {
fail $msg
@@ -111,7 +111,7 @@ proc test_direct_link_dll {} {
# Create symbolic link.
catch "exec ln -fs direct_dll.sl $tmpdir/libdirect_sl.dll.a" ln_catch
set msg "linking client (symlink -> .sl)"
- if [ld_simple_link $CC $tmpdir/direct_client_symlink_sl.exe "$tmpdir/direct_client.o $tmpdir/libdirect_sl.dll.a" ] {
+ if [ld_simple_link "$CC -Wl,--enable-auto-import" $tmpdir/direct_client_symlink_sl.exe "$tmpdir/direct_client.o $tmpdir/libdirect_sl.dll.a" ] {
pass $msg
} else {
fail $msg
Index: ld/testsuite/ld-pe/vers-script-1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/vers-script-1.d,v
retrieving revision 1.1
diff -p -u -r1.1 vers-script-1.d
--- ld/testsuite/ld-pe/vers-script-1.d 4 May 2009 12:09:30 -0000 1.1
+++ ld/testsuite/ld-pe/vers-script-1.d 26 May 2009 15:02:13 -0000
@@ -80,11 +80,11 @@ EXPORTS
_Z9_Jv_ZFreePvS_ @79
_Z9_Jv_equalP13_Jv_Utf8ConstPN4java4lang6StringEi @80
_Z9shsUpdateP8SHS_INFOPhi @81
- _ZGr30_java\$Sutil\$Sweeks\$_properties @82
- _ZGr32_java\$Sutil\$Siso4217\$_properties @83
- _ZGr48_gnu\$Sjavax\$Sprint\$SPrinterDialog_de\$_properties @84
- _ZGr49_gnu\$Sjava\$Slocale\$SLocaleInformation\$_properties @85
- _ZGr51_gnu\$Sjava\$Sutil\$Sregex\$SMessagesBundle\$_properties @86
+ _ZGr30_java_Sutil_Sweeks__properties @82
+ _ZGr32_java_Sutil_Siso4217__properties @83
+ _ZGr48_gnu_Sjavax_Sprint_SPrinterDialog_de__properties @84
+ _ZGr49_gnu_Sjava_Slocale_SLocaleInformation__properties @85
+ _ZGr51_gnu_Sjava_Sutil_Sregex_SMessagesBundle__properties @86
_ZTVN5javax8security4auth4x50021X500PrivateCredentialE @87
_ZTVN5javax8security4auth5login12LoginContextE @88
_ZTVN5javax8security4auth5login13ConfigurationE @89
Index: ld/testsuite/ld-pe/vers-script-3.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/vers-script-3.d,v
retrieving revision 1.1
diff -p -u -r1.1 vers-script-3.d
--- ld/testsuite/ld-pe/vers-script-3.d 4 May 2009 12:09:30 -0000 1.1
+++ ld/testsuite/ld-pe/vers-script-3.d 26 May 2009 15:02:13 -0000
@@ -62,11 +62,11 @@ EXPORTS
_Z9_Jv_ZFreePvS_ @61
_Z9_Jv_equalP13_Jv_Utf8ConstPN4java4lang6StringEi @62
_Z9shsUpdateP8SHS_INFOPhi @63
- _ZGr30_java\$Sutil\$Sweeks\$_properties @64
- _ZGr32_java\$Sutil\$Siso4217\$_properties @65
- _ZGr48_gnu\$Sjavax\$Sprint\$SPrinterDialog_de\$_properties @66
- _ZGr49_gnu\$Sjava\$Slocale\$SLocaleInformation\$_properties @67
- _ZGr51_gnu\$Sjava\$Sutil\$Sregex\$SMessagesBundle\$_properties @68
+ _ZGr30_java_Sutil_Sweeks__properties @64
+ _ZGr32_java_Sutil_Siso4217__properties @65
+ _ZGr48_gnu_Sjavax_Sprint_SPrinterDialog_de__properties @66
+ _ZGr49_gnu_Sjava_Slocale_SLocaleInformation__properties @67
+ _ZGr51_gnu_Sjava_Sutil_Sregex_SMessagesBundle__properties @68
_ZTVN5javax8security4auth4x50021X500PrivateCredentialE @69
_ZTVN5javax8security4auth5login12LoginContextE @70
_ZTVN5javax8security4auth5login13ConfigurationE @71
Index: ld/testsuite/ld-pe/vers-script-4.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/vers-script-4.d,v
retrieving revision 1.1
diff -p -u -r1.1 vers-script-4.d
--- ld/testsuite/ld-pe/vers-script-4.d 4 May 2009 12:09:30 -0000 1.1
+++ ld/testsuite/ld-pe/vers-script-4.d 26 May 2009 15:02:13 -0000
@@ -62,11 +62,11 @@ EXPORTS
_Z9_Jv_ZFreePvS_ @61
_Z9_Jv_equalP13_Jv_Utf8ConstPN4java4lang6StringEi @62
_Z9shsUpdateP8SHS_INFOPhi @63
- _ZGr30_java\$Sutil\$Sweeks\$_properties @64
- _ZGr32_java\$Sutil\$Siso4217\$_properties @65
- _ZGr48_gnu\$Sjavax\$Sprint\$SPrinterDialog_de\$_properties @66
- _ZGr49_gnu\$Sjava\$Slocale\$SLocaleInformation\$_properties @67
- _ZGr51_gnu\$Sjava\$Sutil\$Sregex\$SMessagesBundle\$_properties @68
+ _ZGr30_java_Sutil_Sweeks__properties @64
+ _ZGr32_java_Sutil_Siso4217__properties @65
+ _ZGr48_gnu_Sjavax_Sprint_SPrinterDialog_de__properties @66
+ _ZGr49_gnu_Sjava_Slocale_SLocaleInformation__properties @67
+ _ZGr51_gnu_Sjava_Sutil_Sregex_SMessagesBundle__properties @68
_ZTVN5javax8security4auth4x50021X500PrivateCredentialE @69
_ZTVN5javax8security4auth5login12LoginContextE @70
_ZTVN5javax8security4auth5login13ConfigurationE @71
Index: ld/testsuite/ld-pe/vers-script-dll.c
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-pe/vers-script-dll.c,v
retrieving revision 1.1
diff -p -u -r1.1 vers-script-dll.c
--- ld/testsuite/ld-pe/vers-script-dll.c 4 May 2009 12:09:30 -0000 1.1
+++ ld/testsuite/ld-pe/vers-script-dll.c 26 May 2009 15:02:13 -0000
@@ -148,9 +148,9 @@ FUNC(_Z9_Jv_RunGCv)
FUNC(_Z9_Jv_ZFreePvS_)
FUNC(_Z9_Jv_equalP13_Jv_Utf8ConstPN4java4lang6StringEi)
FUNC(_Z9shsUpdateP8SHS_INFOPhi)
-FUNC(_ZGr30_java$Sutil$Sweeks$_properties)
-FUNC(_ZGr32_java$Sutil$Siso4217$_properties)
-FUNC(_ZGr48_gnu$Sjavax$Sprint$SPrinterDialog_de$_properties)
-FUNC(_ZGr49_gnu$Sjava$Slocale$SLocaleInformation$_properties)
-FUNC(_ZGr51_gnu$Sjava$Sutil$Sregex$SMessagesBundle$_properties)
+FUNC(_ZGr30_java_Sutil_Sweeks__properties)
+FUNC(_ZGr32_java_Sutil_Siso4217__properties)
+FUNC(_ZGr48_gnu_Sjavax_Sprint_SPrinterDialog_de__properties)
+FUNC(_ZGr49_gnu_Sjava_Slocale_SLocaleInformation__properties)
+FUNC(_ZGr51_gnu_Sjava_Sutil_Sregex_SMessagesBundle__properties)
Index: ld/testsuite/lib/ld-lib.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/lib/ld-lib.exp,v
retrieving revision 1.63
diff -p -u -r1.63 ld-lib.exp
--- ld/testsuite/lib/ld-lib.exp 20 May 2009 13:40:38 -0000 1.63
+++ ld/testsuite/lib/ld-lib.exp 26 May 2009 15:02:13 -0000
@@ -447,6 +447,7 @@ proc is_aout_format {} {
proc is_pecoff_format {} {
if { ![istarget *-*-mingw*] \
&& ![istarget *-*-cygwin*] \
+ && ![istarget *-*-cegcc*] \
&& ![istarget *-*-pe*] } {
return 0
}
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Cegcc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel