tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Error compiling with mingw 4.4.1


From: Luis Alejandro Muzzachiodi
Subject: Re: [Tinycc-devel] Error compiling with mingw 4.4.1
Date: Thu, 12 May 2011 00:36:36 -0700 (PDT)

I can trace the problem to the file "tccpp.h" in the function

ST_FUNC int tcc_preprocess(TCCState *s1)

in the line
         line_ref = (file_ref = file)->line_num;

The solution is change the definition of file_ref from

       BufferedFile *file_ref
to
      static BufferedFile *file_ref;

After this change, i can compile ok with mingw 4.4.1.

(i don't know if this was fixed in later's mingw distributions, someone report the same problem until mingw 4.5 according the mail archives. Also the archives give others workarounds as change the level of optimization (no Os) or use the option -fno-tree-vrp for avoid the vrp optimization. Both alternatives are valid, too.)

Alejandro



--- El sáb 30-abr-11, Luis Alejandro Muzzachiodi escribió:

I try to compile the mob with mingw-4.4.1 and give me this :

C:\tcc\win32>c:\mingw-4.4.1\bin\gcc -Os -s -DTCC_TARGET_PE -DTCC_TARGET_I386
-fno-strict-aliasing ../libtcc.c -c -o libtcc.o
../libtcc.c: In function 'tcc_add_file_internal':
../libtcc.c:1076: internal compiler error: in extract_range_from_assert, at tree
-vrp.c:1457
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.tdragon.net/recentgcc/bugs.php> for instructions.

However with my old mingw 3.4.5 compile ok. Any clue ?.
Thanks,

Alejandro

reply via email to

[Prev in Thread] Current Thread [Next in Thread]