This is the mail archive of the mailing list for the GCC 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]

Add -march=4ks[cd] to MIPS_ISA_LEVEL_SPEC

When reviewing the -march=4ks[cd] patch, I'd forgotten that
MIPS_ISA_LEVEL_SPEC also needs to be updated.  Done with the
patch below.  I also added a comment above mips_cpu_info_table
as a reminder (to myself as much as anyone).

Tested on mipsisa32r2-elfoabi.  I checked that -march=4ksc now implies
-mips32 and that -march=4ksd now implies -mips32r2.  Applied to trunk.


	* config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and
	* config/mips/mips.c (mips_cpu_info_table): Mention MIPS_ISA_LEVEL_SPEC
	in the comment.

Index: gcc/config/mips/mips.h
--- gcc/config/mips/mips.h	(revision 126547)
+++ gcc/config/mips/mips.h	(working copy)
@@ -586,8 +586,8 @@ #define MIPS_ISA_LEVEL_SPEC \
      %{march=mips2|march=r6000:-mips2} \
      %{march=mips3|march=r4*|march=vr4*|march=orion:-mips3} \
      %{march=mips4|march=r8000|march=vr5*|march=rm7000|march=rm9000:-mips4} \
-     %{march=mips32|march=4kc|march=4km|march=4kp:-mips32} \
-     %{march=mips32r2|march=m4k|march=4ke*|march=24k* \
+     %{march=mips32|march=4kc|march=4km|march=4kp|march=4ksc:-mips32} \
+     %{march=mips32r2|march=m4k|march=4ke*|march=4ksd|march=24k* \
        |march=34k*|march=74k*: -mips32r2} \
      %{march=mips64|march=5k*|march=20k*|march=sb1*|march=sr71000: -mips64}}"
Index: gcc/config/mips/mips.c
--- gcc/config/mips/mips.c	(revision 126547)
+++ gcc/config/mips/mips.c	(working copy)
@@ -723,7 +723,8 @@ const struct attribute_spec mips_attribu
    taken as the canonical name for that ISA.
    To ease comparison, please keep this table in the same order as
-   gas's mips_cpu_info_table[].  */
+   gas's mips_cpu_info_table[].  Please also make sure that
+   MIPS_ISA_LEVEL_SPEC handles all -march options correctly.  */
 const struct mips_cpu_info mips_cpu_info_table[] = {
   /* Entries for generic ISAs */
   { "mips1", PROCESSOR_R3000, 1 },

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