AVR 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: |
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 |
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/Closed | Open | Closed | |
2004-09-09 | troth | Assigned to | None | troth | |
2004-09-09 | troth | Status | None | Fixed | |
2004-08-20 | None | Attached File | - | Added strsep-pure.diff, #1590 |
Powered by Savane 3.13-f8d8.
Corresponding source code
Marek has fixed this in HEAD, plus a couple other PURE fixes.
I've just pulled his fixes into the 1.0 branch.