-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspecs-atmega328p__avr-gcc-5.4.0
99 lines (76 loc) · 2.25 KB
/
specs-atmega328p__avr-gcc-5.4.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#
# Auto-generated specs for AVR device atmega328p (core avr5, 16-bit SP)
#
# Generated by : ./gcc/config/avr/gen-avr-mmcu-specs.c
# Generated from : ./gcc/config/gcc.c
# ./gcc/config/avr/specs.h
# ./gcc/config/avr/avrlibc.h
# Used by : avr-gcc compiler driver
# Used for : building command options for sub-processes
#
# See <https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html>
# for a documentation of spec files.
# If you intend to use an existing device specs file as a starting point
# for a new device spec file, make sure you are copying from a specs
# file for a device from the same core architecture and SP width.
# See <https://gcc.gnu.org/gcc-5/changes.html> for a description
# of how to use such own spec files.
*avrlibc_startfile:
crtatmega328p.o%s
*avrlibc_devicelib:
%{!nodevicelib:-latmega328p}
*cc1_n_flash:
%{!mn-flash=*:-mn-flash=1}
*cc1_rmw:
%{mrmw}
*cc1_errata_skip:
%{!mskip-bug: -mno-skip-bug}
*cc1_absdata:
%{mabsdata}
*asm_arch:
-mmcu=avr5
*asm_relax:
%{mrelax:--mlink-relax}
*asm_rmw:
%{mrmw}
*asm_errata_skip:
%{!mskip-bug: -mno-skip-bug}
*link_pmem_wrap:
%{mpmem-wrap-around: --pmem-wrap-around=32k}
*link_relax:
%{mrelax:--relax}
*link_arch:
%{mmcu=*:-m%*}
*link_data_start:
-Tdata 0x800100
*link_text_start:
*self_spec:
%{!mmcu=avr*: %<mmcu=* -mmcu=avr5} %<mshort-calls %<msp8
# AVR-LibC's avr/io.h uses the device specifying macro to determine
# the name of the device header. For example, -mmcu=atmega8a triggers
# the definition of __AVR_ATmega8A__ and avr/io.h includes the device
# header 'iom8a.h' by means of:
#
# ...
# #elif defined (__AVR_ATmega8A__)
# # include <avr/iom8a.h>
# #elif ...
#
# If no device macro is defined, AVR-LibC uses __AVR_DEV_LIB_NAME__
# as fallback to determine the name of the device header as
#
# "avr/io" + __AVR_DEV_LIB_NAME__ + ".h"
#
# If you provide your own specs file for a device not yet known to
# AVR-LibC, you can now define the hook macro __AVR_DEV_LIB_NAME__
# as needed so that
#
# #include <avr/io.h>
#
# will include the desired device header. For ATmega8A the supplement
# to *cpp would read
#
# -D__AVR_DEV_LIB_NAME__=m8a
*cpp:
-D__AVR_ATmega328P__ -D__AVR_DEVICE_NAME__=atmega328p
# End of file