[committed] Make -mflip-mips16 imply -minterlink-mips16

Submitted by Richard Sandiford on July 12, 2010, 7:09 p.m.

Details

Message ID 87zkxwa558.fsf@firetop.home
State New
Headers show

Commit Message

Richard Sandiford July 12, 2010, 7:09 p.m.
As per the subject.  I came across this as a failure in the c-torture
builtins tests while testing the target_reinit stuff.  The bug caused
non-MIPS16 code compiled with -mflip-mips16 to make a direct jump to
a MIPS16 routine.

Tested on mipsisa64-elfoabi applied.

Richard


gcc/
	* config/mips/mips.c (mips_override_options): Make -mflip-mips16
	imply -minterlink-mips16.

Patch hide | download patch | download mbox

Index: gcc/config/mips/mips.c
===================================================================
--- gcc/config/mips/mips.c	2010-07-08 19:27:24.000000000 +0100
+++ gcc/config/mips/mips.c	2010-07-08 19:27:25.000000000 +0100
@@ -15446,6 +15446,9 @@  mips_override_options (void)
       target_flags_explicit |= MASK_SOFT_FLOAT_ABI;
     }
 
+  if (TARGET_FLIP_MIPS16)
+    TARGET_INTERLINK_MIPS16 = 1;
+
   /* Set the small data limit.  */
   mips_small_data_threshold = (g_switch_set
 			       ? g_switch_value