FW: Introducing the "wincall" Calling Convention for GCC

2023-08-08 Thread sotrdg sotrdg via Gcc
I present a novel calling convention named "wincall" designed specifically for GCC. This convention is accompanied by the [[__gnu__::__wincall__]] attribute and caters to the latest Intel APX instructions on Windows systems, excluding Linux, BSD, and similar platforms. Motivation: The current

Re: [Mingw-w64-public] gcc parameter -mcrtdll= for choosing Windows C RunTime DLL library

2022-11-26 Thread sotrdg sotrdg via Gcc
what you want is basically a ucrt multilib. However, neither glibc provides the same toggle too. i do not see a good reason for your request. Get Outlook for Android From: Pali Rohár Sent: Saturday, November 26, 2022 2:09:09 PM To: LIU

Portable solutions for carry flags?

2021-12-05 Thread sotrdg sotrdg via Gcc
Thank you!!! Sent from Mail for Windows

Has GCC completed C++ 20 module support?

2021-11-01 Thread sotrdg sotrdg via Gcc
It looks like It is still in early phase. the fmodule-ts still emits dead code for example. any progress here? Get Outlook for Android

RE: __builtin_addc support??

2021-10-27 Thread sotrdg sotrdg via Gcc
ailto:gcc@gcc.gnu.org>; gcc-requ...@gcc.gnu.org<mailto:gcc-requ...@gcc.gnu.org>; gcc-h...@gcc.gnu.org<mailto:gcc-h...@gcc.gnu.org> Subject: Re: __builtin_addc support?? On Wed, Oct 27, 2021 at 04:12:27PM +, sotrdg sotrdg via Gcc-help wrote: > 79173 – add-with-carry and subtract

RE: __builtin_addc support??

2021-10-27 Thread sotrdg sotrdg via Gcc
indows From: Segher Boessenkool Sent: Wednesday, October 27, 2021 7:16:41 PM To: sotrdg sotrdg Cc: gcc@gcc.gnu.org ; gcc-requ...@gcc.gnu.org ; gcc-h...@gcc.gnu.org Subject: Re: __builtin_addc support?? On Wed, Oct 27, 2021 at 04:12:27PM +, sotrdg sotrdg via Gcc-help wrote: > 79173 – add-w

RE: __builtin_addc support??

2021-10-27 Thread sotrdg sotrdg via Gcc
?? > On Oct 27, 2021, at 12:12 PM, sotrdg sotrdg via Gcc wrote: > > 79173 – add-with-carry and subtract-with-borrow support (x86_64 and others) > (gnu.org)<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79173> > > What I find quite interesting is things like this. > &g

__builtin_addc support??

2021-10-27 Thread sotrdg sotrdg via Gcc
79173 – add-with-carry and subtract-with-borrow support (x86_64 and others) (gnu.org) What I find quite interesting is things like this. Since llvm clang provides __builtin_addc __builtin_subc for all targets. Can we provide something

does aarch64-w64-mingw32 triplet exist??

2021-09-07 Thread sotrdg sotrdg via Gcc
I am curious whether binutils-gdb/gcc support arm architectures of mingw32. Sent from Mail for Windows

Break abis of std::span??

2021-08-08 Thread sotrdg sotrdg via Gcc
I am reading the source code of i386. I am going to add a new attribute [[gnu::ms_abi_spread_register]] to the GCC compiler and fixes the abi efficiency of std::span on ms_abi. gcc/i386.c at master · gcc-mirror/gcc

GCC admin is down. Daily bump is no longer available.

2021-08-03 Thread sotrdg sotrdg via Gcc
last Daily bump was 5 days ago. Need a fix on Daily bump Get Outlook for Android

Does GCC have __gnuc_literal_encoding__ macro defined?

2021-06-25 Thread sotrdg sotrdg via Gcc
I just realized clang has this but clang does not support -fexec-charset. Clang Language Extensions — Clang 13 documentation (llvm.org) __clang_literal_encoding__ Defined to a narrow string literal that represents the current encoding of

Does bootstrap make native compiler faster? Should I always use --disable-boostrap?

2021-06-02 Thread sotrdg sotrdg via Gcc
The document said yes. However, what does bootstrap actually do that can make compiler faster? Sent from Mail for Windows 10

Is it very hard to support wasi backend?

2021-04-29 Thread sotrdg sotrdg via Gcc
I helped built libstdc++ on wasm32-wasi with clang. It works great. However, are we going to have GCC’s own wasm32-wasi backend support in the future? Sent from Mail for Windows 10

[PATCH] Fix freestanding cstdint which fails to detect stdint.h [PR100057]

2021-04-13 Thread sotrdg sotrdg via Gcc-patches
>From 609cef6c863633711418c6b23401069062ac5df8 Mon Sep 17 00:00:00 2001 From: expnkx Date: Wed, 14 Apr 2021 01:48:38 -0400 Subject: [PATCH] Fix freestanding cstdint which fails to detect stdint.h [PR100057] Configure script cannot find cstdint when we build in freestanding environment since

boostrap failure with newlib

2021-02-27 Thread sotrdg sotrdg via Gcc
../../../gcc/libssp/ssp.c: In function '__guard_setup': ../../../gcc/libssp/memcpy-chk.c:45:15: error: unknown type name 'size_t' 45 | size_t len, size_t slen) | ^~ ../../../gcc/libssp/ssp.c:93:12: warning: implicit declaration of function 'open'

i586 msdosdjgpp compiler ICE

2021-02-27 Thread sotrdg sotrdg via Gcc-bugs
$ i586-pc-msdosdjgpp-g++ -o a a.cc -Ofast -std=c++20 -s -flto In file included from d:\msys64\i586-pc-msdosdjgpp\lib\gcc\i586-pc-msdosdjgpp\11.0.1\include\immintrin.h:43, from ../include/fast_io_core_impl/intrinsics.h:5, from ../include/fast_io_core.h:28,

Time to update all licenses in code to 2021

2021-01-01 Thread sotrdg sotrdg via Gcc
Update copyright years. · gcc-mirror/gcc@8d9254f (github.com) Sent from Mail for Windows 10

Any possibility to support link with msvc stl just like clang??

2020-12-28 Thread sotrdg sotrdg via Gcc
That would be fun. Sent from Mail for Windows 10

RE: PETITION TO REMOVE -fexec-charset in GCC. That is purely garbage and undefined behavior.

2020-11-25 Thread sotrdg sotrdg via Gcc
Glibc cannot deal with EBCDIC or any other charset besides UTF-8 since GCC itself does not emit exec-coding set to C library and C library just could not deal with it. Even glibc could deal with it, GCC allows different exec-charset to be linked with each other which is definitely an undefined

Why there are no macro to access the name of current exec-charset and fwide-exec-charset??????

2020-11-25 Thread sotrdg sotrdg via Gcc
I have to make filename work correctly under none UTF-8 exec charset. Do not tell me to use locale since locale is not thread-safe and configure locale is a huge issue. I do not use any C stdio or C++ iostream facilities since I create my own I/O library from scratch. However, this is

Re: I absolutely despise the whole -fexec-charset and locale garbage.

2020-11-19 Thread sotrdg sotrdg via Gcc
Re: I absolutely despise the whole -fexec-charset and locale garbage. 在 2020/11/19 上午2:31, sotrdg sotrdg via Gcc 写道: > The locale shit is not thread safe. printf(“Hello World %d”,3) is undefined > behavior under none-UTF-8 exec-charset. WTF WTF WTF. > > This is purely garbag

I absolutely despise the whole -fexec-charset and locale garbage.

2020-11-18 Thread sotrdg sotrdg via Gcc
The locale shit is not thread safe. printf(“Hello World %d”,3) is undefined behavior under none-UTF-8 exec-charset. WTF WTF WTF. This is purely garbage tbh. Just remove this toggle. I want encoding, I can use another library. I do not need the compiler to do the shitty job for me to ruin my

PETITION TO REMOVE -fexec-charset in GCC. That is purely garbage and undefined behavior.

2020-11-18 Thread sotrdg sotrdg via Gcc
printf(“Hello World\n”); is UB under -fexec-charset= EBCDIC. WTF WTF!!! Sent from Mail for Windows 10

Time for std::bit_cast

2020-10-30 Thread sotrdg sotrdg via Gcc
Thank you! Jakub. YES to std::bit_cast Sent from Mail for Windows 10

What would happen when linking code that compiles with -fexec-charset=IBM-12712 and UTF8?

2020-10-23 Thread sotrdg sotrdg via Gcc
I think that just generates undefined behaviors. Sent from Mail for Windows 10

Are you going to fix the addcarry_u64 and subborrow_u64 bugs in the future?

2020-10-12 Thread sotrdg sotrdg via Gcc
The assembly GCC generates are just wrong, very wrong here. People have reported the similar bugs since 2015 over and over again but GCC still could not get it done right. Even MSVC is doing the right thing. If you are not going to fix them, okay, I will start to write assembly manually. I

Are you going to fix the addcarry_u64 and subborrow_u64 bugs in the future?

2020-10-12 Thread sotrdg sotrdg via Gcc-bugs
The assembly GCC generates are just wrong, very wrong here. People have reported the similar bugs since 2015 over and over again but GCC still could not get it done right. Even MSVC is doing the right thing. If you are not going to fix them, okay, I will start to write assembly manually. I

RE: This is my patch for fstream to fix the performance issue on Windows.

2020-10-04 Thread sotrdg sotrdg via Gcc-patches
In general yes. Of course 64k would be the optimal value for buffer size for both windows and linux. However, I think iostream is an old thing. Setting it as optimal value might create compatibility issues. Yes. This patch is good. Sent from

Is it very hard to implement Zero-overhead deterministic exceptions: Throwing values??

2020-06-13 Thread sotrdg sotrdg via Gcc
http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0709r0.pdf I really want this feature. How, it looks like this requires changes on RTL, gimple and C++ front-end. Is that very hard to implement it? Sent from Mail for Windows 10

Hello gcc. Why -fvtable-gc was removed from the compiler?

2020-06-09 Thread sotrdg sotrdg via Gcc
What’s wrong with eliminating unused virtual functions in the binary? Sent from Mail for Windows 10