diff options
author | Anthony Green <green@redhat.com> | 2001-02-10 23:30:55 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2001-02-10 23:30:55 +0000 |
commit | 3220116ffb472e3330fcebaf30246c74a271dfe0 (patch) | |
tree | dbd5a71c9293883125b1d1d77c0670ee3376c947 | |
parent | 36b8ffbe4ff1ce789319e76b5f7c326ceb00b94f (diff) | |
download | gcc-3220116ffb472e3330fcebaf30246c74a271dfe0.zip gcc-3220116ffb472e3330fcebaf30246c74a271dfe0.tar.gz gcc-3220116ffb472e3330fcebaf30246c74a271dfe0.tar.bz2 |
Doc and warning fixes.
From-SVN: r39580
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/c-common.c | 2 | ||||
-rw-r--r-- | gcc/cpp.texi | 8 |
3 files changed, 16 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 920c9180..05056df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-02-10 Anthony Green <green@redhat.com> + + * cpp.texi (Standard Predefined): Add documentation for + __OPTIMIZE_SIZE__. + + * c-common.c (combine_strings): Improve warning message. + 2001-02-10 Geoffrey Keating <geoffk@redhat.com> * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Use two dashes for diff --git a/gcc/c-common.c b/gcc/c-common.c index 437f64a..dfa5813 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 6086e26..363b84c 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 |