Thread overview
[Issue 14114] DMD optimizer defeats use of volatileLoad/Store with error: null dereference in function
Feb 02, 2015
Iain Buclaw
Feb 02, 2015
Walter Bright
Mar 21, 2021
Iain Buclaw
Apr 07, 2021
Walter Bright
Apr 07, 2021
Dlang Bot
[Issue 14114] Allow volatileLoad/Store to access null location
Apr 07, 2021
Walter Bright
Apr 07, 2021
Dlang Bot
February 02, 2015
https://issues.dlang.org/show_bug.cgi?id=14114

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bare-metal, rejects-valid
                 CC|                            |ibuclaw@gdcproject.org
           Hardware|x86_64                      |All
                 OS|Linux                       |All
           Severity|enhancement                 |blocker

--
February 02, 2015
https://issues.dlang.org/show_bug.cgi?id=14114

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
The optimizer is regarding as a "null" any value being dereferenced that is less than 4096.

Whether this is a bug or not is debatable.

--
March 21, 2021
https://issues.dlang.org/show_bug.cgi?id=14114

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend

--
April 07, 2021
https://issues.dlang.org/show_bug.cgi?id=14114

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
Decided the best fix was to allow volatile read/writes, as some systems do store things at null.

--
April 07, 2021
https://issues.dlang.org/show_bug.cgi?id=14114

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright updated dlang/dmd pull request #12396 "fix Issue 14114 - Allow volatileLoad/Store to access null location" fixing this issue:

- fix Issue 14114 - Allow volatileLoad/Store to access null location

https://github.com/dlang/dmd/pull/12396

--
April 07, 2021
https://issues.dlang.org/show_bug.cgi?id=14114

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|DMD optimizer defeats use   |Allow volatileLoad/Store to
                   |of volatileLoad/Store with  |access null location
                   |error: null dereference in  |
                   |function                    |

--
April 07, 2021
https://issues.dlang.org/show_bug.cgi?id=14114

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12396 "fix Issue 14114 - Allow volatileLoad/Store to access null location" was merged into master:

- ab9e3c3d1bb3def7315b212f2da07eaf7d3ed609 by Walter Bright:
  fix Issue 14114 - Allow volatileLoad/Store to access null location

https://github.com/dlang/dmd/pull/12396

--