This is the mail archive of the gcc@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: -fargument-noalias-global question


On Sat, 3 Jan 2009, Steve Kargl wrote:

> On Sat, Jan 03, 2009 at 08:11:14PM +0100, Richard Guenther wrote:
> > On Sat, 3 Jan 2009, Toon Moene wrote:
> > 
> > > [ Happy New Year first of all - hope we don't have too many more of them
> > >   ... Hey, you can recognize a Jimi Hendrix fan, don't you ]
> > 
> > ;)
> > 
> > > Richard Guenther wrote:
> > > 
> > > > Actually I have two questions.  First, what is the difference between
> > > > -fargument-noalias-global and -fargument-noalias-anything (please
> > > > provide an example, not cite documentation ;))
> > > 
> > > svn blame should point to me as the culprit.  I invented
> > > -fargument-noalias-anything because I ran out of specifics Fortran argument
> > > pointers *do not point at*.
> > > 
> 
> I have no idea what you and Toon are discussing.  These 
> options are not used in the gfortran frontend and have never
> been used.  Looking at the g77 manual suggests that 
> -fargument-noalias-global is a holdover from g77, and as such
> it should be removed.
> 
> It is the Fortran programmer's responsibility to properly 
> address possible aliasing issues.

The GFortran frontend unconditionally enables -fargument-noalias-anything:

  /* Argument pointers cannot point to anything but their argument.  */
  flag_argument_noalias = 3;

If the other options are not exposed I guess we may want to remove them
and just keep a binary flag.

Richard.


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