{"action":"opened","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4125","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4125/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4125/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4125/events","html_url":"https://github.com/RIOT-OS/RIOT/issues/4125","id":112538977,"number":4125,"title":"cortex-m: build error in hard fault handler with -O0","user":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/arm","name":"arm","color":"dddddd"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"daniel-k","id":224128,"avatar_url":"https://avatars.githubusercontent.com/u/224128?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-k","html_url":"https://github.com/daniel-k","followers_url":"https://api.github.com/users/daniel-k/followers","following_url":"https://api.github.com/users/daniel-k/following{/other_user}","gists_url":"https://api.github.com/users/daniel-k/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-k/subscriptions","organizations_url":"https://api.github.com/users/daniel-k/orgs","repos_url":"https://api.github.com/users/daniel-k/repos","events_url":"https://api.github.com/users/daniel-k/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-k/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-21T08:44:54Z","updated_at":"2015-10-21T08:44:54Z","closed_at":null,"body":"When building with `-O0` (`CFLAGS_OPT=-O0`) compiling of the cortexm_common code fails:\r\n```\r\n/home/oleg/git/RIOT/cpu/cortexm_common/vectors_cortexm.c: In function 'hard_fault_default':\r\n/home/oleg/git/RIOT/cpu/cortexm_common/vectors_cortexm.c:172:1: error: r7 cannot be used in asm here\r\n }\r\n ^\r\n```"}}