From: szabolcs.nagy@arm.com (Szabolcs Nagy)
To: linux-snps-arc@lists.infradead.org
Subject: ucontect vs. ucontext_t (was Re: [RFC 4/6] ARC: Initial port to glibc)
Date: Wed, 28 Jun 2017 10:23:17 +0100 [thread overview]
Message-ID: <59537585.3020108@arm.com> (raw)
In-Reply-To: <aeb31ac8-636a-69d7-b630-3fcd29c37ecc@synopsys.com>
[ignoring newsgroups]
On 28/06/17 09:48, Vineet Gupta wrote:
> On 06/27/2017 02:56 PM, Joseph Myers wrote:
>>> +/* Userlevel context. */
>>> +typedef struct ucontext
>>> + {
>>> + unsigned long uc_flags;
>>> + struct ucontext *uc_link;
>> This is now struct ucontext_t.
>
> Isn't this an ABI change. After making change as you suggested, building gcc/libgcc itself fails now as the ARC
> libgcc unwinder expects ucontext.
>
this is a c++ abi change (name mangling of c++
function taking ucontext_t* arguments changes,
but such arg should be rare in extern functions)
> #define MD_FALLBACK_FRAME_STATE_FOR arc_fallback_frame_state
>
> static __attribute__((noinline)) _Unwind_Reason_Code
> arc_fallback_frame_state (struct _Unwind_Context *context,
> _Unwind_FrameState *fs)
> {
> struct rt_sigframe {
> siginfo_t info;
> struct ucontext uc;
> unsigned int sigret_magic;
> };
>
> Can we atleast define a preprocessor macro to indicate this ABI change so downstream projects can support both
> things in short term ?
>
this is not an abi issue but api (source code) issue:
there is no 'struct ucontext' in the public api,
only ucontext_t (without struct) so i think libgcc
should be fixed anyway.
> I see other threads on mailing list about distros being notifed etc of this ...
>
> -Vineet
next prev parent reply other threads:[~2017-06-28 9:23 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-27 8:00 [RFC 0/6] glibc port to ARC architecture Vineet Gupta
2017-06-27 8:00 ` [RFC 1/6] upstream: comment update Vineet Gupta
2017-06-27 8:00 ` [RFC 2/6] ARC: Fixed inline asm contraints to gcc 6.x Vineet Gupta
2017-06-27 11:47 ` Joseph Myers
2017-06-27 16:40 ` Vineet Gupta
2017-06-27 16:53 ` Zack Weinberg
2017-06-27 8:00 ` [RFC 3/6] ARC: add definitions to elf/elf.h Vineet Gupta
2017-06-27 8:00 ` [RFC 4/6] ARC: Initial port to glibc Vineet Gupta
2017-06-27 11:29 ` Florian Weimer
2017-06-27 11:55 ` Vineet Gupta
2017-06-27 12:01 ` Florian Weimer
2017-06-27 12:03 ` Joseph Myers
2017-06-27 11:56 ` Joseph Myers
2017-06-27 15:51 ` Vineet Gupta
2017-06-27 15:55 ` Joseph Myers
2017-06-27 16:52 ` Vineet Gupta
2017-06-27 17:02 ` Joseph Myers
2017-06-27 19:32 ` Vineet Gupta
2017-06-27 19:56 ` Joseph Myers
2017-06-28 8:48 ` ucontect vs. ucontext_t (was Re: [RFC 4/6] ARC: Initial port to glibc) Vineet Gupta
2017-06-28 9:23 ` Szabolcs Nagy [this message]
2017-06-28 9:30 ` Joseph Myers
2017-06-28 9:42 ` Vineet Gupta
2017-06-29 15:22 ` [RFC 4/6] ARC: Initial port to glibc Vineet Gupta
2017-06-29 15:29 ` Joseph Myers
2017-11-06 20:19 ` Vineet Gupta
2017-11-06 22:26 ` Joseph Myers
2017-06-27 8:00 ` [RFC 5/6] ARC: Enable __start as entry point vs. canonical _start Vineet Gupta
2017-06-27 8:00 ` [RFC 6/6] ARC: Fix several testsuite failures related to unwinding Vineet Gupta
2017-06-27 11:31 ` [RFC 0/6] glibc port to ARC architecture Florian Weimer
2017-06-27 12:00 ` Joseph Myers
2017-11-06 22:51 ` Vineet Gupta
2017-11-06 23:08 ` Joseph Myers
2017-11-27 20:35 ` Vineet Gupta
2017-11-27 22:16 ` Joseph Myers
2017-12-08 0:31 ` Vineet Gupta
2017-12-08 11:15 ` Joseph Myers
2017-06-27 11:44 ` Joseph Myers
2017-06-27 13:15 ` Vineet Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59537585.3020108@arm.com \
--to=szabolcs.nagy@arm.com \
--cc=linux-snps-arc@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.