bugAVR C Runtime Library - Bugs: bug #10078, strsep() should not be pure

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10078: strsep() should not be pure

Submitter:  None
Submitted:  Fri 20 Aug 2004 04:33:36 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  troth
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Thu 09 Sep 2004 04:36:10 PM UTC, comment #1: 

Marek has fixed this in HEAD, plus a couple other PURE fixes.

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

Theodore A. Roth <troth>
Fri 20 Aug 2004 04:33:36 PM UTC, 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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1660:  strsep-pure.diff added by None (570B - text/x-diff - Patch against avr-libc-1.0.4 sources to remove pure attribute from strsep)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-09-09 troth Open/ClosedOpen Closed
2004-09-09 troth Assigned toNone troth
2004-09-09 troth StatusNone Fixed
2004-08-20 None Attached File- Added strsep-pure.diff, #1590

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code