RE: Can I provide a hint to gcc for return value optimization?

2021-11-15 Thread unlvsur unlvsur via Gcc
Nov 2021, 06:47 unlvsur unlvsur via Gcc, mailto:gcc@gcc.gnu.org>> wrote: I want give a hint to gcc that allows std::string to rvo. Is that possible? Any attribute for doing that? It's already allowed, and will be done automatically whenever it's possible.

Can I provide a hint to gcc for return value optimization?

2021-11-14 Thread unlvsur unlvsur via Gcc
I want give a hint to gcc that allows std::string to rvo. Is that possible? Any attribute for doing that? Sent from Mail for Windows

cross or Canadian compile gcc with -flto?

2021-10-18 Thread unlvsur unlvsur via Gcc
Is that possible? Sent from Mail for Windows

adc,sbb instruction intrinsics for arm?

2021-10-15 Thread unlvsur unlvsur via Gcc
I want that. Sent from Mail for Windows

sanitizers support for windows??

2021-09-17 Thread unlvsur unlvsur via Gcc
I find that clang can build sanitizers correctly but libstdc++ does not work with sanitizers since it does not support related functionalities with sanitizers on windows. Can we start to add support for sanitizers for windows?? I honestly do not think that would take a huge amount of time.

C++ member functions vs C++ free-functions, which compiles faster???

2021-08-07 Thread unlvsur unlvsur via Gcc
struct foo { void write() { //dosomething } }; Vs struct foo { }; Inline void write(foo&) { //dosomething } Which one compiles faster? My guess is that the first one compiles faster since it is more context free compared to 2nd one. Sent from

RE: How to detect user uses -masm=intel?

2021-07-29 Thread unlvsur unlvsur via Gcc
Can we add one?? Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Florian Weimer<mailto:fwei...@redhat.com> Sent: Thursday, July 29, 2021 04:39 To: unlvsur unlvsur via Gcc<mailto:gcc@gcc.gnu.org> Cc: Andrew Pinski<mailto:pins...@gmail.c

RE: How to detect user uses -masm=intel?

2021-07-28 Thread unlvsur unlvsur via Gcc
Pinski<mailto:pins...@gmail.com> Sent: Wednesday, July 28, 2021 21:43 To: unlvsur unlvsur<mailto:unlv...@live.com> Cc: gcc@gcc.gnu.org<mailto:gcc@gcc.gnu.org> Subject: Re: How to detect user uses -masm=intel? On Wed, Jul 28, 2021 at 6:41 PM unlvsur unlvsur via Gcc wrote: > > Any GC

RE: How to detect user uses -masm=intel?

2021-07-28 Thread unlvsur unlvsur via Gcc
gnu.org<mailto:gcc@gcc.gnu.org> Subject: Re: How to detect user uses -masm=intel? On Wed, Jul 28, 2021 at 6:41 PM unlvsur unlvsur via Gcc wrote: > > Any GCC macro that can tell the code it is using the intel format’s assembly > instead of at?? Inside the inline-asm you can use the al

How to detect user uses -masm=intel?

2021-07-28 Thread unlvsur unlvsur via Gcc
Any GCC macro that can tell the code it is using the intel format’s assembly instead of at?? Sent from Mail for Windows 10

Can I add a new built-in macro __builtin_secure_generate_random(void* data, std::size_t size) for C and C++ on hosted GCC platforms that support it?

2021-06-06 Thread unlvsur unlvsur via Gcc
I think compiler time random number is useful for cryptography things like blinding. This built-in should also be constexpr. On platforms that does not support this feature (MSDOS) do not define this __builtin. Users can use #if __has_builtin(__builtin_secure_generate_random) #endif to

compile time real random number generator?

2021-05-20 Thread unlvsur unlvsur via Gcc
Can We get a __RAND__ macro to generate a 64 bit unsigned integer random number? That is pretty useful for cryptograph so We can do blinding Get Outlook for Android

Please fix --disable-hosted-libstdcxx asap

2021-04-21 Thread unlvsur unlvsur via Gcc
Thank you. I have submitted the patch before. Please just apply it or do that by yourself. Sent from Mail for Windows 10

NO RMS in GCC.

2021-04-19 Thread unlvsur unlvsur via Gcc
NO RMS. NO RMS. NO RMS. Sent from Mail for Windows 10

[PATCH] Fix intrinsics mm_malloc.h in freestanding [PR100057]

2021-04-14 Thread unlvsur unlvsur via Gcc-patches
>From b1774ab1c8aad82b7a5d975ef90c6d3f633780ee Mon Sep 17 00:00:00 2001 From: expnkx Date: Wed, 14 Apr 2021 03:14:28 -0400 Subject: [PATCH] Fix intrinsics mm_malloc.h in freestanding [PR100057] C does not have stdlib.h and C++ cstdint in freestanding does not malloc either. This leads to fail

FW: [PATCH] Fix intrinsics mm_malloc.h in freestanding [PR100057]

2021-04-14 Thread unlvsur unlvsur via Gcc-patches
>From b1774ab1c8aad82b7a5d975ef90c6d3f633780ee Mon Sep 17 00:00:00 2001 From: expnkx Date: Wed, 14 Apr 2021 03:14:28 -0400 Subject: [PATCH] Fix intrinsics mm_malloc.h in freestanding [PR100057] C does not have stdlib.h and C++ cstdint in freestanding does not malloc either. This leads to fail

[no subject]

2021-04-14 Thread unlvsur unlvsur via Gcc-patches
>From b1774ab1c8aad82b7a5d975ef90c6d3f633780ee Mon Sep 17 00:00:00 2001 From: expnkx Date: Wed, 14 Apr 2021 03:14:28 -0400 Subject: [PATCH] Fix intrinsics mm_malloc.h in freestanding [PR100057] C does not have stdlib.h and C++ cstdint in freestanding does not malloc either. This leads to fail

[PATCH] Fix build errors on several platforms. [PR100057,PR100012,PR99499,PR99306]

2021-04-13 Thread unlvsur unlvsur via Gcc-patches
>From 71e6b5bcf5564ecc59a96fdf2939537e4ccf0004 Mon Sep 17 00:00:00 2001 From: expnkx Date: Wed, 14 Apr 2021 00:17:53 -0400 Subject: [PATCH] Fix build errors on several platforms. [PR100057,PR100012,PR99499,PR99306] [PATCH] libstdc++: Fix build errors with --disable-hosted-libstdcxx [PR100057]

RE: Should GCC provide __builtin_memcpy_inline like clang does?

2021-01-19 Thread unlvsur unlvsur via Gcc
1 at 11:33:56AM +, unlvsur unlvsur via Gcc-help wrote: > I think __builtin_memmove_inline, __builtin_memset_inline can also get > provided. > > That allows better performance for small size copies You normally will get better performance by letting the compiler figure out whether

Should GCC provide __builtin_memcpy_inline like clang does?

2021-01-19 Thread unlvsur unlvsur via Gcc
I think __builtin_memmove_inline, __builtin_memset_inline can also get provided. That allows better performance for small size copies and allowing memcpy to be usable without libc. Sent from Mail for Windows 10

Is that possible to implement deterministic exception easily?

2021-01-18 Thread unlvsur unlvsur via Gcc
I guess adding calling convention for new C++ deterministic exception option is hard and that requires changes among front-end, middle-end and back-end altogether. However, I desperately need that feature since current C++ exceptions are totally unusable. void f() throws {} The failure bit

Can you GCC folks provide a macro to learn the code knows the name of input-charset, exec-charset and wide-exec-charset?

2020-12-31 Thread unlvsur unlvsur via Gcc
I desperately need to know exec-charset to do the correct codecvt. Macros like __GNU_INPUT_CHARSET, __GNU_EXEC_CHARSET and __GNU_WIDE_EXEC_CHARSET would be great Sent from Mail for Windows 10

Can we start working on Herbception?

2020-04-01 Thread unlvsur unlvsur via Gcc
ubject: Re: -stdlib=libc++? unlvsur unlvsur via Gcc wrote: > I think this would be great to support LLVM’s libc++ by be compatible > with -stdlib=libc++ on clang. I have a patch for this, for next stage 1. (we are in stage 4 now, so not the right time for new features). thanks Iain

-stdlib=libc++?

2020-03-30 Thread unlvsur unlvsur via Gcc
I think this would be great to support LLVM’s libc++ by be compatible with -stdlib=libc++ on clang. Sent from Mail for Windows 10