[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] strsep() should not be pure

From: Geoffrey Wossum
Subject: [avr-libc-dev] strsep() should not be pure
Date: Fri, 20 Aug 2004 11:38:41 -0500
User-agent: KMail/1.6.2


I just submitted a bug, #10078, about avr-libc having strsep() declared with 
__ATTR_PURE__, along with a patch to remove it.

strsep() should not be pure, as you can not optimize calls to it away.  This 
created all kinds of weird bugs in my code that would go away when I would 
add debugging printf()'s.  I thought I was losing my mind, and my programs 
started spitting out all kinds of useless debug information their serial 
ports because that would make the problem go away.  

Without the __ATTR_PURE__, I don't need the debug statements for it to work 
right anymore ^_^

Attaching the patch here also...

Geoffrey Wossum
Software Engineer
Long Range Systems - http://www.pager.net

Attachment: strsep-pure.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]