From f7d11ed46c4a7c8bde45dc80f5b0f6e1bc42bd09 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 3 Jan 2025 14:49:50 -0600 Subject: [PATCH] gh-128456: Use '-reorder-functions=cdsort' for BOLT builds (GH-128457) 'hfsort+' is deprecated in favor of 'cdsort'. (cherry picked from commit 4974bbdb290b61a2d8860de490fde1228c296753) Co-authored-by: Zanie Blue --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c14d27ede2b173..d6c6cde4165fb7 100755 --- a/configure +++ b/configure @@ -9170,7 +9170,7 @@ printf "%s\n" "$BOLT_INSTRUMENT_FLAGS" >&6; } printf %s "checking BOLT_APPLY_FLAGS... " >&6; } if test -z "${BOLT_APPLY_FLAGS}" then - BOLT_APPLY_FLAGS=" -update-debug-sections -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot " + BOLT_APPLY_FLAGS=" -update-debug-sections -reorder-blocks=ext-tsp -reorder-functions=cdsort -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot " fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_APPLY_FLAGS" >&5 diff --git a/configure.ac b/configure.ac index bc8c357e99667e..4dfce49e1585cb 100644 --- a/configure.ac +++ b/configure.ac @@ -2127,7 +2127,7 @@ then [m4_normalize(" -update-debug-sections -reorder-blocks=ext-tsp - -reorder-functions=hfsort+ + -reorder-functions=cdsort -split-functions -icf=1 -inline-all