xref: /netbsd-src/external/gpl3/gcc.old/dist/config/mt-sde (revision 1debfc3d3fad8af6f31804271c18e67f77b4d718)
1*1debfc3dSmrg# We default to building libraries optimised for size.  We use
2*1debfc3dSmrg# -minterlink-mips16 so that the non-MIPS16 libraries can still be
3*1debfc3dSmrg# linked against partly-MIPS16 code.  The -mcode-readable=pcrel option allows
4*1debfc3dSmrg# MIPS16 libraries to run on Harvard-style split I/D memories, so long
5*1debfc3dSmrg# as they have the D-to-I redirect for PC-relative loads.  -mno-gpopt
6*1debfc3dSmrg# has two purposes: it allows libraries to be used in situations where
7*1debfc3dSmrg# $gp != our _gp, and it allows them to be built with -G8 while
8*1debfc3dSmrg# retaining link compatibility with -G0 and -G4.
9*1debfc3dSmrgCFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt
10*1debfc3dSmrgCXXFLAGS_FOR_TARGET += -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt
11