Merge multi-line descriptions in .opt files
Hans-Peter Nilsson
hp@bitrange.com
Sun Jul 21 07:35:00 GMT 2013
On Sat, 20 Jul 2013, Göran Uddeborg wrote:
> While translating GCC (to Swedish), I've occasionally come across
> obviously truncated strings. Often, it has been caused by multiple
> lines used for the description in .opt files. I've tried to file
> reports about them.
>
> One such report I made in late 2007. In 2011 I got the suggestion to
> send in patches instead. See
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34352 for details. That
> I'll do, I thought.
>
> And promptly forgot about, apparently.
>
> But better late than never! I've finally made myself a little script
> to discover those cases, and merged the descriptions into one line. I
> attach the suggested diff here.
First, thanks!
But second, I think it'd be less brittle to actually support
multi-line .opt comments; terminated by an empty line, unless of
course there's an inherent .opt-language conflict. (Hopefully
this'd be a shorter patch; though independent it'd make your
current patch redundant.)
brgds, H-P
More information about the Gcc-patches
mailing list