Remove TARGET_HELP hook

2011-06-20 Thread Joseph S. Myers
When moving hooks used in opts.c to the common hooks structure so they can be called from the driver, I did not move the TARGET_HELP hook because this hook is obsoleted by the generic Enum .opt facility (only being used to print list of enumerated arguments to options). Instead, this patch converts

RE: Remove TARGET_HELP hook

2011-06-20 Thread Weddington, Eric
> -Original Message- > From: Joseph Myers [mailto:jos...@codesourcery.com] > Sent: Monday, June 20, 2011 9:47 AM > To: gcc-patches@gcc.gnu.org > Cc: cherty...@gmail.com; ae...@post.ru; Weddington, Eric > Subject: Remove TARGET_HELP hook > > When moving hooks used

Re: Remove TARGET_HELP hook

2011-06-20 Thread Denis Chertykov
2011/6/20 Weddington, Eric : > > >> -Original Message- >> From: Joseph Myers [mailto:jos...@codesourcery.com] >> Sent: Monday, June 20, 2011 9:47 AM >> To: gcc-patches@gcc.gnu.org >> Cc: cherty...@gmail.com; ae...@post.ru; Weddington, Eric >> S

RE: Remove TARGET_HELP hook

2011-06-20 Thread Joseph S. Myers
On Mon, 20 Jun 2011, Weddington, Eric wrote: > I assume that this new method still prints out the avr mcu list in a > similar fashion? Yes. Any enumerated options get such lists printed as long as there is a help text on the Enum entry in the .opt file. -- Joseph S. Myers jos...@codesourcery

Re: Remove TARGET_HELP hook

2011-06-20 Thread Georg-Johann Lay
Joseph S. Myers schrieb: > When moving hooks used in opts.c to the common hooks structure so they > can be called from the driver, I did not move the TARGET_HELP hook > because this hook is obsoleted by the generic Enum .opt facility (only > being used to print list of enumerated arguments to optio

Re: Remove TARGET_HELP hook

2011-06-20 Thread Joseph S. Myers
On Mon, 20 Jun 2011, Georg-Johann Lay wrote: > > Index: gcc/config/avr/avr-tables.opt > > === > > --- gcc/config/avr/avr-tables.opt (revision 0) > > +++ gcc/config/avr/avr-tables.opt (revision 0) > > As it's auto-generated: must

RE: Remove TARGET_HELP hook

2011-06-20 Thread Weddington, Eric
> -Original Message- > From: Joseph Myers [mailto:jos...@codesourcery.com] > Sent: Monday, June 20, 2011 1:20 PM > To: Georg-Johann Lay > Cc: gcc-patches@gcc.gnu.org; cherty...@gmail.com; ae...@post.ru; > Weddington, Eric > Subject: Re: Remove TARGET_HELP hook >

RE: Remove TARGET_HELP hook

2011-06-20 Thread Joseph S. Myers
On Mon, 20 Jun 2011, Weddington, Eric wrote: > > > As it's auto-generated: must it reside in repository? > > > > The machinery for selecting .opt files to use and for using them (both in > > the compiler and in .pot generation) expects them all to be in the source > > directory. > > Right. So, a

RE: Remove TARGET_HELP hook

2011-06-20 Thread Weddington, Eric
> -Original Message- > From: Joseph Myers [mailto:jos...@codesourcery.com] > Sent: Monday, June 20, 2011 4:03 PM > To: Weddington, Eric > Cc: Georg-Johann Lay; gcc-patches@gcc.gnu.org; cherty...@gmail.com; > ae...@post.ru > Subject: RE: Remove TARGET_HELP hook >