[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] [patch] Add support for avrxmega3.
From: |
Georg-Johann Lay |
Subject: |
Re: [avr-libc-dev] [patch] Add support for avrxmega3. |
Date: |
Tue, 13 Jun 2017 11:42:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
On 08.06.2017 12:44, Georg-Johann Lay wrote:
Hi,
this patch adds avrxmega3 support and the 2 multilib versions
associated with it.
avr-gcc doesn't yet have respective support, but the Makefiles
scale accordingly. As is is easier to get something into avr-gcc,
and because the libc and gcc must agree on the support, I am
starting with the "hard" part.
FYI, the respective extension has been added to GCC and is
available since
https://gcc.gnu.org/r249124
It
* Adds -mmcu=avrxmega3
* Adds -mshort-calls
* Adds some devices (not yet supported by avr-libc)
* Adds a configure check so it's restrictive in that it
requires https://sourceware.org/PR21472 to build avr-gcc.
Johann
Add multilib support for avrxmega3 + avrxmega3/short-calls.
* configure.ac (CHECK_AVR_DEVICE): Add one for avrxmega3.
(AM_CONDITIONAL): Add one for HAS_avrxmega3.
(AC_CONFIG_FILES): Add avr/lib/avrxmega3/Makefile,
avr/lib/avrxmega3/short-calls/Makefile.
* devtools/gen-avr-lib-tree.sh (CFLAGS_SHORT_CALLS): New.
(AVRXMEGA3_DEV_INFO): New.
(AVRXMEGA3SC_DEV_INFO): New.
(AVR_ARH_INFO): Add entries avrxmega3, avrxmega3/short-calls.
* include/avr/pgmspace.h (__AVR_HAVE_RAMPD__): Fix comment.