{"action":"created","comment":{"url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/comments/39080118","id":39080118,"diff_hunk":"@@ -726,7 +726,7 @@ code *prolog()\n     assert(usedalloca != 1);\n     AllocaOff = alignsection(usedalloca ? (Foff - REGSIZE) : Foff, REGSIZE, bias);\n \n-    CSoff = alignsection(AllocaOff - cstop * REGSIZE, REGSIZE, bias);\n+    CSoff = alignsection(AllocaOff - (int)cstop * REGSIZE, REGSIZE, bias);","path":"src/backend/cgcod.c","position":5,"original_position":5,"commit_id":"221dcc170e4e7dd594803c7e923262fddf264c05","original_commit_id":"221dcc170e4e7dd594803c7e923262fddf264c05","user":{"login":"WalterBright","id":568298,"avatar_url":"https://avatars.githubusercontent.com/u/568298?v=3","gravatar_id":"","url":"https://api.github.com/users/WalterBright","html_url":"https://github.com/WalterBright","followers_url":"https://api.github.com/users/WalterBright/followers","following_url":"https://api.github.com/users/WalterBright/following{/other_user}","gists_url":"https://api.github.com/users/WalterBright/gists{/gist_id}","starred_url":"https://api.github.com/users/WalterBright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalterBright/subscriptions","organizations_url":"https://api.github.com/users/WalterBright/orgs","repos_url":"https://api.github.com/users/WalterBright/repos","events_url":"https://api.github.com/users/WalterBright/events{/privacy}","received_events_url":"https://api.github.com/users/WalterBright/received_events","type":"User","site_admin":false},"body":"I'd really like to see a case where this ever happens.","created_at":"2015-09-09T18:40:25Z","updated_at":"2015-09-09T18:40:25Z","html_url":"https://github.com/D-Programming-Language/dmd/pull/5036#discussion_r39080118","pull_request_url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/5036","_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/comments/39080118"},"html":{"href":"https://github.com/D-Programming-Language/dmd/pull/5036#discussion_r39080118"},"pull_request":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/5036"}}},"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/5036","id":44252888,"html_url":"https://github.com/D-Programming-Language/dmd/pull/5036","diff_url":"https://github.com/D-Programming-Language/dmd/pull/5036.diff","patch_url":"https://github.com/D-Programming-Language/dmd/pull/5036.patch","issue_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/5036","number":5036,"state":"open","locked":false,"title":"fix debug version generating different code than release","user":{"login":"rainers","id":702284,"avatar_url":"https://avatars.githubusercontent.com/u/702284?v=3","gravatar_id":"","url":"https://api.github.com/users/rainers","html_url":"https://github.com/rainers","followers_url":"https://api.github.com/users/rainers/followers","following_url":"https://api.github.com/users/rainers/following{/other_user}","gists_url":"https://api.github.com/users/rainers/gists{/gist_id}","starred_url":"https://api.github.com/users/rainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainers/subscriptions","organizations_url":"https://api.github.com/users/rainers/orgs","repos_url":"https://api.github.com/users/rainers/repos","events_url":"https://api.github.com/users/rainers/events{/privacy}","received_events_url":"https://api.github.com/users/rainers/received_events","type":"User","site_admin":false},"body":"My test case\r\n```\r\nint foo(int y)\r\n{\r\n    int[8] a;\r\n    int x = 3;\r\n    int z = 3;\r\n    return x + y + z;\r\n}\r\n```\r\ngenerates different code for the debug version of DMD than the release version, i.e it uses `enter` when compiled as release, but `push ebp, etc` when compiled as debug. Compiling the backend with VC yields the same result as the debug version.\r\n\r\nI've spotted a signed/unsigned problem which seem to cause the issue (after the change all version use `enter`), but I could not detect where the actual difference manifests. I suspect the dmc optimizer somehow compensates the problem by a dubious optimization.\r\n\r\nToo bad that D inherits the questionable signed/unsigned propagation rules from C.","created_at":"2015-09-04T19:23:59Z","updated_at":"2015-09-09T18:40:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8264bf62c4f7005241797603902ffad2bf8b594d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/5036/commits","review_comments_url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/5036/comments","review_comment_url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/5036/comments","statuses_url":"https://api.github.com/repos/D-Programming-Language/dmd/statuses/221dcc170e4e7dd594803c7e923262fddf264c05","head":{"label":"rainers:cgcod_sigextend","ref":"cgcod_sigextend","sha":"221dcc170e4e7dd594803c7e923262fddf264c05","user":{"login":"rainers","id":702284,"avatar_url":"https://avatars.githubusercontent.com/u/702284?v=3","gravatar_id":"","url":"https://api.github.com/users/rainers","html_url":"https://github.com/rainers","followers_url":"https://api.github.com/users/rainers/followers","following_url":"https://api.github.com/users/rainers/following{/other_user}","gists_url":"https://api.github.com/users/rainers/gists{/gist_id}","starred_url":"https://api.github.com/users/rainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainers/subscriptions","organizations_url":"https://api.github.com/users/rainers/orgs","repos_url":"https://api.github.com/users/rainers/repos","events_url":"https://api.github.com/users/rainers/events{/privacy}","received_events_url":"https://api.github.com/users/rainers/received_events","type":"User","site_admin":false},"repo":{"id":1554385,"name":"dmd","full_name":"rainers/dmd","owner":{"login":"rainers","id":702284,"avatar_url":"https://avatars.githubusercontent.com/u/702284?v=3","gravatar_id":"","url":"https://api.github.com/users/rainers","html_url":"https://github.com/rainers","followers_url":"https://api.github.com/users/rainers/followers","following_url":"https://api.github.com/users/rainers/following{/other_user}","gists_url":"https://api.github.com/users/rainers/gists{/gist_id}","starred_url":"https://api.github.com/users/rainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainers/subscriptions","organizations_url":"https://api.github.com/users/rainers/orgs","repos_url":"https://api.github.com/users/rainers/repos","events_url":"https://api.github.com/users/rainers/events{/privacy}","received_events_url":"https://api.github.com/users/rainers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rainers/dmd","description":"dmd D Programming Language compiler","fork":true,"url":"https://api.github.com/repos/rainers/dmd","forks_url":"https://api.github.com/repos/rainers/dmd/forks","keys_url":"https://api.github.com/repos/rainers/dmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rainers/dmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rainers/dmd/teams","hooks_url":"https://api.github.com/repos/rainers/dmd/hooks","issue_events_url":"https://api.github.com/repos/rainers/dmd/issues/events{/number}","events_url":"https://api.github.com/repos/rainers/dmd/events","assignees_url":"https://api.github.com/repos/rainers/dmd/assignees{/user}","branches_url":"https://api.github.com/repos/rainers/dmd/branches{/branch}","tags_url":"https://api.github.com/repos/rainers/dmd/tags","blobs_url":"https://api.github.com/repos/rainers/dmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rainers/dmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rainers/dmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/rainers/dmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rainers/dmd/statuses/{sha}","languages_url":"https://api.github.com/repos/rainers/dmd/languages","stargazers_url":"https://api.github.com/repos/rainers/dmd/stargazers","contributors_url":"https://api.github.com/repos/rainers/dmd/contributors","subscribers_url":"https://api.github.com/repos/rainers/dmd/subscribers","subscription_url":"https://api.github.com/repos/rainers/dmd/subscription","commits_url":"https://api.github.com/repos/rainers/dmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/rainers/dmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/rainers/dmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/rainers/dmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/rainers/dmd/contents/{+path}","compare_url":"https://api.github.com/repos/rainers/dmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rainers/dmd/merges","archive_url":"https://api.github.com/repos/rainers/dmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rainers/dmd/downloads","issues_url":"https://api.github.com/repos/rainers/dmd/issues{/number}","pulls_url":"https://api.github.com/repos/rainers/dmd/pulls{/number}","milestones_url":"https://api.github.com/repos/rainers/dmd/milestones{/number}","notifications_url":"https://api.github.com/repos/rainers/dmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rainers/dmd/labels{/name}","releases_url":"https://api.github.com/repos/rainers/dmd/releases{/id}","created_at":"2011-04-01T06:15:32Z","updated_at":"2014-06-06T10:49:17Z","pushed_at":"2015-09-07T21:59:11Z","git_url":"git://github.com/rainers/dmd.git","ssh_url":"git@github.com:rainers/dmd.git","clone_url":"https://github.com/rainers/dmd.git","svn_url":"https://github.com/rainers/dmd","homepage":"d-programming-language.org","size":59699,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"D-Programming-Language:master","ref":"master","sha":"68650c1df4608a10be47e5cfe0610babe7bd2f47","user":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"repo":{"id":1257070,"name":"dmd","full_name":"D-Programming-Language/dmd","owner":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/D-Programming-Language/dmd","description":"dmd D Programming Language compiler","fork":false,"url":"https://api.github.com/repos/D-Programming-Language/dmd","forks_url":"https://api.github.com/repos/D-Programming-Language/dmd/forks","keys_url":"https://api.github.com/repos/D-Programming-Language/dmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/D-Programming-Language/dmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/D-Programming-Language/dmd/teams","hooks_url":"https://api.github.com/repos/D-Programming-Language/dmd/hooks","issue_events_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/events{/number}","events_url":"https://api.github.com/repos/D-Programming-Language/dmd/events","assignees_url":"https://api.github.com/repos/D-Programming-Language/dmd/assignees{/user}","branches_url":"https://api.github.com/repos/D-Programming-Language/dmd/branches{/branch}","tags_url":"https://api.github.com/repos/D-Programming-Language/dmd/tags","blobs_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/D-Programming-Language/dmd/statuses/{sha}","languages_url":"https://api.github.com/repos/D-Programming-Language/dmd/languages","stargazers_url":"https://api.github.com/repos/D-Programming-Language/dmd/stargazers","contributors_url":"https://api.github.com/repos/D-Programming-Language/dmd/contributors","subscribers_url":"https://api.github.com/repos/D-Programming-Language/dmd/subscribers","subscription_url":"https://api.github.com/repos/D-Programming-Language/dmd/subscription","commits_url":"https://api.github.com/repos/D-Programming-Language/dmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/D-Programming-Language/dmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/D-Programming-Language/dmd/contents/{+path}","compare_url":"https://api.github.com/repos/D-Programming-Language/dmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/D-Programming-Language/dmd/merges","archive_url":"https://api.github.com/repos/D-Programming-Language/dmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/D-Programming-Language/dmd/downloads","issues_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues{/number}","pulls_url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls{/number}","milestones_url":"https://api.github.com/repos/D-Programming-Language/dmd/milestones{/number}","notifications_url":"https://api.github.com/repos/D-Programming-Language/dmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/D-Programming-Language/dmd/labels{/name}","releases_url":"https://api.github.com/repos/D-Programming-Language/dmd/releases{/id}","created_at":"2011-01-15T06:53:53Z","updated_at":"2015-09-09T16:01:38Z","pushed_at":"2015-09-09T12:29:34Z","git_url":"git://github.com/D-Programming-Language/dmd.git","ssh_url":"git@github.com:D-Programming-Language/dmd.git","clone_url":"https://github.com/D-Programming-Language/dmd.git","svn_url":"https://github.com/D-Programming-Language/dmd","homepage":"dlang.org","size":104593,"stargazers_count":1073,"watchers_count":1073,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":338,"mirror_url":null,"open_issues_count":141,"forks":338,"open_issues":141,"watchers":1073,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/5036"},"html":{"href":"https://github.com/D-Programming-Language/dmd/pull/5036"},"issue":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/issues/5036"},"comments":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/issues/5036/comments"},"review_comments":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/5036/comments"},"review_comment":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/5036/commits"},"statuses":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/statuses/221dcc170e4e7dd594803c7e923262fddf264c05"}}}}