summaryrefslogtreecommitdiff
path: root/gcc/config/avr/avr-mcus.def
diff options
context:
space:
mode:
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-07 12:45:13 +0000
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-07 12:45:13 +0000
commit8d0c391e4ec04bf5d4768228c38e284f2a00dccf (patch)
tree9da3d73b0897c7ce9c12ceb521f089a7452a6c77 /gcc/config/avr/avr-mcus.def
parente655d10efc1b2bb406286818241879c15d4a43c1 (diff)
downloadgcc-8d0c391e4ec04bf5d4768228c38e284f2a00dccf.tar.gz
PR55243
* config/avr/t-avr: Don't automatically rebuild $(srcdir)/config/avr/t-multilib $(srcdir)/config/avr/avr-tables.opt $(srcdir)/doc/avr-mmcu.texi (avr-mcus): New phony target to build them on request. (s-avr-mlib, s-avr-mmcu-texi): Remove. * avr/avr-mcus.def: Adjust comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194968 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/avr/avr-mcus.def')
-rw-r--r--gcc/config/avr/avr-mcus.def47
1 files changed, 39 insertions, 8 deletions
diff --git a/gcc/config/avr/avr-mcus.def b/gcc/config/avr/avr-mcus.def
index 01d61f7117c..8b06fa34460 100644
--- a/gcc/config/avr/avr-mcus.def
+++ b/gcc/config/avr/avr-mcus.def
@@ -18,19 +18,50 @@
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-/* List of all known AVR MCU types - if updated, it has to be kept
- in sync in several places (FIXME: is there a better way?):
- - here;
- - gas/config/tc-avr.c;
- - avr-libc.
+/* List of all known AVR MCU types. If updated, cd to $(builddir)/gcc and run
+
+ $ make avr-mcus
+
+ This will regenerate / update the following source files:
+
+ - $(srcdir)/config/avr/t-multilib
+ - $(srcdir)/config/avr/avr-tables.opt
+ - $(srcdir)/doc/avr-mmcu.texi
+
+ After that, rebuild everything and check-in the new sources to the repo.
+ The device list below has to be kept in sync with the following places:
+
+ - here
+ - gas/config/tc-avr.c
+ - avr-libc
Before including this file, define a macro:
- AVR_MCU (NAME, ARCH, MACRO, SHORT_SP, ERRATA_SKIP, DATA_SEC, N_FLASH, LIBRARY_NAME)
+ AVR_MCU (NAME, ARCH, MACRO, SHORT_SP, ERRATA_SKIP, DATA_SEC, N_FLASH,
+ LIBRARY_NAME)
+
+ where the arguments are the fields of struct mcu_type_s:
+
+ NAME Accept -mmcu=<NAME>
+
+ ARCH Specifies the multilib variant together with SHORT_SP
+
+ MACRO If NULL, this is a core and not a device. If non-NULL,
+ supply respective built-in macro.
+
+ SHORT_SP The device / multilib has an 8-bit stack pointer (no SPH).
+
+ ERRATA_SKIP Apply work-around for the "skip 32-bit instruction"
+ silicon bug: Don't skip 32-bit instrctions.
+
+ DATA_SEC First address of SRAM, used in -Tdata= by the driver.
+
+ N_FLASH Number of 64 KiB flash segments, rounded up.
- where the arguments are the fields of struct mcu_type_s. */
+ LIBRARY_NAME Used by the driver to linke startup code from avr-libc
+ as of crt<LIBRARY_NAME>.o
-/* "avr2" must be first for the "0" default to work as intended. */
+ "avr2" must be first for the "0" default to work as intended. */
/* Classic, <= 8K. */
AVR_MCU ("avr2", ARCH_AVR2, NULL, 0, 1, 0x0060, 6, "s8515")