This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[c4x] gcc update for new gas changes
- From: "Svein E. Seldal" <Svein dot Seldal at solidas dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 25 Nov 2002 10:57:49 +0100
- Subject: [c4x] gcc update for new gas changes
Hi,
This is an update for the new command-line parameters of gas and bugfix
for the new c33 DSP's.
Regards,
Svein
gcc/ChangeLog:
2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
* config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
in C33_FLAG. Added proper C33 support in ASM_FILE_START macro
Index: gcc/config/c4x/c4x.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/c4x/c4x.h,v
retrieving revision 1.116
diff -c -3 -p -r1.116 c4x.h
*** gcc/config/c4x/c4x.h 15 Sep 2002 18:24:04 -0000 1.116
--- gcc/config/c4x/c4x.h 24 Nov 2002 15:17:42 -0000
***************
*** 93,115 ****
#define ASM_SPEC "\
%{!mcpu=30:%{!mcpu=31:%{!mcpu=32:%{!mcpu=33:%{!mcpu=40:%{!mcpu=44:\
! %{!m30:%{!m40:-m40}}}}}}}} \
! %{mcpu=30:-m30} \
! %{mcpu=31:-m31} \
! %{mcpu=32:-m32} \
! %{mcpu=33:-m33} \
! %{mcpu=40:-m40} \
! %{mcpu=44:-m44} \
! %{m30:-m30} \
! %{m31:-m31} \
! %{m32:-m32} \
! %{m33:-m33} \
! %{m40:-m40} \
! %{m44:-m44} \
! %{mmemparm:-p} %{mregparm:-r} \
! %{!mmemparm:%{!mregparm:-r}} \
! %{mbig:-b} %{msmall:-s} \
! %{!msmall:%{!mbig:-b}}"
/* Define linker options. */
--- 93,113 ----
#define ASM_SPEC "\
%{!mcpu=30:%{!mcpu=31:%{!mcpu=32:%{!mcpu=33:%{!mcpu=40:%{!mcpu=44:\
! %{!m30:%{!m31:%{!m32:%{!m33:%{!m40:%{!m44:-m40}}}}}}}}}}}} \
! %{mcpu=30} \
! %{mcpu=31} \
! %{mcpu=32} \
! %{mcpu=33} \
! %{mcpu=40} \
! %{mcpu=44} \
! %{m30} \
! %{m31} \
! %{m32} \
! %{m33} \
! %{m40} \
! %{m44} \
! %{mmemparm} %{mregparm} %{!mmemparm:%{!mregparm:-mregparm}} \
! %{mbig} %{msmall} %{!msmall:%{!mbig:-mbig}}"
/* Define linker options. */
***************
*** 153,159 ****
#define C30_FLAG 0x0100000 /* Emit C30 code. */
#define C31_FLAG 0x0200000 /* Emit C31 code. */
#define C32_FLAG 0x0400000 /* Emit C32 code. */
! #define C33_FLAG 0x0400000 /* Emit C33 code. */
#define C40_FLAG 0x1000000 /* Emit C40 code. */
#define C44_FLAG 0x2000000 /* Emit C44 code. */
--- 151,157 ----
#define C30_FLAG 0x0100000 /* Emit C30 code. */
#define C31_FLAG 0x0200000 /* Emit C31 code. */
#define C32_FLAG 0x0400000 /* Emit C32 code. */
! #define C33_FLAG 0x0800000 /* Emit C33 code. */
#define C40_FLAG 0x1000000 /* Emit C40 code. */
#define C44_FLAG 0x2000000 /* Emit C44 code. */
*************** fini_section () \
*** 1675,1680 ****
--- 1673,1679 ----
if (TARGET_C30) dspversion = 30; \
if (TARGET_C31) dspversion = 31; \
if (TARGET_C32) dspversion = 32; \
+ if (TARGET_C33) dspversion = 33; \
if (TARGET_C40) dspversion = 40; \
if (TARGET_C44) dspversion = 44; \
fprintf (FILE, "\t.version\t%d\n", dspversion); \