• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libunwind/0004-libunwind-arm-fix-build-failure-due-to-asm.patch
Romain NaourRomain Naour committed 0fe7151117503 Jul 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From c7ab998ec52b09d61ec3c0ea62aa07cd26077ea3 Mon Sep 17 00:00:00 2001
2
From: Romain Naour <romain.naour@smile.fr>
3
Date: Mon, 3 Jul 2017 14:43:02 +0200
4
Subject: [PATCH] libunwind-arm: fix build failure due to asm()
5
​
6
The gcc documentation [1] suggest to use __asm__ instead of asm.
7
​
8
Fixes:
9
http://autobuild.buildroot.net/results/3ef/3efe156b6494e4392b6c31de447ee2c72acc1a53
10
​
11
[1] https://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html#Alternate-Keywords
12
​
13
Signed-off-by: Romain Naour <romain.naour@smile.fr>
14
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
15
---
16
 include/libunwind-arm.h | 4 ++--
17
 1 file changed, 2 insertions(+), 2 deletions(-)
18
​
19
diff --git a/include/libunwind-arm.h b/include/libunwind-arm.h
20
index f208487..1c856fa 100644
21
--- a/include/libunwind-arm.h
22
+++ b/include/libunwind-arm.h
23
@@ -265,7 +265,7 @@ unw_tdep_context_t;
24
 #ifndef __thumb__
25
 #define unw_tdep_getcontext(uc) (({                                     \
26
   unw_tdep_context_t *unw_ctx = (uc);                                   \
27
-  register unsigned long *unw_base asm ("r0") = unw_ctx->regs;          \
28
+  register unsigned long *unw_base __asm__ ("r0") = unw_ctx->regs;      \
29
   __asm__ __volatile__ (                                                \
30
     "stmia %[base], {r0-r15}"                                           \
31
     : : [base] "r" (unw_base) : "memory");                              \
32
@@ -273,7 +273,7 @@ unw_tdep_context_t;
33
 #else /* __thumb__ */
34
 #define unw_tdep_getcontext(uc) (({                                     \
35
   unw_tdep_context_t *unw_ctx = (uc);                                   \
36
-  register unsigned long *unw_base asm ("r0") = unw_ctx->regs;          \
37
+  register unsigned long *unw_base __asm__ ("r0") = unw_ctx->regs;      \
38
   __asm__ __volatile__ (                                                \
39
     ".align 2\nbx pc\nnop\n.code 32\n"                                  \
40
     "stmia %[base], {r0-r15}\n"                                         \
41
-- 
42
2.9.4
43
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.