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]

PATCH: Make ix86_build_signbit_mask static


ix86_build_signbit_mask is used in i386.c only. This patch makes it
static.  Tested on Linux/Intel64.  OK for trunk?


2009-05-05  H.J. Lu  <>

	* config/i386/i386.c (ix86_build_signbit_mask): Make it static.
	* config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.

Index: gcc/config/i386/i386-protos.h
--- gcc/config/i386/i386-protos.h	(revision 5852)
+++ gcc/config/i386/i386-protos.h	(revision 5853)
@@ -97,7 +97,6 @@ extern void ix86_expand_convert_uns_sixf
 extern void ix86_expand_convert_uns_sidf_sse (rtx, rtx);
 extern void ix86_expand_convert_uns_sisf_sse (rtx, rtx);
 extern void ix86_expand_convert_sign_didf_sse (rtx, rtx);
-extern rtx ix86_build_signbit_mask (enum machine_mode, bool, bool);
 extern void ix86_expand_fp_absneg_operator (enum rtx_code, enum machine_mode,
 extern void ix86_expand_copysign (rtx []);
Index: gcc/config/i386/i386.c
--- gcc/config/i386/i386.c	(revision 5852)
+++ gcc/config/i386/i386.c	(revision 5853)
@@ -13565,7 +13565,7 @@ ix86_expand_convert_uns_sisf_sse (rtx ta
     emit_move_insn (target, fp_hi);
-/* A subroutine of ix86_build_signbit_mask_vector.  If VECT is true,
+/* A subroutine of ix86_build_signbit_mask.  If VECT is true,
    then replicate the value for all elements of the vector
    register.  */
@@ -13611,7 +13644,7 @@ ix86_build_const_vector (enum machine_mo
    all elements of the vector register.  If INVERT is true, then create
    a mask excluding the sign bit.  */
+static rtx
 ix86_build_signbit_mask (enum machine_mode mode, bool vect, bool invert)
   enum machine_mode vec_mode, imode;

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