[committed,VAX] Fix vax build after recent CTZ/CLZ changes

Message ID 071a6d60-6c3f-44f3-b121-a6cb2851cb8e@oss.qualcomm.com
State Committed
Commit 3a4df843f91297bcfde6d365498373769691255d
Headers
Series [committed,VAX] Fix vax build after recent CTZ/CLZ changes |

Commit Message

Jeff Law Oct. 11, 2026, 5:03 p.m. UTC
  So just like pru-elf, vax was affected by the CTZ/CLZ changes.  Apply 
the same fix there.  Verified that vax builds again.

Pushing to the trunk,

Jeff
commit 3a4df843f91297bcfde6d365498373769691255d
Author: Jeff Law <jeffrey.law@oss.qualcomm.com>
Date:   Sun Oct 11 11:01:52 2026 -0600

    [VAX]Fix vax build after recent CTZ/CLZ changes
    
    So just like pru-elf, vax was affected by the CTZ/CLZ changes.  Apply the same
    fix there.  Verified that vax builds again.
    
    gcc
            * config/vax/vax.h (CTZ_DEFINED_AT_ZERO): Use GET_MODE_UNIT_BITSIZE.
  

Comments

Maciej W. Rozycki Oct. 19, 2026, 12:20 a.m. UTC | #1
On Sun, 11 Oct 2026, Jeff Law wrote:

> So just like pru-elf, vax was affected by the CTZ/CLZ changes.  Apply the same
> fix there.  Verified that vax builds again.

 Thanks for taking care of the fallout.

  Maciej
  

Patch

diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h
index 1089b210a13..a21ae498ad6 100644
--- a/gcc/config/vax/vax.h
+++ b/gcc/config/vax/vax.h
@@ -654,4 +654,4 @@  VAX operand formatting codes:
 /* Upon failure to find the bit the FFS hardware instruction returns
    the position of the bit immediately following the field specified.  */
 #define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE)	\
-  ((VALUE) = GET_MODE_BITSIZE (MODE), 2)
+  ((VALUE) = GET_MODE_UNIT_BITSIZE (MODE), 2)