Re: options: Clarifications around option definition records' help texts (was: make conflicting help text an error)

2022-03-31 Thread Joseph Myers
On Wed, 30 Mar 2022, Thomas Schwinge wrote: > > I don't think we want to support different help strings for > > different languages; if an option is supported for multiple languages, we > > should have a generic description of that option that is correct for all > > of them. > > To not just bury

Re: options: Fix "Multiple different help strings" error diagnostic (was: make conflicting help text an error)

2022-03-31 Thread Joseph Myers
On Wed, 30 Mar 2022, Thomas Schwinge wrote: > > --- gcc/optc-gen.awk (revision 187427) > > +++ gcc/optc-gen.awk (working copy) > > > else if (help[i] != "" && help[i + 1] != help[i]) > > - print "warning: multiple different help strings for " > > \ > > -

options: Clarifications around option definition records' help texts (was: make conflicting help text an error)

2022-03-30 Thread Thomas Schwinge
Hi! On 2012-05-13T11:03:36+, "Joseph S. Myers" wrote: > On Sun, 13 May 2012, Manuel Lpez-Ibez wrote: >> [an option is duplicated somewhere else] >> >> Only 2 options in Ada trigger this warning, and their help text has no >> effect, since it gest overridden by the ones in c.opt. Fixing this >

options: Fix "Multiple different help strings" error diagnostic (was: make conflicting help text an error)

2022-03-30 Thread Thomas Schwinge
Hi! On 2012-05-13T11:04:36+0200, Manuel López-Ibáñez wrote: > These warnings are invisible when building but they may help to detect > if an option is duplicated somewhere else with different purpose , so > it would be better to make this an error, ACK. > --- gcc/optc-gen.awk (revision 187427)

Re: make conflicting help text an error

2012-05-13 Thread Joseph S. Myers
On Sun, 13 May 2012, Manuel L?pez-Ib??ez wrote: > Hi, > > These warnings are invisible when building but they may help to detect > if an option is duplicated somewhere else with different purpose , so > it would be better to make this an error, > > Only 2 options in Ada trigger this warning, and

make conflicting help text an error

2012-05-13 Thread Manuel López-Ibáñez
Hi, These warnings are invisible when building but they may help to detect if an option is duplicated somewhere else with different purpose , so it would be better to make this an error, Only 2 options in Ada trigger this warning, and their help text has no effect, since it gest overridden by the