Module Name: src
Committed By: kalvisd
Date: Sun Sep 29 07:40:55 UTC 2024
Modified Files:
src/external/gpl3/gcc/dist/gcc: dse.cc
Log Message:
gcc: vax: add #ifdef NB_FIX_VAX_BACKEND guard clauses.
Also, for VAX, change the type of the argument to lowpart_bitmask() to
unsigned, this seems to be important for the comparisons to work as
intended.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/dist/gcc/dse.cc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/gcc/dse.cc
diff -u src/external/gpl3/gcc/dist/gcc/dse.cc:1.3 src/external/gpl3/gcc/dist/gcc/dse.cc:1.4
--- src/external/gpl3/gcc/dist/gcc/dse.cc:1.3 Sun Sep 29 07:23:04 2024
+++ src/external/gpl3/gcc/dist/gcc/dse.cc Sun Sep 29 07:40:55 2024
@@ -298,14 +298,19 @@ public:
/* Return a bitmask with the first N low bits set. */
static unsigned HOST_WIDE_INT
+#ifdef NB_FIX_VAX_BACKEND
+lowpart_bitmask (unsigned int n)
+#else
lowpart_bitmask (int n)
+#endif
{
unsigned HOST_WIDE_INT mask = HOST_WIDE_INT_M1U;
+#ifdef NB_FIX_VAX_BACKEND
if (n < 1)
return 0;
if (n >= HOST_BITS_PER_WIDE_INT)
return mask;
-#if 1 // XXXMRG
+#else // XXXMRG
gcc_assert(n >= 0 && n <= HOST_BITS_PER_WIDE_INT);
if (n == 0)
return 0;
@@ -1344,8 +1349,10 @@ all_positions_needed_p (store_info *s_in
return false;
return true;
}
+#ifdef NB_FIX_VAX_BACKEND
else if (const_start >= HOST_BITS_PER_WIDE_INT || const_start < 0)
return true;
+#endif
else
{
unsigned HOST_WIDE_INT mask