www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7497] New: optimizer/inliner misplaces load instruction

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7497

           Summary: optimizer/inliner misplaces load instruction
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ellery-newcomer utulsa.edu



11:32:09 PST ---
At least I'm guessing that is what is happening, as my intel x86_64 fu is weak.

the compilation:

dmd -O -inline xyz

the fireworks:

core.exception.AssertError xyz.d(61): dookie 6

the code:

attached, I hope. Offending line is

assert((z=xyz1!byte(0,8,5,6)) == 6,format("dookie %s",z)); // yay! 6==6 is
false!

Compiled without -O or -inline, or if the preceding assertion is removed, or if
the following calls are removed, the assertion passes. This one was lots of fun
to reduce.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 13 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7497




11:33:18 PST ---
Created an attachment (id=1074)
teh codez

why did attachment creation fail? why did I know it would?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 13 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7497




15:19:49 PST ---
At least on dmd 2.057..

The 2.058 beta seems not to exhibit this behavior.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 13 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7497


dawg dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dawg dawgfoto.de



Bisecting says that solving bug 7309 also fixed your issue.
https://github.com/D-Programming-Language/dmd/commit/21c62d6

But I don't know if that's just a side-effect.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 13 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7497


SomeDude <lovelydear mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear mailmetrash.com



PDT ---

 At least on dmd 2.057..
 
 The 2.058 beta seems not to exhibit this behavior.
Can't reproduce on 2.059 Win32 either. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 20 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7497


Ellery Newcomer <ellery-newcomer utulsa.edu> changed:

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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2012