This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c4x - TMS320C30-40


Ralf Corsepius wrote:

Cf. below, AFAIS it does what all of us want it to do.

Thanks.


The attached patch below fixes all of our problems (I hope). It splits tic4x and c4x into two separate configs (IMHO is correct) and support a default os for the target.

Could all of you involved in this issue, please test this patch, and then if it's satifies everyone, I can proceed to get it approved.


Regards, Svein
? .new.configure
? build.all
? build.c4x
? build.tic4x
? build.tic54x
Index: config.sub
===================================================================
RCS file: /cvs/src/src/config.sub,v
retrieving revision 1.41
diff -c -3 -p -r1.41 config.sub
*** config.sub	13 May 2003 12:09:10 -0000	1.41
--- config.sub	5 Jun 2003 11:01:36 -0000
*************** case $basic_machine in
*** 229,235 ****
  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
! 	| clipper \
  	| d10v | d30v | dlx | dsp16xx \
  	| fr30 | frv \
  	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
--- 229,235 ----
  	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
! 	| c4x | clipper \
  	| d10v | d30v | dlx | dsp16xx \
  	| fr30 | frv \
  	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
*************** case $basic_machine in
*** 261,267 ****
  	| sh64 | sh64le \
  	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
  	| strongarm \
! 	| tahoe | thumb | tic80 | tron \
  	| v850 | v850e \
  	| we32k \
  	| x86 | xscale | xstormy16 | xtensa \
--- 261,267 ----
  	| sh64 | sh64le \
  	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
  	| strongarm \
! 	| tahoe | thumb | tic4x | tic80 | tron \
  	| v850 | v850e \
  	| we32k \
  	| x86 | xscale | xstormy16 | xtensa \
*************** case $basic_machine in
*** 922,931 ****
  		basic_machine=t90-cray
  		os=-unicos
  		;;
-         tic4x | c4x*)
- 		basic_machine=tic4x-unknown
- 		os=-coff
- 		;;
  	tic54x | c54x*)
  		basic_machine=tic54x-unknown
  		os=-coff
--- 922,927 ----
*************** case $basic_machine in
*** 1277,1282 ****
--- 1273,1281 ----
  	arm*-semi)
  		os=-aout
  		;;
+     c4x-* | tic4x-*)
+         os=-coff
+         ;;
  	# This must come before the *-dec entry.
  	pdp10-*)
  		os=-tops20
Index: gas/configure
===================================================================
RCS file: /cvs/src/src/gas/configure,v
retrieving revision 1.146
diff -c -3 -p -r1.146 configure
*** gas/configure	29 May 2003 18:17:55 -0000	1.146
--- gas/configure	5 Jun 2003 11:01:37 -0000
*************** for this_target in $target $canon_target
*** 2316,2321 ****
--- 2316,2322 ----
        alpha*)		cpu_type=alpha ;;
        arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
        arm*|xscale*|strongarm*)    cpu_type=arm endian=little ;;
+       c4x*)			cpu_type=tic4x ;;
        hppa*)		cpu_type=hppa ;;
        i[3-7]86)		cpu_type=i386 arch=i386;;
        x86_64)		cpu_type=i386 arch=x86_64;;
Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.132
diff -c -3 -p -r1.132 configure.in
*** gas/configure.in	29 May 2003 18:17:55 -0000	1.132
--- gas/configure.in	5 Jun 2003 11:01:38 -0000
*************** changequote([,])dnl
*** 117,122 ****
--- 117,123 ----
        alpha*)		cpu_type=alpha ;;
        arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
        arm*|xscale*|strongarm*)    cpu_type=arm endian=little ;;
+       c4x*)			cpu_type=tic4x ;;
        hppa*)		cpu_type=hppa ;;
  changequote(,)dnl
        i[3-7]86)		cpu_type=i386 arch=i386;;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]