OSDN Git Service

Backport from 2012-03-28 mainline r185907.
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Mar 2012 09:04:11 +0000 (09:04 +0000)
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Mar 2012 09:04:11 +0000 (09:04 +0000)
commit3125bdf2f809cddae2d0b296f8811933a795995b
tree8a734186719e488b2ee1d4dc0e5a68304fb0d4cc
parentaa2899f300e401acd7ebad7d5c64e9572be6a8b0
Backport from 2012-03-28 mainline r185907.

PR target/52737
* contrib/gcc_update (files_and_dependencies):
Remove gcc/config/avr/t-multilib from touch data.

gcc/
Backport from 2012-03-28 mainline r185907.

PR target/52737
* config.gcc (tm_file): Remove avr/multilib.h.

* doc/invoke.texi (AVR Options): Adjust
documentation of -mtiny-stack.

* config/avr/genmultilib.awk: Remove code to generate multilib.h.
(BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
* config/avr/t-avr: Remove generation of multilib.h.
* config/avr/t-multilib: Regenerate.
* config/avr/multilib.h: Remove.
* config/avr/avr.opt (-msp8): New option.
(avr_sp8): New variable.
* config/avr/driver-avr.c (avr_device_to_sp8): New function.
* config/avr/avr.h (AVR_HAVE_SPH): New define.
(AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
(avr_device_to_sp8): New prototype.
(EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
(DRIVER_SELF_SPECS): New define.
* config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
__AVR_SP8__, __AVR_HAVE_SPH__.
* config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
AVR_HAVE_8BIT_SP to decide if SP_H is present.
(avr_file_start): Ditto.

libgcc/
Backport from 2012-03-28 mainline r185907.

PR target/52737
* config/avr/lib1funcs.S: Use __AVR_HAVE_SPH__ for SP_H checks
instead of __AVR_HAVE_8BIT_SP__.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@185908 138bc75d-0d04-0410-961f-82ee72b054a4
16 files changed:
ChangeLog
contrib/gcc_update
gcc/ChangeLog
gcc/config.gcc
gcc/config/avr/avr-c.c
gcc/config/avr/avr.c
gcc/config/avr/avr.h
gcc/config/avr/avr.opt
gcc/config/avr/driver-avr.c
gcc/config/avr/genmultilib.awk
gcc/config/avr/multilib.h [deleted file]
gcc/config/avr/t-avr
gcc/config/avr/t-multilib
gcc/doc/invoke.texi
libgcc/ChangeLog
libgcc/config/avr/lib1funcs.S