{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/36024","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/36024/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/36024/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/36024/events","html_url":"https://github.com/rust-lang/rust/pull/36024","id":173554366,"number":36024,"title":"add mips64-gnu and mips64el-gnu targets","user":{"login":"japaric","id":5018213,"avatar_url":"https://avatars.githubusercontent.com/u/5018213?v=3","gravatar_id":"","url":"https://api.github.com/users/japaric","html_url":"https://github.com/japaric","followers_url":"https://api.github.com/users/japaric/followers","following_url":"https://api.github.com/users/japaric/following{/other_user}","gists_url":"https://api.github.com/users/japaric/gists{/gist_id}","starred_url":"https://api.github.com/users/japaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japaric/subscriptions","organizations_url":"https://api.github.com/users/japaric/orgs","repos_url":"https://api.github.com/users/japaric/repos","events_url":"https://api.github.com/users/japaric/events{/privacy}","received_events_url":"https://api.github.com/users/japaric/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-08-26T22:18:19Z","updated_at":"2016-08-29T02:41:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/36024","html_url":"https://github.com/rust-lang/rust/pull/36024","diff_url":"https://github.com/rust-lang/rust/pull/36024.diff","patch_url":"https://github.com/rust-lang/rust/pull/36024.patch"},"body":"With this commit one can build no_core (and probably no_std as well)\r\nRust programs for these targets. It's not yet possible to cross compile\r\nstd for these targets because rust-lang/libc doesn't know about the\r\nmips64 architecture.\r\n\r\nThese targets have been tested by cross compiling the \"smallest hello\"\r\nprogram (see code below) and then running it under QEMU.\r\n\r\n``` rust\r\n#![feature(start)]\r\n#![feature(lang_items)]\r\n#![feature(no_core)]\r\n#![no_core]\r\n\r\nextern {\r\n    fn puts(_: *const u8);\r\n}\r\n\r\nfn start(_: isize, _: *const *const u8) -> isize {\r\n    unsafe {\r\n        let msg = b\"Hello, world!\\0\";\r\n        puts(msg as *const _ as *const u8);\r\n    }\r\n    0\r\n}\r\n\r\n#[lang = \"copy\"]\r\ntrait Copy {}\r\n\r\n#[lang = \"sized\"]\r\ntrait Sized {}\r\n```\r\n\r\ncc #36015\r\nr? @alexcrichton \r\ncc @brson \r\n\r\nThe cabi stuff is likely wrong. I just copied cabi_mips source and changed some `4`s to `8`s and `32`s to `64`s. It was enough to get libc's `puts` to work but I'd like someone familiar with this module to check it."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/243020256","html_url":"https://github.com/rust-lang/rust/pull/36024#issuecomment-243020256","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/36024","id":243020256,"user":{"login":"japaric","id":5018213,"avatar_url":"https://avatars.githubusercontent.com/u/5018213?v=3","gravatar_id":"","url":"https://api.github.com/users/japaric","html_url":"https://github.com/japaric","followers_url":"https://api.github.com/users/japaric/followers","following_url":"https://api.github.com/users/japaric/following{/other_user}","gists_url":"https://api.github.com/users/japaric/gists{/gist_id}","starred_url":"https://api.github.com/users/japaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japaric/subscriptions","organizations_url":"https://api.github.com/users/japaric/orgs","repos_url":"https://api.github.com/users/japaric/repos","events_url":"https://api.github.com/users/japaric/events{/privacy}","received_events_url":"https://api.github.com/users/japaric/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T02:41:36Z","updated_at":"2016-08-29T02:41:36Z","body":"addressed @eddyb comments. After re-testing, I found out that libc also needs to define SIGSTKSZ, so I opened rust-lang/libc#370. Also, for some reason, I had to change data-layout; I probably forgot to check in the local changes I did while testing this branch before opening this PR."}}
{"actor":{"display_login":"japaric"}}