Fix various problems with specs file generation.
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 3 Mar 2015 11:03:16 +0000 (11:03 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Tue, 3 Mar 2015 11:03:16 +0000 (11:03 +0000)
commit3882207695588de867178df85b1e2511ccd7fb26
tree7c455fd99b4713b39076bcbdf55f3ba6156db71d
parentb4b78e2db461fe40680ebba3bf73e3a3ed8546ed
Fix various problems with specs file generation.

gcc/
Fix various problems with specs file generation.
PR target/65296
* config.gcc (extra_gcc_objs) [avr]: Remove.
* config/avr/driver-avr.c: Remove file.
* config/avr/t-avr (driver-avr.o): Remove rule.
(gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
INCLUDES to build.  Depend on TM_H.
* config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
build warnings.  Fix non-matching types and non-existing %-codes.
(tm.h): Include.
(*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
(*libgcc) [WITH_AVRLIBC]: Add "-lm".
* config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
* config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
(CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
(LIBGCC_SPEC): Remove definitions.

From-SVN: r221141
gcc/ChangeLog
gcc/config.gcc
gcc/config/avr/avr.h
gcc/config/avr/avrlibc.h
gcc/config/avr/driver-avr.c [deleted file]
gcc/config/avr/gen-avr-mmcu-specs.c
gcc/config/avr/t-avr