This is the mail archive of the gcc-prs@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/8044: gcc 3.1.1 -O2 error: "Internal compiler error in subst_stack_regs_pat, at reg-stack.c:1441"


>Number:         8044
>Category:       optimization
>Synopsis:       gcc 3.1.1 -O2 error: "Internal compiler error in subst_stack_regs_pat, at reg-stack.c:1441"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 25 13:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Birkett
>Release:        gcc version 3.1.1 (Mandrake Linux 8.3 3.1.1-0.7mdk)
>Organization:
>Environment:

>Description:
Compile the three-line program in "How to repeat" with the -O2 flag.

[adb@localhost bug]$ gcc -O2 out.c
out.c: In function `foo':
out.c:4: Internal compiler error in subst_stack_regs_pat, at reg-stack.c:1441
Please submit a full bug report,
with preprocessed source if appropriate.

On my machine, gcc is configured as follows:

Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.1.1/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --with-gxx-include-dir=/usr/include/g++-v31 --enable-languages=c,c++,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.1.1 (Mandrake Linux 8.3 3.1.1-0.7mdk)
>How-To-Repeat:
Compile the following code with -O2:

double foo()
{
  bar(0);
}
>Fix:
Compile with -O instead of -O2.
>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]