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]

Re: PATCH: Convert rs6000 to new initial_val functions.



> You didn't say how you'd tested this patch.

For that and all the other port patches, I built a cc1 both with and
without the patch and visually inspected the resulting assembler (-O3)
for the attached test case, substituting the appropriate register for X.

volatile void *data;

extern void f0(void);

#define WHACK asm("whack":::"X");

void
f1(void)
{
  WHACK
  data = __builtin_return_address(0);
}

void
f2(void)
{
  WHACK
  f0();
  WHACK
  f1();
}


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