: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ gcc --version
gcc (GCC) 13.0.1 20230219 (experimental
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
int foo()
{
const unsigned int var_1
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
gcc (GCC) 13.0.1 20230219 snapshot ICEs when compiling the following testcase
$ gcc --version
gcc (GCC) 13.0.1
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
gcc (GCC) 13.0.1 20230219 snapshot ICEs when compiling the
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
int foo(a)
{
if ( a < (int*)(1LL << a))
a = 0;
return a;
}
$
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat 44.c
double foo(double x[!__builtin_copysignf(~2, 3)]);
double bar(double x)
{
return foo(x
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
struct s
{
unsigned int : 1;
};
inline static void foo(int x)
{
struct s this_struct = {.var = x
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
int var_0;
void func_0()
{
var_0++;
}
int var_0[] = {1};
$ gcc-sp12 --version
gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void fruit();
struct Apple{
int
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
struct A
{
char x[0x];
};
extern void foo(struct A);
struct A a;
void main(void)
{
foo(a);
}
$ gcc-sp12
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
struct struct_A
{
union bar
: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat 5b.c
extern char b[1];
void foo
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat 37.c
extern int var[16];
void foo(int [x]);
void bar
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101171
--- Comment #3 from John X ---
(In reply to Richard Biener from comment #1)
> Is your GCC 11 compiler checking-enabled? I doubt it is a regression.
gcc 11 build command:
```
configure --prefix=install_path --enable-languages=c --disable-multil
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat 36.c
union U
{
int a[3];
struct
{
int a : 3;
struct this_struct var;
} b;
};
const union U hello = {.a = {1, 2, 3}};
void foo()
{
int x = hello.b.a
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat 34.c
extern void foo(void);
int x
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test-6951.c
static inline void sub_1
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
struct struct_0 { char field_0 ; } ;
struct struct_0 { struct struct_0 field_1 ; } x[1];
int foo
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
static _Atomic long double x ;
void foo ( void ) {
int a , b , c ;
x += foo ( x , a , b , c
NCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void sub_0 ( void )
{
register int var_0 asm ( "19" ) ;
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void foo ( )
{
int x ;
int y[] = 1;
__builtin_va_arg ( x, int z
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void __builtin_abort ( int x
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void foo () {}
__attribute__ ( ( constructor ( foo ) ) ) void bar () { return 0
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
extern char x[];
extern char y[];
extern char z[];
void foo ()
{
__atomic_exchange ( & x , & y , &
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
unsigned short * x = 0 ;
int foo ( void ) { * x = 0 ; }
int x [ ] = { 1 , 2 , 3 }
$ gcc-11 --version
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void foo ( )
{
extern __inline int bar ( ) { }
int baz ( ) { return bar
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat reduced.c
int foo () {
x
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
int foo
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
extern void (*x
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat reduced.c
extern struct S var ;
void foo ( )
{
asm volatile ( "" :
NCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat reduced.c
void foo ( void ) {
register int x asm ( "19&
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
_Atomic float x = 5 ;
void foo ( int arg_0 )
{
void bar ( float arg_0 [ ( int ) ( x += 2
: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat reduced.c
_Atomic double x ;
void foo ( void )
{
x = 1 ;
for ( int i = 0 ; i < 1 ; i ++ )
{
double y = x /
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat reduced.c
extern void foo ( void ) ;
void bar ( double x )
{
if ( x == __builtin_speculation_safe_value
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat reduced.c
int x = - 1 << 0 ;
int foo ()
{
switch ( x )
case - 1 << 0 :
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat reduced.c
int x , y ;
int foo ( )
{
x = 0 ;
y = 0 ;
if (x != 0
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat reduced.c
typedef unsigned int type __attribute__ ( ( vector_size ( 8 ) ) ) ;
type a , b;
void foo ( void ) {
type var
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ gcc-10 --version
gcc (GCC
: inline-asm
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
extern long unsigned int sub_0 ( const char * ) ;
extern void * sub_1 ( long unsigned int ) ;
extern int var_0 ;
void * var_1 = & v
: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void foo ( void ) { }
static void bar ( void )
{
inline void foo ( void ) ;
if ( foo == 0
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
static void __attribute__ ( ( weakref ( "bar" ) ) ) foo ( void ) { }
extern void
: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat 0.c
int global ;
void foo() ;
__attribute__((returns_twice)) int bar() ;
void baz(int, int);
void main ( )
{
int x;
for ( ; ; )
foo
-asm
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void foo ( )
{
char bar ;
if ( bar )
{
volatile int * bar = & bar ;
__asm__ ( "cmp $1, %1" : "=@ccng
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92478
--- Comment #3 from John X ---
(In reply to Jakub Jelinek from comment #1)
> Started to ICE with r247622, got fixed with r262742.
Would the ICE in gcc-8 be fixed?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92478
--- Comment #2 from John X ---
(In reply to Jakub Jelinek from comment #1)
> Started to ICE with r247622, got fixed with r262742.
Thanks~
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void bar ( char * a , unsigned int b )
{
static char const array[] = "STRING" ;
__builtin_strcpy (a , &array[b == 0] );
}
$ gcc-snapshot7
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92469
--- Comment #4 from John X ---
Sorry, I submitted the same comment twice due to the bad network environment. I
don't know how to delete the duplicate one. Any one could help me?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92469
--- Comment #3 from John X ---
Yes, you are right. If we change "19" to "20", it still ICEs for older versions
of GCC.
$ cat test2.c
void foo ( void )
{
register int x asm ( "20" ) ;
int y = x;
}
$ gcc-snapshot8 --version
gcc (G
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92469
--- Comment #2 from John X ---
Yes, you are right. If we change "19" to "20", it still ICEs for older versions
of GCC.
$ cat test2.c
void foo ( void )
{
register int x asm ( "20" ) ;
int y = x;
}
$ gcc-snapshot8 --version
gcc (G
ty: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void foo ( void )
{
register int x asm ( "19" ) ;
int y = x;
}
My command li
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
int foo ( void ) ;
int __attribute__ ( ( returns_twice ) ) bar ( void ) ;
void baz ( )
{
int x ;
if ( x > 10 )
exit ( 0 ) ;
retur
Priority: P3
Component: inline-asm
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void foo ( )
{
float x ;
asm ( "" : : "pir" ( x ) ) ;
}
My gcc snapshot version
$ gc
: c
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void foo ( )
{
void bar() char str[({ void func(){ int x; } )];
}
My gcc-8's snapshot version is gcc-8-20191101
$ gcc-snapshot8 -v
Using bui
: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ gcc-9.2.0 -v
Using built-in specs.
COLLECT_GCC=/home/tom/Documents/gcc/9.2.0/install/bin/gcc
COLLECT_LTO_WRAPPER=/home/tom/Documents/gcc/9.2.0/install/libexec/gcc/x86_64-pc-linux-gnu/9.2.0/lto
54 matches
Mail list logo