This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix -flto=N parsing
On Thu, 18 Nov 2010, Andrew Pinski wrote:
> On Thu, Nov 18, 2010 at 3:17 AM, Richard Guenther <rguenther@suse.de> wrote:
> >
> > This fixes an oversight when doing s/-fwhopr/-flto/, the character
> > index of =N parsing didn't get updated.
> > ! Â Â Â Â Â Â Â Â Â parallel = atoi (option + 6);
>
> Should we be using atoi here? I think we should use strtol instead
> and check for errors in decoding of the number.
Use of atoi in GCC (in general) is PR 44574. If we fix the existing cases
we could poison it in system.h.
--
Joseph S. Myers
joseph@codesourcery.com