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: Theodore A. Roth
Subject: [avr-libc-dev] [bugs #10078] strsep() should not be pure
Date: Thu, 09 Sep 2004 12:41:37 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5

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

/**************************************************************************/
[bugs #10078] Latest Modifications:

Changes by: 
                Theodore A. Roth <address@hidden>
'Date: 
                Thu 09/09/04 at 16:36 (US/Pacific)

            What     | Removed                   | Added
---------------------------------------------------------------------------
              Status | Open                      | Closed







/**************************************************************************/
[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/04 at 16:33

Category:  Header
Severity:  5 - Average
Item Group:  None
Resolution:  Fixed
Privacy:  Public
Assigned to:  troth
Originator Email:  address@hidden
Status:  Closed


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.

Follow-up Comments
------------------


-------------------------------------------------------
Date: Thu 09/09/04 at 16:36         By: Theodore A. Roth <troth>
Marek has fixed this in HEAD, plus a couple other PURE fixes.

I've just pulled his fixes into the 1.0 branch.






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

-------------------------------------------------------
Date: Fri 08/20/04 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]