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: [fortran,patch] Fix PR35682, more wrong array bounds calculation


If MAX is only needed for -fbounds-check, how about adding it only when the bounds are checked?

The correct thing to do is to fix it in all cases: we shouldn't have negative sizes anywhere, some other parts of the code depend on it. I'm not sure there currently is a codepath in the front-end that currently fails because of this particular instance, but the right thing is to fix it.


OK with or without that change.


Committed as submitted. Thanks for the reviews!

FX

--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/


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