[Bug middle-end/39392] internal compiler error: in referenced_var_lookup

2009-03-10 Thread jkolb at wsi dot com


--- Comment #5 from jkolb at wsi dot com  2009-03-10 17:58 ---
This is now fixed.  Definite duplicate of 39360.


-- 

jkolb at wsi dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


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



[Bug c/39392] New: internal compiler error: in referenced_var_lookup

2009-03-06 Thread jkolb at wsi dot com
Trying to compile latest ffmpeg (ffmpeg-checkout-2009-03-06) Using
mingw-w64-bin_i686-mingw_20090303 I get an ICE on mingw compiling for x64.

$ make
x86_64-pc-mingw32-gcc -DHAVE_AV_CONFIG_H -I. -I/c/ffmpeg-checkout-2009-03-06
-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -O3
-fno-math-errno -fno-signed-zeros   -fPIC -DPIC -c -o libavcodec/h264.o
libavcodec/h264.c
cc1.exe: warning: -fPIC ignored for target (all code is position independent)
libavcodec/h264.c:1: warning: -fPIC ignored for target (all code is position
independent)
libavcodec/h264.c: In function 'pred_direct_motion':
libavcodec/h264.c:1046: warning: assignment from incompatible pointer type
libavcodec/h264.c:1047: warning: assignment from incompatible pointer type
libavcodec/h264.c: In function 'get_dct8x8_allowed':
libavcodec/h264.c:4120: warning: dereferencing type-punned pointer will break
strict-aliasing rules
libavcodec/h264.c:4122: warning: dereferencing type-punned pointer will break
strict-aliasing rules
libavcodec/h264.c: In function 'filter_mb_dir':
libavcodec/h264.c:6283: warning: initialization from incompatible pointer type
libavcodec/h264.c:6284: warning: initialization from incompatible pointer type
libavcodec/h264.c: In function 'decode_slice':
libavcodec/h264.c:6662: warning: unknown conversion type character 't' in
format
libavcodec/h264.c:6662: warning: too many arguments for format
In file included from libavcodec/h264.c:8139:
libavcodec/svq3.c: In function 'svq3_decode_slice_header':
libavcodec/svq3.c:721: warning: cast discards qualifiers from pointer target
type
libavcodec/svq3.c:724: warning: cast discards qualifiers from pointer target
type
libavcodec/h264.c: In function 'filter_mb_fast':
libavcodec/h264.c:6267: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6266: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6265: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6264: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6260: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6259: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6256: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6243: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6230: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6230: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6230: warning: dereferencing pointer 'bSv' does break
strict-aliasing rules
libavcodec/h264.c:6226: note: initialized from here
In file included from libavcodec/h264.c:8139:
libavcodec/svq3.c: In function 'svq3_decode_frame':
libavcodec/svq3.c:890: internal compiler error: in referenced_var_lookup, at
tree-dfa.c:563
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
make: *** [libavcodec/h264.o] Error 1


-- 
   Summary: internal compiler error: in referenced_var_lookup
   Product: gcc
   Version: 4.4.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jkolb at wsi dot com
 GCC build triplet: x86_64-pc-mingw32
  GCC host triplet: x86_64-pc-mingw32
GCC target triplet: x86_64-pc-mingw32


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



[Bug c/39392] internal compiler error: in referenced_var_lookup

2009-03-06 Thread jkolb at wsi dot com


--- Comment #1 from jkolb at wsi dot com  2009-03-06 18:00 ---
Created an attachment (id=17409)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17409action=view)
Offending Source file


-- 


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



[Bug c/39392] internal compiler error: in referenced_var_lookup

2009-03-06 Thread jkolb at wsi dot com


--- Comment #2 from jkolb at wsi dot com  2009-03-06 18:01 ---
Created an attachment (id=17410)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17410action=view)
#included by h264.c


-- 


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



[Bug c/39392] internal compiler error: in referenced_var_lookup

2009-03-06 Thread jkolb at wsi dot com


--- Comment #3 from jkolb at wsi dot com  2009-03-06 18:02 ---
Created an attachment (id=17411)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17411action=view)
preprocessed file


-- 


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



[Bug target/37629] auto-import of constant data results in a crash at runtime

2008-09-24 Thread jkolb at wsi dot com


--- Comment #2 from jkolb at wsi dot com  2008-09-24 14:07 ---
Binutils 2.19.50
Yes I have.  The linker switch does not help.


-- 


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



[Bug target/37629] auto-import of constant data results in a crash at runtime

2008-09-24 Thread jkolb at wsi dot com


--- Comment #4 from jkolb at wsi dot com  2008-09-24 15:35 ---
I'm not sure, I don't have access to that machine right now.  Kai Tietz (from
the mingw-w64 project) thought it might be the linker as well.  How do I hand
the bug off to the linker folks?


-- 


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



[Bug regression/37629] New: auto-import of constant data results in a crash at runtime

2008-09-23 Thread jkolb at wsi dot com
Compiling ffmpeg (see
http://sourceforge.net/tracker2/?func=detailaid=2118261group_id=202880atid=983354)
under mingw-w64 into a DLL results in a runtime crash involving two dlls.

in libavutil.dll:
const uint8_t ff_log2_tab[256];

in libavcodec.dll:
extern const uint8_t ff_log2_tab[256];
static inline int av_log2(unsigned int)
{
...
}

which uses the ff_log2_tab array.  The ff_log2_tab array is auto-imported from
libavutil into libavcodec.

When av_log2 is called the resulting program crashes.  The workaround is to
explicitly import ff_log2_tab into libavcodec via:

__declspec(dllimport) const uint8_t ff_log2_tab[256];

If this is done the crash goes away.

This worked fine in gcc 4.3.


-- 
   Summary: auto-import of constant data results in a crash at
runtime
   Product: gcc
   Version: 4.4.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: regression
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jkolb at wsi dot com
 GCC build triplet: x86_64-mingw-32
  GCC host triplet: x86_64-mingw-32
GCC target triplet: x86_64-mingw-32


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