{"action":"created","issue":{"url":"https://api.github.com/repos/gnu-mcu-eclipse/eclipse-plugins/issues/323","repository_url":"https://api.github.com/repos/gnu-mcu-eclipse/eclipse-plugins","labels_url":"https://api.github.com/repos/gnu-mcu-eclipse/eclipse-plugins/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/gnu-mcu-eclipse/eclipse-plugins/issues/323/comments","events_url":"https://api.github.com/repos/gnu-mcu-eclipse/eclipse-plugins/issues/323/events","html_url":"https://github.com/gnu-mcu-eclipse/eclipse-plugins/issues/323","id":372845447,"node_id":"MDU6SXNzdWUzNzI4NDU0NDc=","number":323,"title":"RISC-V: Wrong newlib-nano library linked for Partial M extension","user":{"login":"JohannesSpecht","id":33249586,"node_id":"MDQ6VXNlcjMzMjQ5NTg2","avatar_url":"https://avatars1.githubusercontent.com/u/33249586?v=4","gravatar_id":"","url":"https://api.github.com/users/JohannesSpecht","html_url":"https://github.com/JohannesSpecht","followers_url":"https://api.github.com/users/JohannesSpecht/followers","following_url":"https://api.github.com/users/JohannesSpecht/following{/other_user}","gists_url":"https://api.github.com/users/JohannesSpecht/gists{/gist_id}","starred_url":"https://api.github.com/users/JohannesSpecht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohannesSpecht/subscriptions","organizations_url":"https://api.github.com/users/JohannesSpecht/orgs","repos_url":"https://api.github.com/users/JohannesSpecht/repos","events_url":"https://api.github.com/users/JohannesSpecht/events{/privacy}","received_events_url":"https://api.github.com/users/JohannesSpecht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-23T07:24:35Z","updated_at":"2018-10-23T15:56:18Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n_Properties_ --> _C/C++ Build_ --> _Settings_ --> _Tool Settings_ --> _Target Processor_, the combination (_Architecture_ = _RV32I_, _Multiply Extension (RVM)_ = _YES_, and _Integer Divide Instructions (-mdiv)_ = _NO_) causes linkage of newlib-nano libraries that require divide/modulo instructions.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Compile a \"Hello World\" program that prints an integer variable (i.e., `printf(\"%d\", some_integer_variable);`)\r\n2. Disassemble the binary\r\n3. Open the assembler code\r\n\r\n**Expected behaviour:** \r\nNo divide/modulo instructions found in the assembler code.\r\n\r\n**Actual behaviour:**\r\nDivide/modulo instructions found in the assembler code.\r\n\r\n### Versions\r\n\r\n* plug-in version: 4.4.2.201809300\r\n* Eclipse version: 2018-09 (4.9.0) 20180917-1800\r\n* toolchain version: 7.2.0-4-20180606-1631\r\n"},"comment":{"url":"https://api.github.com/repos/gnu-mcu-eclipse/eclipse-plugins/issues/comments/432307531","html_url":"https://github.com/gnu-mcu-eclipse/eclipse-plugins/issues/323#issuecomment-432307531","issue_url":"https://api.github.com/repos/gnu-mcu-eclipse/eclipse-plugins/issues/323","id":432307531,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjMwNzUzMQ==","user":{"login":"TM1234","id":14550604,"node_id":"MDQ6VXNlcjE0NTUwNjA0","avatar_url":"https://avatars0.githubusercontent.com/u/14550604?v=4","gravatar_id":"","url":"https://api.github.com/users/TM1234","html_url":"https://github.com/TM1234","followers_url":"https://api.github.com/users/TM1234/followers","following_url":"https://api.github.com/users/TM1234/following{/other_user}","gists_url":"https://api.github.com/users/TM1234/gists{/gist_id}","starred_url":"https://api.github.com/users/TM1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TM1234/subscriptions","organizations_url":"https://api.github.com/users/TM1234/orgs","repos_url":"https://api.github.com/users/TM1234/repos","events_url":"https://api.github.com/users/TM1234/events{/privacy}","received_events_url":"https://api.github.com/users/TM1234/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T15:56:18Z","updated_at":"2018-10-23T15:56:18Z","author_association":"NONE","body":"> Or does the build process provide multilibs for, say...\r\n> \r\n> -march=rv32imaf/-mabi=ilp32f aka -march=rv32imaf/-mabi=ilp32f/-mdiv\r\n> -march=rv32imaf/-mabi=ilp32f/-mno-div\r\n\r\nAs far as I can see the way that the multilibs to be built are specified does not allow for this:\r\n\r\nhttps://github.com/gcc-mirror/gcc/blob/master/gcc/config/riscv/t-elf-multilib\r\nhttps://github.com/gcc-mirror/gcc/blob/master/gcc/config/riscv/multilib-generator\r\n\r\nAm I missing/misunderstanding something here?"}}
{"actor":{"display_login":"TM1234"}}