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]

[Bug optimization/12260] New: ICE in output_operand: invalid expression as operand


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12260

           Summary: ICE in output_operand: invalid expression as operand
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alphaev68-unknown-linux-gnu
  GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu

falk@juist:/tmp% cat test.i          
static char buf[512];
void h(int l) {
    while (l) {
        char *op = buf;
        if (f() == 0)
            break;
        if (g(op - buf + 1))
            break;
    }
}

falk@juist:/tmp% gcc -v -c -O2 test.i
Reading specs from
/usr/local/stow/gcc-2003.09.11/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.4/specs
Configured with: '../configure' '--disable-nls '--enable-languages=c++
Thread model: posix
gcc version 3.4 20030911 (experimental)
 /usr/local/stow/gcc-2003.09.11/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.4/cc1 -fpreprocessed test.i -quiet -dumpbase test.i -mcpu=ev67 -auxbase test -O2 -version -o /tmp/ccKcZH4C.s
GNU C version 3.4 20030911 (experimental) (alphaev68-unknown-linux-gnu)
        compiled by GNU C version 3.4 20030911 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
test.i: In function `h':

test.i:10: internal compiler error: output_operand: invalid expression as operand
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Does not occur with -O1. Also works with gcc 3.4 20030819.


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