This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
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();
}