aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Christopher <echristo@redhat.com>2004-12-07 22:40:40 +0000
committerEric Christopher <echristo@gcc.gnu.org>2004-12-07 22:40:40 +0000
commit20c076a8531ba99cddd8260dae61150a5044ed3d (patch)
treee824b6914c15ee1c810ae11845bd0c5957ded0ae /gcc
parenta122d1f1d3907a98c078369042864d04634974d2 (diff)
downloadgcc-20c076a8531ba99cddd8260dae61150a5044ed3d.zip
gcc-20c076a8531ba99cddd8260dae61150a5044ed3d.tar.gz
gcc-20c076a8531ba99cddd8260dae61150a5044ed3d.tar.bz2
mips-protos.h (mips_valid_pointer_mode): Move prototype...
2004-12-07 Eric Christopher <echristo@redhat.com> * config/mips/mips-protos.h (mips_valid_pointer_mode): Move prototype... * config/mips/mips.c: ... here. Make static. From-SVN: r91830
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/mips/mips-protos.h1
-rw-r--r--gcc/config/mips/mips.c3
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 05d9736..fb4c7f6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2004-12-07 Eric Christopher <echristo@redhat.com>
+ * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
+ prototype...
+ * config/mips/mips.c: ... here. Make static.
+
+2004-12-07 Eric Christopher <echristo@redhat.com>
+
PR target/18442
* config/mips/mips.c (mips_vector_mode_supported_p): New function.
(TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
diff --git a/gcc/config/mips/mips-protos.h b/gcc/config/mips/mips-protos.h
index 77b7a9a..15f5022 100644
--- a/gcc/config/mips/mips-protos.h
+++ b/gcc/config/mips/mips-protos.h
@@ -191,7 +191,6 @@ extern enum reg_class mips_secondary_reload_class (enum reg_class,
enum machine_mode,
rtx, int);
extern int mips_class_max_nregs (enum reg_class, enum machine_mode);
-extern bool mips_valid_pointer_mode (enum machine_mode);
extern int build_mips16_call_stub (rtx, rtx, rtx, int);
extern int mips_register_move_cost (enum machine_mode, enum reg_class,
enum reg_class);
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 990671c..0a3025a 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -352,6 +352,7 @@ static bool mips_pass_by_reference (CUMULATIVE_ARGS *, enum machine_mode mode,
tree, bool);
static bool mips_callee_copies (CUMULATIVE_ARGS *, enum machine_mode mode,
tree, bool);
+static bool mips_valid_pointer_mode (enum machine_mode);
static bool mips_scalar_mode_supported_p (enum machine_mode);
static bool mips_vector_mode_supported_p (enum machine_mode);
static rtx mips_prepare_builtin_arg (enum insn_code, unsigned int, tree *);
@@ -7074,7 +7075,7 @@ mips_class_max_nregs (enum reg_class class ATTRIBUTE_UNUSED,
return (GET_MODE_SIZE (mode) + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
}
-bool
+static bool
mips_valid_pointer_mode (enum machine_mode mode)
{
return (mode == SImode || (TARGET_64BIT && mode == DImode));