* Patch: update -fmessage-length docs
@ 2007-03-29 15:55 Tom Tromey
2007-03-29 16:07 ` Gabriel Dos Reis
0 siblings, 1 reply; 8+ messages in thread
From: Tom Tromey @ 2007-03-29 15:55 UTC (permalink / raw)
To: Gcc Patch List
It turns out that -fmessage-length defaults to 0 even for g++. This
patch updates the documentation to match.
Ok?
Tom
:ADDPATCH documentation:
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* doc/invoke.texi (Language Independent Options): Message length
defaults to 0.
Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi (revision 123217)
+++ doc/invoke.texi (working copy)
@@ -2394,10 +2394,8 @@
@item -fmessage-length=@var{n}
@opindex fmessage-length
Try to format error messages so that they fit on lines of about @var{n}
-characters. The default is 72 characters for @command{g++} and 0 for the rest of
-the front ends supported by GCC@. If @var{n} is zero, then no
-line-wrapping will be done; each error message will appear on a single
-line.
+characters. If @var{n} is zero (the default), then no line-wrapping
+will be done; each error message will appear on a single line.
@opindex fdiagnostics-show-location
@item -fdiagnostics-show-location=once
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Patch: update -fmessage-length docs
2007-03-29 15:55 Patch: update -fmessage-length docs Tom Tromey
@ 2007-03-29 16:07 ` Gabriel Dos Reis
2007-03-29 16:11 ` Richard Guenther
2007-03-29 16:16 ` Tom Tromey
0 siblings, 2 replies; 8+ messages in thread
From: Gabriel Dos Reis @ 2007-03-29 16:07 UTC (permalink / raw)
To: tromey; +Cc: Gcc Patch List
Tom Tromey <tromey@redhat.com> writes:
| It turns out that -fmessage-length defaults to 0 even for g++.
Then, that is a bug.
When I oiginally implemented that for C++, the intended semantics
definitely was to have it default to 72 -- but C people wanted
something different for C front end. If it is observed that g++ has
it set to zero, then we must set it back to 72.
-- Gaby
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Patch: update -fmessage-length docs
2007-03-29 16:07 ` Gabriel Dos Reis
@ 2007-03-29 16:11 ` Richard Guenther
2007-03-29 16:28 ` gdr
2007-03-29 16:16 ` Tom Tromey
1 sibling, 1 reply; 8+ messages in thread
From: Richard Guenther @ 2007-03-29 16:11 UTC (permalink / raw)
To: Gabriel Dos Reis; +Cc: tromey, Gcc Patch List
On 29 Mar 2007 10:41:29 -0500, Gabriel Dos Reis <gdr@cs.tamu.edu> wrote:
> Tom Tromey <tromey@redhat.com> writes:
>
> | It turns out that -fmessage-length defaults to 0 even for g++.
>
> Then, that is a bug.
> When I oiginally implemented that for C++, the intended semantics
> definitely was to have it default to 72 -- but C people wanted
> something different for C front end. If it is observed that g++ has
> it set to zero, then we must set it back to 72.
Please not, 72 is completely unusable for C++.
Richard.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Patch: update -fmessage-length docs
2007-03-29 16:07 ` Gabriel Dos Reis
2007-03-29 16:11 ` Richard Guenther
@ 2007-03-29 16:16 ` Tom Tromey
2007-03-29 16:30 ` Gabriel Dos Reis
1 sibling, 1 reply; 8+ messages in thread
From: Tom Tromey @ 2007-03-29 16:16 UTC (permalink / raw)
To: Gabriel Dos Reis; +Cc: Gcc Patch List
>>>>> "Gaby" == Gabriel Dos Reis <gdr@cs.tamu.edu> writes:
> Tom Tromey <tromey@redhat.com> writes:
> | It turns out that -fmessage-length defaults to 0 even for g++.
Gaby> Then, that is a bug.
Gaby> When I oiginally implemented that for C++, the intended semantics
Gaby> definitely was to have it default to 72 -- but C people wanted
Gaby> something different for C front end. If it is observed that g++ has
Gaby> it set to zero, then we must set it back to 72.
I don't have a preference on this, just that the docs match the
implementation.
If we change it to 72 then PR 712 should be reopened. That is how I
noticed this :)
Tom
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Patch: update -fmessage-length docs
2007-03-29 16:11 ` Richard Guenther
@ 2007-03-29 16:28 ` gdr
0 siblings, 0 replies; 8+ messages in thread
From: gdr @ 2007-03-29 16:28 UTC (permalink / raw)
To: Richard Guenther; +Cc: tromey, Gcc Patch List
Quoting Richard Guenther <richard.guenther@gmail.com>:
> On 29 Mar 2007 10:41:29 -0500, Gabriel Dos Reis <gdr@cs.tamu.edu> wrote:
>> Tom Tromey <tromey@redhat.com> writes:
>>
>> | It turns out that -fmessage-length defaults to 0 even for g++.
>>
>> Then, that is a bug.
>> When I oiginally implemented that for C++, the intended semantics
>> definitely was to have it default to 72 -- but C people wanted
>> something different for C front end. If it is observed that g++ has
>> it set to zero, then we must set it back to 72.
>
> Please not, 72 is completely unusable for C++.
how much? 80?
0 is unreadable -- that is what prompted the work in the first place.
-- Gaby
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Patch: update -fmessage-length docs
2007-03-29 16:16 ` Tom Tromey
@ 2007-03-29 16:30 ` Gabriel Dos Reis
2007-03-29 16:47 ` Tom Tromey
0 siblings, 1 reply; 8+ messages in thread
From: Gabriel Dos Reis @ 2007-03-29 16:30 UTC (permalink / raw)
To: tromey; +Cc: Gcc Patch List
Tom Tromey <tromey@redhat.com> writes:
| >>>>> "Gaby" == Gabriel Dos Reis <gdr@cs.tamu.edu> writes:
|
| > Tom Tromey <tromey@redhat.com> writes:
| > | It turns out that -fmessage-length defaults to 0 even for g++.
|
| Gaby> Then, that is a bug.
| Gaby> When I oiginally implemented that for C++, the intended semantics
| Gaby> definitely was to have it default to 72 -- but C people wanted
| Gaby> something different for C front end. If it is observed that g++ has
| Gaby> it set to zero, then we must set it back to 72.
|
| I don't have a preference on this, just that the docs match the
| implementation.
I completely agree.
| If we change it to 72 then PR 712 should be reopened. That is how I
| noticed this :)
Sure. :-)
-- Gaby
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Patch: update -fmessage-length docs
2007-03-29 16:30 ` Gabriel Dos Reis
@ 2007-03-29 16:47 ` Tom Tromey
0 siblings, 0 replies; 8+ messages in thread
From: Tom Tromey @ 2007-03-29 16:47 UTC (permalink / raw)
To: Gabriel Dos Reis; +Cc: Gcc Patch List
>>>>> "Gaby" == Gabriel Dos Reis <gdr@cs.tamu.edu> writes:
> | If we change it to 72 then PR 712 should be reopened. That is how I
> | noticed this :)
Gaby> Sure. :-)
Actually, Wolfgang points out that this bug is fixed and I am
misreading the output. Sorry about that.
Tom
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Patch: update -fmessage-length docs
2007-07-03 1:29 Geoffrey Keating
@ 2007-07-03 18:09 ` Tom Tromey
0 siblings, 0 replies; 8+ messages in thread
From: Tom Tromey @ 2007-07-03 18:09 UTC (permalink / raw)
To: Geoffrey Keating; +Cc: gcc-patches List
>>>>> "Geoff" == Geoffrey Keating <geoffk@apple.com> writes:
>> * doc/invoke.texi (Language Independent Options): Message length
>> defaults to 0.
Geoff> In the absence of evidence that the change was intentional, I assume
Geoff> that the docs are correct and the code is wrong, so this patch is not
Geoff> OK.
Thanks. I filed a PR: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32614
Tom
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-07-03 18:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-29 15:55 Patch: update -fmessage-length docs Tom Tromey
2007-03-29 16:07 ` Gabriel Dos Reis
2007-03-29 16:11 ` Richard Guenther
2007-03-29 16:28 ` gdr
2007-03-29 16:16 ` Tom Tromey
2007-03-29 16:30 ` Gabriel Dos Reis
2007-03-29 16:47 ` Tom Tromey
2007-07-03 1:29 Geoffrey Keating
2007-07-03 18:09 ` Patch: " Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).