Skip to content

Commit ddee437

Browse files
committed
RTEMS: Add multilib configuration for aarch64
Add a multilib with workarounds for Cortex-A53 errata. gcc/ChangeLog: * config.gcc (aarch64-*-rtems*): Add target makefile fragment t-aarch64-rtems. * config/aarch64/t-aarch64-rtems: New file.
1 parent 481ba4f commit ddee437

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

gcc/config.gcc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,7 @@ aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*)
11991199
;;
12001200
aarch64-*-rtems*)
12011201
tm_file="${tm_file} aarch64/rtems.h rtems.h"
1202+
tmake_file="${tmake_file} aarch64/t-aarch64-rtems"
12021203
;;
12031204
esac
12041205
case $target in

gcc/config/aarch64/t-aarch64-rtems

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Multilibs for aarch64 RTEMS targets.
2+
#
3+
# Copyright (C) 2024 Free Software Foundation, Inc.
4+
#
5+
# This file is part of GCC.
6+
#
7+
# GCC is free software; you can redistribute it and/or modify it
8+
# under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation; either version 3, or (at your option)
10+
# any later version.
11+
#
12+
# GCC is distributed in the hope that it will be useful, but
13+
# WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
# General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with GCC; see the file COPYING3. If not see
19+
# <http://www.gnu.org/licenses/>.
20+
21+
MULTILIB_OPTIONS =
22+
MULTILIB_DIRNAMES =
23+
MULTILIB_REQUIRED =
24+
25+
MULTILIB_OPTIONS += mabi=ilp32
26+
MULTILIB_DIRNAMES += ilp32
27+
28+
MULTILIB_OPTIONS += mno-outline-atomics
29+
MULTILIB_DIRNAMES += nooa
30+
31+
MULTILIB_OPTIONS += mcpu=cortex-a53
32+
MULTILIB_DIRNAMES += a53
33+
34+
MULTILIB_OPTIONS += mfix-cortex-a53-835769
35+
MULTILIB_DIRNAMES += fix835769
36+
37+
MULTILIB_OPTIONS += mfix-cortex-a53-843419
38+
MULTILIB_DIRNAMES += fix843419
39+
40+
MULTILIB_REQUIRED += mabi=ilp32
41+
MULTILIB_REQUIRED += mabi=ilp32/mno-outline-atomics/mcpu=cortex-a53/mfix-cortex-a53-835769/mfix-cortex-a53-843419
42+
MULTILIB_REQUIRED += mno-outline-atomics/mcpu=cortex-a53/mfix-cortex-a53-835769/mfix-cortex-a53-843419

0 commit comments

Comments
 (0)