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] Fix part of pr25505


Josh Conner wrote:

> I'd be glad to look into fixing the tree-nrv code in question, but I
> would need some help understanding how to get something other than a
> VAR_DECL on the LHS in order to actually verify behavior.  Anyone?

Found one...

typedef struct { int x; void *y; } S;
S fn1 (void);
void fn2 (S *);
void test (void)
{
  S result[10];
  result[5] = fn1();
  fn2 (&result[5]);
}

- Josh


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