This is the mail archive of the gcc-patches@gcc.gnu.org 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] targhooks.c: Remove default_narrow_bitfield.


Hi,

Attached is a patch to remove default_narrow_bitfield as it is unused.

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2007-05-26  Kazu Hirata  <kazu@codesourcery.com>

	* targhooks.c (default_narrow_bitfield): Remove.
	* targhooks.h: Remove the prototype for
	default_narrow_bitfield.

Index: targhooks.c
===================================================================
--- targhooks.c	(revision 125090)
+++ targhooks.c	(working copy)
@@ -600,20 +600,6 @@ default_secondary_reload (bool in_p ATTR
   return class;
 }
 
-
-/* If STRICT_ALIGNMENT is true we use the container type for accessing
-   volatile bitfields.  This is generally the preferred behavior for memory
-   mapped peripherals on RISC architectures.
-   If STRICT_ALIGNMENT is false we use the narrowest type possible.  This
-   is typically used to avoid spurious page faults and extra memory accesses
-   due to unaligned accesses on CISC architectures.  */
-
-bool
-default_narrow_bitfield (void)
-{
-  return !STRICT_ALIGNMENT;
-}
-
 bool
 default_handle_c_option (size_t code ATTRIBUTE_UNUSED,
 			 const char *arg ATTRIBUTE_UNUSED,
Index: targhooks.h
===================================================================
--- targhooks.h	(revision 125090)
+++ targhooks.h	(working copy)
@@ -55,8 +55,6 @@ extern bool default_decimal_float_suppor
 
 extern const char * default_invalid_within_doloop (rtx);
 
-extern bool default_narrow_bitfield (void);
-
 extern tree default_builtin_vectorized_function (enum built_in_function, tree, tree);
 
 extern tree default_builtin_vectorized_conversion (enum tree_code, tree);


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