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 preprocessor/12575] New: gcc fails to compile program


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

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

           Summary: gcc fails to compile program
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eklinger at uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org

gcc fails to compile a program, complaining of an unrecognizable insn.

Reading specs from
/usr/local/gcc-3.3.1/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --prefix=/usr/local/gcc-3.3.1
--enable-threads --disable-nls --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.3.1
 /usr/local/gcc-3.3.1/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.1/cc1 -E -quiet
-v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 bigadd.c bigadd.i
ignoring nonexistent directory
"/usr/local/gcc-3.3.1/x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/gcc-3.3.1/include
 /usr/local/gcc-3.3.1/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.1/include
 /usr/include
End of search list.
 /usr/local/gcc-3.3.1/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.1/cc1
-fpreprocessed bigadd.i -quiet -dumpbase bigadd.c -auxbase bigadd -version -o
bigadd.s
GNU C version 3.3.1 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 3.3.1.
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=127775
bigadd.c: In function `main':
bigadd.c:15: error: unrecognizable insn:
(insn/f 116 115 117 (nil) (parallel [
            (set (reg/f:DI 7 rsp)
                (plus:DI (reg/f:DI 7 rsp)
                    (const_int -2147483696 [0xffffffff7fffffd0])))
            (clobber (reg:CC 17 flags))
            (clobber (mem:BLK (scratch) [0 A8]))
        ]) -1 (nil)
    (nil))
bigadd.c:15: internal compiler error: in insn_default_length, at insn-attrtab.c:480

static float a[536870912],b[536870912];
main()
{
   long long i,n,m; float c[536870912];
   n=536870912;m=0;
   for(i=0;i<n;i+=10000){
       a[i]=i+1; b[i]=2.0*(i+1);
       c[i]=a[i]+b[i];
       m=i;
   }
   printf("a[0]=%g b[0]=%g c[0]=%g\n", a[0], b[0], c[0]);
   printf("n=%d a[%d]=%g b[%d]=%g c[%d]= %g\n", n, m, m, m, a[m], b[m], c[m]);
}


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