This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Merge multi-line descriptions in .opt files


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]