[Bug rtl-optimization/26619] Compiler fails to correctly initialize global reg variable

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 9 14:03:00 GMT 2006



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-03-09 14:03 -------
If you want to use r5 the correct way is to do:
register int *foo asm("r5") = 0;
void t1(void)
{
    *foo = 1;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26619



More information about the Gcc-bugs mailing list