aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-02-17 20:38:26 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-02-17 20:38:26 +0000
commit277576eefcc91cb00fad847f48b153a234227b8a (patch)
tree89b9cc440cd490bb5f9896bd04fd3c82e0ac3be2 /gcc
parent44399cac47cffe3ed9612c23e67a3ea53039a8ac (diff)
downloadgcc-277576eefcc91cb00fad847f48b153a234227b8a.zip
gcc-277576eefcc91cb00fad847f48b153a234227b8a.tar.gz
gcc-277576eefcc91cb00fad847f48b153a234227b8a.tar.bz2
invoke.texi (-fmessage-length=n): Document.
* invoke.texi (-fmessage-length=n): Document. * decl2.c (lang_decode_option): Don't set default message length here. * lex.c (lang_init_options): Set it here. From-SVN: r32040
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/decl2.c9
-rw-r--r--gcc/invoke.texi6
4 files changed, 19 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b0e93cd..79503b7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2000-02-17 Mark Mitchell <mark@codesourcery.com>
+
+ * invoke.texi (-fmessage-length=n): Document.
+
2000-02-17 Jason Merrill <jason@casey.cygnus.com>
* bitmap.c (bitmap_operation): Don't leak bitmap elements.
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 537630f..c4869a1 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2000-02-17 Mark Mitchell <mark@codesourcery.com>
+
+ * decl2.c (lang_decode_option): Don't set default message length
+ here.
+ * lex.c (lang_init_options): Set it here.
+
2000-02-16 Mark Mitchell <mark@codesourcery.com>
Make DECL_CONTEXT mean the class in which a member function was
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 245ec1f..ff973e8 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -570,9 +570,6 @@ lang_decode_option (argc, argv)
strings_processed = 0;
#endif /* ! USE_CPPLIB */
- /* Enable automatic line wrapping by default */
- set_message_length (72);
-
if (!strcmp (p, "-ftraditional") || !strcmp (p, "-traditional"))
/* ignore */;
else if (p[0] == '-' && p[1] == 'f')
@@ -636,9 +633,9 @@ lang_decode_option (argc, argv)
name_mangling_version
= read_integral_parameter (p + 22, p - 2, name_mangling_version);
else if (!strncmp (p, "message-length=", 15))
- set_message_length
- (read_integral_parameter (p + 15, p -2,
- /* default line-wrap length */ 72));
+ set_message_length
+ (read_integral_parameter (p + 15, p - 2,
+ /* default line-wrap length */ 72));
else if (!strncmp (p, "dump-translation-unit-", 22))
{
if (p[22] == '\0')
diff --git a/gcc/invoke.texi b/gcc/invoke.texi
index f3a483c..ddd925a 100644
--- a/gcc/invoke.texi
+++ b/gcc/invoke.texi
@@ -1130,6 +1130,12 @@ This flag is not useful when compiling with -fvtable-thunks.
Like all options that change the ABI, all C++ code, @emph{including
libgcc} must be built with the same setting of this option.
+@item -fmessage-length=@var{n}
+Try to format error messages so that they fit on lines of about @var{n}
+characters. The deafult is 72 characters. If @var{n} is zero, then to
+line-wrapping will be done; each error message will appear on a single
+line.
+
@item -fno-implicit-templates
Never emit code for non-inline templates which are instantiated
implicitly (i.e. by use); only emit code for explicit instantiations.