From d82826d1a1c7ea45a761dfbf76b879712c7332ec Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 17 Oct 2023 02:15:03 +0000 Subject: automatic import of gcc --- ...-mcmodel-Bugfix-for-mcmodel-medium-on-x86.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 0021-mcmodel-Bugfix-for-mcmodel-medium-on-x86.patch (limited to '0021-mcmodel-Bugfix-for-mcmodel-medium-on-x86.patch') diff --git a/0021-mcmodel-Bugfix-for-mcmodel-medium-on-x86.patch b/0021-mcmodel-Bugfix-for-mcmodel-medium-on-x86.patch new file mode 100644 index 0000000..063da4e --- /dev/null +++ b/0021-mcmodel-Bugfix-for-mcmodel-medium-on-x86.patch @@ -0,0 +1,23 @@ +From 023c92ac45b727768599a95f7da748158a270753 Mon Sep 17 00:00:00 2001 +From: bule +Date: Mon, 16 Aug 2021 11:20:35 +0800 +Subject: [PATCH 21/22] [mcmodel] Bugfix for mcmodel=medium on x86 + +Declare default_medium_symbol_p in targhooks.h which otherwise +cause the build failure on x86 platform. + +diff --git a/gcc/targhooks.h b/gcc/targhooks.h +index 72f3064e8f8..95c136edc79 100644 +--- a/gcc/targhooks.h ++++ b/gcc/targhooks.h +@@ -218,6 +218,7 @@ extern int default_register_move_cost (machine_mode, reg_class_t, + reg_class_t); + extern bool default_slow_unaligned_access (machine_mode, unsigned int); + extern HOST_WIDE_INT default_estimated_poly_value (poly_int64); ++extern bool default_medium_symbol_p (rtx); + + extern bool default_use_by_pieces_infrastructure_p (unsigned HOST_WIDE_INT, + unsigned int, +-- +2.21.0.windows.1 + -- cgit v1.2.3