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] combine.c: Remove UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD.


Hi,

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

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

Kazu Hirata

2006-03-14  Kazu Hirata  <kazu@codesourcery.com>

	* combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.

Index: combine.c
===================================================================
--- combine.c	(revision 112046)
+++ combine.c	(working copy)
@@ -139,12 +139,6 @@ static int max_uid_cuid;
 #define INSN_CUID(INSN) \
 (INSN_UID (INSN) > max_uid_cuid ? insn_cuid (INSN) : uid_cuid[INSN_UID (INSN)])
 
-/* In case BITS_PER_WORD == HOST_BITS_PER_WIDE_INT, shifting by
-   BITS_PER_WORD would invoke undefined behavior.  Work around it.  */
-
-#define UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD(val) \
-  (((unsigned HOST_WIDE_INT) (val) << (BITS_PER_WORD - 1)) << 1)
-
 /* Maximum register number, which is the size of the tables below.  */
 
 static unsigned int combine_max_regno;


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