Bug 13034 – [Reg] core.stdc.stdio - deprecation warning with dmd -inline

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-03T17:46:00Z
Last change time
2014-08-22T07:17:14Z
Assigned to
nobody
Creator
gassa
See also
https://issues.dlang.org/show_bug.cgi?id=12859

Comments

Comment #0 by gassa — 2014-07-03T17:46:47Z
I just compiled the latest git HEAD version of druntime+phobos on Windows. After that, when I import std.stdio in any D program and compile using DMD with "-inline" option, it gives me deprecation warnings in core.stdc.stdio. In fact, I see the same warnings even when compiling druntime itself. I followed these instructions to build DMD&friends from source: http://wiki.dlang.org/Building_DMD#Windows_2 . Every other aspect of the compiler is working fine for me so far. I'll note that it's the first time I built it from source though. Deprecation warnings: -----(win32_version)----- ...\src\druntime\import\core\stdc\stdio.d(684): Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"&="((*stream)._flag, ~_IOERR) instead. ...\src\druntime\import\core\stdc\stdio.d(685): Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"&="((*stream)._flag, ~(_IOERR | _IOEOF)) instead. ----- -----(win64_version)----- ...\src\druntime\import\core\stdc\stdio.d(700): Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"&="((*stream)._flag, ~_IOERR) instead. ...\src\druntime\import\core\stdc\stdio.d(701): Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"&="((*stream)._flag, ~(_IOERR | _IOEOF)) instead. ...\src\druntime\import\core\stdc\stdio.d(720): Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"-="((*fp)._cnt, 1) instead. ...\src\druntime\import\core\stdc\stdio.d(721): Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"+="((*fp)._ptr, 1) instead. ...\src\druntime\import\core\stdc\stdio.d(728): Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"-="((*fp)._cnt, 1) instead. ...\src\druntime\import\core\stdc\stdio.d(729): Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"+="((*fp)._ptr, 1) instead. ----- To reproduce: (1) Either run "make -f win32.mak" (or "make -f win64.mak") for a clean druntime source, (2) or install git HEAD druntime and phobos, and then compile the following: ----- import std.stdio; void main () {} ----- with "dmd -inline" (or "dmd -inline -m64"). Git revisions: dmd 42728388c3df73fae7d18623cda39c34561a74c1 druntime 2ab86f5583676b49656d8a245c8adb3c89c61256 phobos f518343f3e85c7b0ae0a9d2486dd18390dd592d6 Ivan Kazmenko.
Comment #1 by bearophile_hugs — 2014-07-03T18:02:55Z
See also Issue 12859
Comment #2 by bugzilla — 2014-07-06T05:00:12Z
Comment #3 by github-bugzilla — 2014-07-06T08:07:34Z
Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/0577910035881d12cf6dc2a68d1c81f938fa41a7 fix Issue 13034 - [Reg] core.stdc.stdio - deprecation warning with dmd -inline https://github.com/D-Programming-Language/druntime/commit/9bd5777f407bac8da6411ba23e32234aa0b06cfb Merge pull request #866 from WalterBright/fix13034 fix Issue 13034 - [Reg] core.stdc.stdio - deprecation warning with ...
Comment #4 by gassa — 2014-07-06T09:22:20Z
The git HEAD version works for me now on Win32 & Win64 without these warnings. Thank you!
Comment #5 by github-bugzilla — 2014-07-08T01:20:15Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/a45234448f66bc08c3b764ebac6595c1706cc3aa Merge pull request #866 from WalterBright/fix13034 fix Issue 13034 - [Reg] core.stdc.stdio - deprecation warning with ...
Comment #6 by github-bugzilla — 2014-08-22T07:17:14Z