This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [patch, fortran] PR35156: deprecate -M


On Friday 25 April 2008 11:27:58 Tobias Burnus wrote:
> Daniel Franke wrote:
> > A very similar patch was already ok'ed [1], I just cleaned it up a bit.
> > If there are no objections, I'll commit it on Tobias' behalf in 24 hours.
>
> I believe you can also do the following change as in gfortranspec.c the
> argument "-M" is changed to "-J" and thus OPT_M should be not settable.

As lang.opt does not define "M", OPT_M should not be there to begin with. 
Removed.


> At the moment I do not see whether we allocate enough memory with
> XNEWVEC (I could not quickly find that function/macro). For "-J" +
> "<dir>" we need 2+strlen("<dir>") + 1 bytes to accomodate also for the
> '\0'. Thus there might be one byte missing for:

Good eyes. Checked with valgrind and it showed a illegal read/write.
Fixed this.

With Jerry's ok committed as r134680.


Regards

	Daniel


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