[Bug middle-end/106190] [10 Regression] ICE in expand_builtin_eh_common with -fnon-call-exceptions -fsanitize=address,undefined -fno-sanitize-recover=all

2024-03-10 Thread chenxiaolong at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106190

chenxiaolong  changed:

   What|Removed |Added

 CC||chenxiaolong at loongson dot cn

--- Comment #17 from chenxiaolong  ---
(In reply to Andrew Pinski from comment #1)
> int
> main ()
> {
>   int a;
>   int *b[1];
>   int c[10];
>   int d[1][1];
>   for (a = 0; a < 1; a++)
> d[1][a] = 0;
>   return 0;
> }

[Bug c/111058] __builtin_nans (and its friends for other floating-point types) compiles to an external call to __builtin_nans for unsupported tag

2023-08-18 Thread chenxiaolong at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111058

--- Comment #4 from chenxiaolong  ---
(In reply to chenxiaolong from comment #3)
> //test.c
> #include
> 
> int main(void)
> {
>   _Float128 ret=__builtin_nansf128("NAN");
>   printf("ret=%Lf\n",ret);
>   
>   return 0;   
> } 
> Compile command: gcc test.c -s -o -
> result:
> 
> x86_64:
> ...
>   movl$.LC0, %edi
>   call__builtin_nansf128
> ... 
> LoongArch:
>  
>la.local   $r4,.LC0
>   bl  %plt(__builtin_nansf128)

Compile command: gcc test.c -S -o -

[Bug c/111058] __builtin_nans (and its friends for other floating-point types) compiles to an external call to __builtin_nans for unsupported tag

2023-08-18 Thread chenxiaolong at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111058

chenxiaolong  changed:

   What|Removed |Added

 CC||chenxiaolong at loongson dot cn

--- Comment #3 from chenxiaolong  ---
//test.c
#include

int main(void)
{
_Float128 ret=__builtin_nansf128("NAN");
printf("ret=%Lf\n",ret);

return 0;   
}   
Compile command: gcc test.c -s -o -
result:

x86_64:
...
movl$.LC0, %edi
call__builtin_nansf128
... 
LoongArch:

   la.local $r4,.LC0
bl  %plt(__builtin_nansf128)