2004-09-20 Theodore A. Roth * include/avr/crc16.h: Update copyright year. (_crc16_update): Add __volatile__ to inline asm. [Bug #10450] (_crc_xmodem_update): Ditto. (_crc_ccitt_update): Ditto. Index: include/avr/crc16.h =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/include/avr/crc16.h,v retrieving revision 1.6 diff -u -p -p -r1.6 crc16.h --- include/avr/crc16.h 13 Feb 2004 21:37:53 -0000 1.6 +++ include/avr/crc16.h 20 Sep 2004 17:43:15 -0000 @@ -1,4 +1,4 @@ -/* Copyright (c) 2002, Marek Michalkiewicz +/* Copyright (c) 2002, 2003, 2004 Marek Michalkiewicz All rights reserved. Redistribution and use in source and binary forms, with or without @@ -65,7 +65,7 @@ _crc16_update(uint16_t __crc, uint8_t __ uint8_t __tmp; uint16_t __ret; - __asm__ ( + __asm__ __volatile__ ( "eor %A0,%2" "\n\t" "mov %1,%A0" "\n\t" "swap %1" "\n\t" @@ -133,7 +133,7 @@ _crc_xmodem_update(uint16_t __crc, uint8 uint8_t __tmp2; /* %2 */ /* %3 __data */ - __asm__ ( + __asm__ __volatile__ ( "eor %B0,%3" "\n\t" /* crc.hi ^ data */ "mov __tmp_reg__,%B0" "\n\t" "swap __tmp_reg__" "\n\t" /* swap(crc.hi ^ data) */ @@ -204,7 +204,7 @@ _crc_ccitt_update (uint16_t __crc, uint8 { uint16_t __ret; - __asm__ ( + __asm__ __volatile__ ( "eor %A0,%1" "\n\t" "mov __tmp_reg__,%A0" "\n\t"