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: [PATCH] PR fortran/9972


	The Fortran testcase is similar to:

extern int val(int);

static inline int
values (int i, int j, int n)
{
  return val ((i-1)*n+j);
}

main ()
{
  return 0;
}

testing that the inline function "values" is not emitted and no dangling
reference to "val" is produced.

	The above example should not produce a link failure.  The
equivalent Fortran version does.

David


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