From 960bf856d530e9dcdb97ff4181ef7d7a2c213feb Mon Sep 17 00:00:00 2001 From: green Date: Sat, 10 Feb 2001 23:30:55 +0000 Subject: [PATCH] Doc and warning fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39580 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/c-common.c | 2 +- gcc/cpp.texi | 8 ++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 920c9180c50..05056df2e3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-02-10 Anthony Green + + * cpp.texi (Standard Predefined): Add documentation for + __OPTIMIZE_SIZE__. + + * c-common.c (combine_strings): Improve warning message. + 2001-02-10 Geoffrey Keating * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Use two dashes for diff --git a/gcc/c-common.c b/gcc/c-common.c index 437f64a94c9..dfa58136f49 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -466,7 +466,7 @@ combine_strings (strings) nchars = wide_flag ? length / wchar_bytes : length; if (pedantic && nchars - 1 > nchars_max && c_language == clk_c) - pedwarn ("string length `%d' is greater than the minimum length `%d' ISO C%d is required to support", + pedwarn ("string length `%d' is greater than the length `%d' ISO C%d compilers are required to support", nchars - 1, nchars_max, flag_isoc99 ? 99 : 89); /* Create the array type for the string constant. diff --git a/gcc/cpp.texi b/gcc/cpp.texi index 6086e26bddc..363b84c6079 100644 --- a/gcc/cpp.texi +++ b/gcc/cpp.texi @@ -1191,6 +1191,14 @@ library functions. You should not refer to or test the definition of this macro unless you make very sure that programs will execute with the same effect regardless. +@item __OPTIMIZE_SIZE__ +@findex __OPTIMIZE_SIZE__ +GNU CC defines this macro when optimizing for size with @samp{-Os}. It +causes certain GNU header files to define alternative macro definitions +for some system library functions. You should not refer to or test the +definition of this macro unless you make very sure that programs will +execute with the same effect regardless. + @item __CHAR_UNSIGNED__ @findex __CHAR_UNSIGNED__ GNU C defines this macro if and only if the data type @code{char} is -- 2.11.0