This is the mail archive of the gcc@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: pragma-like warning turn off ?


"Sunzir Deepur" <sunzird@gmail.com> writes:

> On 21 Aug 2007 21:19:07 -0700, Ian Lance Taylor <iant@google.com> wrote:
> > "Sunzir Deepur" <sunzird@gmail.com> writes:
> >
> > > is there a way to turn off warnings for selective lines ?
> >
> > No.
> 
> can you please explain me the complexity of adding this feature ?
> if you'd to add it, how would you do that ?

It's fairly difficult.  You want a way to turn off specific warnings
for specific parts of the IR.  The IR is combined and rearranged
during optimization, so you need to figure out how to make the warning
control track those changes.

There was some recent discussion of this on the gcc-patches mailing
list.  Look for __nowarn__.

Ian


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