Follow-up Comment #5, bug #32945 (project avr-libc): RAMPZ address is hard-coded already (revision 2279) in case of building avr-libc. This resolves AVR_RAMPZ_ADDR definition error.
I have attached patch (restore-rampz.patch) to restore RAMPZ value for all xxx_PF() functions. ChangeLog 2013-10-09 Pitchumani Sivanupandi <pitchuman...@atmel.com> Fix for bug #32945. * common/macros.inc: Save RAMPZ register if RAMPD is present. Add LPM_R0_ZPLUS_FINI macro to restore RAMPZ if RAMPD exists. * libc/pmstring/memcmp_PF.S: Restore RAMPZ before return. * libc/pmstring/memcpy_PF.S: Same. * libc/pmstring/strcasecmp_PF.S: Same. * libc/pmstring/strcat_PF.S: Same. * libc/pmstring/strcmp_PF.S: Same. * libc/pmstring/strcpy_PF.S: Same. * libc/pmstring/strlcat_PF.S: Same. * libc/pmstring/strlcpy_PF.S: Same. * libc/pmstring/strlen_PF.S: Same. * libc/pmstring/strncasecmp_PF.S: Same. * libc/pmstring/strncat_PF.S: Same. * libc/pmstring/strncmp_PF.S: Same. * libc/pmstring/strncpy_PF.S: Same. * libc/pmstring/strnlen_PF.S: Same. * libc/pmstring/strstr_PF.S: Same. Please review. (file #29336) _______________________________________________________ Additional Item Attachment: File name: restore-rampz.patch Size:6 KB _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?32945> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev