MSP430: Add -mtiny-printf option
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 4 Nov 2019 11:23:46 +0000 (11:23 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Mon, 4 Nov 2019 11:23:46 +0000 (11:23 +0000)
commit02afb6a9321fbfb435452636cedc2cd43f0c4fd2
treeb95094eb460ebe7546a506c6abd911669e8fbecf
parente0f8e3da333591e40d07ec3621dafef4ae082dcb
MSP430: Add -mtiny-printf option

2019-11-04  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

gcc/
* config.in: Regenerate.
* config/msp430/msp430.c (msp430_option_override): Emit an error if
-mtiny-printf is used without GCC being configured with
--enable-newlib-nano-formatted-io.
* config/msp430/msp430.h (LINK_SPEC): Pass
"--wrap puts --wrap printf" when -mtiny-printf is used.
* config/msp430/msp430.opt: Document -mtiny-printf.
* configure: Regenerate.
* configure.ac: Enable --enable-newlib-nano-formatted-io flag.
Define HAVE_NEWLIB_NANO_FORMATTED_IO if
--enable-newlib-nano-formatted-io is passed.
* doc/invoke.texi: Document -mtiny-printf.

gcc/testsuite/
* gcc.target/msp430/tiny-printf.c: New test.

From-SVN: r277774
gcc/ChangeLog
gcc/config.in
gcc/config/msp430/msp430.c
gcc/config/msp430/msp430.h
gcc/config/msp430/msp430.opt
gcc/configure
gcc/configure.ac
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/msp430/tiny-printf.c [new file with mode: 0644]