avr-libc-dev
[Top][All Lists]
Advanced

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

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


From: anonymous
Subject: [avr-libc-dev] [bugs #10078] strsep() should not be pure
Date: Fri, 20 Aug 2004 12:38:18 -0400
User-agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)

This mail is an automated notification from the bugs tracker
 of the project: AVR C Runtime Library.




/**************************************************************************/
[bugs #10078] Full Item Snapshot:

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=10078>
Project: AVR C Runtime Library
Submitted by: 0
On: Fri 08/20/2004 at 16:33

Category:  Header
Severity:  5 - Average
Item Group:  None
Resolution:  None
Assigned to:  None
Originator Email:  address@hidden
Status:  Open


Summary:  strsep() should not be pure

Original Submission:  strsep() is defined as pure (__ATTR_PURE__) in the 
avr-libc string.h file.  It should not be, as it modifies its parameters, 
causing the result to change each time it is called.  Due to the __ATTR_PURE__ 
declaration, calls to strsep() are optimized away when they should not be, 
causing puzzling errors.





File Attachments
-------------------

-------------------------------------------------------
Date: Fri 08/20/2004 at 16:33  Name: strsep-pure.diff  Size: 570B   By: None
Patch against avr-libc-1.0.4 sources to remove pure attribute from strsep
http://savannah.nongnu.org/bugs/download.php?item_id=10078&amp;item_file_id=1590






For detailed info, follow this link:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=10078>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

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