This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to add %' into gfc_fatal_error
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: David Malcolm <dmalcolm at redhat dot com>
- Cc: Martin Liška <mliska at suse dot cz>, GCC Development <gcc at gcc dot gnu dot org>, Martin Sebor <msebor at gmail dot com>, fortran at gcc dot gnu dot org
- Date: Mon, 11 Mar 2019 10:23:45 -0700
- Subject: Re: How to add %' into gfc_fatal_error
- References: <aaf5a50d-b311-8fe6-c6ed-c26d432c9df5@suse.cz> <1552320475.18132.15.camel@redhat.com>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Mon, Mar 11, 2019 at 12:07:55PM -0400, David Malcolm wrote:
> On Mon, 2019-03-11 at 15:18 +0100, Martin Liška wrote:
> > Hi.
> >
> > I would like to add %' into __gcc_gfc__ in order to handle:
> >
> > ./xgcc -B. /tmp/module.ii -Wformat -c
> > /home/marxin/Programming/gcc/gcc/fortran/module.c: In function ‘void
> > dump_module(const char*, int)’:
> > /home/marxin/Programming/gcc/gcc/fortran/module.c:6205:19: warning:
> > unknown conversion type character ‘'’ in format [-Wformat=]
> > 6205 | gfc_fatal_error ("Can%'t delete module file %qs: %s",
> > filename,
> > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > Can you please help me how to do that?
Are you inserting "%" in front of "'"? Why?
There are 18 occurences of "Can't" in gfc_error*
messages in the fortran/*.c code. If you're going
to touch all 18 locations, then change "Can't" to
"Cannot".
--
Steve