All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yu, Mingli" <mingli.yu@windriver.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] gcc-sanitizers: fix the build with -fno-omit-frame-pointer
Date: Wed, 6 Mar 2019 14:02:58 +0800	[thread overview]
Message-ID: <5C7F6292.3020908@windriver.com> (raw)
In-Reply-To: <CAMKF1sp6DERNjdQnGWYKqJddH67Rm=PUThyy=qkpeU_rKp1itw@mail.gmail.com>



On 2019年03月06日 13:34, Khem Raj wrote:
> On Tue, Mar 5, 2019 at 8:24 PM <mingli.yu@windriver.com> wrote:
>>
>> From: Mingli Yu <Mingli.Yu@windriver.com>
>>
>> Fix the below build issue for gcc-sanitizers when
>> both -mthumb and -fno-omit-frame-pointer configured
>> for arm.
>> | ../../../../libsanitizer/sanitizer_common/sanitizer_linux.cc: In function 'sanitizer::uptr sanitizer::internal_clone(int (*)(void*), void*, int, void*, int*, void*, int*)':
>> | ../../../../libsanitizer/sanitizer_common/sanitizer_linux.cc:1540:1: error: r7 cannot be used in asm here
>> }
>>
>> Reference: https://reviews.llvm.org/D50180
>>
>> Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
>> ---
>>   meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb b/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb
>> index f3c7058..2f89c86 100644
>> --- a/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb
>> +++ b/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb
>> @@ -5,3 +5,4 @@ require gcc-sanitizers.inc
>>   # sanitizer_linux.s:5749: Error: lo register required -- `ldr ip,[sp],#8'
>>   ARM_INSTRUCTION_SET_armv4 = "arm"
>>   ARM_INSTRUCTION_SET_armv5 = "arm"
>> +TARGET_CFLAGS_remove_arm = "${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fno-omit-frame-pointer', '', d)}"
>
> what target does it happen with ? since we set arm ISA for armv5 and
> v4 it must be something else

It is armv7vethf.

>


  reply	other threads:[~2019-03-06  5:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-06  4:24 [PATCH] gcc-sanitizers: fix the build with -fno-omit-frame-pointer mingli.yu
2019-03-06  5:34 ` Khem Raj
2019-03-06  6:02   ` Yu, Mingli [this message]
2019-03-13  1:52 ` Yu, Mingli

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=5C7F6292.3020908@windriver.com \
    --to=mingli.yu@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@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 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.