sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Sun, 5 Feb 2006 21:53:00 +0000 (22:53 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 5 Feb 2006 21:53:00 +0000 (21:53 +0000)
* config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.

From-SVN: r110623

gcc/ChangeLog
gcc/config/sparc/sol2-bi.h

index ece6e7eb5113f9f6120d4e9a1c5370f241b00d04..00112653c05ce1d86c618e63b5f9954269b5841a 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
+
 2006-02-05  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR tree-opt/25251
index 942af4456f85088ecabf816b0cb66b052622dbaf..c41d50f6eed2ef422c2f3db42b2f545a47c1270f 100644 (file)
@@ -1,9 +1,11 @@
 /* Definitions of target machine for GCC, for bi-arch SPARC
    running Solaris 2 using the system assembler and linker.  */
 
-/* The default code model.  */
+/* The default code model used to be CM_MEDANY on Solaris
+   but even Sun eventually found it to be quite wasteful
+   and changed it to CM_MEDMID in the Studio 9 compiler.  */
 #undef SPARC_DEFAULT_CMODEL
-#define SPARC_DEFAULT_CMODEL CM_MEDANY
+#define SPARC_DEFAULT_CMODEL CM_MEDMID
 
 #define AS_SPARC64_FLAG        "-xarch=v9"