aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.in
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2019-11-04 11:23:46 +0000
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>2019-11-04 11:23:46 +0000
commit02afb6a9321fbfb435452636cedc2cd43f0c4fd2 (patch)
treeb95094eb460ebe7546a506c6abd911669e8fbecf /gcc/config.in
parente0f8e3da333591e40d07ec3621dafef4ae082dcb (diff)
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
Diffstat (limited to 'gcc/config.in')
-rw-r--r--gcc/config.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config.in b/gcc/config.in
index c0baa761fcd..e2afcbc8940 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -1688,6 +1688,13 @@
#endif
+/* Define if GCC has been configured with --enable-newlib-nano-formatted-io.
+ */
+#ifndef USED_FOR_TARGET
+#undef HAVE_NEWLIB_NANO_FORMATTED_IO
+#endif
+
+
/* Define to 1 if you have the `nl_langinfo' function. */
#ifndef USED_FOR_TARGET
#undef HAVE_NL_LANGINFO