diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-17 02:15:03 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-17 02:15:03 +0000 |
commit | cc47ed6ddebfece0584ad7ee706549614d16c0f0 (patch) | |
tree | 973a28470803b27c914f813f43d43f8932763ea3 /0021-mcmodel-Bugfix-for-mcmodel-medium-on-x86.patch | |
parent | 1e2198a988cc8d2ea55ab6ca2a1835e60149ab5c (diff) |
automatic import of gccopeneuler22.03_LTS_SP2
Diffstat (limited to '0021-mcmodel-Bugfix-for-mcmodel-medium-on-x86.patch')
-rw-r--r-- | 0021-mcmodel-Bugfix-for-mcmodel-medium-on-x86.patch | 23 |
1 files changed, 23 insertions, 0 deletions
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 <bule1@huawei.com> +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 + |