{"action":"created","issue":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/5265","repository_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr","labels_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/5265/labels{/name}","comments_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/5265/comments","events_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/5265/events","html_url":"https://github.com/zephyrproject-rtos/zephyr/issues/5265","id":279209129,"number":5265,"title":"ROM size increase due Zephyr compile options not stripping unused functions","user":{"login":"jimmy-huang","id":1037247,"avatar_url":"https://avatars0.githubusercontent.com/u/1037247?v=4","gravatar_id":"","url":"https://api.github.com/users/jimmy-huang","html_url":"https://github.com/jimmy-huang","followers_url":"https://api.github.com/users/jimmy-huang/followers","following_url":"https://api.github.com/users/jimmy-huang/following{/other_user}","gists_url":"https://api.github.com/users/jimmy-huang/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmy-huang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmy-huang/subscriptions","organizations_url":"https://api.github.com/users/jimmy-huang/orgs","repos_url":"https://api.github.com/users/jimmy-huang/repos","events_url":"https://api.github.com/users/jimmy-huang/events{/privacy}","received_events_url":"https://api.github.com/users/jimmy-huang/received_events","type":"User","site_admin":false},"labels":[{"id":700752411,"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/labels/area:%20Build%20System","name":"area: Build System","color":"ededed","default":false},{"id":383053976,"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/labels/bug","name":"bug","color":"e99695","default":true}],"state":"open","locked":false,"assignee":{"login":"SebastianBoe","id":609230,"avatar_url":"https://avatars0.githubusercontent.com/u/609230?v=4","gravatar_id":"","url":"https://api.github.com/users/SebastianBoe","html_url":"https://github.com/SebastianBoe","followers_url":"https://api.github.com/users/SebastianBoe/followers","following_url":"https://api.github.com/users/SebastianBoe/following{/other_user}","gists_url":"https://api.github.com/users/SebastianBoe/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianBoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianBoe/subscriptions","organizations_url":"https://api.github.com/users/SebastianBoe/orgs","repos_url":"https://api.github.com/users/SebastianBoe/repos","events_url":"https://api.github.com/users/SebastianBoe/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianBoe/received_events","type":"User","site_admin":false},"assignees":[{"login":"SebastianBoe","id":609230,"avatar_url":"https://avatars0.githubusercontent.com/u/609230?v=4","gravatar_id":"","url":"https://api.github.com/users/SebastianBoe","html_url":"https://github.com/SebastianBoe","followers_url":"https://api.github.com/users/SebastianBoe/followers","following_url":"https://api.github.com/users/SebastianBoe/following{/other_user}","gists_url":"https://api.github.com/users/SebastianBoe/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianBoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianBoe/subscriptions","organizations_url":"https://api.github.com/users/SebastianBoe/orgs","repos_url":"https://api.github.com/users/SebastianBoe/repos","events_url":"https://api.github.com/users/SebastianBoe/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianBoe/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-12-05T01:08:25Z","updated_at":"2017-12-05T08:06:15Z","closed_at":null,"author_association":"NONE","body":"When building 3rd party libraries for A101, when CMake file uses  zephyr_get_compile_options_as_string(options) to include compile options, it seemed the it has changed and no longer include some of the flags to strip out unused functions, and therefore, the final ROM image size is increased.\r\n\r\nFor example,\r\nwith latest master, the compile options returned is:\r\n-Os -g -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -ffreestanding -include /home/jimmy/projects/zephyrjs/zephyr.js/outdir/arduino_101/zephyr/include/generated/autoconf.h -nostdinc\r\n\r\nBut with an ealier commit b678895a6 is:\r\n-Os -g -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -ffreestanding -include /home/jimmy/projects/zephyrjs/zephyr.js/outdir/arduino_101/zephyr/include/generated/autoconf.h -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -Wno-pointer-sign -fno-stack-protector -Wno-unused-but-set-variable -fno-reorder-functions -fno-defer-pop -nostdinc -Werror=implicit-int -ffunction-sections -fdata-sections -mpreferred-stack-boundary=2 -mno-sse -march=lakemont -mtune=lakemont -msoft-float"},"comment":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/comments/349226823","html_url":"https://github.com/zephyrproject-rtos/zephyr/issues/5265#issuecomment-349226823","issue_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/5265","id":349226823,"user":{"login":"SebastianBoe","id":609230,"avatar_url":"https://avatars0.githubusercontent.com/u/609230?v=4","gravatar_id":"","url":"https://api.github.com/users/SebastianBoe","html_url":"https://github.com/SebastianBoe","followers_url":"https://api.github.com/users/SebastianBoe/followers","following_url":"https://api.github.com/users/SebastianBoe/following{/other_user}","gists_url":"https://api.github.com/users/SebastianBoe/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianBoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianBoe/subscriptions","organizations_url":"https://api.github.com/users/SebastianBoe/orgs","repos_url":"https://api.github.com/users/SebastianBoe/repos","events_url":"https://api.github.com/users/SebastianBoe/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianBoe/received_events","type":"User","site_admin":false},"created_at":"2017-12-05T08:06:15Z","updated_at":"2017-12-05T08:06:15Z","author_association":"COLLABORATOR","body":"If you have CONFIG_CPLUSPLUS enabled then this can be closed as a duplicate of https://github.com/zephyrproject-rtos/zephyr/issues/5152\r\n\r\ngrep CONFIG_CPLUSPLUS build_directory/zephyr/.config"}}
{"actor":{"display_login":"SebastianBoe"}}