public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: "Carlos O'Donell" <carlos@systemhalted.org>
To: The Source <thesourcehim@gmail.com>
Cc: "libc-help@sourceware.org" <libc-help@sourceware.org>,
	crossgcc@sourceware.org
Subject: Re: problem with __init_cpu_features()
Date: Thu, 19 May 2016 16:44:00 -0000	[thread overview]
Message-ID: <CAE2sS1grf1cedFcNXtRMe6+hNQCPj+HA-nJnFGP==ocmFtA5pA@mail.gmail.com> (raw)
In-Reply-To: <be327cad-d277-d5e9-230c-0ea6c33cbdc1@gmail.com>

On Thu, May 19, 2016 at 10:40 AM, The Source <thesourcehim@gmail.com> wrote:
> 1. I changed libc code slightly to avoid using cpuid inside pthread:
>
> sysdeps/unix/sysv/linux/x86/elision-conf.c
>
> Replaced all usage of HAS_RTM to 0:
>
>  __elision_available = 0;//HAS_RTM;
> #ifdef ENABLE_LOCK_ELISION
>   __pthread_force_elision = __libc_enable_secure ? 0 : __elision_available;
> #endif
>   //if (!HAS_RTM)
>     __elision_aconf.retry_try_xbegin = 0; /* Disable elision on rwlocks */

There should be no use of cpuid inside libpthread.

What is failing here?

> 2. And crash has gone from libpthread. But poped up in different place:
>
> libgcc_s: libgcc/config/i386/cpuinfo.c
>
> __cpu_indicator_init function uses cpuid

That would be a gcc bug. File a bug in their tracker.

> So cpuid pops up here and there even if everything is built for i486. Isn't
> there a way to completely get rid of it?

Nobody builds for i486 anymore, so what you're seeing is just bitrot
from an untested configuration.

Please file bugs and we'll fix everything you can find.

Cheers,
Carlos.

--
For unsubscribe information see http://sourceware.org/lists.html#faq

      reply	other threads:[~2016-05-19 16:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <64f1a37c-8aa5-be67-eec1-88893ec0d1cf@gmail.com>
     [not found] ` <CAE2sS1iX_yH9mdhkfmPOu8SQyCLE5zqxPGW-hFkxKE4sjdHjcA@mail.gmail.com>
     [not found]   ` <CAE2sS1hvZCSHRSLBANZRnfeW3A7V8kJdvU6kuVEnC6H-P=641Q@mail.gmail.com>
     [not found]     ` <03f98607-1993-5dc3-5774-99fe01544886@gmail.com>
     [not found]       ` <8d1c4d18-0915-ac7a-25cb-f531a323b39c@gmail.com>
2016-05-19 13:08         ` The Source
2016-05-19 14:41           ` The Source
2016-05-19 16:44             ` Carlos O'Donell [this message]

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='CAE2sS1grf1cedFcNXtRMe6+hNQCPj+HA-nJnFGP==ocmFtA5pA@mail.gmail.com' \
    --to=carlos@systemhalted.org \
    --cc=crossgcc@sourceware.org \
    --cc=libc-help@sourceware.org \
    --cc=thesourcehim@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).