summaryrefslogtreecommitdiff
path: root/gcc/config/sparc/sol2.h
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-22 18:43:54 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-22 18:43:54 +0000
commitfb124916d9d173524f47ba2497741e654e87ba80 (patch)
tree1ff4e2355d875fd9ebd73bf378918ea615738be7 /gcc/config/sparc/sol2.h
parent445a0da7fd00813566cf79d251ac84d285ea10ae (diff)
downloadgcc-fb124916d9d173524f47ba2497741e654e87ba80.tar.gz
* config/sparc/sol2.h: Don't include sys/mman.h.
* config/sparc/sparc.c (arith_operand): Use SMALL_INT32. (arith_4096_operand): Don't throw high bits away. (const64_operand): Take sign extension of CONST_INTs into account. (const64_high_operand, sparc_emit_set_const32): Likewise. (GEN_HIGHINT64): Likewise. (sparc_emit_set_const64_quick1): Likewise. (const64_is_2insns): Likewise. (print_operand): Use trunc_int_for_mode for sign extension. * config/sparc/sparc.h (SMALL_INT32): Likewise. * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE chars. Assume CONST_INT is already properly sign-extended. (movdi split): Sign-extend each SImode part. (andsi3 split): Don't mask high bits off, so that result remains properly sign-extend. (iorsi3 split): Likewise. (xorsi3 split): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49970 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc/sol2.h')
-rw-r--r--gcc/config/sparc/sol2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h
index a387dc24a18..9f9ca235d2d 100644
--- a/gcc/config/sparc/sol2.h
+++ b/gcc/config/sparc/sol2.h
@@ -243,7 +243,9 @@ Boston, MA 02111-1307, USA. */
/* This declares mprotect (used in TRANSFER_FROM_TRAMPOLINE) for
libgcc2.c. */
-#ifdef L_trampoline
+/* We don't want to include this because sys/mman.h is not present on
+ some non-Solaris configurations that use sol2.h. */
+#if 0 /* def L_trampoline */
#include <sys/mman.h>
#endif