This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/5591: ICE in copy_to_mode_reg, at explow.c:792, calling local bcmp()



>Number:         5591
>Category:       optimization
>Synopsis:       ICE in copy_to_mode_reg, at explow.c:792, calling local bcmp()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 04 15:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.0.3
>Organization:
Network Appliance
>Environment:
System: Linux noname 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /u/nomura/dl/gcc-3.0.3/configure --prefix=/usr/local/build/compilers/gcc-3.0.3 --with-gnu-as --with-as=/usr/local/build/bin/i386-elf-as-2.11 --with-gnu-ld
>Description:
	
[noname]$ /usr/local/build/compilers/gcc-3.0.3/bin/gcc -O1 bug.i -v
Reading specs from /usr/local/build/compilers/gcc-3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with: /u/nomura/dl/gcc-3.0.3/configure --prefix=/usr/local/build/compilers/gcc-3.0.3 --with-gnu-as --with-as=/usr/local/build/bin/i386-elf-as-2.11 --with-gnu-ld
Thread model: single
gcc version 3.0.3
 /usr/local/build/compilers/gcc-3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/cc1 -fpreprocessed bug.i -quiet -dumpbase bug.i -O1 -version -o /tmp/ccgmoMM6.s
GNU CPP version 3.0.3 (cpplib) (i386 Linux/ELF)
GNU C version 3.0.3 (i686-pc-linux-gnu)
        compiled by GNU C version 2.95.1g 19990816 (change 108897).
bug.i: In function `gccbug':
bug.i:9: Internal compiler error in copy_to_mode_reg, at explow.c:792
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

[noname]$ cat bug.i
int bcmp (const void *, const void *, unsigned int);
                                                            ;
void 
gccbug()
{
        char *a, *b;
        unsigned long long c;

        bcmp(a, b, c);
}

The host system is Redhat Linux 7.2.  The bug also exists in
gcc 2.96 as shipped with that system:

[noname]$ /usr/bin/gcc -O1 bug.i -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1 bug.i -quiet -dumpbase bug.i -O1 -version -o /tmp/ccfQfdhW.s
GNU C version 2.96 20000731 (Red Hat Linux 7.1 2.96-98) (i386-redhat-linux) compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.1 2.96-98).
bug.i: In function `gccbug':
bug.i:9: Internal compiler error in copy_to_mode_reg, at explow.c:789
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

>How-To-Repeat:
	
Compile with -O1 or -O2:

int bcmp (const void *, const void *, unsigned int);
                                                            ;
void 
gccbug()
{
        char *a, *b;
        unsigned long long c;

        bcmp(a, b, c);
}

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]