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

 
 

bug #10078: strsep() should not be pure

Submitted by:  None
Submitted on:  Fri 20 Aug 2004 04:33:36 PM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: Theodore A. Roth <troth>Originator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>In charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

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

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 09 Sep 2004 04:36:28 PM UTCtrothOpen/ClosedOpen=>Closed
Thu 09 Sep 2004 04:36:10 PM UTCtrothAssigned toNone=>troth
Thu 09 Sep 2004 04:36:09 PM UTCtrothStatusNone=>Fixed
Fri 20 Aug 2004 04:33:36 PM UTCNoneAttached File-=>Added strsep-pure.diff, #1590

Back to the top


Powered by Savane 3.1-cleanup1