* [PATCH] gcc-sanitizers: fix the build with -fno-omit-frame-pointer
@ 2019-03-06 4:24 mingli.yu
2019-03-06 5:34 ` Khem Raj
2019-03-13 1:52 ` Yu, Mingli
0 siblings, 2 replies; 4+ messages in thread
From: mingli.yu @ 2019-03-06 4:24 UTC (permalink / raw)
To: openembedded-core, richard.purdie
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)}"
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] gcc-sanitizers: fix the build with -fno-omit-frame-pointer
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
2019-03-13 1:52 ` Yu, Mingli
1 sibling, 1 reply; 4+ messages in thread
From: Khem Raj @ 2019-03-06 5:34 UTC (permalink / raw)
To: Mingli Yu; +Cc: Patches and discussions about the oe-core layer
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gcc-sanitizers: fix the build with -fno-omit-frame-pointer
2019-03-06 5:34 ` Khem Raj
@ 2019-03-06 6:02 ` Yu, Mingli
0 siblings, 0 replies; 4+ messages in thread
From: Yu, Mingli @ 2019-03-06 6:02 UTC (permalink / raw)
To: Khem Raj; +Cc: Patches and discussions about the oe-core layer
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.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gcc-sanitizers: fix the build with -fno-omit-frame-pointer
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-13 1:52 ` Yu, Mingli
1 sibling, 0 replies; 4+ messages in thread
From: Yu, Mingli @ 2019-03-13 1:52 UTC (permalink / raw)
To: openembedded-core, richard.purdie
Ping.
Thanks,
On 2019年03月06日 12:24, 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)}"
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-03-13 1:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2019-03-13 1:52 ` Yu, Mingli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox