Re: make error when builing gcc

2025-03-08 Thread LIU Hao via Gcc
d by failure to compile a simple C++ program, but the cause can vary: Your system might have no c++ compiler (which i think is unlikely), or the existent c++ compiler rejected the program due to an unknown option. You can take a look at the end of config.log. -- Best regards, LIU Hao OpenPGP_

Re: make error when builing gcc

2025-03-07 Thread LIU Hao via Gcc
e --enable-languages=c,c++,fortran --disable-multilib make -j$(nproc) ``` -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Help for git send-email setting

2025-01-12 Thread Hao Liu via Gcc
Hi, I'm new to GCC community, and try to contribute some patches. I am having trouble setting git send-email with Outlook on Linux. Does anyone have any successful experiences to share? Best regards

Re: How to remove extra assembly code"

2024-10-17 Thread LIU Hao via Gcc
2f6b1b742911ba0770b49bbb/mingw-w64-crt/crt/crtexe.c#L203-L267 [2] https://sourceware.org/binutils/docs/ld/WIN32.html -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: How to remove extra assembly code

2024-10-17 Thread LIU Hao via Gcc
My code is pure C language and does not need this code. How to remove the extra assembly code. The solution is to define `WinMain()` (or `wWinMain()` with the `-municode` option), where GCC will not insert `__main()`. Note the call still exists, before your main function is called. -- B

Re: Linking to windows library

2024-09-18 Thread LIU Hao via Gcc
ne it in one of your source files. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: New calling convention gotham_call

2024-08-20 Thread LIU Hao via Gcc
another register. I don't see a point in doing that. Not to mention that MOV can be implemented by register renaming which has a latency of zero. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: GCC 14.1.1 Status Report (2024-07-11)

2024-07-14 Thread LIU Hao via Gcc
lease take a look at PR115049 and decide whether it should block the release? Although this issue is reported about mingw-w64, I suspect Linux may be affected too. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH v1] Remove 'restrict' from 'nptr' in strtol(3)-like functions

2024-07-05 Thread LIU Hao via Gcc
#x27;restrict'-qualified parameter // aliases with argument 1 -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Question about generating vpmovzxbd instruction without using the interfaces in immintrin.h

2024-05-30 Thread Hongtao Liu via Gcc
On Fri, May 31, 2024 at 10:58 AM Hanke Zhang via Gcc wrote: > > Hi, > I've recently been trying to hand-write code to trigger automatic > vectorization optimizations in GCC on Intel x86 machines (without > using the interfaces in immintrin.h), but I'm running into a problem > where I can't seem to

Re: [PATCH] Fix rust on *-w64-mingw32

2024-04-27 Thread LIU Hao via Gcc
Attached is an alternative patch to functionalize `load_macros_array`. It allows GCC to build on x86_64-w64-mingw32. Not tested though, as I know no Rust. As before, please edit the patch at your disposal. -- Best regards, LIU Hao diff --git a/gcc/rust/checks/errors/borrowck/rust-borrow

Re: [PATCH] Fix rust on *-w64-mingw32

2024-04-26 Thread LIU Hao via Gcc
hing about Rust. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

[PATCH] Fix rust on *-w64-mingw32

2024-04-25 Thread LIU Hao via Gcc
Hello, Attached is a patch for fixing build issues on *-w64-mingw32. Please check and update at your leisure. 'gcc/system.h' contains a macro called `mkdir()` and there is no need to invoke `_mkdir()` within a conditional block. -- Best regards, LIU Hao diff --git a/gcc/rust/che

Re: Builtin for consulting value analysis (better ffs() code gen)

2024-03-21 Thread LIU Hao via Gcc
. The other branch below clearly eliminates the dependency.     }     else     {         // The architects say this is safe even for 0.         res = -1;     asm("bsf %1, %0" : "+r"(res) : "rm"(x));     }     return res + 1; } -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: RFC: Formalization of the Intel assembly syntax (PR53929)

2024-01-31 Thread LIU Hao via Gcc
This patch does not look so horrible: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53929#c26 -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: RFC: Formalization of the Intel assembly syntax (PR53929)

2024-01-23 Thread LIU Hao via Gcc
houldn't have checked for `*` right? The calls to `output_addr_const()` are from `dw2_assemble_integer (int size, rtx x)` in 'gcc/dwarf2asm.cc'. Now I need some directives on how to fix this; parsing the symbol seems awkward. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: RFC: Formalization of the Intel assembly syntax (PR53929)

2024-01-23 Thread LIU Hao via Gcc
"`, it would mean something very different and cause linker errors. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: RFC: Formalization of the Intel assembly syntax (PR53929)

2024-01-22 Thread LIU Hao via Gcc
h_mouse\AppData\Local\Temp\ccuyuu6c.s:29: Error: invalid use of register C:\Users\lh_mouse\AppData\Local\Temp\ccuyuu6c.s:29: Warning: register value used as expression lh_mouse@lhmouse-pc ~/Desktop $ ``` -- Best regards, LIU Hao From 2579afab42b90dceac860114acbad1ab79bca979 Mon Sep 17 00:

Re: RFC: Formalization of the Intel assembly syntax (PR53929)

2024-01-20 Thread LIU Hao via Gcc
t;bx"[rip] > as test.s -o test.o > objdump -d test.o test.o: file format pe-x86-64 (...) 0: 48 8d 05 00 00 00 00learax,[rip+0x0]# 7 <.text+0x7> 7: 90 nop So I think I had better try my patch in the next few days

Re: RFC: Formalization of the Intel assembly syntax (PR53929)

2024-01-20 Thread LIU Hao via Gcc
does not cause ambiguity, it can be accepted either way. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: RFC: Formalization of the Intel assembly syntax (PR53929)

2024-01-18 Thread LIU Hao via Gcc
ax noprefix; mov eax, DWORD PTR gs:0x48' -o a.o && objdump -Mintel -d a.o ... <.text>: 0:65 8b 04 25 48 00 00moveax,DWORD PTR gs:0x48 -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: RFC: Formalization of the Intel assembly syntax (PR53929)

2024-01-18 Thread LIU Hao via Gcc
so their compiler outputs do not really turn into assembly code before finally becoming target code. This approach is not subject to the ambiguity. As GCC still relies on GAS to produce object files, (as stated in the first paragraph,) it might make some sense to implement a strict mode on outputs

RFC: Formalization of the Intel assembly syntax (PR53929)

2024-01-17 Thread LIU Hao via Gcc
-- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: No subject

2024-01-05 Thread LIU Hao via Gcc
r supports Windows 7, but it's always possible to cross-compile from a supported system to Windows 7, or something even older like Windows XP or 2000. If you encounter an issue, please let me know. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re:

2024-01-05 Thread LIU Hao via Gcc
packages, we generally recommend https://www.msys2.org/. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: libgcov, fork, and mingw (and other targets without the full POSIX set)

2023-12-10 Thread LIU Hao via Gcc
d) #endif /* L_gcov_dump */ -#ifdef L_gcov_fork +#if defined L_gcov_fork && !defined _WIN32 /* A wrapper for the fork function. We reset counters in the child so that they are not counted twice. */ ``` -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: libgcov, fork, and mingw (and other targets without the full POSIX set)

2023-12-01 Thread LIU Hao via Gcc
. Calls to weak functions can jump to random, non-allocated memory and cause faults. Instead, duplicates of COMDAT sections are removed by the `.linkonce discard` directive. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: libgcov, fork, and mingw (and other targets without the full POSIX set)

2023-12-01 Thread LIU Hao via Gcc
iled. Makes sense. The target-specific macro `_WIN32` serves that purpose. However `fork()` doesn't actually exist there, and linking should indeed fail. Maybe `__gcov_fork()` shouldn't be defined at all. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH 3/4] libbacktrace: work with aslr on windows

2023-11-21 Thread LIU Hao via Gcc
them for C++ [1] and GCC defines `NOMINMAX` in 'os_defines.h', so either way it is not necessary. [1] https://github.com/mingw-w64/mingw-w64/blob/3ebb92804e3125d1be8f61bcd42f15a8db15ba1e/mingw-w64-headers/include/minmax.h#L9 -- Best regards, LIU Hao OpenPGP_signature.asc

Re: Questions about vectorizing a simple loop by inferring the range from array

2023-11-10 Thread Hao Liu OS via Gcc
t how to support it generally. This case is a special, as it doesn't need runtime check. So, I'm trying to fix this one as the 1st step. Thanks, -Hao From: Richard Biener Sent: Friday, November 10, 2023 17:39 To: Hao Liu OS Cc: gcc@gcc.gnu.org

Questions about vectorizing a simple loop by inferring the range from array

2023-11-09 Thread Hao Liu OS via Gcc
Hi, I'm investigating how to vectorize the following simple case: int A[1024 * 2]; int foo1 (unsigned offset) { int sum = 0; for (unsigned i = 0; i < 1024; i++) sum += A[i + offset]; return sum; } The loop body and loop vectorizer dumps are: # i_13 = PH

Request for update of documentation about `-mtune`

2023-10-27 Thread LIU Hao via Gcc
on my TigerLake CPU. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask,

2023-08-06 Thread Hongtao Liu via Gcc
On Mon, Aug 7, 2023 at 9:38 AM Hongtao Liu wrote: > > On Mon, Aug 7, 2023 at 9:35 AM Hongtao Liu wrote: > > > > On Mon, Aug 7, 2023 at 2:08 AM Toon Moene wrote: > > > > > > Wonder if I am the only one to see this: > > > > > > https://gcc.gnu

Re: /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask,

2023-08-06 Thread Hongtao Liu via Gcc
On Mon, Aug 7, 2023 at 9:35 AM Hongtao Liu wrote: > > On Mon, Aug 7, 2023 at 2:08 AM Toon Moene wrote: > > > > Wonder if I am the only one to see this: > > > > https://gcc.gnu.org/pipermail/gcc-testresults/2023-August/792616.html Could you share your GCC configure,

Re: /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask,

2023-08-06 Thread Hongtao Liu via Gcc
On Mon, Aug 7, 2023 at 2:08 AM Toon Moene wrote: > > Wonder if I am the only one to see this: > > https://gcc.gnu.org/pipermail/gcc-testresults/2023-August/792616.html > > To quote: > > during RTL pass: split1 > /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c: In function > 'matmul_i1_a

Re: Warning specifically for a returning noreturn

2023-07-04 Thread LIU Hao via Gcc
)) // [[noreturn]] won't work int my_stream:: underflow() { throw std::invalid_argument("not implemented"); } ``` -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

[OpenACC] cheking the status of AMD GPU offloading performance

2023-06-07 Thread Chang Liu via Gcc
Hi everyone, I have a general question regarding the GPU offloading support on AMD GPUs using OpenACC or OpenMP. I am doing some tests by compiling the new version of GCC (13 and 14), following the instructions online (https://gcc.gnu.org/wiki/Offloading#How_to_try_offloading_enabled_GCC). I

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-27 Thread LIU Hao via Gcc
x86 has very few GPRs and GCC doesn't optimize multi-word arithmetic very well. Performance may or may not vary depending on cache locality and number of μops; not to mention `movq` and `movd` which have relative high latencies. I would like to see some benchmarking results first

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread LIU Hao via Gcc
tion like this, you must do it yourself. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: x86: making better use of vpternlog{d,q}

2023-05-24 Thread Hongtao Liu via Gcc
On Wed, May 24, 2023 at 3:58 PM Jan Beulich via Gcc wrote: > > Hello, > > for a couple of years I was meaning to extend the use of these AVX512F > insns beyond the pretty minimalistic ones there are so far. Now that I've > got around to at least draft something, I ran into a couple of issues I > c

Re: End of subscription

2023-05-23 Thread LIU Hao via Gcc
ub, SourceForge, StackOverflow, ncurses etc. are marked as from mailing lists. I suspect there is kinda misconfiguration. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: gcc-12.3 cannot build gcc-ada on Cygwin

2023-05-23 Thread LIU Hao via Gcc
That look likes a private macro that prevents inclusion of 'msxml.h', which can identified by examining Windows headers. It's undocumented and probably shouldn't be defined by users. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: gcc-12.3 cannot build gcc-ada on Cygwin

2023-05-21 Thread LIU Hao via Gcc
for this issue is to add `-DCOM_NO_WINDOWS_H` in `CPPFLAGS` when building GCC. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: gcc parameter -mcrtdll= for choosing Windows C RunTime DLL library

2023-05-07 Thread LIU Hao via Gcc
-patc...@gcc.gnu.org with a CC to Jonathan Yong <10wa...@gmail.com>, who is the only maintainer on GCC for mingw-w64 port. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: a small C (naive) program faster with clang than with gcc

2023-04-25 Thread LIU Hao via Gcc
, it seems to make a difference only if the result is ever written back to memory. And for comparison, it makes completely no difference whether the operand is 32-bit or 8-bit, except when the operand is an 8-bit ?H register. [1] [1] https://uops.info/table.html -- Best regards, LIU Hao

Re: MIN/MAX and trapping math and NANs

2023-04-11 Thread LIU Hao via Gcc
在 2023/4/11 16:51, LIU Hao via Gcc 写道: My interpretation is that if one argument is a SNaN and the other is not, `fmax()` shall return the SNaN unchanged, without converting it to a QNaN. (F.10.9.2 The fmax functions, ISO/IEC 9899:2017) 'the other is not' means the other op

Re: MIN/MAX and trapping math and NANs

2023-04-11 Thread LIU Hao via Gcc
017) -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: Buildbot (Sourceware): gcc - failed configure (failure) (master)

2023-01-31 Thread LIU Hao via Gcc
What should we do about it? A skull is neither descriptive nor informative, and is very unfriendly for message filters. A tag there might look much more helpful, such as [BUILDBOT] or [FAIL]. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [PATCH 3/4] libbacktrace: work with aslr on windows

2023-01-21 Thread LIU Hao via Gcc
lling wide APIs explicitly, such overhead can be avoided. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: Widening multiplication, but no narrowing division [i386/AMD64]

2023-01-09 Thread LIU Hao via Gcc
ption: ``` mov edx, 2 mov eax, edx # edx:eax = 0x20002 mov ecx, edx div ecx# division overflows because the quotient # can't stored into EAX ``` -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: B^HDEAD code generation (AMD64)

2023-01-09 Thread LIU Hao via Gcc
al ret ``` -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: Why is there no libatomic default implementation using gthr.h?

2022-12-19 Thread LIU Hao via Gcc
Would you please do the same to libgomp too? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: gcc parameter -mcrtdll= for choosing Windows C RunTime DLL library

2022-12-04 Thread LIU Hao via Gcc
this parameter is useful for more people. I vote +1 for this in GCC 14. GCC 13 (i.e. current master branch) is at stage3 so it's not an option at this moment. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: GNU = Junkware

2022-11-27 Thread LIU Hao via Gcc
在 2022-11-26 17:20, Dave Blanchard 写道: No, I'm not trolling, just venting here for a moment. So sick of garbage ass, crusty junkware that's always a battle to the death to accomplish anything. I really understand where Liu Hao was coming from yesterday when he was in here raging a

Re: Please, really, make `-masm=intel` the default for x86

2022-11-25 Thread LIU Hao via Gcc
ell, if that's your decision, fair enough. I can maintain my own distribution. Patch attached [1]; bootstrapped on {x86_64,1686}-w64-mingw32 without any issues so far. [1] https://github.com/lhmouse/MINGW-packages/blob/gcc-13/mingw-w64-gcc/9000-Deprecate-the-nonsense-AT-T-synax.patch -- Be

Re: Please, really, make `-masm=intel` the default for x86

2022-11-25 Thread LIU Hao via Gcc
在 2022/11/25 16:50, Marc Glisse 写道: On Fri, 25 Nov 2022, LIU Hao via Gcc wrote: I am a Windows developer and I have been writing x86 and amd64 assembly for more than ten years. One annoying thing about GCC is that, for x86 if I need to write I piece of inline assembly then I have to do it

Re: Please, really, make `-masm=intel` the default for x86

2022-11-25 Thread LIU Hao via Gcc
a lot of work to keep up with it all. I hope that, if we decide to make Intel syntax the default since GCC 14, then such crud will be eventually got rid of since GCC 24. OTOH, if we don't do that, we would have to live with it forever. -- Best regards, LIU Hao OpenPGP_signature Descri

Re: Please, really, make `-masm=intel` the default for x86

2022-11-24 Thread LIU Hao via Gcc
year-old evilness and refusing to move forward. Upgrading the compiler is always a big change, and updating sources should be expected, when we take `-Werror` into account. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Please, really, make `-masm=intel` the default for x86

2022-11-24 Thread LIU Hao via Gcc
to you, please consider how to write VFMADD231PD in AT&T syntax, really. I have been tired of such inconsistency. For God's sake, please deprecate it. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

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

2022-11-20 Thread LIU Hao via Gcc
aultlibs` to GCC, and specify desired libraries explicitly. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

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

2022-11-20 Thread LIU Hao via Gcc
efault-msvcrt=`, so they always match. [1] https://sourceforge.net/p/mingw-w64/mailman/message/36030072/ -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

GCC 13 bootstrap failure on i686-w64-mingw32

2022-11-20 Thread LIU Hao via Gcc
= strcspn (role, ":"); ``` -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: why does gcc jit require pthread?

2022-11-19 Thread LIU Hao via Gcc
. Thanks, I've pushed it to trunk now. Thank you for taking care of it! -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: why does gccgit require pthread?

2022-11-07 Thread LIU Hao via Gcc
ccess to GCC repo, and it takes a couple of hours for me to bootstrap GCC just for this tiny change. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: why does gccgit require pthread?

2022-11-06 Thread LIU Hao via Gcc
e not used inside GCC and the include of mutex should be done early. Well I am not familiar with such behavior. Feel free to amend the patch, until it looks good to you. I hope we can check this in before GCC 13 RC. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: why does gccgit require pthread?

2022-11-06 Thread LIU Hao via Gcc
lto,c++,fortran,objc,obj-c++` and with the `mcf` thread model; no errors observed. The built `libgccjit-0.dll` does not have imports from winpthread any more. Please review. -- Best regards, LIU Hao From ceb65f21b5ac23ce218efee82f40f641ebe44361 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Mon,

why does gccgit require pthread?

2022-11-06 Thread LIU Hao via Gcc
x27;gcc' subdirectory, so I suspect it isn't an option there? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: Issue with dllexport/dllimport inline function

2022-11-01 Thread LIU Hao via Gcc
ttribute__((__gnu_inline__)) __inline__ #endif extern int g_strcmp0(const char*str1, const char*str2); #ifndef INSIDE_FOO_C __attribute__((__gnu_inline__)) __inline__ #endif extern int g_strcmp0(const char*str1, const char*str2) { ... ``` -- Best regards, LIU Hao OpenPGP

Re: Issue with dllexport/dllimport inline function

2022-11-01 Thread LIU Hao via Gcc
27;: ``` #ifndef INSIDE_FOO_C __attribute__((__gnu_inline__)) __inline__ #endif extern int g_strcmp0(const char*str1, const char*str2) { ... ``` 'foo.c': ``` __attribute__((__dllexport__)) /* This is optional. */ extern int g_strcmp0 (const char *str1, const

Re: GCC trunk bootstrap failure on i686-w64-mingw32

2022-10-29 Thread LIU Hao via Gcc
在 2022-10-29 20:15, Eric Botcazou 写道: So what could be causing it? An oversight in https://gcc.gnu.org/pipermail/gcc-cvs/2022-August/370830.html has broken --disable-sjlj-exceptions. That's now fixed. Thank you. Rebuilding now. -- Best regards, LIU Hao OpenPGP_signature Descri

GCC trunk bootstrap failure on i686-w64-mingw32

2022-10-26 Thread LIU Hao via Gcc
could be causing it? Thanks in advance. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: Issue with dllexport/dllimport inline function

2022-10-11 Thread LIU Hao via Gcc
line%60 -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: Issue with dllexport/dllimport inline function

2022-10-11 Thread LIU Hao via Gcc
it, it should be seen as ``` __attribute__((__dllexport__)) extern inline int g_strcmp0(const char*, const char*) ``` There is no `gnu_inline` in this case. GCC always generates a COMDAT/weak/linkonce definition, which will not cause multiple definition errors.

Re: Issue with dllexport/dllimport inline function

2022-10-11 Thread LIU Hao via Gcc
在 2022/10/11 21:28, LIU Hao via Gcc 写道: Did you have any declarations that had no `__gnu_inline__`? GNU inline functions are supposed to be emitted out of line, even when its address is taken. This should be 'to be never emitted out of line'. Sorry for that. -- Best regard

Re: Issue with dllexport/dllimport inline function

2022-10-11 Thread LIU Hao via Gcc
在 2022/10/11 21:10, xclae...@gmail.com 写道: Le mardi 11 octobre 2022 à 13:00 +0800, LIU Hao a écrit : you may try    ```    __attribute__((__gnu_inline__))    extern inline    int g_strcmp0(const char*, const char*) { ...    ``` Thanks, I gave that a try but I get many: multiple

Re: Issue with dllexport/dllimport inline function

2022-10-10 Thread LIU Hao via Gcc
n is being defined in a DLL, `__dllexport__` should be used in place of `__gnu_inline__`. This may require another macro, similar to `GLIB_API`. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: Using CMake for building GCC

2022-09-11 Thread LIU Hao via Gcc
://twdev.blog/2021/08/cmake/ -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: GCC 12.0.1 Status Report (2022-04-28)

2022-04-29 Thread LIU Hao via Gcc
en no problems. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: Reqister to become gcc mirror site

2022-03-06 Thread LIU Hao via Gcc
ike that. `China, Taiwan, Hsinchu` is acceptable; `Taiwan` is not. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Intel SPR] Progress of GCC support for Intel SPR features

2022-02-06 Thread Hongtao Liu via Gcc
On Mon, Feb 7, 2022 at 11:16 AM LiYancheng via Gcc wrote: > > > On 2022/2/7 10:03, Andrew Pinski wrote: > > On Sun, Feb 6, 2022 at 5:59 PM LiYancheng via Gcc wrote: > >> Hello everyone! > >> > >> I have some questions to ask: > >> > >> 1. How does GCC support Sapphrie Rapids CPU now? > >> > >> 2.

Re: _Float16-related failures on x86_64-apple-darwin

2021-12-23 Thread Hongtao Liu via Gcc
gcc define __FLT_EVAL_METHOD__ according to builtin_define_with_int_value ("__FLT_EVAL_METHOD__", c_flt_eval_method (true)); and guess we need to handle things like: /* GCC only supports one interchange type right now, _Float16. If we're evaluating _Float16 in 16-bit precision, then

RE: GCC/OpenMP offloading for Intel GPUs?

2021-09-15 Thread Liu, Hongtao via Gcc
>From: Thomas Schwinge >Sent: Wednesday, September 15, 2021 7:20 PM >To: Liu, Hongtao >Cc: gcc@gcc.gnu.org; Jakub Jelinek ; Tobias Burnus >; Kirill Yukhin ; Richard >Biener >Subject: RE: GCC/OpenMP offloading for Intel GPUs? > >Hi! > >On 2021-09-15T02:00:33+, &qu

RE: GCC/OpenMP offloading for Intel GPUs?

2021-09-14 Thread Liu, Hongtao via Gcc
Thomas Schwinge >Sent: Wednesday, September 15, 2021 12:57 AM >To: gcc@gcc.gnu.org >Cc: Jakub Jelinek ; Tobias Burnus >; Kirill Yukhin ; Liu, >Hongtao >Subject: GCC/OpenMP offloading for Intel GPUs? > >Hi! > >I've had a person ask about GCC/OpenMP offloadi

Re: Enable the vectorizer at -O2 for GCC 12

2021-09-06 Thread Hongtao Liu via Gcc
via Gcc > > Sent: Monday, August 30, 2021 2:05 PM > > To: gcc@gcc.gnu.org > > Cc: ja...@redhat.com; Richard Earnshaw ; > > Segher Boessenkool ; Richard Sandiford > > ; premachandra.malla...@amd.com; > > Hongtao Liu > > Subject: Enable the vectorizer at -O2

Re: Enable the vectorizer at -O2 for GCC 12

2021-08-30 Thread Hongtao Liu via Gcc
On Tue, Aug 31, 2021 at 11:11 AM Kewen.Lin via Gcc wrote: > > on 2021/8/30 下午10:11, Bill Schmidt wrote: > > On 8/30/21 8:04 AM, Florian Weimer wrote: > >> There has been a discussion, both off-list and on the gcc-help mailing > >> list (“Why vectorization didn't turn on by -O2”, spread across seve

Request for catalogue

2021-08-25 Thread David Liu via Gcc
included in the proforma invoice. Thanks and best regards. we await your earliest reply. David Liu IMEX Sourcing service E-mail: o-lightin...@ovovs.com mailto:o-lightin...@ovovs.com Phone: +86 1326532 2461 Wechat: markkyyo https://imexsourcingservices.com/

Re: Why vectorization didn't turn on by -O2

2021-08-05 Thread Hongtao Liu via Gcc
On Thu, Aug 5, 2021 at 5:20 AM Segher Boessenkool wrote: > > On Wed, Aug 04, 2021 at 11:22:53AM +0100, Richard Sandiford wrote: > > Segher Boessenkool writes: > > > On Wed, Aug 04, 2021 at 10:10:36AM +0100, Richard Sandiford wrote: > > >> Richard Biener writes: > > >> > Alternatively only enable

Re: Suboptimal code generated for __buitlin_ceil on AMD64 without SS4_4.1

2021-08-05 Thread Hongtao Liu via Gcc
Could you file a bugzilla for that? https://gcc.gnu.org/bugzilla/enter_bug.cgi?product=gcc On Thu, Aug 5, 2021 at 3:34 PM Stefan Kanthak wrote: > > Hi, > > targeting AMD64 alias x86_64 with -O3, GCC 10.2.0 generates the > following code (17 instructions using 78 bytes, plus 6 quadwords > using 48

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

2021-07-28 Thread Hongtao Liu via Gcc
On Thu, Jul 29, 2021 at 10:49 AM unlvsur unlvsur via Gcc wrote: > > What I mean is that what macro GCC sets when it compiles -masm=intel > > > Int main() > { > #ifdef /*__INTEL_ASM*/ > printf(“intel”); > #else > printf(“at&t”); > #endif > } not fully understand

Re: [Questions] Is there any bit in gimple/rtl to indicate this IR support fast-math or not?

2021-07-14 Thread Hongtao Liu via Gcc
On Wed, Jul 14, 2021 at 4:17 PM Richard Biener wrote: > > On Wed, Jul 14, 2021 at 10:11 AM Hongtao Liu wrote: > > > > On Wed, Jul 14, 2021 at 3:49 PM Matthias Kretz wrote: > > > > > > On Wednesday, 14 July 2021 09:39:42 CEST Richard Biener wrote: > >

Re: [Questions] Is there any bit in gimple/rtl to indicate this IR support fast-math or not?

2021-07-14 Thread Hongtao Liu via Gcc
On Wed, Jul 14, 2021 at 3:49 PM Matthias Kretz wrote: > > On Wednesday, 14 July 2021 09:39:42 CEST Richard Biener wrote: > > -ffast-math decomposes to quite some flag_* and those generally are not > > reflected into the IL but can be different per function (and then > > prevent inlining). > > Is t

Re: [Questions] Is there any bit in gimple/rtl to indicate this IR support fast-math or not?

2021-07-14 Thread Hongtao Liu via Gcc
On Wed, Jul 14, 2021 at 2:39 PM Matthias Kretz wrote: > > On Wednesday, 14 July 2021 07:18:29 CEST Hongtao Liu via Gcc-help wrote: > > On Wed, Jul 14, 2021 at 1:15 PM Hongtao Liu wrote: > > > Hi: > > > The original problem was that some users wanted the cmdline

Re: [Questions] Is there any bit in gimple/rtl to indicate this IR support fast-math or not?

2021-07-13 Thread Hongtao Liu via Gcc
On Wed, Jul 14, 2021 at 1:15 PM Hongtao Liu wrote: > > Hi: > The original problem was that some users wanted the cmdline option > -ffast-math not to act on intrinsic production code. .i.e for codes > like > > #include > __m256d > foo2 (__m256d a, __m256d b, __m256d

[Questions] Is there any bit in gimple/rtl to indicate this IR support fast-math or not?

2021-07-13 Thread Hongtao Liu via Gcc
Hi: The original problem was that some users wanted the cmdline option -ffast-math not to act on intrinsic production code. .i.e for codes like #include __m256d foo2 (__m256d a, __m256d b, __m256d c, __m256d d) { __m256d tmp = _mm256_add_pd (a, b); tmp = _mm256_sub_pd (tmp, c); tmp = _mm256_sub_

Re: Bootstrap failure of GCC 11.1.1 on x86_64-w64-mingw32

2021-07-08 Thread LIU Hao via Gcc
t would be great as well. Thank you for the information. Reverting cfc9fdcec8861be0d11ec4493cca518bf5b4c32d made the build proceed again. I have created PR 101377 for it [1]. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377 -- Best regards, LIU Hao OpenPGP_signature Descriptio

Bootstrap failure of GCC 11.1.1 on x86_64-w64-mingw32

2021-07-08 Thread LIU Hao via Gcc
have attached the build log in case you need it. -- Best regards, LIU Hao mingw-w64-gcc-mcf-11.1.1.d20210708.c11.g35aca8e9b45-1-x86_64-build.log.gz Description: application/gzip OpenPGP_signature Description: OpenPGP digital signature

Re: Why does printing a pointer cause it to escape?

2021-06-23 Thread Liu Hao via Gcc
void* ptr = 0; if(sscanf(buf, "%p", &ptr)) *(int*)ptr = 100; fprintf(stderr, "value = %d\n", value); // 100 instead of 42 } ``` -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature

Re: Hongtao Liu as x86 vectorization maintainer

2021-06-22 Thread Hongtao Liu via Gcc
On Tue, Jun 22, 2021 at 3:58 PM Jakub Jelinek via Gcc wrote: > > On Mon, Jun 21, 2021 at 02:49:56AM +0000, Liu, Hongtao via Gcc wrote: > > >-Original Message- > > >From: Jason Merrill > > >Sent: Monday, June 21, 2021 10:07 AM > > >To: Liu,

RE: Hongtao Liu as x86 vectorization maintainer

2021-06-20 Thread Liu, Hongtao via Gcc
>-Original Message- >From: Jason Merrill >Sent: Monday, June 21, 2021 10:07 AM >To: Liu, Hongtao >Cc: gcc Mailing List ; Marek Polacek >Subject: Hongtao Liu as x86 vectorization maintainer > >I am pleased to announce that the GCC Steering Committee has a

Re: GCC trunk commit a325bdd195ee96f826b208c3afb9bed2ec077e12

2021-06-16 Thread Liu Hao via Gcc
hor), then rebased the modified commit onto ee52bf609bac. Git is smart enough to drop duplicate changes, but the leftovers formed a new commit, which was exactly a325bdd195e. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature

  1   2   3   >