This is the mail archive of the gcc-patches@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: [gfortran,patch] Internationalisation of the Fortran front-end


François-Xavier Coudert <fxcoudert@gmail.com> writes:

| > | gfortran doesn't use locus in the same sense that other front-end
| > | routines.
| > 
| > that is a bug.
| 
| Yes, indeed. I woud like to get it fixed, gfortran should move to the
| generic GCC diagnostics machinery. "hopefully for GCC 4.1", to quote
| Steven B in PR15586 ;-)
| 
| My ambition is not to fix all gfortran bugs fixed right now. Moving to
| GCC diagnostics is not an easy thing to get done. I'm not even sure it
| would be beneficial, at least not without adding functionnality to
| these machinery (having the error lines quoted and the position of the
| error on the line printed above is a *really nice* feature).

Positioning (1) as you currently do can be achieved through the
callback BEGIN_DIAGNOSTIC, which output any necessary bits before the
main diagnostic text is emitted.  

(The C++ front-end, for example, uses it to print the stack of  template
instantiation contexts).


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