This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
target/8788: GCC fails to report an error for invalid input
- From: killer dot lightspeed at bigpond dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 2 Dec 2002 17:17:20 -0000
- Subject: target/8788: GCC fails to report an error for invalid input
- Reply-to: killer dot lightspeed at bigpond dot com
>Number: 8788
>Category: target
>Synopsis: GCC fails to report an error for invalid input
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Mon Dec 02 09:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Ben Peddell
>Release: gcc version 3.2.1
>Organization:
>Environment:
OS: Windows 98 [Version 4.10.2222]
CPU: AuthenticAMD AMD-K6(tm) 3D processor
RAM: 160.0MB RAM
Distribution: MS-DOS DJGPP v2
>Description:
GCC encounters an internal compiler error instead of reporting an error when it encounters an attempt to fit a 192-bit structure into a 32-bit register.
E:\DJGPP\bugs>gcc -v -save-temps -c test2.c
Reading specs from e:/djgpp/lib/gcc-lib/djgpp/3.21/specs
Configured with: /devel/gnu/gcc/3.2/gnu/gcc-3.21/configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls
Thread model: single
gcc version 3.2.1
e:/djgpp/lib/gcc-lib/djgpp/3.21/cpp0.exe -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=1 -D__GXX_ABI_VERSION=102 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=unix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros e:/djgpp/lib/gcc-lib/djgpp/3.21/djgpp.ver test2.c test2.i
GNU CPP version 3.2.1 (cpplib) (80386, BSD syntax)
ignoring nonexistent directory "e:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
e:/djgpp/lib/gcc-lib/djgpp/3.21/include
e:/djgpp/include
End of search list.
e:/djgpp/lib/gcc-lib/djgpp/3.21/cc1.exe -fpreprocessed test2.i -quiet -dumpbase test2.c -version -o test2.s
GNU CPP version 3.2.1 (cpplib) (80386, BSD syntax)
GNU C version 3.2.1 (djgpp)
compiled by GNU C version 3.2.1.
test2.c: In function `switch_to_stack':
test2.c:10: Internal compiler error in emit_move_insn, at expr.c:2771
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Invoked with:
gcc -v -save-temps -c test2.c
Preprocessed source (test2.i):
# 1 "test2.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "e:/djgpp/lib/gcc-lib/djgpp/3.21/djgpp.ver" 1
# 1 "e:/djgpp/include/sys/version.h" 1 3
# 2 "e:/djgpp/lib/gcc-lib/djgpp/3.21/djgpp.ver" 2
# 2 "<command line>" 2
# 1 "test2.c"
typedef struct {
long x[6];
} myjmp_buf;
typedef struct {
myjmp_buf regs;
} my_stack;
void switch_to_stack (my_stack *stack){
asm (
"\n"
: "+a" (stack->regs)
);
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: