bugThe libunwind project - Bugs: bug #52498, aarch64 unw_tdep_getcontext mesa...

 
 

bug #52498: aarch64 unw_tdep_getcontext mesa gcc 7.2 build fail

Submitted by:  None
Submitted on:  Fri 24 Nov 2017 10:41:31 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 24 Nov 2017 10:41:31 PM UTC, original submission:

unw_tdep_getcontext should use _asm_ instead of asm. mesa fails to build with gcc 7.2 without this patch.

--- ./include/libunwind-aarch64.h.orig 2017-06-07 09:46:26.000000000 -0600
+++ ./include/libunwind-aarch64.h 2017-11-24 15:29:59.362659781 -0700
@@ -177,7 +177,7 @@ typedef ucontext_t unw_tdep_context_t;

#define unw_tdep_getcontext(uc) (({ \
unw_tdep_context_t *unw_ctx = (uc); \
- register uint64_t unw_base asm ("x0") = (uint64_t) unw_ctx->uc_mcontext.regs; \
+ register uint64_t unw_base _asm_ ("x0") = (uint64_t) unw_ctx->uc_mcontext.regs; \
_asm_ __volatile__ ( \
"stp x0, x1, [%[base], #0]\n" \
"stp x2, x3, [%[base], #16]\n" \

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #42474:  LibUnwind-1.2.1-getcontext-asm.patch added by None (580B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Fri 24 Nov 2017 10:41:31 PM UTCNoneAttached File-=>Added LibUnwind-1.2.1-getcontext-asm.patch, #42474

Back to the top


Powered by Savane 3.1-cleanup1