re PR target/65296 ([avr] fix various issues with specs file generation)
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 17 Mar 2015 10:34:11 +0000 (10:34 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Tue, 17 Mar 2015 10:34:11 +0000 (10:34 +0000)
commit076d86f3d2c8df6678b65fca53e1910e3a6c87bc
treed37338680255aa292a376c6ba8f54c47bf242943
parentebd63afa68237d05f4f5dfeb847d341a76239b68
re PR target/65296 ([avr] fix various issues with specs file generation)

PR target/65296
* config/avr/avr.opt (-nodevicelib): New option.
* doc/invoke.texi (AVR Options): Document it.
* config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
libgcc.a, libc.a, libm.a.
* config/avr/specs.h: Same.
* config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
which don't (directly) depend on the device.  Print more help.
(*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
(*cpp): Don't define __AVR_DEV_LIB_NAME__.
* config/avr/driver-avr.c: Remove -nodevicelib from option list in
case of an error.
(avr_devicespecs_file): Use suffix "%s" instead of absolute path
for specs file name.
* config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
* config/avr/avr-mcus.def: Adjust initializers and comments.

From-SVN: r221475
gcc/ChangeLog
gcc/config/avr/avr-arch.h
gcc/config/avr/avr-devices.c
gcc/config/avr/avr-mcus.def
gcc/config/avr/avr.opt
gcc/config/avr/avrlibc.h
gcc/config/avr/driver-avr.c
gcc/config/avr/gen-avr-mmcu-specs.c
gcc/config/avr/specs.h
gcc/doc/invoke.texi