Skip to content

Commit

Permalink
xtensa: use psram-fix multilib for esp32 chip only
Browse files Browse the repository at this point in the history
  • Loading branch information
antmak committed May 11, 2022
1 parent 314fb30 commit 5d98807
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
5 changes: 5 additions & 0 deletions gcc/config.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -3564,6 +3564,11 @@ xstormy16-*-elf)
extra_options=stormy16/stormy16.opt
tmake_file="stormy16/t-stormy16"
;;
xtensa*-esp32-elf*)
tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h"
tmake_file="${tmake_file} xtensa/t-xtensa-psram-fix"
extra_options="${extra_options} xtensa/elf.opt"
;;
xtensa*-*-elf*)
tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h"
extra_options="${extra_options} xtensa/elf.opt"
Expand Down
4 changes: 2 additions & 2 deletions gcc/config/xtensa/t-xtensa
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

$(out_object_file): gt-xtensa.h

MULTILIB_OPTIONS = mfix-esp32-psram-cache-issue fno-rtti
MULTILIB_DIRNAMES = esp32-psram no-rtti
MULTILIB_OPTIONS = fno-rtti
MULTILIB_DIRNAMES = no-rtti
22 changes: 22 additions & 0 deletions gcc/config/xtensa/t-xtensa-psram-fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (C) 2002-2018 Free Software Foundation, Inc.
#
# This file is part of GCC.
#
# GCC is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GCC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>.

$(out_object_file): gt-xtensa.h

MULTILIB_OPTIONS = mfix-esp32-psram-cache-issue fno-rtti
MULTILIB_DIRNAMES = esp32-psram no-rtti

0 comments on commit 5d98807

Please sign in to comment.