[Bug libgcj/52579] [4.8/4.9/5 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function

2015-03-15 Thread jojelino at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579

gee jojelino at gmail dot com changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from gee jojelino at gmail dot com ---
(In reply to Kai Tietz from comment #7)
 This issue seems to be fixed in 5.0 by Richard's work on libffi.
 
 Could you please check, if issue is fixed for you?

libffi is now have frame information for raw-stub closure of stdcall calling
convention.


[Bug target/63621] New: [ICE] symtab_node::verify failed

2014-10-22 Thread jojelino at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63621

Bug ID: 63621
   Summary: [ICE] symtab_node::verify failed
   Product: gcc
   Version: 5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jojelino at gmail dot com
  Host: i686-pc-cygwin
Target: i686-pc-cygwin
 Build: i686-pc-cygwin

Created attachment 33783
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33783action=edit
preprocesed source

g++ -L/tmp/winsup/i686-pc-cygwin/winsup/cygwin -isystem
/tmp/winsup/winsup/cygwin/include -B/tmp/winsup/i686-pc-cygwin/newlib/ -isystem
/tmp/winsup/i686-pc-cygwin/newlib/targ-include -isystem
/tmp/winsup/newlib/libc/include -xc++ -nostdinc -I. -I../../.././winsup/cygwin
-isystem /tmp/winsup/winsup/cygwin/include -isystem
/tmp/winsup/i686-pc-cygwin/newlib/targ-include -isystem
/tmp/winsup/newlib/libc/include -isystem /tmp/winsup/winsup/cygwin/include
-isystem /tmp/winsup/i686-pc-cygwin/newlib/targ-include -isystem
/tmp/winsup/newlib/libc/include -isystem /usr/include/c++/5.0.0 -isystem
/usr/include/c++/5.0.0/i686-pc-cygwin -isystem /usr/include/c++/5.0.0/backward
-isystem /usr/lib/gcc/i686-pc-cygwin/5.0.0/include -isystem /usr/local/include
-isystem /usr/lib/gcc/i686-pc-cygwin/5.0.0/include-fixed -isystem /usr/include
-isystem /usr/include/w32api -fomit-frame-pointer -mstackrealign -march=core2
-mfpmath=sse -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall
-Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin
-fmessage-length=0 -MMD -fomit-frame-pointer -fmerge-constants -ftracer -c -o
fhandler_socket.o ../../.././winsup/cygwin/fhandler_socket.cc -save-temps -v


g++: warning: -pipe ignored because -save-temps specified
Using built-in specs.
COLLECT_GCC=g++
Target: i686-pc-cygwin
Configured with: ./configure --config-cache --prefix=/usr
--disable-win32-registry --enable-threads=win32
--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl LTLDFLAGS=-no-undefined
lt_cv_deplibs_check_method=pass_all
Thread model: win32
gcc version 5.0.0 20141022 (experimental) (GCC)

COLLECT_GCC_OPTIONS='-L/tmp/winsup/i686-pc-cygwin/winsup/cygwin' '-isystem'
'/tmp/winsup/winsup/cygwin/include' '-B' '/tmp/winsup/i686-pc-cygwin/newlib/'
'-isystem' '/tmp/winsup/i686-pc-cygwin/newlib/targ-include' '-isystem'
'/tmp/winsup/newlib/libc/include' '-nostdinc' '-I' '.' '-I'
'../../.././winsup/cygwin' '-isystem' '/tmp/winsup/winsup/cygwin/include'
'-isystem' '/tmp/winsup/i686-pc-cygwin/newlib/targ-include' '-isystem'
'/tmp/winsup/newlib/libc/include' '-isystem'
'/tmp/winsup/winsup/cygwin/include' '-isystem'
'/tmp/winsup/i686-pc-cygwin/newlib/targ-include' '-isystem'
'/tmp/winsup/newlib/libc/include' '-isystem' '/usr/include/c++/5.0.0'
'-isystem' '/usr/include/c++/5.0.0/i686-pc-cygwin' '-isystem'
'/usr/include/c++/5.0.0/backward' '-isystem'
'/usr/lib/gcc/i686-pc-cygwin/5.0.0/include' '-isystem' '/usr/local/include'
'-isystem' '/usr/lib/gcc/i686-pc-cygwin/5.0.0/include-fixed' '-isystem'
'/usr/include' '-isystem' '/usr/include/w32api' '-mstackrealign' '-march=core2'
'-mfpmath=sse' '-O2' '-g' '-fno-rtti' '-fno-exceptions' '-fno-use-cxa-atexit'
'-Wall' '-Wstrict-aliasing' '-Wwrite-strings' '-fno-common' '-pipe' '-fbuiltin'
'-fmessage-length=0' '-MMD' '-fomit-frame-pointer' '-fmerge-constants'
'-ftracer' '-c' '-o' 'fhandler_socket.o' '-save-temps' '-v' '-shared-libgcc'
 /usr/libexec/gcc/i686-pc-cygwin/5.0.0/cc1plus.exe -E -quiet -nostdinc -v -I .
-I ../../.././winsup/cygwin -MMD fhandler_socket.d -MQ fhandler_socket.o -Dunix
-isystem /tmp/winsup/winsup/cygwin/include -isystem
/tmp/winsup/i686-pc-cygwin/newlib/targ-include -isystem
/tmp/winsup/newlib/libc/include -isystem /tmp/winsup/winsup/cygwin/include
-isystem /tmp/winsup/i686-pc-cygwin/newlib/targ-include -isystem
/tmp/winsup/newlib/libc/include -isystem /tmp/winsup/winsup/cygwin/include
-isystem /tmp/winsup/i686-pc-cygwin/newlib/targ-include -isystem
/tmp/winsup/newlib/libc/include -isystem /usr/include/c++/5.0.0 -isystem
/usr/include/c++/5.0.0/i686-pc-cygwin -isystem /usr/include/c++/5.0.0/backward
-isystem /usr/lib/gcc/i686-pc-cygwin/5.0.0/include -isystem /usr/local/include
-isystem /usr/lib/gcc/i686-pc-cygwin/5.0.0/include-fixed -isystem /usr/include
-isystem /usr/include/w32api ../../.././winsup/cygwin/fhandler_socket.cc
-mstackrealign -march=core2 -mfpmath=sse -Wall -Wstrict-aliasing
-Wwrite-strings -fno-rtti -fno-exceptions -fno-use-cxa-atexit -fno-common
-fbuiltin -fmessage-length=0 -fomit-frame-pointer -fmerge-constants -ftracer -g
-fworking-directory -O2 -fpch-preprocess -o fhandler_socket.ii
ignoring duplicate directory /tmp/winsup/winsup/cygwin/include
ignoring duplicate directory /tmp/winsup/i686-pc-cygwin/newlib/targ-include
ignoring duplicate directory

[Bug target/57680] [META-BUG][target]deregister_frame_fn is set to invalid address in cygming-crtbegin.c:__gcc_deregister_frame due to unknown reason.

2013-11-08 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57680

--- Comment #4 from gee jojelino at gmail dot com ---
I think gcc backend for x86 that doesn't support weak attribute needed to
supress weak attribute on variables as long as gas/16011 is not fixed.


[Bug target/57680] New: xgcc terminates with SIGILL

2013-06-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57680

Bug ID: 57680
   Summary: xgcc terminates with SIGILL
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jojelino at gmail dot com
  Host: i686-pc-cygwin
Target: i686-pc-cygwin
 Build: i686-pc-cygwin

$ gdb --args ./xgcc -B./ -B/usr/i686-pc-cygwin/bin/ -isystem
/usr/i686-pc-cygwin/include -isystem /usr/i686-pc-cygwin/sys-include
-L/tmp/gcc/host-i686-pc-cygwin/gcc/../ld -dumpspecs
GNU gdb (GDB) 7.6.50.20130508-cvs (cygwin-special)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-cygwin.
Type show configuration for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...

warning: the current range check setting does not match the language.

Whether backtraces should continue past the entry point of a program is off.
Reading symbols from /tmp/gcc/host-i686-pc-cygwin/gcc/xgcc...done.
warning: File /tmp/gcc/host-i686-pc-cygwin/gcc/.gdbinit auto-loading has been
declined by your `auto-load safe-path' set to $debugdir:$datadir/auto-load.
To enable execution of this file add
add-auto-load-safe-path /tmp/gcc/host-i686-pc-cygwin/gcc/.gdbinit
line to your configuration file /home/Administrator/.gdbinit.
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file /home/Administrator/.gdbinit.
For more information about this security protection see the
Auto-loading safe path section in the GDB manual.  E.g., run from the shell:
info (gdb)Auto-loading safe path
(gdb) r
Starting program: /tmp/gcc/host-i686-pc-cygwin/gcc/xgcc -B./
-B/usr/i686-pc-cygwin/bin/ -isystem /usr/i686-pc-cygwin/include -isystem
/usr/i686-pc-cygwin/sys-include -L/tmp/gcc/host-i686-pc-cygwin/gcc/../ld
-dumpspecs
[New Thread 3320.0xdf4]
warning: the debug information found in /usr/bin/cygwin1.dbg does not match
/usr/bin/cygwin1.dll (CRC mismatch).

[New Thread 3320.0x1dc8]
*asm:

.
..
...

Program received signal SIGILL, Illegal instruction.
0x0046e010 in __deregister_frame_info_bases (
begin=0x611623b5 __call_exitprocs+245)
at ../.././libgcc/unwind-dw2-fde.c:185
185   for (p = unseen_objects; *p ; p = (*p)-next)
(gdb) bt
#0  0x0046e010 in __deregister_frame_info_bases (
begin=0x611623b5 __call_exitprocs+245)
at ../.././libgcc/unwind-dw2-fde.c:185
#1  0x013aa8e8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)


[Bug target/57680] [META-BUG][target]deregister_frame_fn is set to invalid address in cygming-crtbegin.c:__gcc_deregister_frame due to unknown reason.

2013-06-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57680

gee jojelino at gmail dot com changed:

   What|Removed |Added

Summary|deregister_frame_fn is set  |[META-BUG][target]deregiste
   |to invalid address in   |r_frame_fn is set to
   |cygming-crtbegin.c:__gcc_de |invalid address in
   |register_frame due to   |cygming-crtbegin.c:__gcc_de
   |unknown reason. |register_frame due to
   ||unknown reason.

--- Comment #1 from gee jojelino at gmail dot com ---
bootstrap failed with faulting libgcc static library.

Dump of assembler code for function __gcc_deregister_frame:
   0x00401160 +0: push   %ebp
   0x00401161 +1: mov%esp,%ebp
   0x00401163 +3: sub$0x18,%esp
   0x00401166 +6: movl   $0x475000,(%esp)
   0x0040116d +13:call   *0x5a0480
   0x00401173 +19:mov$0x46e010,%edx
= 0x00401178 +24:sub$0x4,%esp
   0x0040117b +27:test   %eax,%eax
   0x0040117d +29:je 0x401195 __gcc_deregister_frame+53
   0x0040117f +31:movl   $0x475047,0x4(%esp)
   0x00401187 +39:mov%eax,(%esp)
   0x0040118a +42:call   *0x5a0484
   0x00401190 +48:sub$0x8,%esp
   0x00401193 +51:mov%eax,%edx
   0x00401195 +53:test   %edx,%edx
   0x00401197 +55:je 0x4011a2 __gcc_deregister_frame+66
   0x00401199 +57:movl   $0x591000,(%esp)
   0x004011a0 +64:call   *%edx
   0x004011a2 +66:leave
   0x004011a3 +67:ret
(gdb) i li *0x46e010
Line 185 of ../.././libgcc/unwind-dw2-fde.c
   starts at address 0x46e00f __deregister_frame_info_bases+159
   and ends at 0x46e020 __deregister_frame_info.

why cygming-crtbegin.c:154 set invalid function pointer address??? it should be
__deregister_frame_info 
(gdb) x/i __deregister_frame_info
   0x46e020 __deregister_frame_info:
jmp0x46df70 __deregister_frame_info_bases

i think gcc is corrupted in calculating function pointer address.
and the failed bootstrap was using gcc with following version.
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.9.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: ./configure --config-cache --prefix=/usr
--disable-win32-registry --enable-threads=single
--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl LTLDFLAGS=-no-undefined
lt_cv_deplibs_check_method=pass_all : (reconfigured) ./configure --config-cache
--prefix=/usr --disable-win32-registry --enable-threads=win32
--with-win32-nlsapi=unicode --enable-tls --disable-bootstrap --enable-shared
--disable-sjlj-exceptions --enable-gomp --enable-cloog-backend=isl
LTLDFLAGS=-no-undefined lt_cv_deplibs_check_method=pass_all
--enable-languages=c,c++,fortran,lto --no-create --no-recursion
Thread model: single
gcc version 4.9.0 20130516 (experimental) (GCC)


[Bug target/57680] [META-BUG][target]deregister_frame_fn is set to invalid address in cygming-crtbegin.c:__gcc_deregister_frame due to unknown reason.

2013-06-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57680

--- Comment #2 from gee jojelino at gmail dot com ---
(gdb) x/i 0x46e010
   0x46e010 __deregister_frame_info_bases+160:fs

which is cause of SIGILL


[Bug c/57286] New: [4.9 regression] infinite recurison in fold-const.c:10037

2013-05-15 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57286

Bug ID: 57286
   Summary: [4.9 regression] infinite recurison in
fold-const.c:10037
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jojelino at gmail dot com

Created attachment 30121
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30121action=edit
preprocessed source

(gdb) r
Starting program: /usr/libexec/gcc/i686-pc-cygwin/4.9.0/cc1.exe -quiet -v -I .
-I .. -I ../include -MD .libs/libfaac_la-aacquant.d -MF
.deps/libfaac_la-aacquant.Tpo -MP -MT libfaac_la-aacquant.lo -Dunix -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.9.0/../../../../include/w32api -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.9.0/../../../../i686-pc-cygwin/lib/../../include/w32api
-D HAVE_CONFIG_H -D DRM -D DLL_EXPORT -D PIC aacquant.c -march=core2 -mcx16
-msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma
-mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2
-msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase
-mno-rdseed -mno-prfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt --param
l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048
-mtune=core2 -quiet -dumpbase aacquant.c -auxbase-strip
.libs/libfaac_la-aacquant.o -g -O4 -std=gnu11 -version -frename-registers
-fno-strict-overflow -o /tmp/ccEheGnn.s
[New Thread 16040.0x374c]
[New Thread 16040.0x1e20]
GNU C (GCC) version 4.9.0 20130515 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.9.0 20130515 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory
/usr/lib/gcc/i686-pc-cygwin/4.9.0/../../../../i686-pc-cygwin/include
ignoring duplicate directory
/usr/lib/gcc/i686-pc-cygwin/4.9.0/../../../../i686-pc-cygwin/lib/../../include/w32api
#include ... search starts here:
#include ... search starts here:
 .
 ..
 ../include
 /usr/lib/gcc/i686-pc-cygwin/4.9.0/include
 /usr/local/include
 /usr/lib/gcc/i686-pc-cygwin/4.9.0/include-fixed
 /usr/include
 /usr/lib/gcc/i686-pc-cygwin/4.9.0/../../../../include/w32api
End of search list.
GNU C (GCC) version 4.9.0 20130515 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.9.0 20130515 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: ebeca84797ce5db4d10946c78482951c

Program received signal SIGSEGV, Segmentation fault.
int_const_binop_1 (code=BIT_IOR_EXPR, arg1=0x7fbdfb40, arg2=0x7fbdfb20,
overflowable=0x1) at ../.././gcc/fold-const.c:934
934   tree type = TREE_TYPE (arg1);
(gdb) bt -50


#25936 0x00799b42 in fold_binary_op_with_conditional_arg (loc=0x0,
code=BIT_IOR_EXPR, type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9e28,
cond=0x7fa71350, arg=0x7fac9e28, cond_first_p=0x1)
at ../.././gcc/fold-const.c:6129
#25937 0x007b1963 in fold_binary_loc (loc=0x0, code=BIT_IOR_EXPR,
type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9e28)
---Type return to continue, or q return to quit---
at ../.././gcc/fold-const.c:10037
#25938 0x007e618d in fold_build2_stat_loc (loc=0x0, code=BIT_IOR_EXPR,
type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9e28)
at ../.././gcc/fold-const.c:14944
#25939 0x007e3f28 in fold_ternary_loc (loc=0x0, code=VEC_COND_EXPR,
type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9e10, op2=0x7fac9e28)
at ../.././gcc/fold-const.c:14261
#25940 0x007e6224 in fold_build3_stat_loc (loc=0x0, code=VEC_COND_EXPR,
type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9e10, op2=0x7fac9e28)
at ../.././gcc/fold-const.c:15006
#25941 0x00799b42 in fold_binary_op_with_conditional_arg (loc=0x0,
code=BIT_IOR_EXPR, type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9dc8,
cond=0x7fa71350, arg=0x7fac9dc8, cond_first_p=0x1)
at ../.././gcc/fold-const.c:6129
#25942 0x007b1963 in fold_binary_loc (loc=0x0, code=BIT_IOR_EXPR,
type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9dc8)
at ../.././gcc/fold-const.c:10037
#25943 0x007e618d in fold_build2_stat_loc (loc=0x0, code=BIT_IOR_EXPR,
type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9dc8)
at ../.././gcc/fold-const.c:14944
#25944 0x007e3f28 in fold_ternary_loc (loc=0x0, code=VEC_COND_EXPR,
type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9db0, op2=0x7fac9dc8)
at ../.././gcc/fold-const.c:14261
---Type return to continue, or q return to quit---
#25945 0x007e6224 in fold_build3_stat_loc (loc=0x0, code=VEC_COND_EXPR,
type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9db0, op2=0x7fac9dc8)
at ../.././gcc/fold-const.c:15006
#25946 0x00799b42 in fold_binary_op_with_conditional_arg (loc=0x0,
code=BIT_IOR_EXPR, type=0x7fd5ff60, op0=0x7fa71350, op1=0x7fac9d68,
cond=0x7fa71350

[Bug middle-end/57286] [4.9 regression] infinite recursion in fold-const.c:10037

2013-05-15 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57286

--- Comment #5 from gee jojelino at gmail dot com ---
Created attachment 30129
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30129action=edit
proposed patch


[Bug middle-end/57286] [4.9 regression] infinite recursion in fold-const.c:10037

2013-05-15 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57286

--- Comment #6 from gee jojelino at gmail dot com ---
(In reply to Marc Glisse from comment #3)
 Intuitively, I'd say:
 
 @@ -10041,7 +10041,7 @@
  
if (TREE_CODE (arg1) == COND_EXPR
 || TREE_CODE (arg1) == VEC_COND_EXPR
 -   || COMPARISON_CLASS_P (arg1))
 +   || (COMPARISON_CLASS_P (arg1)  !VECTOR_TYPE_P (TREE_TYPE (arg1
   {
 tem = fold_binary_op_with_conditional_arg (loc, code, type, op0, op1,
arg1, arg0,
 
 but I don't really have time to think about it right now (meeting).

attachment 30129 have expanded the idea by guarding against arg0 too.

[Bug target/56975] [regression] dllimport broken on i686-pc-cygwin

2013-04-19 Thread jojelino at gmail dot com


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



--- Comment #8 from gee jojelino at gmail dot com 2013-04-19 14:26:15 UTC ---

Created attachment 29904

  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29904

Patch for supporting cygwin32's SYSV_ABI proper - Fixed a hunk fail



(In reply to comment #7)

 At what place it freezes?  Can you provide a testcase?  Are you sure it is

 really related to the patch?  What makes you think that?

 

 All in all, what I mean about those questions is that it isn't helpful to tell

 such statements without even trying to narrow it down to its reason.



The attachment 29898 fixed the problem.

there is a hunk failure so I uploaded another attachment that workarounds the

failure.

Thanks!


[Bug rtl-optimization/56952] [4.9 regression] ICE in recog.c:2150

2013-04-18 Thread jojelino at gmail dot com


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



gee jojelino at gmail dot com changed:



   What|Removed |Added



 Status|UNCONFIRMED |RESOLVED

 Resolution||DUPLICATE



--- Comment #3 from gee jojelino at gmail dot com 2013-04-18 15:58:53 UTC ---

Merged duplicated bug.



*** This bug has been marked as a duplicate of bug 56975 ***


[Bug target/56975] [regression] dllimport broken on i686-pc-cygwin

2013-04-18 Thread jojelino at gmail dot com


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



gee jojelino at gmail dot com changed:



   What|Removed |Added



 CC||jojelino at gmail dot com



--- Comment #3 from gee jojelino at gmail dot com 2013-04-18 15:58:53 UTC ---

*** Bug 56952 has been marked as a duplicate of this bug. ***


[Bug target/56975] [regression] dllimport broken on i686-pc-cygwin

2013-04-18 Thread jojelino at gmail dot com


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



--- Comment #4 from gee jojelino at gmail dot com 2013-04-18 16:25:13 UTC ---

Caused by r197373. Reverting the commit fixed the problem.



commit 5496fac88af2009a2c4d5cfec0e722d5f962d80e

Author: ktietz ktietz@138bc75d-0d04-0410-961f-82ee72b054a4

Date:   Tue Apr 2 18:34:32 2013 +



PR target/52790

* config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.

* config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.

* config/i386/i386.c (legitimize_pe_coff_extern_decl): New static

function.

(legitimize_pe_coff_symbol): Likewise.

(is_imported_p): New helper-function.

(ix86_option_override_internal): Make MEDIUM_PIC the default code-model

for Windows x64 targets.

(ix86_expand_prologue): Optimize for pe-coff targets.

(ix86_expand_split_stack_prologue): Adjust for pe-coff targets.

(legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support

medium/large code-model.

(legitimize_pic_address): Likewise.

(legitimize_tls_address): Likewise.

(ix86_expand_call): Likewise.

(x86_output_mi_thunk): Likewise.

(get_dllimport_decl): Add new beimport argument.

(construct_plt_address): Don't assert for x64 pe-coff targets.

* config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff

targets.

(SYMBOL_FLAG_STUBVAR): New macro.

(SYMBOL_REF_STUBVAR_P): Likewise.

* config/i386/winnt.c (stub_list): New structure.

(stub_head): New local variable.

(i386_pe_record_stub): New function.

(i386_pe_file_end): Emit refptr-stubs.







git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197373

138bc75d-0d04-0410-96


[Bug rtl-optimization/56952] New: [4.9 regression] ICE in recog.c:2150

2013-04-14 Thread jojelino at gmail dot com

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

 Bug #: 56952
   Summary: [4.9 regression] ICE in recog.c:2150
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com


$ /tmp/gcc/host-i686-pc-cygwin/gcc/xgcc -B/tmp/gcc/host-i686-pc-cygwin/gcc/
-B/usr/i686-pc-cygwin/bin/ -B/usr/i686-pc-cygwin/lib/ -isystem
/usr/i686-pc-cygwin/include -isystem /usr/i686-pc-cygwin/sys-include-O2 -O2
-I../.././libgcc/../winsup/w32api/include -I../.././libgcc/../winsup/include 
-I../.././libgcc/../winsup/cygwin/include -DIN_GCC  -g -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include -g   -g -DIN_LIBGCC2 
-fbuilding-libgcc -fno-stack-protector -I. -I.
-I../../host-i686-pc-cygwin/gcc  -I../.././libgcc -I../.././libgcc/.
-I../.././libgcc/../gcc  -I../.././libgcc/../include
-I../.././libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS
-DUSE_EMUTLS -o gthr-win32.o -MT gthr-win32.o -MD -MP -MF gthr-win32.dep  -c
../.././libgcc/config/i386/gthr-win32.c -v -save-temps
Reading specs from /tmp/gcc/host-i686-pc-cygwin/gcc/specs
COLLECT_GCC=/tmp/gcc/host-i686-pc-cygwin/gcc/xgcc
Target: i686-pc-cygwin
Configured with: ./configure --config-cache --prefix=/usr
--disable-win32-registry --enable-threads=win32
--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl LTLDFLAGS=-no-undefined
lt_cv_deplibs_check_method=pass_all : (reconfigured) ./configure --config-cache
--prefix=/usr --disable-win32-registry --enable-threads=win32
--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl LTLDFLAGS=-no-undefined
lt_cv_deplibs_check_method=pass_all
Thread model: win32
gcc version 4.9.0 20130414 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-B' '/tmp/gcc/host-i686-pc-cygwin/gcc/' '-B'
'/usr/i686-pc-cygwin/bin/' '-B' '/usr/i686-pc-cygwin/lib/' '-isystem'
'/usr/i686-pc-cygwin/include' '-isystem' '/usr/i686-pc-cygwin/sys-include'
'-O2' '-O2' '-I' '../.././libgcc/../winsup/w32api/include' '-I'
'../.././libgcc/../winsup/include' '-I'
'../.././libgcc/../winsup/cygwin/include' '-D' 'IN_GCC' '-g' '-Wextra' '-Wall'
'-Wno-narrowing' '-Wwrite-strings' '-Wcast-qual' '-Wstrict-prototypes'
'-Wmissing-prototypes' '-Wold-style-definition' '-isystem' './include' '-g'
'-g' '-D' 'IN_LIBGCC2' '-fbuilding-libgcc' '-fno-stack-protector' '-I' '.' '-I'
'.' '-I' '../../host-i686-pc-cygwin/gcc' '-I' '../.././libgcc' '-I'
'../.././libgcc/.' '-I' '../.././libgcc/../gcc' '-I'
'../.././libgcc/../include' '-I' '../.././libgcc/config/libbid' '-D'
'ENABLE_DECIMAL_BID_FORMAT' '-D' 'HAVE_CC_TLS' '-D' 'USE_EMUTLS' '-o'
'gthr-win32.o' '-MT' 'gthr-win32.o' '-MD' '-MP' '-MF' 'gthr-win32.dep' '-c'
'-v' '-save-temps' '-mtune=generic' '-march=pentiumpro'
 /tmp/gcc/host-i686-pc-cygwin/gcc/cc1.exe -E -quiet -v -I
../.././libgcc/../winsup/w32api/include -I ../.././libgcc/../winsup/include -I
../.././libgcc/../winsup/cygwin/include -I . -I . -I
../../host-i686-pc-cygwin/gcc -I ../.././libgcc -I ../.././libgcc/. -I
../.././libgcc/../gcc -I ../.././libgcc/../include -I
../.././libgcc/config/libbid -iprefix
/tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/i686-pc-cygwin/4.9.0/ -isystem
/tmp/gcc/host-i686-pc-cygwin/gcc/include -isystem
/tmp/gcc/host-i686-pc-cygwin/gcc/include-fixed -MD gthr-win32.d -MF
gthr-win32.dep -MP -MT gthr-win32.o -Dunix -idirafter
/usr/lib/../include/w32api -idirafter
/usr/i686-pc-cygwin/bin/../../include/w32api -D IN_GCC -D IN_LIBGCC2 -D
ENABLE_DECIMAL_BID_FORMAT -D HAVE_CC_TLS -D USE_EMUTLS -isystem
/usr/i686-pc-cygwin/include -isystem /usr/i686-pc-cygwin/sys-include -isystem
./include ../.././libgcc/config/i386/gthr-win32.c -mtune=generic
-march=pentiumpro -Wextra -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-fbuilding-libgcc -fno-stack-protector -g -g -g -fworking-directory -O2 -O2
-fpch-preprocess -o gthr-win32.i
ignoring nonexistent directory /usr/i686-pc-cygwin/include
ignoring nonexistent directory /usr/i686-pc-cygwin/sys-include
ignoring nonexistent directory ./include
ignoring nonexistent directory
/tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/i686-pc-cygwin/4.9.0/include
ignoring nonexistent directory
/tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/i686-pc-cygwin/4.9.0/include-fixed
ignoring nonexistent directory
/tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/i686-pc-cygwin/4.9.0/../../../../i686-pc-cygwin/include
ignoring nonexistent directory

[Bug rtl-optimization/56952] [4.9 regression] ICE in recog.c:2150

2013-04-14 Thread jojelino at gmail dot com


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



--- Comment #1 from gee jojelino at gmail dot com 2013-04-14 09:06:38 UTC ---

Created attachment 29870

  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29870

preprocessed source


[Bug rtl-optimization/56952] [4.9 regression] ICE in recog.c:2150

2013-04-14 Thread jojelino at gmail dot com

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

--- Comment #2 from gee jojelino at gmail dot com 2013-04-14 09:11:40 UTC ---
$ gdb --args /tmp/gcc/host-i686-pc-cygwin/gcc/cc1.exe -fpreprocessed
gthr-win32.i -quiet -dumpbase gthr-win32.c -mtune=generic -march=pentiumpro
-auxbase-strip gthr-win32.o -g -g -g -O2 -O2 -Wextra -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -version -fbuilding-libgcc -fno-stack-protector -o
gthr-win32.s
GNU gdb (GDB) 7.6.50.20130408-cvs (cygwin-special)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-cygwin.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...

warning: the current range check setting does not match the language.

Whether backtraces should continue past the entry point of a program is off.
Reading symbols from /tmp/gcc/host-i686-pc-cygwin/gcc/cc1.exe...r
done.
(gdb) r
Starting program: /tmp/gcc/host-i686-pc-cygwin/gcc/cc1.exe -fpreprocessed
gthr-win32.i -quiet -dumpbase gthr-win32.c -mtune=generic -march=pentiumpro
-auxbase-strip gthr-win32.o -g -g -g -O2 -O2 -Wextra -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -version -fbuilding-libgcc -fno-stack-protector -o
gthr-win32.s
[New Thread 12136.0x2900]
[New Thread 12136.0x18d8]
GNU C (GCC) version 4.9.0 20130414 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.9.0 20130331 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 4.9.0 20130414 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.9.0 20130331 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 02065f7f4784d3d4fe06ce1367165da5
../.././libgcc/config/i386/gthr-win32.c: In function ‘__gthr_win32_once’:
../.././libgcc/config/i386/gthr-win32.c:94:1: error: unrecognizable insn:
 }
 ^
(insn 52 51 53 12 (set (reg:SI 76)
(symbol_ref:SI (Sleep@4) [flags 0x441] function_decl 0x7fa54300
Sleep)) ../.././libgcc/config/i386/gthr-win32.c:90 -1
 (nil))
../.././libgcc/config/i386/gthr-win32.c:94:1: internal compiler error: in
extract_insn, at recog.c:2150

Program received signal SIGABRT, Aborted.
0x05e0da30 in ?? ()
(gdb) bt
#0  0x05e0da30 in ?? ()
#1  0x7c821ca5 in WaitForSingleObject ()
   from /cygdrive/c/WINDOWS/system32/kernel32.dll
#2  0x610dd578 in sig_send (p=optimized out, si=..., tls=0x5e0a050)
at /netrel/src/cygwin-snapshot-20130409-1/winsup/cygwin/sigproc.cc:682
#3  0x610da7e3 in _pinfo::kill (this=0x60fd, si=...)
at /netrel/src/cygwin-snapshot-20130409-1/winsup/cygwin/signal.cc:248
#4  0x610dace8 in kill0 (si=..., pid=0x2f68)
at /netrel/src/cygwin-snapshot-20130409-1/winsup/cygwin/signal.cc:299
#5  kill (pid=0x2f68, sig=0x6)
at /netrel/src/cygwin-snapshot-20130409-1/winsup/cygwin/signal.cc:308
#6  0x610dae7c in raise (sig=0x6)
at /netrel/src/cygwin-snapshot-20130409-1/winsup/cygwin/signal.cc:284
#7  0x610db0f3 in abort ()
at /netrel/src/cygwin-snapshot-20130409-1/winsup/cygwin/signal.cc:371
#8  0x00fa1994 in uw_init_context_1 (context=context@entry=0x5e0a470,
outer_cfa=outer_cfa@entry=0x5e0a5d0, outer_ra=0xf7b23a backtrace_full+74)
at ../.././libgcc/unwind-dw2.c:1502
#9  0x00fa2062 in _Unwind_Backtrace (trace=0xf7b170 unwind,
trace_argument=0x5e0a5e8) at ../.././libgcc/unwind.inc:283
#10 0x00f7b23a in backtrace_full ()
#11 0x00f3245b in diagnostic_action_after_output (
context=0x15655a0 global_diagnostic_context, diagnostic=0x5e0a6c4)
---Type return to continue, or q return to quit---
at ../.././gcc/diagnostic.c:463
#12 0x00f332b6 in diagnostic_report_diagnostic (
context=0x15655a0 global_diagnostic_context, diagnostic=0x5e0a6c4)
at ../.././gcc/diagnostic.c:791
#13 0x00f33a07 in internal_error (
gmsgid=0x127143f init_param_values(int*)::__FUNCTION__+1507 in %s, at
%s:%d) at ../.././gcc/diagnostic.c:1123
#14 0x00f33af3 in fancy_abort (
file=0x10d3433 peephole2_1(rtx_def*, rtx_def*, int*)::__FUNCTION__+82
../.././gcc/recog.c, line=0x866,
function=0x10d39c7 extract_insn(rtx_def*)::__FUNCTION__ extract_insn)
at ../.././gcc/diagnostic.c:1177
#15 0x00b317b1 in _fatal_insn (
msgid=0x112f97f cse_condition_code_reg()::__FUNCTION__+26 unrecognizable
insn:, insn=0x7e7b5a50,
file=0x10d3433 peephole2_1(rtx_def*, rtx_def*, int*)::__FUNCTION__+82
../.././gcc/recog.c, line=0x866,
function=0x10d39c7 extract_insn(rtx_def*)::__FUNCTION__ extract_insn)
at ../.././gcc

[Bug rtl-optimization/56952] [4.9 regression] ICE in recog.c:2150

2013-04-14 Thread jojelino at gmail dot com


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



gee jojelino at gmail dot com changed:



   What|Removed |Added



   Severity|normal  |blocker


[Bug target/56796] New: ‘TARGET_CYGWIN64’ was not declared in this scope

2013-03-31 Thread jojelino at gmail dot com

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

 Bug #: 56796
   Summary: ‘TARGET_CYGWIN64’ was not declared in this scope
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-cygwin
 Build: i686-pc-cygwin


host-i686-pc-cygwin-gcc failed to compile.

configure command used for configuration time was

'/tmp/gcc/gcc/configure'  '--cache-file=../config.cache' '--prefix=/usr'
'--disable-win32-registry' '--enable-threads=win32'
'--with-win32-nlsapi=unicode' '--enable-tls' '--disable-bootstrap'
'--enable-shared' '--disable-sjlj-exceptions' '--enable-gomp'
'--enable-cloog-backend=isl' '--enable-languages=c,c++,fortran,lto'
'--program-transform-name=s,y,y,' '--disable-option-checking'
'--build=i686-pc-cygwin' '--host=i686-pc-cygwin' '--target=i686-pc-cygwin'
'--srcdir=../.././gcc' 'build_alias=i686-pc-cygwin' 'host_alias=i686-pc-cygwin'
'target_alias=i686-pc-cygwin' 'CC=gcc' 'CFLAGS=-O2' 'LDFLAGS=-static-libstdc++
-static-libgcc -Wl,--stack,12582912' 'CXX=g++' 'CXXFLAGS=-O2' 'GMPLIBS=-lmpc
-lmpfr -lgmp' 'GMPINC=' 'ISLINC=' 'CLOOGLIBS=-lcloog-isl  -lisl'
'CLOOGINC=-DCLOOG_INT_GMP ' $ac_configure_extra_args --no-create --no-recursion
.

$ make
g++ -c  -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND  -DIN_GCC-fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual  -fno-common  -DHAVE_CONFIG_H -I. -Ic-family -I../.././gcc
-I../.././gcc/c-family  -I../.././gcc/../include  
-I../.././gcc/../libcpp/include  -I../.././gcc/../libdecnumber
-I../.././gcc/../libdecnumber/bid -I../libdecnumber
-I../.././gcc/../libbacktrace  -DCLOOG_INT_GMP   
../.././gcc/c-family/c-cppbuiltin.c -o c-family/c-cppbuiltin.o
In file included from ./tm.h:22:0,
 from ../.././gcc/c-family/c-cppbuiltin.c:23:
../.././gcc/c-family/c-cppbuiltin.c: In function ‘void
c_cpp_builtins(cpp_reader*)’:
../.././gcc/config/i386/cygwin.h:25:12: error: ‘TARGET_CYGWIN64’ was not
declared in this scope
   if (!TARGET_CYGWIN64) \
^
../.././gcc/config/i386/cygming.h:146:2: note: in expansion of macro
‘EXTRA_OS_CPP_BUILTINS’
  EXTRA_OS_CPP_BUILTINS (); \
  ^
../.././gcc/c-family/c-cppbuiltin.c:914:3: note: in expansion of macro
‘TARGET_OS_CPP_BUILTINS’
   TARGET_OS_CPP_BUILTINS ();
   ^
Makefile:1060: recipe for target `c-family/c-cppbuiltin.o' failed
make: *** [c-family/c-cppbuiltin.o] Error 1

[Bug target/55317] New: [i386-regression] just don't strip stdcall suffix in gcc

2012-11-13 Thread jojelino at gmail dot com


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



 Bug #: 55317

   Summary: [i386-regression] just don't strip stdcall suffix in

gcc

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: blocker

  Priority: P3

 Component: target

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: jojel...@gmail.com





Created attachment 28679

  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28679

testcase



It resulted in link error while building libgcc.



$ /tmp/gcc/host-i686-pc-cygwin/gcc/xgcc -B/tmp/gcc/host-i686-pc-cygwin/gcc/

-B/usr/i686-pc-cygwin/bin/ -B/usr/i686-pc-cygwin/lib/ -isystem

/usr/i686-pc-cygwin/include -isystem /usr/i686-pc-cygwin/sys-include -v

Reading specs from /tmp/gcc/host-i686-pc-cygwin/gcc/specs

COLLECT_GCC=/tmp/gcc/host-i686-pc-cygwin/gcc/xgcc

COLLECT_LTO_WRAPPER=/tmp/gcc/host-i686-pc-cygwin/gcc/lto-wrapper.exe

Target: i686-pc-cygwin

Configured with: ./configure --config-cache --enable-plugin --prefix=/usr

--disable-win32-registry --enable-threads=win32

--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls

--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp

--enable-cloog-backend=isl LTLDFLAGS=-no-undefined

lt_cv_deplibs_check_method=pass_all : (reconfigured) ./configure --config-cache

--enable-plugin --prefix=/usr --disable-win32-registry --enable-threads=win32

--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls

--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp

--enable-cloog-backend=isl LTLDFLAGS=-no-undefined

lt_cv_deplibs_check_method=pass_all : (reconfigured) ./configure --config-cache

--prefix=/usr --disable-win32-registry --enable-threads=win32

--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls

--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp

--enable-cloog-backend=isl LTLDFLAGS=-no-undefined

lt_cv_deplibs_check_method=pass_all

Thread model: win32

gcc version 4.8.0 20121113 (experimental) (GCC)



Use --enable-stdcall-fixup to disable these warnings

Use --disable-stdcall-fixup to disable these fixups

/tmp/gcc/host-i686-pc-cygwin/gcc/crtbegin.o:cygming-crtbegin.c:(.text+0x2f):

undefined reference to `__imp__GetProcAddress'

/tmp/gcc/host-i686-pc-cygwin/gcc/crtbegin.o:cygming-crtbegin.c:(.text+0x78):

undefined reference to `__imp__GetProcAddress'

/tmp/gcc/host-i686-pc-cygwin/gcc/crtbegin.o:cygming-crtbegin.c:(.text+0xcc):

undefined reference to `__imp__GetProcAddress'

/usr/i686-pc-cygwin/bin/ld: /tmp/gcc/host-i686-pc-cygwin/gcc/crtbegin.o: bad

reloc address 0x20 in section `.eh_frame'

collect2: error: ld returned 1 exit status

Makefile:921: recipe for target `libgcc_s.dll' failed



And there is no such __imp__GetProcAddress symbol defined in libkernel32.a



$ nm -sn /lib/w32api/libkernel32.a |grep GetProcAddress

_GetProcAddress@8 in degqcs00553.o

__imp__GetProcAddress@8 in degqcs00553.o

 I __imp__GetProcAddress@8

 T _GetProcAddress@8



i confirmed that 4.8.0 20121002 has no problem like this

$ gcc -v test.c

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.8.0/lto-wrapper.exe

Target: i686-pc-cygwin

Configured with: ./configure --config-cache --prefix=/usr

--disable-win32-registry --enable-threads=win32

--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls

--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp

--enable-cloog-backend=isl LTLDFLAGS=-no-undefined

lt_cv_deplibs_check_method=pass_all

Thread model: win32

gcc version 4.8.0 20121002 (experimental) (GCC)

COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'

 /usr/libexec/gcc/i686-pc-cygwin/4.8.0/cc1.exe -quiet -v -D__CYGWIN32__

-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter

/usr/lib/gcc/i686-pc-cygwin/4.8.0/../../../../i686-pc-cygwin/lib/../include/w32api

-idirafter

/usr/lib/gcc/i686-pc-cygwin/4.8.0/../../../../i686-pc-cygwin/lib/../../include/w32api

test.c -quiet -dumpbase test.c -mtune=generic -march=pentiumpro -auxbase test

-version -o /tmp/ccI4wcdv.s

GNU C (GCC) version 4.8.0 20121002 (experimental) (i686-pc-cygwin)

compiled by GNU C version 4.8.0 20120821 (experimental), GMP version

5.0.2, MPFR version 3.2.0-dev, MPC version 0.9

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

ignoring duplicate directory /usr/include

ignoring duplicate directory

/usr/lib/gcc/i686-pc-cygwin/4.8.0/../../../../i686-pc-cygwin/lib/../../include/w32api

#include ... search starts here:

#include ... search starts here:

 /usr/lib/gcc/i686-pc-cygwin/4.8.0/include

 /usr/local/include

 /usr/lib/gcc/i686-pc-cygwin/4.8.0/include-fixed

 /usr/lib/gcc/i686-pc-cygwin/4.8.0/../../../../i686-pc-cygwin/include




[Bug middle-end/53518] [4.8 regression] testsuite_abi_check.cc doesn't compile

2012-09-19 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53518

--- Comment #6 from gee jojelino at gmail dot com 2012-09-19 13:20:59 UTC ---
(In reply to comment #5)
 Still broken?

I suspect it would be duplicate of 54314.


[Bug libgcj/51498] make dejagnu work in libjava testsuite with cross-build

2012-08-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51498

gee jojelino at gmail dot com changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||WONTFIX

--- Comment #11 from gee jojelino at gmail dot com 2012-08-22 17:04:43 UTC ---
(In reply to comment #8)
 Oh, and why is this a regression?

dejagnu failed to detect the built gcj compiler in canadian cross. and
dejagnu.am of automake is responsible for not exporting makefile variables CC,
CXX, GCJ,... etc to shell. so the cause is not gcc. and this bug isn't
applicable to gcc bugzilla.
so i'm closing the bug.


[Bug c++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstreamchar, std::char_traitschar, std::allocatorchar '

2012-08-21 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314

--- Comment #5 from gee jojelino at gmail dot com 2012-08-21 13:38:57 UTC ---
I think symbol _ZTCSt* need to be included in libstdc++/config/abi/pre/gnu.ver
so that shared-library can export these symbols unless user   did append
--disable-symvers.
nothing need to be done such as reverting the commit or so.


[Bug c++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstreamchar, std::char_traitschar, std::allocatorchar '

2012-08-21 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314

--- Comment #6 from gee jojelino at gmail dot com 2012-08-21 20:10:01 UTC ---
Created attachment 28065
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28065
proposed patch

just added one line.
_ZTC* is then exported.


[Bug c++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstreamchar, std::char_traitschar, std::allocatorchar '

2012-08-20 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314

--- Comment #3 from gee jojelino at gmail dot com 2012-08-20 15:21:53 UTC ---
--export-all-symbols didn't work at all.
pick-reverting just one commit failed with conflict.


[966](sec 86)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x 
Contents of section .rdata$_ZNSt14numeric_limitsIdE14min_exponent10E:
  cdfe  

following is one of the symbol that linker failed to include in shared library.

__ZNSt14numeric_limitsIdE14min_exponent10E
.globl__ZNSt14numeric_limitsIdE14min_exponent10E
.section.rdata$_ZNSt14numeric_limitsIdE14min_exponent10E,dr
.align 4
__ZNSt14numeric_limitsIdE14min_exponent10E:
.long-307


[Bug c++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstreamchar, std::char_traitschar, std::allocatorchar '

2012-08-20 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314

--- Comment #4 from gee jojelino at gmail dot com 2012-08-20 16:15:41 UTC ---
(In reply to comment #3)
 --export-all-symbols didn't work at all.
 pick-reverting just one commit failed with conflict.
 
 
 [966](sec 86)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x 
 Contents of section .rdata$_ZNSt14numeric_limitsIdE14min_exponent10E:
   cdfe  
 
 following is one of the symbol that linker failed to include in shared 
 library.
 
 __ZNSt14numeric_limitsIdE14min_exponent10E
 .globl__ZNSt14numeric_limitsIdE14min_exponent10E
 .section.rdata$_ZNSt14numeric_limitsIdE14min_exponent10E,dr
 .align 4
 __ZNSt14numeric_limitsIdE14min_exponent10E:
 .long-307

objdump -p src/.libs/cygstdc++-6.dll |grep
_ZNSt14numeric_limitsIdE14min_exponent10E
[1747] _ZNSt14numeric_limitsIdE14min_exponent10E
 85 .rdata$_ZNSt14numeric_limitsIdE14min_exponent10E 0004   
  4644  2**2
  CONTENTS, ALLOC, LOAD, READONLY, DATA
above symbol was defined in dll, sorry for the noise.


$ objdump -p src/.libs/cygstdc++-6.dll |grep
_ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E


209 .rdata$_ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E
0040      bd14  2**5
  CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA,
LINK_ONCE_SAME_SIZE (COMDAT
__ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E 966)

.globl   
__ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E
.section   
.rdata$_ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E,dr
.linkonce same_size
.align 32
__ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E:
.long136

only difference for both section is RELOC, LINK_ONCE_SAME_SIZE. and some symbol
in section with reloc failed to export symbols within.


[Bug regression/54314] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstreamchar, std::char_traitschar, std::allocatorchar '

2012-08-18 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314

--- Comment #1 from gee jojelino at gmail dot com 2012-08-18 14:53:53 UTC ---
bug 53518 also has this problem.
reference type in method argument causes symbol reference of construction
vtable for ***.
so, construction vtable for * symbol must not be marked as weak in PE target.
since PE target cannot handle weak symbol.
or, just reverting the problematic commit would be good.


[Bug middle-end/53518] [4.8 regression] testsuite_abi_check.cc doesn't compile

2012-08-14 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53518

--- Comment #4 from gee jojelino at gmail dot com 2012-08-14 18:49:53 UTC ---
cppcheck fails to compile because of this bug.

cli/cmdlineparser.o: In function `~basic_istream':
/usr/include/c++/4.8.0/istream:106: undefined reference to `construction vtable
for std::basic_istreamchar, std::char_traitschar
-in-std::basic_ifstreamchar, std::char_traitschar '
/usr/include/c++/4.8.0/istream:106: undefined reference to `construction vtable
for std::basic_istreamchar, std::char_traitschar
-in-std::basic_ifstreamchar, std::char_traitschar '
/usr/include/c++/4.8.0/istream:106: undefined reference to `construction vtable
for std::basic_istreamchar, std::char_traitschar
-in-std::basic_ifstreamchar, std::char_traitschar '

it says that 'construction vtable for std::basic_istreamchar,
std::char_traitschar -in-std::basic_ifstreamchar, std::char_traitschar '
cannot be found, but it exists. 

$ nm -sn /lib/libstdc++.a |c++filt |grep construction vtable for
std::basic_istreamchar, std::char_traitschar -in-std::basic_ifstreamchar,
std::char_traitschar 
construction vtable for std::basic_istreamchar, std::char_traitschar
-in-std::basic_ifstreamchar, std::char_traitschar  in fstream-inst.o
 R construction vtable for std::basic_istreamchar,
std::char_traitschar -in-std::basic_ifstreamchar, std::char_traitschar 


[Bug tree-optimization/54094] New: [4.8 regression] ICE in graphite-dependences.c:320 : isl_constraint.c:497: position out of bounds

2012-07-25 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54094

 Bug #: 54094
   Summary: [4.8 regression] ICE in graphite-dependences.c:320 :
isl_constraint.c:497: position out of bounds
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-cygwin
 Build: i686-pc-cygwin


Created attachment 27872
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27872
preprocessed source

/usr/libexec/gcc/i686-pc-cygwin/4.8.0/cc1.exe -quiet -v -I . -I .. -I . -I
../libopenjpeg -I ../libopenjpeg -MD .libs/libopenjpeg_la-dwt.d -MF
.deps/libopenjpeg_la-dwt.Tpo -MP -MT libopenjpeg_la-dwt.lo -D__CYGWIN32__
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.8.0/../../../../i686-pc-cygwin/lib/../include/w32api
-idirafter
/usr/lib/gcc/i686-pc-cygwin/4.8.0/../../../../i686-pc-cygwin/lib/../../include/w32api
-D HAVE_CONFIG_H -D DLL_EXPORT -D PIC dwt.c -quiet -dumpbase dwt.c
-mtune=generic -march=pentiumpro -auxbase-strip .libs/libopenjpeg_la-dwt.o -g
-O3 -O3 -Wno-unused-result -version -floop-parallelize-all -funroll-loops
-fgraphite-identity -floop-interchange -floop-strip-mine -floop-block
-floop-nest-optimize -o /tmp/cc7aOSoP.s -v
GNU C (GCC) version 4.8.0 20120725 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.8.0 20120725 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring duplicate directory /usr/include
ignoring duplicate directory
/usr/lib/gcc/i686-pc-cygwin/4.8.0/../../../../i686-pc-cygwin/lib/../../include/w32api
ignoring duplicate directory .
ignoring duplicate directory ../libopenjpeg
ignoring duplicate directory ../libopenjpeg
#include ... search starts here:
#include ... search starts here:
 .
 ..
 /usr/lib/gcc/i686-pc-cygwin/4.8.0/include
 /usr/local/include
 /usr/lib/gcc/i686-pc-cygwin/4.8.0/include-fixed
 /usr/lib/gcc/i686-pc-cygwin/4.8.0/../../../../i686-pc-cygwin/include

/usr/lib/gcc/i686-pc-cygwin/4.8.0/../../../../i686-pc-cygwin/lib/../include/w32api
End of search list.
GNU C (GCC) version 4.8.0 20120725 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.8.0 20120725 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 33554d404084ab5b3fa4e3feae78fab3
..
..
isl_constraint.c:497: position out of bounds
dwt.c: In function ‘v4dwt_decode_step2’:
dwt.c:990:13: internal compiler error: Aborted
 static void v4dwt_decode_step2(v4* l, v4* w, int k, int m, float c){
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.


isl_constraint.c:497: position out of bounds

Breakpoint 1, 0x66497a80 in abort () from /usr/bin/cygisl-10.dll
(gdb) bt
#0  0x66497a80 in abort () from /usr/bin/cygisl-10.dll
#1  0x663e678f in isl_handle_error () from /usr/bin/cygisl-10.dll
#2  0x663de9e6 in isl_constraint_set_coefficient_si ()
   from /usr/bin/cygisl-10.dll
#3  0x00cfc819 in carries_deps (schedule=optimized out,
deps=optimized out, depth=optimized out)
at ../.././gcc/graphite-dependences.c:320
#4  0x00cfd498 in loop_level_carries_dependences (depth=0x0, body=0x2017c928,
scop=0x200f6fd8) at ../.././gcc/graphite-dependences.c:560
#5  loop_is_parallel_p (loop=loop@entry=0x7fe55008,
bb_pbb_mapping=bb_pbb_mapping@entry=0x20122520, depth=depth@entry=0x0)
at ../.././gcc/graphite-dependences.c:590
#6  0x00cea0e2 in translate_clast_for_loop (ip=0x5f2a54c, ub=optimized out,
lb=optimized out, type=optimized out, level=0x0,
bb_pbb_mapping=0x20122520, next_e=0x7fe6a5c0, stmt=0x2010f140,
context_loop=0x7fe54ed0) at ../.././gcc/graphite-clast-to-gimple.c:1175
#7  translate_clast_for (ip=0x5f2a54c, level=0x0, bb_pbb_mapping=0x20122520,
next_e=0x7fe69fc0, stmt=0x2010f140, context_loop=0x7fe54ed0)
at ../.././gcc/graphite-clast-to-gimple.c:1197
#8  _fu5__stmt_ass () at ../.././gcc/graphite-clast-to-gimple.c:1281
#9  0x00cea7ec in gloog (scop=scop@entry=0x200f6fd8,
bb_pbb_mapping=bb_pbb_mapping@entry=0x20122520)
at ../.././gcc/graphite-clast-to-gimple.c:1680
---Type return to continue, or q return to quit---
#10 0x00cbb91c in graphite_transform_loops () at ../.././gcc/graphite.c:291
#11 0x00b35334 in graphite_transforms () at ../.././gcc/tree-ssa-loop.c:252
#12 0x006b895d in execute_one_pass (pass=pass@entry=0xda62a0)
at ../.././gcc/passes.c:2158
#13 0x006b8cc5 in execute_pass_list (pass=0xda62a0)
at ../.././gcc/passes.c:2213
#14 0x006b8cd8 in execute_pass_list (pass=0xda62e0)
at 

[Bug libffi/53674] New: [libffi] 260 excess testsuite failure

2012-06-14 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53674

 Bug #: 53674
   Summary: [libffi] 260 excess testsuite failure
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libffi
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-mingw32
Target: i686-pc-mingw32
 Build: i686-pc-cygwin


Created attachment 27620
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27620
dejagnu patch to reproduce problem.

After applied this patch, I ran the testsuite and saw excess testsuite failures
which is following. 
$ make check
srcdir=`CDPATH=${ZSH_VERSION+.}:  cd .  pwd`; export srcdir; \
EXPECT=`if [ -f ../../expect/expect ] ; then  echo ../../expect/expect ;  else
echo expect ; fi`; export EXPECT; \
runtest=`if [ -f ../../dejagnu/runtest ] ; then  echo ../../dejagnu/runtest ; 
else echo runtest; fi`; \
if /bin/sh -c $runtest --version  /dev/null 21; then \
  exit_status=0; l='libffi'; for tool in $l; do \
if $runtest  --tool $tool --srcdir $srcdir ; \
then :; else exit_status=1; fi; \
  done; \
else echo WARNING: could not find \`runtest' 12; :;\
fi; \
exit $exit_status
WARNING: Couldn't find the global config file.
Test Run By Administrator on Fri Jun 15 02:37:04 2012
Target is i686-pc-mingw32
Host   is i686-pc-mingw32
Build  is i686-pc-cygwin

=== libffi tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /tmp/gcc/libffi/testsuite/config/default.exp as tool-and-target-specific
interface file.
WARNING: Assuming target board is the local machine (which is probably wrong).
You may need to set your DEJAGNU environment variable.
Running /tmp/gcc/libffi/testsuite/libffi.call/call.exp ...
FAIL: libffi.call/cls_12byte.c output pattern test, is 7 4 9 1 5 3: 8 9 12
res: 8 9 12
7 4 9 1 5 3: 8 9 12
res: 9 12 0
, should match 7 4 9 1 5 3: 8 9 12
res: 8 9 12
7 4 9 1 5 3: 8 9 12
res: 8 9 12
FAIL: libffi.call/cls_16byte.c output pattern test, is 7 8 9 1 9 3: 8 17 12
res: 8 17 12
7 8 9 1 9 3: 8 17 12
res: 2008444020 2.5996e-313 4199570
, should match 7 8 9 1 9 3: 8 17 12
res: 8 17 12
7 8 9 1 9 3: 8 17 12
res: 8 17 12
FAIL: libffi.call/cls_18byte.c output pattern test, is 1 127 126 3 4 125 124 5:
5 252 250 8
res: 5 252 250 8
1 127 126 3 4 125 124 5: 5 252 250 8
res: 1.88913e-307 0 0 4.49788e+268
, should match 1 127 126 3 4 125 124 5: 5 252 250 8
res: 5 252 250 8
1 127 126 3 4 125 124 5: 5 252 250 8
res: 5 252 250 8
FAIL: libffi.call/cls_19byte.c output pattern test, is 1 127 126 3 120 4 125
124 5 119: 5 252 250 8 239
res: 5 252 250 8 239
1 127 126 3 120 4 125 124 5 119: 5 252 250 8 239
res: 3.12255 120 0 5.07689e-312 124
, should match 1 127 126 3 120 4 125 124 5 119: 5 252 250 8 239
res: 5 252 250 8 239
1 127 126 3 120 4 125 124 5 119: 5 252 250 8 239
res: 5 252 250 8 239
FAIL: libffi.call/cls_20byte.c output pattern test, is 1 2 3 4 5 7: 5 7 10
res: 5 7 10
1 2 3 4 5 7: 5 7 10
res: 5.31147e-315 2.17514e-313 4199571
, should match 1 2 3 4 5 7: 5 7 10
res: 5 7 10
1 2 3 4 5 7: 5 7 10
res: 5 7 10
FAIL: libffi.call/cls_20byte1.c output pattern test, is 1 2 3 4 5 7: 5 7 10
res: 5 7 10
1 2 3 4 5 7: 5 7 10
res: 2008444020 5.31406e-315 4.49788e+268
, should match 1 2 3 4 5 7: 5 7 10
res: 5 7 10
1 2 3 4 5 7: 5 7 10
res: 5 7 10
FAIL: libffi.call/cls_24byte.c output pattern test, is 9 2 6 5 1 2 3 7 4 5 7 9
8 6 1 9: 22 15 17 25
res: 22 15 17 25
9 2 6 5 1 2 3 7 4 5 7 9 8 6 1 9: 22 15 17 25
res: 5.32247e-315 3.66059e-313 1103626240 6.86636e-044
, should match 9 2 6 5 1 2 3 7 4 5 7 9 8 6 1 9: 22 15 17 25
res: 22 15 17 25
9 2 6 5 1 2 3 7 4 5 7 9 8 6 1 9: 22 15 17 25
res: 22 15 17 25
FAIL: libffi.call/cls_3_1byte.c output pattern test, is 12 13 14 178 179 180:
190 192 194
res: 190 192 194
12 13 14 178 179 180: 190 192 194
res: 255 173 182
, should match 12 13 14 178 179 180: 190 192 194
res: 190 192 194
12 13 14 178 179 180: 190 192 194
res: 190 192 194
FAIL: libffi.call/cls_5_1_byte.c output pattern test, is 127 120 1 3 4 12 128 9
3 4: 139 248 10 6 8
res: 139 248 10 6 8
127 120 1 3 4 12 128 9 3 4: 139 248 10 6 8
res: 8 254 34 0 173
, should match 127 120 1 3 4 12 128 9 3 4: 139 248 10 6 8
res: 139 248 10 6 8
127 120 1 3 4 12 128 9 3 4: 139 248 10 6 8
res: 139 248 10 6 8
FAIL: libffi.call/cls_5byte.c output pattern test, is 127 120 1 12 128 9: 139
248 10
res: 139 248 10
127 120 1 12 128 9: 139 248 10
res: 10 34 173
, should match 127 120 1 12 128 9: 139 248 10
res: 139 248 10
127 120 1 12 128 9: 139 248 10
res: 139 248 10
FAIL: libffi.call/cls_64byte.c output pattern test, is 22 15 17 25 6 13 19 18
res: 22 15 17 25 6 13 19 18
22 15 17 25 6 13 19 18
res: 5.32247e-315 5.31988e-315 5.32086e-315 5.32345e-315 5.31276e-315

[Bug libffi/53674] [libffi] 260 excess testsuite failure

2012-06-14 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53674

--- Comment #1 from gee jojelino at gmail dot com 2012-06-14 17:57:01 UTC ---
Please note that http://gcc.gnu.org/bugzilla/attachment.cgi?id=27620 patch is
used to help dejagnu invoke proper mingw-targeted compiler.


[Bug libgcj/52579] [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function

2012-04-19 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579

--- Comment #1 from gee jojelino at gmail dot com 2012-04-19 08:23:39 UTC ---
i came into conclusion that we need to separate ffi_closure_raw_THISCALL from
ffi_closure_raw_SYSV(not using such as jmp .stubraw), because
ffi_closure_raw_THISCALL is not transparent by CFI so that
_Unwind_RaiseException would not fail with _urc_end_of_stack, modifing CFI of
ffi_closure_raw_THISCALL so that thiscall closure of ffi_closure_raw_THISCALL
would not be shown by reading CFI


[Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function

2012-03-13 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579

 Bug #: 52579
   Summary: [4.8 regression] i386_w32_fallback_frame_state should
care ffi raw-closure stub function
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcj
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-mingw32
 Build: i686-pc-cygwin


when we use closure stub, there is also possibility that callee throws
exception.
but we don't have any dwarf2 handler to take care these closure stub, so unwind
fails with _urc_end_of_stack. resulting abort() called so far.
to fix this problem, i386_w32_fallback_frame_state need to return
_URC_NO_REASON at least.

(gdb) bt
#0  i386_w32_fallback_frame_state (fs=0x22f198, context=optimized out)
at ./md-unwind-support.h:134
#1  uw_frame_state_for (context=context@entry=0x22f118, fs=fs@entry=0x22f198)
at ../.././libgcc/unwind-dw2.c:1187
#2  0x6e9545d8 in _Unwind_RaiseException (exc=0x14f63a0)
at ../.././libgcc/unwind.inc:99
#3  0x6968fec9 in _Jv_Throw (value=0x1a48d08)
at ../.././libjava/exception.cc:123
#4  0x696a194e in _Jv_InterpMethod::run (retp=0x22f658, args=0x22f67c,
meth=0x117d000) at ../.././libjava/interpret-run.cc:2695
#5  0x69ce4705 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:777
#6  0x01910911 in ?? ()
#7  0x69ce43e8 in ffi_raw_call (cif=0x1af5d5c, fn=0x19108e0, rvalue=0x22f8bc,
fake_avalue=0x22f724) at ../.././libffi/src/x86/ffi.c:828
#8  0x6969dc4e in _Jv_InterpMethod::run (retp=0x22fa24, args=0x22fa48,
meth=0x12fab68) at ../.././libjava/interpret-run.cc:611
#9  0x69ce4705 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:777
#10 0x019108a1 in ?? ()
#11 0x69ce43e8 in ffi_raw_call (cif=0x1af5d8c, fn=0x1910870, rvalue=0x22fc88,
fake_avalue=0x22fae0) at ../.././libffi/src/x86/ffi.c:828
#12 0x6969dc4e in _Jv_InterpMethod::run (retp=0x22fdf0, args=0x22fe10,
meth=0x1369000) at ../.././libjava/interpret-run.cc:611
#13 0x69ce4705 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:777
---Type return to continue, or q return to quit---
#14 0x696bf782 in gnu::java::lang::MainThread::call_main (this=0xbf2de0)
at ../.././libjava/gnu/java/lang/natMainThread.cc:54
#15 0x696fcd06 in gnu.java.lang.MainThread.run()void (this=@bf2de0)
at D:/cygwin/tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#16 0x696ce642 in _Jv_ThreadRun (thread=0xbf2de0)
at ../.././libjava/java/lang/natThread.cc:335
#17 0x69684074 in _Jv_RunMain (vm_args=0x0, klass=klass@entry=0x0,
name=name@entry=0x403064 org.eclipse.jdt.internal.compile...,
argc=argc@entry=0xb, argv=argv@entry=0x3d8b70, is_jar=is_jar@entry=0x0)
at ../.././libjava/prims.cc:1795
#18 0x69684266 in _Jv_RunMain (klass=0x0,
name=name@entry=0x403064 org.eclipse.jdt.internal.compile...,
argc=argc@entry=0xb, argv=argv@entry=0x3d8b70, is_jar=is_jar@entry=0x0)
at ../.././libjava/prims.cc:1820
#19 0x6968429f in JvRunMainName (
name=0x403064 org.eclipse.jdt.internal.compile..., argc=0xb,
argv=0x3d8b70) at ../.././libjava/prims.cc:1832
#20 0x00401d12 in ?? ()
#21 0x004010fd in ?? ()
#22 0x in ?? ()
(gdb) up
#1  uw_frame_state_for (context=context@entry=0x22f118, fs=fs@entry=0x22f198)
at ../.././libgcc/unwind-dw2.c:1187
1187  return MD_FALLBACK_FRAME_STATE_FOR (context, fs);
(gdb) print context-ra
$21 = (void *) 0x1910911
(gdb) x/i context-ra
   0x1910911:   ret$0x10
(gdb)


[Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null

2012-02-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057

gee jojelino at gmail dot com changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED

--- Comment #8 from gee jojelino at gmail dot com 2012-02-22 16:13:41 UTC ---
(In reply to comment #7)
 Could you please retest this bug.  I assume it is a duplicate of PR52238, 
 which
 was recently fixed.

yes, it's fixed. thank you.


[Bug libffi/52221] [libffi] r183675,r184021 needs to be fixed.

2012-02-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

--- Comment #14 from gee jojelino at gmail dot com 2012-02-22 18:13:35 UTC ---
(In reply to comment #13)
 Yes, this looks better IMHO.  Btw any differences about libjava testsuite run
 about this altered libffi patch?

WARNING: Couldn't find the global config file.
Test Run By Administrator on Thu Feb 23 01:18:02 2012
Target is i686-pc-mingw32
Host   is i686-pc-mingw32
Build  is i686-pc-cygwin

=== libjava tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /tmp/gcc/libjava/testsuite/config/default.exp as tool-and-target-specific
interface file.
WARNING: Assuming target board is the local machine (which is probably wrong).
You may need to set your DEJAGNU environment variable.
Running /tmp/gcc/libjava/testsuite/libjava.cni/cni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jar/jar.exp ...
FAIL: TestClosureGC output
FAIL: libjava.jar/TestClosureGC.jar execution - gij test
FAIL: simple output
FAIL: libjava.jar/simple.jar execution - gij test
Running /tmp/gcc/libjava/testsuite/libjava.jni/jni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti-interp.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.lang/lang.exp ...
FAIL: StackTrace2 output - source compiled test
FAIL: StackTrace2 -findirect-dispatch output - source compiled test
FAIL: StackTrace2 -O3 output - source compiled test
FAIL: StackTrace2 -O3 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep output - source compiled test
FAIL: Thread_Sleep_2 output - source compiled test
FAIL: Thread_Sleep_2 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep_2 -O3 output - source compiled test
FAIL: Thread_Sleep_2 -O3 -findirect-dispatch output - source compiled test
FAIL: md5test execution - source compiled test
FAIL: md5test -findirect-dispatch execution - source compiled test
FAIL: md5test -O3 execution - source compiled test
FAIL: md5test -O3 -findirect-dispatch execution - source compiled test
FAIL: pr21785 execution - source compiled test
FAIL: pr21785 -findirect-dispatch execution - source compiled test
FAIL: pr21785 -O3 execution - source compiled test
FAIL: pr21785 -O3 -findirect-dispatch execution - source compiled test
FAIL: pr26990 execution - source compiled test
FAIL: pr26990 -findirect-dispatch execution - source compiled test
FAIL: pr26990 -O3 execution - source compiled test
FAIL: pr26990 -O3 -findirect-dispatch execution - source compiled test
FAIL: shatest execution - source compiled test
FAIL: shatest -findirect-dispatch execution - source compiled test
FAIL: shatest -O3 execution - source compiled test
FAIL: shatest -O3 -findirect-dispatch execution - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.loader/loader.exp ...
FAIL: TestMultiple output - source compiled test
FAIL: TestParent output - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.mauve/mauve.exp ...
sh: /configure: No such file or directory
FAIL: Mauve configure
Running /tmp/gcc/libjava/testsuite/libjava.special/special.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.verify/verify.exp ...

=== libjava Summary ===

# of expected passes2360
# of unexpected failures32
# of untested testcases 18
Makefile:385: recipe for target `check-DEJAGNU' failed
make[1]: *** [check-DEJAGNU] Error 1
make[1]: Leaving directory `/tmp/gcc/i686-pc-mingw32/libjava/testsuite'
Makefile:409: recipe for target `check-am' failed
make: *** [check-am] Error 2

no problem with attachment 26692. please apply this.


[Bug target/52051] [4.7 regression] invalid stack-cleanup occured with -O flag

2012-02-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52051

gee jojelino at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||WORKSFORME

--- Comment #2 from gee jojelino at gmail dot com 2012-02-22 18:22:09 UTC ---
confirmed fixed in pr52221 #14


[Bug libgcj/52344] New: [4.x regression] _Jv_platform_nanotime of win32.cc is wrong

2012-02-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52344

 Bug #: 52344
   Summary: [4.x regression] _Jv_platform_nanotime of win32.cc is
wrong
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcj
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com


just one liner.

diff --git a/libjava/win32.cc b/libjava/win32.cc
index 6a1c2c7..4a0503d 100644
--- a/libjava/win32.cc
+++ b/libjava/win32.cc
@@ -285,7 +285,7 @@ _Jv_platform_gettimeofday ()
 jlong
 _Jv_platform_nanotime ()
 {
-  return _Jv_platform_gettimeofday () * 1000LL;
+  return _Jv_platform_gettimeofday () * 100LL;
 }

 static bool dirExists (LPCTSTR dir)

posix.cc has correct implementation which multiples 100.


[Bug libffi/52221] [libffi] r183675,r184021 needs to be fixed.

2012-02-17 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

--- Comment #12 from gee jojelino at gmail dot com 2012-02-17 08:38:01 UTC ---
Created attachment 26692
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26692
proposed patch without trampoline diff

(In reply to comment #10)
 I see here three issues about this patch.
 
 First, you don't treat stack-alignment.
 Second, why you emulate here stack-argument cleanup for ret __size-4?  Why not
 stick to already present variant?
 Thirs, you corrupt arguments after the second.
 
yes. sorry for unnecessary trampoline diff. does this patch solves the issues?


[Bug libffi/52221] [libffi] r183675,r184021 needs to be fixed.

2012-02-16 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

--- Comment #8 from gee jojelino at gmail dot com 2012-02-16 20:12:21 UTC ---
Created attachment 26685
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26685
proposed patch

with this patch, ExtraClassLoader testcase passed with three `true'
testing for whole libjava testsuite.


[Bug libffi/52221] [libffi] r183675,r184021 needs to be fixed.

2012-02-16 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

gee jojelino at gmail dot com changed:

   What|Removed |Added

  Attachment #26653|0   |1
is obsolete||

--- Comment #9 from gee jojelino at gmail dot com 2012-02-16 20:19:22 UTC ---
Created attachment 26686
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26686
script used for generating trampoline code.

trampoline code in attachment 26685 based on following source code.

extern int* esp asm (%esp);
volatile int
sideeffect();
static volatile int ctx;
int __cdecl
main()
{
  int ret;
  extern int ecx asm(%ecx);
  /*
   * CFLAGS -O4
   */
#define NUM_CLOBBERED_REG 1
  /* expected layout
   /* ret   esp[4]
   * ?  esp[3]
   * clobbered
   */
  asm volatile(blk1:);
#define swap(x,y,tmp,...) {\
asm (movl %0,%2 # movl x,tmp\n\
movl %1,%0 # movl y,x\n\
movl %2,%1 # movl tmp,y:+g(x),+g(y),+g(tmp)::__VA_ARGS__);\
}
  swap(esp[NUM_CLOBBERED_REG+1], ecx, esp[NUM_CLOBBERED_REG], ecx);
  /* expected layout
   * ecxesp[4]
   * retesp[3]
   * clobbered
   */
  asm (movl %0,%%eax::i(ctx):eax);
  esp -= NUM_CLOBBERED_REG + 1;
  asm volatile (call _sideeffect:+a(ret)::memory,ecx,edx);
  ecx = esp[NUM_CLOBBERED_REG + 1];
  esp[NUM_CLOBBERED_REG + 1] = esp[NUM_CLOBBERED_REG];

  /* expected layout
   * retesp[4]
   * retesp[3]
   * clobbered
   */
  esp += NUM_CLOBBERED_REG + 1;
  asm volatile(ret);
  asm volatile(blk2:);
  return ret;
}
volatile int
sideeffect()
{
  return (volatile int) 0;
}


[Bug libffi/52221] [libffi] r183675,r184021 needs to be fixed.

2012-02-16 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

--- Comment #11 from gee jojelino at gmail dot com 2012-02-16 23:19:45 UTC ---
(In reply to comment #8)
 Created attachment 26685 [details]
 proposed patch
 
 with this patch, ExtraClassLoader testcase passed with three `true'
 testing for whole libjava testsuite.

Running /tmp/gcc/libjava/testsuite/libjava.cni/cni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jar/jar.exp ...
FAIL: TestClosureGC output
FAIL: libjava.jar/TestClosureGC.jar execution - gij test
FAIL: simple output
FAIL: libjava.jar/simple.jar execution - gij test
Running /tmp/gcc/libjava/testsuite/libjava.jni/jni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti-interp.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.lang/lang.exp ...
FAIL: ProxyTest -O3 execution - source compiled test
FAIL: ProxyTest -O3 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 output - source compiled test
FAIL: StackTrace2 -findirect-dispatch output - source compiled test
FAIL: StackTrace2 -O3 output - source compiled test
FAIL: StackTrace2 -O3 -findirect-dispatch output - source compiled test
FAIL: TestProxy -O3 execution - source compiled test
FAIL: TestProxy -O3 -findirect-dispatch execution - source compiled test
FAIL: Thread_Sleep output - source compiled test
FAIL: Thread_Sleep -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep -O3 output - source compiled test
FAIL: Thread_Sleep_2 output - source compiled test
FAIL: Thread_Sleep_2 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep_2 -O3 output - source compiled test
FAIL: Thread_Sleep_2 -O3 -findirect-dispatch output - source compiled test
FAIL: md5test execution - source compiled test
FAIL: md5test -findirect-dispatch execution - source compiled test
FAIL: md5test -O3 execution - source compiled test
FAIL: md5test -O3 -findirect-dispatch execution - source compiled test
FAIL: pr21785 execution - source compiled test
FAIL: pr21785 -findirect-dispatch execution - source compiled test
FAIL: pr21785 -O3 execution - source compiled test
FAIL: pr21785 -O3 -findirect-dispatch execution - source compiled test
FAIL: pr26990 execution - source compiled test
FAIL: pr26990 -findirect-dispatch execution - source compiled test
FAIL: pr26990 -O3 execution - source compiled test
FAIL: pr26990 -O3 -findirect-dispatch execution - source compiled test
FAIL: shatest execution - source compiled test
FAIL: shatest -findirect-dispatch execution - source compiled test
FAIL: shatest -O3 execution - source compiled test
FAIL: shatest -O3 -findirect-dispatch execution - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.loader/loader.exp ...
FAIL: TestMultiple output - source compiled test
FAIL: TestParent output - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.mauve/mauve.exp ...
sh: /configure: No such file or directory
FAIL: Mauve configure
Running /tmp/gcc/libjava/testsuite/libjava.special/special.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.verify/verify.exp ...


md5test~shatest has dependency to pr51901.

there is no sigsegv except TestProxy,ProxyTest
in pr52051 it was described


[Bug libffi/52221] [libffi] r183675,r184021 needs to be fixed.

2012-02-15 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

gee jojelino at gmail dot com changed:

   What|Removed |Added

Summary|[libffi] r184021 needs to   |[libffi] r183675,r184021
   |be fixed.   |needs to be fixed.
   Severity|normal  |blocker

--- Comment #7 from gee jojelino at gmail dot com 2012-02-15 21:32:10 UTC ---
there is an big mistake in r183675

-  ffi_call_win32(ffi_prep_args_raw, ecif, cif-bytes, cif-flags,
- ecif.rvalue, fn);
+  ffi_call_win32(ffi_prep_args, ecif, cif-abi, cif-bytes, cif-flags,
+ ecif.rvalue, fn);

and below the mistake, another one.

+if (passed_regs  2  abi == FFI_FASTCALL)
+  abi = FFI_THISCALL;
+if (passed_regs  1  abi == FFI_THISCALL)
+  abi = FFI_STDCALL;
+ffi_call_win32(ffi_prep_args, ecif, abi, cif-bytes, cif-flags,
+   ecif.rvalue, fn);
+  }

why ffi_prep_args_raw changed to ffi_prep_args?? this explains why i succeed
but not sigsegving in ExtraClassLoader.
because of this, i decidec to raise the severity to blocker.


[Bug libffi/52221] [libffi] r184021 needs to be fixed.

2012-02-13 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

gee jojelino at gmail dot com changed:

   What|Removed |Added

 Status|RESOLVED|WAITING
 Resolution|FIXED   |

--- Comment #4 from gee jojelino at gmail dot com 2012-02-13 17:02:18 UTC ---
(In reply to comment #3)
 Fixed.
No. it doesn't fixed. following debug session shows.

(gdb)
0x00fa0008 in ?? ()
(gdb) disp /5w $esp
6: x/5xw $esp
0x22fd7c:   0x696c5603  0x00e20e40  0x00a63fd0  0x00a63ff0
0x22fd8c:   0x00aa9848
(gdb) disp /w $ecx
7: x/xw $ecx  0xaa7e00: 0x00a6dc20
  
 this parameter
(gdb) ni
0x00fa000b in ?? ()
7: x/xw $ecx  0xaa7e00: 0x00a6dc20
6: x/5xw $esp
0x22fd7c:   0x696c5603  0x00e20e40  0x00a63fd0  0x00a63ff0
0x22fd8c:   0x00aa9848
(gdb) disp /i $eip
8: x/i $eip
= 0xfa000b:sub$0xc,%esp
(gdb) ni
0x00fa000e in ?? ()
8: x/i $eip
= 0xfa000e:mov%ecx,0x4(%esp)
7: x/xw $ecx  0xaa7e00: 0x00a6dc20
6: x/5xw $esp
0x22fd70:   0x00e20e40  0x00ace300  0x0022fda8  0x696c5603
0x22fd80:   0x00e20e40
(gdb)
0x00fa0012 in ?? ()
8: x/i $eip
= 0xfa0012:mov%eax,(%esp)
7: x/xw $ecx  0xaa7e00: 0x00a6dc20
6: x/5xw $esp
0x22fd70:   0x00e20e40  0x00aa7e00  0x0022fda8  0x696c5603
0x22fd80:   0x00e20e40
(gdb)
0x00fa0015 in ?? ()
8: x/i $eip
= 0xfa0015:mov$0x4,%eax
7: x/xw $ecx  0xaa7e00: 0x00a6dc20
6: x/5xw $esp
0x22fd70:   0x696c5603  0x00aa7e00  0x0022fda8  0x696c5603
0x22fd80:   0x00e20e40
(gdb)
0x00fa001a in ?? ()
8: x/i $eip
= 0xfa001a:lea0x8(%esp),%ecx
7: x/xw $ecx  0xaa7e00: 0x00a6dc20
6: x/5xw $esp
0x22fd70:   0x696c5603  0x00aa7e00  0x0022fda8  0x696c5603
0x22fd80:   0x00e20e40
(gdb)
0x00fa001e in ?? ()
8: x/i $eip
= 0xfa001e:shr$0x2,%eax
7: x/xw $ecx  0x22fd78: 0x0022fda8
6: x/5xw $esp
0x22fd70:   0x696c5603  0x00aa7e00  0x0022fda8  0x696c5603
0x22fd80:   0x00e20e40
(gdb)
0x00fa0021 in ?? ()
8: x/i $eip
= 0xfa0021:dec%eax
7: x/xw $ecx  0x22fd78: 0x0022fda8
6: x/5xw $esp
0x22fd70:   0x696c5603  0x00aa7e00  0x0022fda8  0x696c5603
0x22fd80:   0x00e20e40
(gdb)
0x00fa0022 in ?? ()
8: x/i $eip
= 0xfa0022:je 0xfa002f
7: x/xw $ecx  0x22fd78: 0x0022fda8
6: x/5xw $esp
0x22fd70:   0x696c5603  0x00aa7e00  0x0022fda8  0x696c5603
0x22fd80:   0x00e20e40
(gdb)
0x00fa002f in ?? ()
8: x/i $eip
= 0xfa002f:mov$0xfa0008,%eax
7: x/xw $ecx  0x22fd78: 0x0022fda8
6: x/5xw $esp
0x22fd70:   0x696c5603  0x00aa7e00  0x0022fda8  0x696c5603
0x22fd80:   0x00e20e40
(gdb)
0x00fa0034 in ?? ()
8: x/i $eip
= 0xfa0034:call   0x69ce18e0 ffi_closure_raw_SYSV
7: x/xw $ecx  0x22fd78: 0x0022fda8
6: x/5xw $esp
0x22fd70:   0x696c5603  0x00aa7e00  0x0022fda8  0x696c5603
0x22fd80:   0x00e20e40

Kai Tietz, could you explain why return address (0x696c5603) is at top of the
stack? (although it is not first argument for the method? i suspect that you
should have corrected this.)
top of the stack must be 0x00aa7e00, not 0x696c5603.

so it is turned out that thiscall trampoline code was invalid.


[Bug libffi/52221] [libffi] r184021 needs to be fixed.

2012-02-13 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

--- Comment #5 from gee jojelino at gmail dot com 2012-02-13 18:35:18 UTC ---
Created attachment 26653
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26653
proposed patch

sorry for pr51500 attachment 26584, it was very bad idea.
thiscall trampoline uses call insn so it needed to create related stub
function.
i was releutant to create stub function in win32.S and it resulted in disaster.
in this patch these problem is considered.

and thiscall trampoline subs esp and then call fun, this is bad idea. it works
only when #of argument is 1.(passed only this)

already i encountered the problem that are described above.


`/tmp/gcc/i686-pc-mingw32/libjava/.libs/libgcj-13.dll' has changed; re-reading
symbols.
Starting program: /tmp/gcc/i686-pc-mingw32/libjava/testsuite/ExtraClassLoader
[New Thread 5276.0x19bc]

Breakpoint 5, java::lang::Class::newInstance (this=0xe20e40)
at ../.././libjava/java/lang/natClass.cc:667
667   ((void (__thiscall *) (jobject)) meth-ncode) (r);
(gdb)
Continuing.

Program received signal SIGSEGV, Segmentation fault.
_Jv_GetStringUTFLength (string=0x69e61688)
at ../.././libjava/java/lang/natString.cc:324
324   jchar ch = *ptr++;

in this case string parameter is wrong.


[Bug boehm-gc/52217] New: [boehm-gc] revision 184100 causes segmentation fault in mingw32

2012-02-12 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52217

 Bug #: 52217
   Summary: [boehm-gc] revision 184100 causes segmentation fault
in mingw32
Classification: Unclassified
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: boehm-gc
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com


Created attachment 26642
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26642
proposed fix

with gcc built on trunk git-a40d9b7c,  and tried testing ExtraClassLoader and
got segmentation fault with following backtrace
(gdb) bt
#0  0x69cee9b6 in GC_is_black_listed (h=h@entry=0xa4a000, len=len@entry=0x1000)
at ../.././boehm-gc/blacklst.c:242
#1  0x69cecbf2 in GC_allochblk_nth (sz=0x2, kind=0x1, flags=0x0, n=0x6)
at ../.././boehm-gc/allchblk.c:646
#2  0x69ced06c in GC_allochblk (sz=sz@entry=0x2, kind=kind@entry=0x1,
flags=flags@entry=0x0) at ../.././boehm-gc/allchblk.c:561
#3  0x69cf6c93 in GC_new_hblk (sz=sz@entry=0x2, kind=kind@entry=0x1)
at ../.././boehm-gc/new_hblk.c:253
#4  0x69cee57e in GC_allocobj (sz=sz@entry=0x2, kind=kind@entry=0x1)
at ../.././boehm-gc/alloc.c:1078
#5  0x69cf2546 in GC_generic_malloc_inner (lb=0x4, k=0x1)
at ../.././boehm-gc/malloc.c:136
#6  0x69cf2609 in GC_generic_malloc_inner_ignore_off_page (lb=lb@entry=0x4,
k=k@entry=0x1) at ../.././boehm-gc/malloc.c:173
#7  0x69cf0502 in GC_grow_table (table=table@entry=0x6a3b3fa8,
log_size_ptr=log_size_ptr@entry=0x6a029d60)
at ../.././boehm-gc/finalize.c:112
#8  0x69cf09d4 in GC_register_finalizer_inner (obj=obj@entry=0xa47fa0,
fn=fn@entry=0x696d2530 call_finalizer(GC_PTR, GC_PTR),
cd=cd@entry=0x696c9580, ofn=ofn@entry=0x0, ocd=ocd@entry=0x0,
mp=mp@entry=0x69cf0330 GC_null_finalize_mark_proc)
at ../.././boehm-gc/finalize.c:361
#9  0x69cf0bc7 in GC_register_finalizer_no_order (obj=0xa47fa0,
fn=0x696d2530 call_finalizer(GC_PTR, GC_PTR), cd=0x696c9580, ofn=0x0,
ocd=0x0) at ../.././boehm-gc/finalize.c:519
#10 0x696d2df0 in _Jv_RegisterFinalizer (object=0xa47fa0,
meth=0x696c9580 _Jv_FinalizeString(java::lang::Object*))
at ../.././libjava/boehm.cc:421
#11 0x696c987c in _Jv_NewStringUtf8Const (str=0x6a0456b4)
at ../.././libjava/java/lang/natString.cc:312
#12 0x696922b2 in _Jv_Linker::ensure_class_linked (klass=0x69d50180)
at ../.././libjava/link.cc:1761
#13 0x69690d04 in _Jv_Linker::wait_for_state (klass=0x69d50180, state=0x9)
at ../.././libjava/link.cc:2076
#14 0x696c5407 in java::lang::Class::initializeClass (this=0x69d50180)
at ../.././libjava/java/lang/natClass.cc:728
#15 0x696c54fc in _Jv_InitClass (klass=optimized out)
at ../.././libjava/java/lang/Class.h:742
#16 java::lang::Class::initializeClass (this=0x69d503c0)
at ../.././libjava/java/lang/natClass.cc:769
#17 0x69682879 in _Jv_InitClass (klass=0x69d503c0)
at ../.././libjava/java/lang/Class.h:742
#18 _Jv_AllocObjectNoFinalizer (klass=klass@entry=0x69d503c0)
at ../.././libjava/prims.cc:585
#19 0x696827b7 in _Jv_AllocObject (klass=0x69d503c0)
at ../.././libjava/prims.cc:596
#20 0x696c671b in _Jv_NewClass (name=0xa47fc0, superclass=0x69d50180,
loader=0x0) at ../.././libjava/java/lang/natClassLoader.cc:572
#21 0x696c683d in _Jv_NewArrayClass (element=0x69d503c0, loader=0x0,
array_vtable=0x0) at ../.././libjava/java/lang/natClassLoader.cc:642
#22 0x69682ffd in _Jv_GetArrayClass (loader=0x0, klass=optimized out)
at ../.././libjava/java/lang/Class.h:754
#23 _Jv_FindClassFromSignature (sig=optimized out,
sig@entry=0x6a045dd6 [Ljava.lang.Class;, loader=loader@entry=0x0,
endp=endp@entry=0x0) at ../.././libjava/prims.cc:923
#24 0x6968302f in _Jv_FindClassFromSignatureNoException (
sig=0x6a045dd6 [Ljava.lang.Class;, loader=0x0, endp=0x0)
at ../.././libjava/prims.cc:936
#25 0x696920b7 in _Jv_Linker::resolve_pool_entry (
klass=klass@entry=0x69d503c0, index=index@entry=0x16, lazy=lazy@entry=0x1)
at ../.././libjava/link.cc:438
#26 0x696923dd in _Jv_Linker::ensure_class_linked (klass=0x69d503c0)
at ../.././libjava/link.cc:1748
#27 0x69690d04 in _Jv_Linker::wait_for_state (klass=0x69d503c0, state=0x9)
at ../.././libjava/link.cc:2076
#28 0x696c5407 in java::lang::Class::initializeClass (this=0x69d503c0)
at ../.././libjava/java/lang/natClass.cc:728
#29 0x69682879 in _Jv_InitClass (klass=0x69d503c0)
at ../.././libjava/java/lang/Class.h:742
#30 _Jv_AllocObjectNoFinalizer (klass=klass@entry=0x69d503c0)
at ../.././libjava/prims.cc:585
#31 0x696827b7 in _Jv_AllocObject (klass=0x69d503c0)
at ../.././libjava/prims.cc:596
#32 0x696c671b in _Jv_NewClass (name=0xa47fe0, superclass=0x69d50180,
loader=0x0) at ../.././libjava/java/lang/natClassLoader.cc:572
#33 0x696c683d in _Jv_NewArrayClass (element=0x69d50180, loader=0x0,
array_vtable=0x0) at ../.././libjava/java/lang/natClassLoader.cc:642

[Bug libffi/52221] New: [libffi] r184021 needs to be fixed.

2012-02-12 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

 Bug #: 52221
   Summary: [libffi] r184021 needs to be fixed.
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libffi
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-mingw32
 Build: i686-pc-cygwin


tried libjava with r184135, but got SIGSEGV because of following.

in libffi/src/x86/ffi.c,
#define FFI_INIT_TRAMPOLINE_THISCALL(TRAMP,FUN,CTX,SIZE) \
{ unsigned char *__tramp = (unsigned char*)(TRAMP); \
   unsigned int  __fun = (unsigned int)(FUN); \
   unsigned int  __ctx = (unsigned int)(CTX); \
   unsigned int  __dis = __fun - (__ctx + 22);  \
 
  49

and fixing above didn't succeed ExtraClassLoader testcase


Starting program: /tmp/gcc/i686-pc-mingw32/libjava/testsuite/ExtraClassLoader
[New Thread 412.0xa24]
[New Thread 412.0x1398]

Program received signal SIGSEGV, Segmentation fault.
0x696c8140 in java::lang::Class* java::lang::Object::getClass() ()
   from /cygdrive/d/cygwin/tmp/gcc/i686-pc-mingw32/libjava/.libs/libgcj-13.dll
(gdb) i r
eax0xe  0xe
ecx0x8df4458b   0x8df4458b
edx0x22f9c4 0x22f9c4
ebx0x1  0x1
esp0x22f9c4 0x22f9c4
ebp0x22f9c8 0x22f9c8
esi0xc01b24 0xc01b24
edi0xc01b3c 0xc01b3c
eip0x696c8140   0x696c8140 java::lang::Class*
java::lang::Object::getClass()
eflags 0x10202  [ IF RF ]
cs 0x1b 0x1b
ss 0x23 0x23
ds 0x23 0x23
es 0x23 0x23
fs 0x3b 0x3b
gs 0x0  0x0
(gdb) set height 1000
(gdb) bt
#0  0x696c8140 in java::lang::Class* java::lang::Object::getClass() ()
   from /cygdrive/d/cygwin/tmp/gcc/i686-pc-mingw32/libjava/.libs/libgcj-13.dll
#1  0x69ce1735 in ffi_call_win32 () at ../.././libffi/src/x86/win32.S:464
#2  0x69ce1608 in ffi_raw_call (cif=0xc01b24,
fn=0x696c8140 java::lang::Class* java::lang::Object::getClass(),
rvalue=0x22fbe8, fake_avalue=0x22fa54) at ../.././libffi/src/x86/ffi.c:832
#3  0x6969bd0e in _Jv_InterpMethod::run (retp=0x22fd50, args=0x22fd70,
meth=0xac9e10) at ../.././libjava/interpret-run.cc:611
#4  0x69ce1905 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:749
#5  0x00fa0039 in ?? ()
#6  0x004087bf in ExtraClassLoader.main(java.lang.String[])void ()
at ExtraClassLoader.java:9
#7  0x696bd642 in gnu::java::lang::MainThread::call_main (this=0xc0ef60)
at ../.././libjava/gnu/java/lang/natMainThread.cc:54
#8  0x696fa4d6 in gnu.java.lang.MainThread.run()void (this=@c0ef60)
at /tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#9  0x696cc062 in _Jv_ThreadRun (thread=0xc0ef60)
at ../.././libjava/java/lang/natThread.cc:335
#10 0x69683f5d in _Jv_RunMain (vm_args=0x0, klass=klass@entry=0x40a160,
name=name@entry=0x0, argc=argc@entry=0x1, argv=argv@entry=0x3d8958,
is_jar=is_jar@entry=0x0) at ../.././libjava/prims.cc:1795
#11 0x69684156 in _Jv_RunMain (klass=klass@entry=0x40a160,
name=name@entry=0x0, argc=argc@entry=0x1, argv=argv@entry=0x3d8958,
is_jar=is_jar@entry=0x0) at ../.././libjava/prims.cc:1820
#12 0x696841bf in JvRunMain (klass=0x40a160, argc=0x1, argv=0x3d8958)
at ../.././libjava/prims.cc:1826
#13 0x00401402 in _fu0___Jv_Compiler_Properties () at /tmp/cckDh2w0.i:11
#14 0x004010fd in __mingw_CRTStartup () at ../../.././winsup/mingw/crt1.c:244
#15 0x0408 in ?? ()
#16 0x7ffd7000 in ?? ()
#17 0x in ?? ()
Warning: the current language does not match this frame.
(gdb)

it seems that thiscall trampoline works correctly.


0x00fa0022 in ?? ()
4: $ebx = 0x696c5603
3: $ecx = 0x696c5603
2: $eax = 0xfa0008
1: x/i $eip
= 0xfa0022:call   0x69ce18be ffi_closure_SYSV+190
(gdb)
0x69ce18be in ffi_closure_SYSV () at ../.././libffi/src/x86/win32.S:715
715 ret
4: $ebx = 0x696c5603
3: $ecx = 0x696c5603
2: $eax = 0xfa0008
1: x/i $eip
= 0x69ce18be ffi_closure_SYSV+190:
jbe0x69ce18c0 ffi_closure_raw_SYSV
(gdb) si
ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:734
734 pushl   %ebp
4: $ebx = 0x696c5603
3: $ecx = 0x696c5603
2: $eax = 0xfa0008
1: x/i $eip
= 0x69ce18c0 ffi_closure_raw_SYSV:   push   %ebp
(gdb) b ffi_call_win32
Breakpoint 4 at 0x69ce16e3: file ../.././libffi/src/x86/win32.S, line 433.
(gdb) c
Continuing.

Breakpoint 4, ffi_call_win32 () at ../.././libffi/src/x86/win32.S:433
433 movl  20(%ebp),%ecx 
4: $ebx = 0x1
3: $ecx = 0xe
2: $eax = 0x22fa0c
1: x/i $eip
= 0x69ce16e3 ffi_call_win32+3:   mov0x14(%ebp),%ecx
(gdb) bt
#0  ffi_call_win32 () at ../.././libffi/src/x86/win32.S:433
#1  0x69ce15e8 in 

[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-02-06 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

gee jojelino at gmail dot com changed:

   What|Removed |Added

  Attachment #26574|0   |1
is obsolete||

--- Comment #24 from gee jojelino at gmail dot com 2012-02-06 16:18:44 UTC ---
Created attachment 26584
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26584
proposed patch for workaround TestEarlyGC failure

fixed wrong assumption to the code. but got following in ExtraClassLoader test
Starting program: /tmp/gcc/i686-pc-mingw32/libjava/.libs/gij -cp
D:\\cygwin\\tmp\\gcc\\libjava\\testsuite\\libjava.lang\\ExtraClassLoader.jar
ExtraClassLoader
[New Thread 5268.0x140c]
[New Thread 5268.0xd84]
Exception in thread main java.lang.SecurityException: attempt to use
uninitialized class loader
   at
java.lang.Throwable.init(/tmp/gcc/libjava/classpath/java/lang/Throwable.java:161)
   at
java.lang.ClassLoader.checkInitialized(/tmp/gcc/libjava/classpath/java/lang/Exception.java:78)
   at
java.lang.ClassLoader.findLoadedClass(/tmp/gcc/libjava/java/lang/ClassLoader.java:694)
   at
java.lang.Class.forName(/tmp/gcc/i686-pc-mingw32/libjava/../.././libjava/java/lang/natClass.cc:105)
   at ExtraClassLoader.main(ExtraClassLoader.java:8)
[Inferior 1 (process 5268) exited with code 01]
(gdb)


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-02-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #20 from gee jojelino at gmail dot com 2012-02-04 11:32:07 UTC ---
Created attachment 26573
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26573
proposed patch for workaround Throw_2 failure

it was call %ebx for sig_pat. and Throw_2 test passed with this patch.


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-02-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #21 from gee jojelino at gmail dot com 2012-02-05 01:22:36 UTC ---
Created attachment 26574
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26574
proposed patch for workaround TestEarlyGC failure

it deals raw closure stub with thiscall calling convention. TestEarlyGC test
passed with this patch.


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-02-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #22 from gee jojelino at gmail dot com 2012-02-05 02:11:12 UTC ---
Breakpoint 9, _Unwind_RaiseException (exc=0xa92820)
at ../.././libgcc/unwind.inc:88
88uw_init_context (this_context);
(gdb) bt
#0  _Unwind_RaiseException (exc=0xa92820) at ../.././libgcc/unwind.inc:88
#1  0x6968e0a0 in _Jv_Throw (value=0xbfeb40)
at ../.././libjava/exception.cc:132
#2  0x6969fc07 in _Jv_InterpMethod::run (retp=0x22fe08, args=0x22fe28,
meth=0xbf8d80) at ../.././libjava/interpret-run.cc:2695
#3  0x69ce1125 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:723
#4  0x00f90015 in ?? ()
#5  0x696fa456 in gnu.java.lang.MainThread.run()void (this=0xbfdf60)
at /tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#6  0x696cbfd2 in _Jv_ThreadRun (thread=0xbfdf60)
at ../.././libjava/java/lang/natThread.cc:335
#7  0x69683f5d in _Jv_RunMain (vm_args=0x22ff30, klass=0x0,
name=0x3d883a ExtraClassLoader, argc=0x1, argv=0x3d88d4, is_jar=0x0)
at ../.././libjava/prims.cc:1795
#8  0x66bc6bed in main (argc=0x4, argv=0x3d88c8) at ../.././libjava/gij.cc:333
#9  0x004010fd in __mingw_CRTStartup () at ../../.././winsup/mingw/crt1.c:244
#10 0x0408 in ?? ()
#11 0x7ffdc000 in ?? ()
#12 0x in ?? ()
(gdb) c
Continuing.

Breakpoint 10, uw_frame_state_for (context=context@entry=0x22f948,
fs=fs@entry=0x22f9c8) at ../.././libgcc/unwind-dw2.c:1187
1187  return MD_FALLBACK_FRAME_STATE_FOR (context, fs);
(gdb) bt
#0  uw_frame_state_for (context=context@entry=0x22f948, fs=fs@entry=0x22f9c8)
at ../.././libgcc/unwind-dw2.c:1187
#1  0x6e9547f8 in _Unwind_RaiseException (exc=0xa92820)
at ../.././libgcc/unwind.inc:99
#2  0x6968e0a0 in _Jv_Throw (value=0xbfeb40)
at ../.././libjava/exception.cc:132
#3  0x6969fc07 in _Jv_InterpMethod::run (retp=0x22fe08, args=0x22fe28,
meth=0xbf8d80) at ../.././libjava/interpret-run.cc:2695
#4  0x69ce1125 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:723
#5  0x00f90015 in ?? ()
#6  0x696fa456 in gnu.java.lang.MainThread.run()void (this=0xbfdf60)
at /tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#7  0x696cbfd2 in _Jv_ThreadRun (thread=0xbfdf60)
at ../.././libjava/java/lang/natThread.cc:335
#8  0x69683f5d in _Jv_RunMain (vm_args=0x22ff30, klass=0x0,
name=0x3d883a ExtraClassLoader, argc=0x1, argv=0x3d88d4, is_jar=0x0)
at ../.././libjava/prims.cc:1795
#9  0x66bc6bed in main (argc=0x4, argv=0x3d88c8) at ../.././libjava/gij.cc:333
#10 0x004010fd in __mingw_CRTStartup () at ../../.././winsup/mingw/crt1.c:244
#11 0x0408 in ?? ()
#12 0x7ffdc000 in ?? ()
#13 0x in ?? ()
(gdb) si
0x6e953cbd in i386_w32_fallback_frame_state (fs=0x22f9c8,
context=optimized out) at ./md-unwind-support.h:134
134   if (SIG_PAT1 || SIG_PAT2 || SIG_SEH1 || SIG_SEH2)
(gdb) p context
$1 = optimized out
(gdb) up
#1  uw_frame_state_for (context=context@entry=0x22f948, fs=fs@entry=0x22f9c8)
at ../.././libgcc/unwind-dw2.c:1187
1187  return MD_FALLBACK_FRAME_STATE_FOR (context, fs);
(gdb) p context
$2 = (struct _Unwind_Context *) 0x22f948
(gdb) p *context
$3 = {
  reg = {0x22fa8c, 0x0, 0x22fa90, 0x22fde4, 0x0, 0x22fe20, 0x22fe1c, 0x22fdec,
0x22fe24, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
  cfa = 0x22fe28,
  ra = 0xf90015,
  lsda = 0x0,
  bases = {
tbase = 0x0,
dbase = 0x0,
func = 0x69ce1100
  },
  flags = 0x4000,
  version = 0x0,
  args_size = 0x0,
  by_value = 
}
(gdb) bt
#0  0x6e953cbd in i386_w32_fallback_frame_state (fs=0x22f9c8,
context=optimized out) at ./md-unwind-support.h:134
#1  uw_frame_state_for (context=context@entry=0x22f948, fs=fs@entry=0x22f9c8)
at ../.././libgcc/unwind-dw2.c:1187
#2  0x6e9547f8 in _Unwind_RaiseException (exc=0xa92820)
at ../.././libgcc/unwind.inc:99
#3  0x6968e0a0 in _Jv_Throw (value=0xbfeb40)
at ../.././libjava/exception.cc:132
#4  0x6969fc07 in _Jv_InterpMethod::run (retp=0x22fe08, args=0x22fe28,
meth=0xbf8d80) at ../.././libjava/interpret-run.cc:2695
#5  0x69ce1125 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:723
#6  0x00f90015 in ?? ()
#7  0x696fa456 in gnu.java.lang.MainThread.run()void (this=0xbfdf60)
at /tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#8  0x696cbfd2 in _Jv_ThreadRun (thread=0xbfdf60)
at ../.././libjava/java/lang/natThread.cc:335
#9  0x69683f5d in _Jv_RunMain (vm_args=0x22ff30, klass=0x0,
name=0x3d883a ExtraClassLoader, argc=0x1, argv=0x3d88d4, is_jar=0x0)
at ../.././libjava/prims.cc:1795
#10 0x66bc6bed in main (argc=0x4, argv=0x3d88c8) at ../.././libjava/gij.cc:333
#11 0x004010fd in __mingw_CRTStartup () at ../../.././winsup/mingw/crt1.c:244
#12 0x0408 in ?? ()
#13 0x7ffdc000 in ?? ()
---Type return to continue, or q return to quit---
#14 0x in ?? ()

attachment 26573 didn't solve case where exception 
does we need to feed dwarf2 frame info into closure trampoline in win32?


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-02-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #23 from gee jojelino at gmail dot com 2012-02-05 02:43:41 UTC ---
(In reply to comment #22)
 Breakpoint 9, _Unwind_RaiseException (exc=0xa92820)
 at ../.././libgcc/unwind.inc:88
 88uw_init_context (this_context);
 (gdb) bt
 #0  _Unwind_RaiseException (exc=0xa92820) at ../.././libgcc/unwind.inc:88
 #1  0x6968e0a0 in _Jv_Throw (value=0xbfeb40)
 at ../.././libjava/exception.cc:132
 #2  0x6969fc07 in _Jv_InterpMethod::run (retp=0x22fe08, args=0x22fe28,
 meth=0xbf8d80) at ../.././libjava/interpret-run.cc:2695

the message of the exception was 'attempt to use uninitialized class loader'


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-01-31 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

gee jojelino at gmail dot com changed:

   What|Removed |Added

 Depends on||51901

--- Comment #18 from gee jojelino at gmail dot com 2012-02-01 05:20:53 UTC ---
http://gcc.gnu.org/bugzilla/attachment.cgi?id=26537
Result after applied above patch
Tested only of the following

ExtraClassLoader
md5test
pr21785
pr26990
ProxyTest
shatest
StackTrace2
TestProxy
Thread_Sleep
Thread_Sleep_2
Throw_2

Test Run By Administrator on Wed Feb  1 14:09:46 2012
Target is i686-pc-mingw32
Host   is i686-pc-mingw32
Build  is i686-pc-cygwin

=== libjava tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /tmp/gcc/libjava/testsuite/config/default.exp as tool-and-target-specific
interface file.
WARNING: Assuming target board is the local machine (which is probably wrong).
You may need to set your DEJAGNU environment variable.
Running /tmp/gcc/libjava/testsuite/libjava.cni/cni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jar/jar.exp ...
FAIL: TestClosureGC output
FAIL: libjava.jar/TestClosureGC.jar execution - gij test
FAIL: simple output
FAIL: libjava.jar/simple.jar execution - gij test
Running /tmp/gcc/libjava/testsuite/libjava.jni/jni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti-interp.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.lang/lang.exp ...
FAIL: ExtraClassLoader execution - source compiled test
FAIL: ExtraClassLoader -findirect-dispatch execution - source compiled test
FAIL: ExtraClassLoader -O3 execution - source compiled test
FAIL: ExtraClassLoader -O3 -findirect-dispatch execution - source compiled test
FAIL: ProxyTest -O3 execution - source compiled test
FAIL: ProxyTest -O3 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 output - source compiled test
FAIL: StackTrace2 -findirect-dispatch output - source compiled test
FAIL: StackTrace2 -O3 output - source compiled test
FAIL: StackTrace2 -O3 -findirect-dispatch output - source compiled test
FAIL: TestProxy -O3 execution - source compiled test
FAIL: TestProxy -O3 -findirect-dispatch execution - source compiled test
FAIL: Thread_Sleep -O3 output - source compiled test
FAIL: Thread_Sleep -O3 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep_2 output - source compiled test
FAIL: Thread_Sleep_2 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep_2 -O3 output - source compiled test
FAIL: Thread_Sleep_2 -O3 -findirect-dispatch output - source compiled test
FAIL: Throw_2 execution - source compiled test
FAIL: Throw_2 -findirect-dispatch execution - source compiled test
FAIL: Throw_2 -O3 execution - source compiled test
FAIL: Throw_2 -O3 -findirect-dispatch execution - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.loader/loader.exp ...
FAIL: TestEarlyGC execution - source compiled test
FAIL: TestMultiple output - source compiled test
FAIL: TestParent output - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.mauve/mauve.exp ...
sh: /configure: No such file or directory
FAIL: Mauve configure
Running /tmp/gcc/libjava/testsuite/libjava.special/special.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.verify/verify.exp ...

=== libjava Summary ===

# of expected passes109
# of unexpected failures30
# of untested testcases 15


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-01-30 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #11 from gee jojelino at gmail dot com 2012-01-30 15:10:48 UTC ---
Comment on attachment 26513
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26513
proposed patch for handling thiscall r3

@@ -505,6 +508,23 @@ ffi_prep_incoming_args_SYSV(char *stack, void **rvalue,
...
...

+   *(unsigned int*)  __tramp[24] = 0x8304244c; /* xchgl 4(%esp),%ecx*/ \
+   *(unsigned short*)  __tramp[28] = 0x04c4; /* add$0x4,%esp  */ \
+   *(unsigned char*)/* __not short*__ */  __tramp[30] = 0xc3; /* ret  */ \
+ }

 #define FFI_INIT_TRAMPOLINE_STDCALL(TRAMP,FUN,CTX,SIZE)  \
 { unsigned char *__tramp = (unsigned char*)(TRAMP); \


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-01-29 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

gee jojelino at gmail dot com changed:

   What|Removed |Added

  Attachment #26338|0   |1
is obsolete||

--- Comment #8 from gee jojelino at gmail dot com 2012-01-29 10:45:50 UTC ---
Created attachment 26499
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26499
proposed patch for handling thiscall r2

(In reply to comment #6)
fixed the problem in handling closure of java method/function.
but there is another problem awaits for this fix.
i'll set another bug report.


[Bug rtl-optimization/52051] New: [4.7 regression] invalid stack-cleanup occured with -O flag

2012-01-29 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52051

 Bug #: 52051
   Summary: [4.7 regression] invalid stack-cleanup occured with -O
flag
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-mingw32
 Build: i686-pc-cygwin


Created attachment 26511
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26511
generated dump

testcase is libjava/testsuite/libjava.lang/TestProxy.jar
$ /tmp/gcc/host-i686-pc-cygwin/gcc/gcj -B/tmp/gcc/i686-pc-mingw32/libjava/
-B/tmp/gcc/host-i686-pc-cygwin/gcc/ -L/tmp/gcc/i686-pc-mingw32/winsup/mingw
-L/tmp/gcc/i686-pc-mingw32/winsup/w32api/lib -isystem
/tmp/gcc/winsup/mingw/include -isystem /tmp/gcc/winsup/w32api/include
-B/usr/i686-pc-mingw32/bin/ -B/usr/i686-pc-mingw32/lib/ -isystem
/usr/i686-pc-mingw32/include -isystem /usr/i686-pc-mingw32/sys-include
--sysroot=/usr/i686-pc-mingw32/sys-root -g -fdump-tree-gimple -fdump-rtl-expand
--main=TestProxy /tmp/gcc/libjava/testsuite/libjava.lang/TestProxy.jar
-oTestProxy -save-temps -dP -fdump-tree-optimized -O3 -fdump-passes
-fdump-rtl-all -v
Reading specs from /tmp/gcc/host-i686-pc-cygwin/gcc/specs
Reading specs from /tmp/gcc/i686-pc-mingw32/libjava/libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
COLLECT_GCC=/tmp/gcc/host-i686-pc-cygwin/gcc/gcj
COLLECT_LTO_WRAPPER=/tmp/gcc/host-i686-pc-cygwin/gcc/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ./configure -C --prefix=/usr --enable-win32-registry
--enable-java-awt=qt --enable-threads=win32 --with-win32-nlsapi=unicode
--enable-tls --disable-bootstrap --target=i686-pc-mingw32 --enable-shared
--enable-load-library --enable-interpreter --disable-sjlj-exceptions
--enable-gomp --with-ecj-jar=/tmp/gcc/org.eclipse.jdt.core_3.7.0.v_B35.jar
--with-antlr-jar=/tmp/gcc/antlr-3.3-complete.jar
--with-libiconv-prefix=/usr/i686-pc-mingw32 --with-x=no
--enable-cloog-backend=isl --with-sysroot=/usr/i686-pc-mingw32/sys-root
--with-build-sysroot=/usr/i686-pc-mingw32/sys-root LTLDFLAGS=-no-undefined
lt_cv_deplibs_check_method=pass_all target_alias=i686-pc-mingw32
--enable-languages=c,c++,java,lto --no-create --no-recursion
Thread model: win32
gcc version 4.7.0 20120128 (experimental) (GCC)

confirmed following
without -O flag : worked
-O,-O1 : segmentation fault(due to invalid stack cleanup. needed one more pop.)


[Bug rtl-optimization/52051] [4.7 regression] invalid stack-cleanup occured with -O flag

2012-01-29 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52051

--- Comment #1 from gee jojelino at gmail dot com 2012-01-30 04:17:43 UTC ---
in dump.zip,
filename with prefix 0 : without -O flag
with prefix 1 : with -O flag.


[Bug libgcj/51901] java.security.Security.getProperty throws ExceptionInInitializerError

2012-01-29 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51901

--- Comment #3 from gee jojelino at gmail dot com 2012-01-30 07:14:42 UTC ---
Created attachment 26512
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26512
proposed patch for handling thiscall r3

FAIL: TestClosureGC output
FAIL: libjava.jar/TestClosureGC.jar execution - gij test
FAIL: simple output
FAIL: libjava.jar/simple.jar execution - gij test
Running /tmp/gcc/libjava/testsuite/libjava.jni/jni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti-interp.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.lang/lang.exp ...
FAIL: ExtraClassLoader execution - source compiled test
FAIL: ExtraClassLoader -findirect-dispatch execution - source compiled test
FAIL: ExtraClassLoader -O3 execution - source compiled test
FAIL: ExtraClassLoader -O3 -findirect-dispatch execution - source compiled test
FAIL: ProxyTest -O3 execution - source compiled test
FAIL: ProxyTest -O3 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 output - source compiled test
FAIL: StackTrace2 -findirect-dispatch output - source compiled test
FAIL: StackTrace2 -O3 output - source compiled test
FAIL: StackTrace2 -O3 -findirect-dispatch output - source compiled test
FAIL: TestProxy -O3 execution - source compiled test
FAIL: TestProxy -O3 -findirect-dispatch execution - source compiled test
FAIL: Thread_Sleep output - source compiled test
FAIL: Thread_Sleep -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep -O3 output - source compiled test
FAIL: Thread_Sleep -O3 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep_2 output - source compiled test
FAIL: Thread_Sleep_2 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep_2 -O3 output - source compiled test
FAIL: Thread_Sleep_2 -O3 -findirect-dispatch output - source compiled test
FAIL: Throw_2 execution - source compiled test
FAIL: Throw_2 -findirect-dispatch execution - source compiled test
FAIL: Throw_2 -O3 execution - source compiled test
FAIL: Throw_2 -O3 -findirect-dispatch execution - source compiled test
FAIL: md5test execution - source compiled test
FAIL: md5test -findirect-dispatch execution - source compiled test
FAIL: md5test -O3 execution - source compiled test
FAIL: md5test -O3 -findirect-dispatch execution - source compiled test
FAIL: pr21785 execution - source compiled test
FAIL: pr21785 -findirect-dispatch execution - source compiled test
FAIL: pr21785 -O3 execution - source compiled test
FAIL: pr21785 -O3 -findirect-dispatch execution - source compiled test
FAIL: pr26990 execution - source compiled test
FAIL: pr26990 -findirect-dispatch execution - source compiled test
FAIL: pr26990 -O3 execution - source compiled test
FAIL: pr26990 -O3 -findirect-dispatch execution - source compiled test
FAIL: shatest execution - source compiled test
FAIL: shatest -findirect-dispatch execution - source compiled test
FAIL: shatest -O3 execution - source compiled test
FAIL: shatest -O3 -findirect-dispatch execution - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.loader/loader.exp ...
FAIL: TestEarlyGC execution - source compiled test
FAIL: TestMultiple output - source compiled test
FAIL: TestParent output - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.mauve/mauve.exp ...
sh: /configure: No such file or directory
FAIL: Mauve configure
Running /tmp/gcc/libjava/testsuite/libjava.special/special.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.verify/verify.exp ...

=== libjava Summary ===

# of expected passes2331
# of unexpected failures48
# of untested testcases 31


[Bug libgcj/51901] java.security.Security.getProperty throws ExceptionInInitializerError

2012-01-29 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51901

--- Comment #4 from gee jojelino at gmail dot com 2012-01-30 07:15:28 UTC ---
Comment on attachment 26512
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26512
proposed patch for handling thiscall r3

invalid attachment. please ignore it.


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-01-29 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

gee jojelino at gmail dot com changed:

   What|Removed |Added

  Attachment #26499|0   |1
is obsolete||

--- Comment #9 from gee jojelino at gmail dot com 2012-01-30 07:23:02 UTC ---
Created attachment 26513
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26513
proposed patch for handling thiscall r3

Target is i686-pc-mingw32
Host   is i686-pc-mingw32
Build  is i686-pc-cygwin

=== libjava tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /tmp/gcc/libjava/testsuite/config/default.exp as tool-and-target-specific
interface file.
WARNING: Assuming target board is the local machine (which is probably wrong).
You may need to set your DEJAGNU environment variable.
Running /tmp/gcc/libjava/testsuite/libjava.cni/cni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jar/jar.exp ...
FAIL: TestClosureGC output
FAIL: libjava.jar/TestClosureGC.jar execution - gij test
FAIL: simple output
FAIL: libjava.jar/simple.jar execution - gij test
Running /tmp/gcc/libjava/testsuite/libjava.jni/jni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti-interp.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.lang/lang.exp ...
FAIL: ExtraClassLoader execution - source compiled test
FAIL: ExtraClassLoader -findirect-dispatch execution - source compiled test
FAIL: ExtraClassLoader -O3 execution - source compiled test
FAIL: ExtraClassLoader -O3 -findirect-dispatch execution - source compiled test
FAIL: ProxyTest -O3 execution - source compiled test
FAIL: ProxyTest -O3 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 output - source compiled test
FAIL: StackTrace2 -findirect-dispatch output - source compiled test
FAIL: StackTrace2 -O3 output - source compiled test
FAIL: StackTrace2 -O3 -findirect-dispatch output - source compiled test
FAIL: TestProxy -O3 execution - source compiled test
FAIL: TestProxy -O3 -findirect-dispatch execution - source compiled test
FAIL: Thread_Sleep output - source compiled test
FAIL: Thread_Sleep -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep -O3 output - source compiled test
FAIL: Thread_Sleep -O3 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep_2 output - source compiled test
FAIL: Thread_Sleep_2 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep_2 -O3 output - source compiled test
FAIL: Thread_Sleep_2 -O3 -findirect-dispatch output - source compiled test
FAIL: Throw_2 execution - source compiled test
FAIL: Throw_2 -findirect-dispatch execution - source compiled test
FAIL: Throw_2 -O3 execution - source compiled test
FAIL: Throw_2 -O3 -findirect-dispatch execution - source compiled test
FAIL: md5test execution - source compiled test
FAIL: md5test -findirect-dispatch execution - source compiled test
FAIL: md5test -O3 execution - source compiled test
FAIL: md5test -O3 -findirect-dispatch execution - source compiled test
FAIL: pr21785 execution - source compiled test
FAIL: pr21785 -findirect-dispatch execution - source compiled test
FAIL: pr21785 -O3 execution - source compiled test
FAIL: pr21785 -O3 -findirect-dispatch execution - source compiled test
FAIL: pr26990 execution - source compiled test
FAIL: pr26990 -findirect-dispatch execution - source compiled test
FAIL: pr26990 -O3 execution - source compiled test
FAIL: pr26990 -O3 -findirect-dispatch execution - source compiled test
FAIL: shatest execution - source compiled test
FAIL: shatest -findirect-dispatch execution - source compiled test
FAIL: shatest -O3 execution - source compiled test
FAIL: shatest -O3 -findirect-dispatch execution - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.loader/loader.exp ...
FAIL: TestEarlyGC execution - source compiled test
FAIL: TestMultiple output - source compiled test
FAIL: TestParent output - source compiled test
Running /tmp/gcc/libjava/testsuite/libjava.mauve/mauve.exp ...
sh: /configure: No such file or directory
FAIL: Mauve configure
Running /tmp/gcc/libjava/testsuite/libjava.special/special.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.verify/verify.exp ...

=== libjava Summary ===

# of expected passes2331
# of unexpected failures48
# of untested testcases 31


[Bug libgcj/51901] New: [4.7 regression] java.security.Security.getProperty throws ExceptionInInitializerError

2012-01-19 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51901

 Bug #: 51901
   Summary: [4.7 regression] java.security.Security.getProperty
throws ExceptionInInitializerError
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcj
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-mingw32
 Build: i686-pc-cygwin


system property 'java.security.manager' is not defined. so ClassLoader doesn't
initializes SecurityManager.

$ ./gcj-dbtool.exe -n classmap.db
Exception in thread main java.lang.ExceptionInInitializerError
   at
java.lang.Class.initializeClass(/tmp/gcc/i686-pc-mingw32/libjava/../.././libjava/java/lang/natClass.cc:803)
   at
java.security.Security.getProperty(/tmp/gcc/libjava/classpath/java/security/Security.java:366)
   at
java.net.ResolverCache.getTTL(/tmp/gcc/libjava/classpath/java/net/ResolverCache.java:90)
   at
java.net.ResolverCache.clinit(/tmp/gcc/libjava/classpath/java/net/ResolverCache.java:77)
   at
java.lang.Class.initializeClass(/tmp/gcc/i686-pc-mingw32/libjava/../.././libjava/java/lang/natClass.cc:791)
   at
java.net.ResolverCache.getHostByAddr(/tmp/gcc/libjava/classpath/java/net/ResolverCache.java:118)
   at
java.net.InetAddress.internalGetCanonicalHostName(/tmp/gcc/libjava/classpath/java/net/InetAddress.java:319)
   at
java.net.InetAddress.getCanonicalHostName(/tmp/gcc/libjava/classpath/java/net/InetAddress.java:334)
   at
java.net.InetAddress.getHostName(/tmp/gcc/libjava/classpath/java/net/InetAddress.java:307)
   at
java.net.InetAddress.clinit(/tmp/gcc/libjava/classpath/java/net/InetAddress.java:92)
   at
java.lang.Class.initializeClass(/tmp/gcc/i686-pc-mingw32/libjava/../.././libjava/java/lang/natClass.cc:791)
   at
java.net.InetAddress.getLocalHost(/tmp/gcc/libjava/classpath/java/net/InetAddress.java:612)
   at
gnu.java.net.GetLocalHostAction.run(/tmp/gcc/libjava/classpath/gnu/java/net/GetLocalHostAction.java:57)
   at
gnu.java.net.GetLocalHostAction.run(/tmp/gcc/libjava/classpath/gnu/java/net/GetLocalHostAction.java:1)
   at
java.security.AccessController.doPrivileged(/tmp/gcc/libjava/classpath/java/security/AccessController.java:96)
   at
gnu.java.net.protocol.ftp.FTPURLConnection.connect(/tmp/gcc/libjava/classpath/gnu/java/net/protocol/ftp/FTPURLConnection.java:117)
   at
gnu.java.net.protocol.ftp.FTPURLConnection.getInputStream(/tmp/gcc/libjava/classpath/gnu/java/net/protocol/ftp/FTPURLConnection.java:165)
   at java.net.URL.openStream(/tmp/gcc/libjava/classpath/java/net/URL.java:737)
   at
java.util.logging.LogManager.readConfiguration(/tmp/gcc/libjava/java/util/logging/LogManager.java:507)
   at
java.util.logging.LogManager.initLogManager(/tmp/gcc/libjava/java/util/logging/LogManager.java:203)
   at
java.util.logging.LogManager.getLogManager(/tmp/gcc/libjava/java/util/logging/LogManager.java:168)
   at
java.util.logging.Logger.getLogger(/tmp/gcc/libjava/java/util/logging/Logger.java:276)
   at
java.util.logging.Logger.getLogger(/tmp/gcc/libjava/java/util/logging/Logger.java:224)
   at
java.util.logging.Logger$1.run(/tmp/gcc/libjava/java/util/logging/Logger.java:91)
   at
java.security.AccessController.doPrivileged(/tmp/gcc/libjava/classpath/java/security/AccessController.java:96)
   at
java.util.logging.Logger.clinit(/tmp/gcc/libjava/java/util/logging/Logger.java:86)
   at
java.lang.Class.initializeClass(/tmp/gcc/i686-pc-mingw32/libjava/../.././libjava/java/lang/natClass.cc:791)
   at
java.util.logging.Logger.getLogger(/tmp/gcc/libjava/java/util/logging/Logger.java:224)
   at
java.math.BigInteger.clinit(/tmp/gcc/libjava/classpath/java/math/BigInteger.java:67)
   at
java.lang.Class.initializeClass(/tmp/gcc/i686-pc-mingw32/libjava/../.././libjava/java/lang/natClass.cc:791)
   at
gnu.gcj.runtime.PersistentByteMap.init(/tmp/gcc/libjava/gnu/gcj/runtime/PersistentByteMap.java:181)
   at
gnu.gcj.runtime.PersistentByteMap.emptyPersistentByteMap(/tmp/gcc/libjava/gnu/gcj/runtime/PersistentByteMap.java:231)
   at
gnu.gcj.tools.gcj_dbtool.Main.main(/tmp/gcc/libjava/gnu/gcj/tools/gcj_dbtool/Main.java:82)
Caused by: java.lang.NullPointerException
   at
java.net.ResolverCache.reap(/tmp/gcc/libjava/classpath/java/net/ResolverCache.java:221)
   at
java.net.ResolverCache.get(/tmp/gcc/libjava/classpath/java/net/ResolverCache.java:192)
   at
java.net.ResolverCache.getHostByName(/tmp/gcc/libjava/classpath/java/net/ResolverCache.java:152)
   at
java.net.InetAddress.getAllByName(/tmp/gcc/libjava/classpath/java/net/InetAddress.java:590)
   at
java.net.InetAddress.getByName(/tmp/gcc/libjava/classpath/java/net/InetAddress.java:550)
   at
java.net.InetAddress.getLocalHost(/tmp/gcc/libjava/classpath/java/net/InetAddress.java:615)
   at

[Bug libgcj/51901] [4.7 regression] java.security.Security.getProperty throws ExceptionInInitializerError

2012-01-19 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51901

--- Comment #2 from gee jojelino at gmail dot com 2012-01-19 12:36:35 UTC ---
(In reply to comment #1)
 Why the 4.7 regression tag?  Does it work in 4.6?  I think the amount of 
 libgcj
 changes since 4.6 has been very small...
sorry for 4.7 regression tag. it worked before i apply the patch in pr50057.
this bug opened after i applied the patch. please review pr50057.


[Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null

2012-01-18 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057

--- Comment #4 from gee jojelino at gmail dot com 2012-01-18 13:28:53 UTC ---
Created attachment 26365
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26365
proposed patch

it fixes invalid padding that caused the bug.

#include cstddef
#define DEBUG 1
#include cassert
#include cstdlib
#include cstdio
#include iostream
typedef int* jthrowable,_Unwind_Ptr;
struct alignment_test_struct
{
  char space;
  char end[0] __attribute__((aligned));
};

struct java_exception_header
{
#define MEMBER_AT_FRONT \
  _Unwind_Ptr* landingPad;\
  int handlerSwitchValue;
  MEMBER_AT_FRONT
  struct _pad{MEMBER_AT_FRONT};
#undef MEMBER_AT_FRONT

#define PADORZERO(x,y,z) (sizeof(x)sizeof(y)?sizeof(y)-sizeof(x)+(z):0)
  char
pad[PADORZERO(jthrowable,alignment_test_struct,PADORZERO(_pad,alignment_test_struct,0))];
#undef PADORZERO
  jthrowable __attribute__((packed)) value;


  int* unwindHeader;
};

int main()
{

alignment_test_struct s;
java_exception_header t;
printf(%x\n,sizeof(alignment_test_struct));
int
dat[]={offsetof(java_exception_header,pad),sizeof(java_exception_header::pad)
  
,offsetof(java_exception_header,value),sizeof(java_exception_header::value)
  
,offsetof(java_exception_header,unwindHeader),sizeof(java_exception_header::unwindHeader)};

printf(pad %x %x\n,dat[0],dat[1]);
printf(value %x %x\n,dat[2],dat[3]);
printf(header %x %x\n,dat[4],dat[5]);
assert((dat[2]+dat[3])==dat[4]);
return 0;
}

10
pad 8 14
value 1c 4
header 20 4


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-01-18 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #7 from gee jojelino at gmail dot com 2012-01-18 13:35:15 UTC ---
after applying pr50057 patch
http://gcc.gnu.org/bugzilla/attachment.cgi?id=26365
=== libjava Summary ===

# of expected passes2324
# of unexpected failures51
# of untested testcases 35


[Bug libgcj/50057] [4.7 regression] SIGSEGV in natObject.cc:58

2012-01-17 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057

--- Comment #2 from gee jojelino at gmail dot com 2012-01-18 06:14:17 UTC ---
(In reply to comment #1)
 Hmm, this might be a duplicate for already fixed PR/50053.  Could you please
 check, if you still have this issue here with current trunk version.
 
 Thanks

Starting program: /tmp/gcc/i686-pc-mingw32/libjava/.libs/gij.exe
/tmp/gcc/libjava/testsuite/libjava.lang/foobar.class
[New Thread 9088.0x1188]
[New Thread 9088.0x2760]
[Inferior 1 (process 9088) exited with code 01]
(gdb)
just exists with silent message. without sigsegv


[Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null

2012-01-17 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057

gee jojelino at gmail dot com changed:

   What|Removed |Added

Summary|[4.7 regression] SIGSEGV in |[4.7 regression]
   |natObject.cc:58 |misalignment of
   ||java_exception_header
   ||resulted in throwable to be
   ||null
   Severity|normal  |major

--- Comment #3 from gee jojelino at gmail dot com 2012-01-18 06:20:40 UTC ---
in libjava/exception.cc
  /* The object being thrown.  Compiled code expects this to be immediately
 before the generic exception header.  Which is complicated by the fact
 that _Unwind_Exception is ((aligned)).  */


Starting program: /tmp/gcc/i686-pc-mingw32/libjava/testsuite/.libs/PR218
[New Thread 6064.0x1e4c]

Breakpoint 13, _Jv_Throw (value=0xa9ba08) at ../.././libjava/exception.cc:118
118   _Unwind_RaiseException (xh-unwindHeader);
(gdb) p ((int)xh-unwindHeader-(int)xh-value)
$19 = 0xc

It seems that padding was unsuccessful.

following is version info.

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: ./configure --config-cache --prefix=/usr
--disable-win32-registry --enable-threads=win32
--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl LTLDFLAGS=-no-undefined
lt_cv_deplibs_check_method=pass_all : (reconfigured) ./configure --config-cache
--prefix=/usr --disable-win32-registry --enable-threads=win32
--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl LTLDFLAGS=-no-undefined
lt_cv_deplibs_check_method=pass_all
Thread model: win32
gcc version 4.7.0 20120114 (experimental) (GCC)


[Bug libgcj/50831] [4.7 regression] __gcc_register_frame must throw error when failed to load dll

2012-01-17 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50831

gee jojelino at gmail dot com changed:

   What|Removed |Added

   Severity|normal  |major


[Bug libgcj/50831] [4.7 regression] __gcc_register_frame must throw error when failed to load dll

2012-01-17 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50831

gee jojelino at gmail dot com changed:

   What|Removed |Added

   Severity|major   |normal


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2012-01-16 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #6 from gee jojelino at gmail dot com 2012-01-16 13:17:09 UTC ---
Created attachment 26338
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26338
proposed patch for handling thiscall

adopted from
https://bugzilla.mozilla.org/show_bug.cgi?id=552533
without any permission.

Test Run By Administrator on Mon Jan 16 16:41:35 2012
Target is i686-pc-mingw32
Host   is i686-pc-mingw32
Build  is i686-pc-cygwin

=== libjava tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /tmp/gcc/libjava/testsuite/config/default.exp as tool-and-target-specific
interface file.
WARNING: Assuming target board is the local machine (which is probably wrong).
You may need to set your DEJAGNU environment variable.
Running /tmp/gcc/libjava/testsuite/libjava.cni/cni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jar/jar.exp ...
FAIL: TestClosureGC output
FAIL: libjava.jar/TestClosureGC.jar execution - gij test
FAIL: simple output
FAIL: libjava.jar/simple.jar execution - gij test
Running /tmp/gcc/libjava/testsuite/libjava.jni/jni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti-interp.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.lang/lang.exp ...
FAIL: ArrayStore execution - source compiled test
FAIL: ArrayStore -findirect-dispatch execution - source compiled test
FAIL: ArrayStore -O3 execution - source compiled test
FAIL: ArrayStore -O3 -findirect-dispatch execution - source compiled test
FAIL: ArrayStore2 execution - source compiled test
FAIL: ArrayStore2 -findirect-dispatch execution - source compiled test
FAIL: ArrayStore2 -O3 execution - source compiled test
FAIL: ArrayStore2 -O3 -findirect-dispatch execution - source compiled test
FAIL: Divide_1 output - source compiled test
FAIL: Divide_1 -findirect-dispatch output - source compiled test
FAIL: Divide_1 -O3 output - source compiled test
FAIL: Divide_1 -O3 -findirect-dispatch output - source compiled test
FAIL: ExtraClassLoader execution - source compiled test
FAIL: ExtraClassLoader -findirect-dispatch execution - source compiled test
FAIL: ExtraClassLoader -O3 execution - source compiled test
FAIL: ExtraClassLoader -O3 -findirect-dispatch execution - source compiled test
FAIL: PR218 output - source compiled test
FAIL: PR218 -findirect-dispatch output - source compiled test
FAIL: PR218 -O3 output - source compiled test
FAIL: PR218 -O3 -findirect-dispatch output - source compiled test
FAIL: Process_6 output - source compiled test
FAIL: Process_6 -findirect-dispatch output - source compiled test
FAIL: Process_6 -O3 output - source compiled test
FAIL: Process_6 -O3 -findirect-dispatch output - source compiled test
FAIL: ProxyTest execution - source compiled test
FAIL: ProxyTest -findirect-dispatch execution - source compiled test
FAIL: ProxyTest -O3 execution - source compiled test
FAIL: ProxyTest -O3 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 execution - source compiled test
FAIL: StackTrace2 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 -O3 execution - source compiled test
FAIL: StackTrace2 -O3 -findirect-dispatch execution - source compiled test
FAIL: StringBuffer_1 execution - source compiled test
FAIL: StringBuffer_1 -findirect-dispatch execution - source compiled test
FAIL: StringBuffer_1 -O3 execution - source compiled test
FAIL: StringBuffer_1 -O3 -findirect-dispatch execution - source compiled test
FAIL: StringBuffer_overflow output - source compiled test
FAIL: StringBuffer_overflow -findirect-dispatch output - source compiled test
FAIL: StringBuffer_overflow -O3 output - source compiled test
FAIL: StringBuffer_overflow -O3 -findirect-dispatch output - source compiled
test
FAIL: String_overflow output - source compiled test
FAIL: String_overflow -findirect-dispatch output - source compiled test
FAIL: String_overflow -O3 output - source compiled test
FAIL: String_overflow -O3 -findirect-dispatch output - source compiled test
FAIL: TestProxy execution - source compiled test
FAIL: TestProxy -findirect-dispatch execution - source compiled test
FAIL: TestProxy -O3 execution - source compiled test
FAIL: TestProxy -O3 -findirect-dispatch execution - source compiled test
FAIL: Thread_Sleep_2 output - source compiled test
FAIL: Thread_Sleep_2 -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep_2 -O3 output - source compiled test
FAIL: Thread_Sleep_2 -O3 -findirect-dispatch output - source compiled test
FAIL: Throw_2 execution - source compiled test
FAIL: Throw_2 -findirect-dispatch execution - source compiled test
FAIL: Throw_2 -O3 execution - source compiled test
FAIL: Throw_2 -O3 -findirect-dispatch execution - source compiled test
FAIL: Throw_3 execution - source compiled

[Bug libgcj/51498] make dejagnu work in libjava testsuite with cross-build

2012-01-15 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51498

gee jojelino at gmail dot com changed:

   What|Removed |Added

Summary|temporary hack to make  |make dejagnu work in
   |dejagnu work in libjava |libjava testsuite with
   ||cross-build

--- Comment #9 from gee jojelino at gmail dot com 2012-01-16 03:31:27 UTC ---
we need not this patch unless there is difference between host and target
alias.
this patch dealt with such case.


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2011-12-18 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #5 from gee jojelino at gmail dot com 2011-12-18 22:02:07 UTC ---
(In reply to comment #4)
 Hmm, this might be another instance for already solved PR/50053.  Could you
 recheck, if error is still present for current 4.7 trunk version.
 
 Thanks

Target is i686-pc-mingw32
Host   is i686-pc-mingw32
Build  is i686-pc-cygwin

=== libjava tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /tmp/gcc/libjava/testsuite/config/default.exp as tool-and-target-specific
interface file.
WARNING: Assuming target board is the local machine (which is probably wrong).
You may need to set your DEJAGNU environment variable.
Running /tmp/gcc/libjava/testsuite/libjava.cni/cni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jar/jar.exp ...
FAIL: TestClosureGC run
FAIL: libjava.jar/TestClosureGC.jar execution - gij test
FAIL: simple output
FAIL: libjava.jar/simple.jar execution - gij test
Running /tmp/gcc/libjava/testsuite/libjava.jni/jni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti-interp.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.lang/lang.exp ...
FAIL: ArrayStore execution - source compiled test
FAIL: ArrayStore -findirect-dispatch execution - source compiled test
FAIL: ArrayStore -O3 execution - source compiled test
FAIL: ArrayStore -O3 -findirect-dispatch execution - source compiled test
FAIL: ArrayStore2 execution - source compiled test
FAIL: ArrayStore2 -findirect-dispatch execution - source compiled test
FAIL: ArrayStore2 -O3 execution - source compiled test
FAIL: ArrayStore2 -O3 -findirect-dispatch execution - source compiled test
FAIL: Divide_1 output - source compiled test
FAIL: Divide_1 -findirect-dispatch output - source compiled test
FAIL: Divide_1 -O3 output - source compiled test
FAIL: Divide_1 -O3 -findirect-dispatch output - source compiled test
FAIL: ExtraClassLoader execution - source compiled test
FAIL: ExtraClassLoader -findirect-dispatch execution - source compiled test
FAIL: ExtraClassLoader -O3 execution - source compiled test
FAIL: ExtraClassLoader -O3 -findirect-dispatch execution - source compiled test
FAIL: InvokeInterface output - source compiled test
FAIL: InvokeInterface -findirect-dispatch output - source compiled test
FAIL: InvokeInterface -O3 output - source compiled test
FAIL: InvokeInterface -O3 -findirect-dispatch output - source compiled test
FAIL: PR218 output - source compiled test
FAIL: PR218 -findirect-dispatch output - source compiled test
FAIL: PR218 -O3 output - source compiled test
FAIL: PR218 -O3 -findirect-dispatch output - source compiled test
FAIL: Process_6 output - source compiled test
FAIL: Process_6 -findirect-dispatch output - source compiled test
FAIL: Process_6 -O3 output - source compiled test
FAIL: Process_6 -O3 -findirect-dispatch output - source compiled test
FAIL: ProxyTest execution - source compiled test
FAIL: ProxyTest -findirect-dispatch execution - source compiled test
FAIL: ProxyTest -O3 execution - source compiled test
FAIL: ProxyTest -O3 -findirect-dispatch execution - source compiled test
FAIL: Serialization execution - source compiled test
FAIL: Serialization -findirect-dispatch execution - source compiled test
FAIL: Serialization -O3 execution - source compiled test
FAIL: Serialization -O3 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 execution - source compiled test
FAIL: StackTrace2 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 -O3 execution - source compiled test
FAIL: StackTrace2 -O3 -findirect-dispatch execution - source compiled test
FAIL: StringBuffer_1 execution - source compiled test
FAIL: StringBuffer_1 -findirect-dispatch execution - source compiled test
FAIL: StringBuffer_1 -O3 execution - source compiled test
FAIL: StringBuffer_1 -O3 -findirect-dispatch execution - source compiled test
FAIL: StringBuffer_overflow output - source compiled test
FAIL: StringBuffer_overflow -findirect-dispatch output - source compiled test
FAIL: StringBuffer_overflow -O3 output - source compiled test
FAIL: StringBuffer_overflow -O3 -findirect-dispatch output - source compiled
test
FAIL: String_overflow output - source compiled test
FAIL: String_overflow -findirect-dispatch output - source compiled test
FAIL: String_overflow -O3 output - source compiled test
FAIL: String_overflow -O3 -findirect-dispatch output - source compiled test
FAIL: TestProxy execution - source compiled test
FAIL: TestProxy -findirect-dispatch execution - source compiled test
FAIL: TestProxy -O3 execution - source compiled test
FAIL: TestProxy -O3 -findirect-dispatch execution - source compiled test
FAIL: Thread_Sleep -findirect-dispatch output - source compiled test
FAIL: Thread_Sleep -O3

[Bug libgcj/51498] [4.7 regression] temporary hack to make dejagnu work in libjava

2011-12-15 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51498

--- Comment #7 from gee jojelino at gmail dot com 2011-12-15 13:00:58 UTC ---
(In reply to comment #6)
 so it should figure that out automatically.  Aren't you e.g. building in 
 source
 directory (./configure ...)?  Otherwise it would be good if you could debug 
 why
 in your case it isn't finding the right tool_root_dir and gcj in it (debugging
 printouts in libjava.exp and libgloss.exp).

Using /usr/share/dejagnu/runtest.exp as main test driver
INTERPRETER is now yes
Verbose level is 1
Login name is Administrator
Found /tmp/gcc/i686-pc-mingw32/libjava/testsuite/site.exp
Found /tmp/gcc/i686-pc-mingw32/libjava/testsuite/site.exp
Using test sources in ../../.././libjava/testsuite
Using test binaries in /tmp/gcc/i686-pc-mingw32/libjava/testsuite
Tool root directory is /tmp/gcc/i686-pc-mingw32
Using /usr/share/dejagnu to find libraries
since i'm doing canadian-cross, it can't find gcj in
/tmp/gcc/i686-pc-mingw32/gcc (which libgross.exp assumed).


[Bug libgcj/51498] [4.7 regression] temporary hack to make dejagnu work in libjava

2011-12-13 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51498

--- Comment #5 from gee jojelino at gmail dot com 2011-12-13 10:48:50 UTC ---
(In reply to comment #4)
 None of the testsuite Makefiles for other libraries do anything similar
 (libgomp, libstdc++-v3, ..., so why is libjava so special that it needs it?).
 make check definitely works just fine for me and uses the newly built gcj etc.
 rather than the system gcj.  So please expand on what exact errors you saw,
 details from the libjava.log where it shows etc.

/usr/bin/make  check-DEJAGNU
make[1]: Entering directory `/tmp/gcc/i686-pc-mingw32/libjava/testsuite'
Making a new site.exp file...
srcdir=`CDPATH=${ZSH_VERSION+.}:  cd ../../.././libjava/testsuite  pwd`;
export srcdir; \
EXPECT=`if [ -f ../../expect/expect ] ; then  echo ../../expect/expect ;  else
echo expect ; fi`; export EXPECT; \
runtest=`if [ -f ../../.././libjava/../dejagnu/runtest ] ; then  echo
../../.././libjava/../dejagnu/runtest ;  else echo runtest; fi`
INTERPRETER=yes; \
if /bin/sh -c $runtest --version  /dev/null 21; then \
  exit_status=0; l='libjava'; for tool in $l; do \
if $runtest INTERPRETER=yes --tool $tool --srcdir $srcdir ; \
then :; else exit_status=1; fi; \
  done; \
else echo WARNING: could not find \`runtest' 12; :;\
fi; \
exit $exit_status
WARNING: Couldn't find the global config file.
Test Run By Administrator on Tue Dec 13 19:48:20 2011
Target is i686-pc-mingw32
Host   is i686-pc-mingw32
Build  is i686-pc-cygwin

=== libjava tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /tmp/gcc/libjava/testsuite/config/default.exp as tool-and-target-specific
interface file.
WARNING: Assuming target board is the local machine (which is probably wrong).
You may need to set your DEJAGNU environment variable.
Running /tmp/gcc/libjava/testsuite/libjava.cni/cni.exp ...
couldn't execute gcj: no such file or directory
while executing
exec gcj -B/tmp/gcc/i686-pc-mingw32/libjava/testsuite/../ -v 2@ stdout
(eval body line 1)
invoked from within
eval exec $GCJ_UNDER_TEST -B$specdir -v 2@ stdout
(procedure libjava_init line 46)
invoked from within
${tool}_init $test_file_name
invoked from within
if [info exists tool] {
if { [info procs ${tool}_init] !=  } {
${tool}_init $test_file_name;
}
}
invoked from within
if [file exists $test_file_name] {
set timestart [timestamp];

if [info exists tool] {
if { [info procs ${tool}_init] !=  } {
${tool}_ini...
(procedure runtest line 14)
invoked from within
runtest $test_name
(foreach body line 42)
invoked from within
foreach test_name [lsort [find ${dir} *.exp]] {
if { ${test_name} ==  } {
continue
}
# Ignore this one if asked to.
if { ${ignore...
(foreach body line 54)
invoked from within
foreach dir ${test_top_dirs} {
if { ${dir} != ${srcdir} } {
# Ignore this directory if is a directory to be
# ignored.
if {[info...
(foreach body line 121)
invoked from within
foreach pass $multipass {

# multipass_name is set for `record_test' to use (see framework.exp).
if { [lindex $pass 0] !=  } {
set multipass_...
(foreach body line 51)
invoked from within
foreach current_target $target_list {
verbose target is $current_target;
set current_target_name $current_target;
set tlist [split $curr...
(file /usr/share/dejagnu/runtest.exp line 1623)
Makefile:385: recipe for target `check-DEJAGNU' failed
make[1]: *** [check-DEJAGNU] Error 1
make[1]: Leaving directory `/tmp/gcc/i686-pc-mingw32/libjava/testsuite'
Makefile:403: recipe for target `check-am' failed
make: *** [check-am] Error 2


[Bug libgcj/51498] [4.7 regression] temporary hack to make dejagnu work in libjava

2011-12-12 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51498

--- Comment #2 from gee jojelino at gmail dot com 2011-12-12 10:41:04 UTC ---
(In reply to comment #1)
 What's the issue you are fixing?
i experienced the dejagnu error that gcj is not found in path. this is because
of gnu make doesn't export its variable to environment implicitly. as you can
see. in  makefile, the EXPECT variable is exported explicitly. so, other
variable that dejagnu exp file uses also need to be exported so.
in my observation, GCJ SUN_JAVAC LD_LIBRARY_PATH CLASSPATH MAUVEDIR is needed
to proper use of dejagnu testsuite. so i exported it.


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2011-12-12 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #2 from gee jojelino at gmail dot com 2011-12-12 14:46:26 UTC ---
please fix java::lang::Class::initializeClass for mingw32 ia-32 by adding
__thiscall before being involved this bug. surely PR50053 is fixed but i leaved
a kludge toward this bug.


[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2011-12-12 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #3 from gee jojelino at gmail dot com 2011-12-12 14:48:52 UTC ---
it seems that libffi handles calling convention of method which is cdecl or
stdcall.
but not for thiscall for mingw32 ia-32.


[Bug libgcj/51498] New: [4.7 regression] temporary hack to make dejagnu work in libjava

2011-12-10 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51498

 Bug #: 51498
   Summary: [4.7 regression] temporary hack to make dejagnu work
in libjava
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcj
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com


Created attachment 26042
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26042
proposed patch

it is Makefile.am which we patch eventually. but as a workaround, let's
propagate environment variable needed to dejagnu.


[Bug libgcj/51500] New: [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2011-12-10 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

 Bug #: 51500
   Summary: [4.7 regression] 106 unexpected libjava testsuite
failures with mingw32
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcj
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com


Created attachment 26043
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26043
dejagnu log

Target is i686-pc-mingw32
Host   is i686-pc-mingw32
Build  is i686-pc-cygwin

=== libjava tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /tmp/gcc/libjava/testsuite/config/default.exp as tool-and-target-specific
interface file.
WARNING: Assuming target board is the local machine (which is probably wrong).
You may need to set your DEJAGNU environment variable.
Running /tmp/gcc/libjava/testsuite/libjava.cni/cni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jar/jar.exp ...
FAIL: TestClosureGC run
FAIL: libjava.jar/TestClosureGC.jar execution - gij test
FAIL: simple output
FAIL: libjava.jar/simple.jar execution - gij test
Running /tmp/gcc/libjava/testsuite/libjava.jni/jni.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti-interp.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.jvmti/jvmti.exp ...
Running /tmp/gcc/libjava/testsuite/libjava.lang/lang.exp ...
FAIL: ArrayStore execution - source compiled test
FAIL: ArrayStore -findirect-dispatch execution - source compiled test
FAIL: ArrayStore -O3 execution - source compiled test
FAIL: ArrayStore -O3 -findirect-dispatch execution - source compiled test
FAIL: ArrayStore2 execution - source compiled test
FAIL: ArrayStore2 -findirect-dispatch execution - source compiled test
FAIL: ArrayStore2 -O3 execution - source compiled test
FAIL: ArrayStore2 -O3 -findirect-dispatch execution - source compiled test
FAIL: Divide_1 output - source compiled test
FAIL: Divide_1 -findirect-dispatch output - source compiled test
FAIL: Divide_1 -O3 output - source compiled test
FAIL: Divide_1 -O3 -findirect-dispatch output - source compiled test
FAIL: ExtraClassLoader execution - source compiled test
FAIL: ExtraClassLoader -findirect-dispatch execution - source compiled test
FAIL: ExtraClassLoader -O3 execution - source compiled test
FAIL: ExtraClassLoader -O3 -findirect-dispatch execution - source compiled test
FAIL: InvokeInterface output - source compiled test
FAIL: InvokeInterface -findirect-dispatch output - source compiled test
FAIL: InvokeInterface -O3 output - source compiled test
FAIL: InvokeInterface -O3 -findirect-dispatch output - source compiled test
FAIL: PR218 output - source compiled test
FAIL: PR218 -findirect-dispatch output - source compiled test
FAIL: PR218 -O3 output - source compiled test
FAIL: PR218 -O3 -findirect-dispatch output - source compiled test
FAIL: Process_6 output - source compiled test
FAIL: Process_6 -findirect-dispatch output - source compiled test
FAIL: Process_6 -O3 output - source compiled test
FAIL: Process_6 -O3 -findirect-dispatch output - source compiled test
FAIL: ProxyTest execution - source compiled test
FAIL: ProxyTest -findirect-dispatch execution - source compiled test
FAIL: ProxyTest -O3 execution - source compiled test
FAIL: ProxyTest -O3 -findirect-dispatch execution - source compiled test
FAIL: Serialization execution - source compiled test
FAIL: Serialization -findirect-dispatch execution - source compiled test
FAIL: Serialization -O3 execution - source compiled test
FAIL: Serialization -O3 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 execution - source compiled test
FAIL: StackTrace2 -findirect-dispatch execution - source compiled test
FAIL: StackTrace2 -O3 execution - source compiled test
FAIL: StackTrace2 -O3 -findirect-dispatch execution - source compiled test
FAIL: StringBuffer_1 execution - source compiled test
FAIL: StringBuffer_1 -findirect-dispatch execution - source compiled test
FAIL: StringBuffer_1 -O3 execution - source compiled test
FAIL: StringBuffer_1 -O3 -findirect-dispatch execution - source compiled test
FAIL: StringBuffer_overflow output - source compiled test
FAIL: StringBuffer_overflow -findirect-dispatch output - source compiled test
FAIL: StringBuffer_overflow -O3 output - source compiled test
FAIL: StringBuffer_overflow -O3 -findirect-dispatch output - source compiled
test
FAIL: String_overflow output - source compiled test
FAIL: String_overflow -findirect-dispatch output - source compiled test
FAIL: String_overflow -O3 output - source compiled test
FAIL: String_overflow -O3 -findirect-dispatch output - source compiled test
FAIL: TestProxy execution - source compiled test
FAIL: TestProxy -findirect-dispatch 

[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32

2011-12-10 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #1 from gee jojelino at gmail dot com 2011-12-10 18:59:19 UTC ---
stacktrace 

Starting program:
/tmp/gcc/i686-pc-mingw32/libjava/testsuite/.libs/TestClosureGC
[New Thread 3600.0xf5c]
[New Thread 3600.0x1338]

Program received signal SIGSEGV, Segmentation fault.
0x00401462 in StringBuffer_overflow.Fail(java.lang.String,
java.lang.Object)void () at StringBuffer_overflow.java:122
122 StringBuffer_overflow.java: No such file or directory.
in StringBuffer_overflow.java
(gdb) bt
#0  0x00401462 in StringBuffer_overflow.Fail(java.lang.String,
java.lang.Object)void () at StringBuffer_overflow.java:122
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#1  0x0001 in ?? ()
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#2  0x0022fb48 in ?? ()
#3  0x69ce87f7 in ffi_call_win32 () at ../.././libffi/src/x86/win32.S:424
#4  0x69ce85a5 in ffi_call (cif=0x22fc58,
fn=0x40142c StringBuffer_overflow.Fail(java.lang.String,
java.lang.Object)void+12, rvalue=0x22fc48, avalue=0x22fbb0) at
../.././libffi/src/x86/ffi.c:319
#5  0x696d1cb5 in _Jv_CallAnyMethodA (obj=0xa97f08, obj@entry=0x0,
return_type=return_type@entry=0x403240, meth=meth@entry=0x4031c0,
is_constructor=is_constructor@entry=0x1, is_virtual_call=0x0,
parameter_types=parameter_types@entry=0xa5fde0, args=args@entry=0x22fcb8,
result=result@entry=0x22fd08, is_jni_call=is_jni_call@entry=0x0,
iface=iface@entry=0x0)
at ../.././libjava/java/lang/reflect/natMethod.cc:535
#6  0x696d20ee in _Jv_CallAnyMethodA (obj=0x0, return_type=0x403240,
meth=0x4031c0, is_constructor=0x1, parameter_types=0xa5fde0,
args=0xa5fbe0, iface=0x0)
at ../.././libjava/java/lang/reflect/natMethod.cc:670
#7  0x696d0759 in java::lang::reflect::Constructor::newInstance (
this=0xa96ba0, args=0xa5fbe0)
at ../.././libjava/java/lang/reflect/natConstructor.cc:92
#8  0x00401822 in StringBuffer_overflow.appendbasic()void ()
---Type return to continue, or q return to quit---
at StringBuffer_overflow.java:52
#9  0x00a5fbe8 in ?? ()
#10 0x696bf9d2 in gnu::java::lang::MainThread::call_main (this=0x246470)
at ../.././libjava/gnu/java/lang/natMainThread.cc:54
#11 0x696fda26 in gnu.java.lang.MainThread.run()void (this=@bfdf60)
at /tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#12 0x696ce8b2 in _Jv_ThreadRun (thread=0xbfdf60)
at ../.././libjava/java/lang/natThread.cc:335
#13 0x69683fb0 in _Jv_RunMain (vm_args=vm_args@entry=0x0,
klass=klass@entry=0x4035e0, name=name@entry=0x0, argc=argc@entry=0x1,
argv=argv@entry=0x3d8660, is_jar=is_jar@entry=0x0)
at ../.././libjava/prims.cc:1790
#14 0x696841a6 in _Jv_RunMain (klass=klass@entry=0x4035e0,
name=name@entry=0x0, argc=argc@entry=0x1, argv=argv@entry=0x3d8660,
is_jar=is_jar@entry=0x0) at ../.././libjava/prims.cc:1815
#15 0x6968420f in JvRunMain (klass=0x4035e0, argc=0x1, argv=0x3d8660)
at ../.././libjava/prims.cc:1821
#16 0x00401402 in StringBuffer_overflow.clinit()void ()
at StringBuffer_overflow.java:109
#17 0x004010bb in __mingw_CRTStartup ()
at
/usr/src/mingw-runtime/mingw-runtime-3.20-1/src/mingwrt-3.20-mingw32/crt1.c:244
Backtrace stopped: frame did not save the PC


Starting program:
/tmp/gcc/i686-pc-mingw32/libjava/testsuite/.libs/ExtraClassLoader
[New Thread 1824.0x1310]
[New Thread 1824.0x12d8]

Program received signal SIGSEGV, Segmentation fault.
java::lang::Object::getClass (this=0x1)
at ../.././libjava/java/lang/natObject.cc:58
58return (*dt)-clas;
(gdb) bt
#0  java::lang::Object::getClass (this=0x1)
at ../.././libjava/java/lang/natObject.cc:58
#1  0x69ce87f7 in ffi_call_win32 () at ../.././libffi/src/x86/win32.S:424
#2  0x69ce87a5 in ffi_raw_call (cif=0xc01a0c,
fn=0x696ca980 java::lang::Object::getClass(), rvalue=0x22fc18,
fake_avalue=0x22fa44) at ../.././libffi/src/x86/ffi.c:647
#3  0x6969c7a4 in _Jv_InterpMethod::run (retp=0x22fd80, args=0x22fda0,
meth=0xac9e10) at ../.././libjava/interpret-run.cc:611
#4  0x69ce89a5 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:695
#5  0x696c7f36 in java::lang::Class::newInstance (this=0xc0bda8)
at ../.././libjava/java/lang/natClass.cc:664
#6  0x004014e8 in ExtraClassLoader.main(java.lang.String[])void ()
at ExtraClassLoader.java:9
#7  0x696bf9d2 in gnu::java::lang::MainThread::call_main (this=0xc0ef60)
at ../.././libjava/gnu/java/lang/natMainThread.cc:54
#8  0x696fda26 in gnu.java.lang.MainThread.run()void (this=@c0ef60)
at /tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#9  0x696ce8b2 in _Jv_ThreadRun (thread=0xc0ef60)
at ../.././libjava/java/lang/natThread.cc:335
#10 0x69683fb0 in _Jv_RunMain (vm_args=vm_args@entry=0x0,
klass=klass@entry=0x0, name=name@entry=0x406064 ExtraClassLoader

[Bug libgcj/50053] [4.7 regression] jc1 doesn't emit static initializer or initializer code for super class without -findirect-dispatch.

2011-12-09 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053

--- Comment #12 from gee jojelino at gmail dot com 2011-12-09 22:24:56 UTC ---
Created attachment 26037
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26037
proposed patch

(In reply to comment #11)
 Suggested patch for this issue (together with the pending patch for PR/51135
 for C++) is:
 
 Index: natClass.cc
 ===
 --- natClass.cc (revision 182092)
 +++ natClass.cc (working copy)
 @@ -661,7 +661,7 @@
  throw new java::lang::InstantiationException (getName());
 
jobject r = _Jv_AllocObject (this);
 -  ((void (*) (jobject)) meth-ncode) (r);
 +  ((void (__thiscall *) (jobject)) meth-ncode) (r);
return r;
  }
 
 It would be kind, if somebody could confirm that it fixes this issue.  I will
 prepare then a final variant of this patch.
yes, it fixes the issue in mingw32.


[Bug libgcj/50053] [4.7 regression] SIGSEGV in natClass.cc:651

2011-12-08 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053

--- Comment #6 from gee jojelino at gmail dot com 2011-12-08 18:45:46 UTC ---
Created attachment 26026
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26026
generated zip file


[Bug libgcj/50053] [4.7 regression] SIGSEGV in natClass.cc:651

2011-12-08 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053

--- Comment #7 from gee jojelino at gmail dot com 2011-12-08 18:47:29 UTC ---
Created attachment 26027
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26027
generated tree from gnu.zip

/tmp/gcc/host-i686-pc-cygwin/gcc/jc1.exe -fhash-synchronization
-fuse-divide-subroutine -fcheck-references -fuse-boehm-gc
-fkeep-inline-functions -mtune=generic -march=pentiumpro -g -O2 -Wno-deprecated
-version -ffloat-store -fno-omit-frame-pointer -fencoding=UTF-8
-fbootstrap-classes
-fsource-filename=/tmp/gcc/i686-pc-mingw32/libjava/classpath/lib/classes
-fbootclasspath=./:../.././libjava/classpath/lib/ gnu.zip -fdump-tree-optimized


[Bug libgcj/50053] [4.7 regression] SIGSEGV in natClass.cc:651

2011-12-08 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053

--- Comment #8 from gee jojelino at gmail dot com 2011-12-08 18:49:10 UTC ---
Created attachment 26028
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26028
generated rtl from gnu.zip

/tmp/gcc/host-i686-pc-cygwin/gcc/jc1.exe -fno-shrink-wrap -quiet
-fhash-synchronization -fuse-divide-subroutine -fcheck-references
-fuse-boehm-gc -fkeep-inline-functions -g  -Wno-deprecated -version
-ffloat-store -fno-omit-frame-pointer -fencoding=UTF-8 -fbootstrap-classes
-fsource-filename=/tmp/gcc/i686-pc-mingw32/libjava/classpath/lib/classes
-fbootclasspath=./:../.././libjava/classpath/lib/  gnu.zip
-fdump-rtl-expand;cat gnu.zip.150r.expand |grep cx \[ this \]


[Bug libgcj/50053] [4.7 regression] jc1 doesn't emit static initializer or initializer code for super class without -findirect-dispatch.

2011-12-08 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053

gee jojelino at gmail dot com changed:

   What|Removed |Added

Summary|[4.7 regression] SIGSEGV in |[4.7 regression] jc1
   |natClass.cc:651 |doesn't emit static
   ||initializer or initializer
   ||code for super class
   ||without
   ||-findirect-dispatch.

--- Comment #9 from gee jojelino at gmail dot com 2011-12-08 19:12:48 UTC ---
;; Function () (_ZN3gnu3gcj7convert10Input_UTF8C1Ev, funcdef_no=47,
decl_uid=4320, cgraph_uid=94)

() (struct gnu.gcj.convert.Input_UTF8 * this)
{
bb 2:
  # DEBUG D.4331 = gnu.gcj.convert.Input_UTF8.class$$
  # DEBUG D.4333 = _CD_gnu_gcj_convert_Input_UTF8
  # DEBUG D.4335 = this_3(D)
  # DEBUG this = this_3(D)
  # DEBUG D.10917 = gnu.gcj.convert.BytesToUnicode.class$$
  # DEBUG D.10918 = _CD_gnu_gcj_convert_BytesToUnicode
  # DEBUG D.10919 = this_3(D)
  # DEBUG this = this_3(D)
  # DEBUG D.10911 = gnu.gcj.convert.IOConverter.class$$
  # DEBUG D.10921 = _CD_gnu_gcj_convert_IOConverter
  # DEBUG D.10913 = this_3(D)
   (this_3(D));
  # DEBUG D.4339 = this_3(D)
  this_3(D)-partial = 0;
  # DEBUG D.4342 = this_3(D)
  this_3(D)-partial_bytes_expected = 0;
  return;

}

we can see there isn't any code for {static} initializer of super classes,
isn't it design flaw?


[Bug libgcj/50053] [4.7 regression] jc1 doesn't emit static initializer or initializer code for super class without -findirect-dispatch.

2011-12-08 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053

--- Comment #10 from gee jojelino at gmail dot com 2011-12-08 19:15:47 UTC ---
(In reply to comment #9)
whereas with -findirect-dispatch, initializer code isn't omitted. 

;; Function () (_ZN3gnu3gcj7convert10Input_UTF8C1Ev, funcdef_no=47,
decl_uid=3185, cgraph_uid=94)

() (struct gnu.gcj.convert.Input_UTF8 * this)
{
  int D.9476;
  struct java.lang.Object * D.3210;
  int #slot#2#4;
  struct java.lang.Object * D.3207;
  void * #ref#1#2;
  struct java.lang.Object * D.3203;
  void * #ref#0#0;
  int * D.9474;
  sizetype D.9473;
  int D.9472;
  void * _ref_1_2.1045;
  int * iftmp.1044;
  int * D.9467;
  sizetype D.9466;
  int D.9465;
  void * _ref_1_2.1043;
  int * iftmp.1042;
  void gnu.gcj.convert.BytesToUnicode::T12d (struct
gnu.gcj.convert.BytesToUnicode *) * D.9460;
  void * D.9459;
  void * _ref_1_2.1041;

bb 2:
  D.3203_2 = this_1(D);
  #ref#1#2_3 = D.3203_2;
  _ref_1_2.1041_4 = #ref#1#2_3;
  D.9459_5 = _atable_gnu_gcj_convert_Input_UTF8[1];
  D.9460_6 = (void gnu.gcj.convert.BytesToUnicode::T12d (struct
gnu.gcj.convert.BytesToUnicode *) *) D.9459_5;
  D.9460_6 (_ref_1_2.1041_4);
  D.3207_7 = this_1(D);
  #ref#1#2_8 = D.3207_7;
  #slot#2#4_9 = 0;
  _ref_1_2.1043_10 = #ref#1#2_8;
  if (_ref_1_2.1043_10 == 0B)
goto bb 3;
  else
goto bb 4;

bb 3:
  _Jv_ThrowNullPointerException ();

bb 4:
  iftmp.1042_11 = _ref_1_2.1043_10;
  D.9465_12 = _otable_gnu_gcj_convert_Input_UTF8[1];
  D.9466_13 = (sizetype) D.9465_12;
  D.9467_14 = iftmp.1042_11 + D.9466_13;
  *D.9467_14 = #slot#2#4_9;
  D.3210_15 = this_1(D);
  #ref#1#2_16 = D.3210_15;
  #slot#2#4_17 = 0;
  _ref_1_2.1045_18 = #ref#1#2_16;
  if (_ref_1_2.1045_18 == 0B)
goto bb 5;
  else
goto bb 6;

bb 5:
  _Jv_ThrowNullPointerException ();

bb 6:
  iftmp.1044_19 = _ref_1_2.1045_18;
  D.9476_20 = _otable_gnu_gcj_convert_Input_UTF8[2];
  D.9472_21 = D.9476_20;
  D.9473_22 = (sizetype) D.9472_21;
  D.9474_23 = iftmp.1044_19 + D.9473_22;
  *D.9474_23 = #slot#2#4_17;

L4:
  return;

}


[Bug libgcj/51470] New: [4.7 regression] make sure libgcj_bc=yes iff enable_shared=yes

2011-12-08 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51470

 Bug #: 51470
   Summary: [4.7 regression] make sure libgcj_bc=yes iff
enable_shared=yes
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcj
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-cygwin
 Build: i686-pc-cygwin


Created attachment 26029
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26029
preprocessed fix

i tried to configure libjava, but generated config.status had strange
configuration.
S[USE_LIBGCJ_BC_FALSE]=
S[USE_LIBGCJ_BC_TRUE]=#
S[ENABLE_SHARED_FALSE]=#
S[ENABLE_SHARED_TRUE]=
why this happened? i saw this in libjava/configure.ac
if test $enable_shared != yes; then
  use_libgcj_bc=no
fi
there isn't any declaration about use_libgcj_bc, so use_libgcj_bc would default
to  no.
here is proposal to fix the problem.


[Bug libgcj/51470] [4.7 regression] make sure libgcj_bc=yes iff enable_shared=yes

2011-12-08 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51470

gee jojelino at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #1 from gee jojelino at gmail dot com 2011-12-08 21:54:33 UTC ---
Now it's invalid.
## This is specific to Linux/{Free,Net,Open}BSD/Hurd and perhaps few others.
## USE_LIBGCJ_BC shouldn't be set on other targets.


[Bug rtl-optimization/51366] [cygwin] ICE in maybe_record_trace_start, at dwarf2cfi.c:2244

2011-12-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51366

--- Comment #2 from gee jojelino at gmail dot com 2011-12-05 05:02:23 UTC ---
Created attachment 25988
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25988
preprocessed source

g++ -L/tmp/winsup/i686-pc-cygwin/winsup
-L/tmp/winsup/i686-pc-cygwin/winsup/cygwin
-L/tmp/winsup/i686-pc-cygwin/winsup/w32api/lib -isystem
/tmp/winsup/winsup/include -isystem /tmp/winsup/winsup/cygwin/include -isystem
/tmp/winsup/winsup/w32api/include -B/tmp/winsup/i686-pc-cygwin/newlib/ -isystem
/tmp/winsup/i686-pc-cygwin/newlib/targ-include -isystem
/tmp/winsup/newlib/libc/include-c -nostdinc++   -DHAVE_CONFIG_H  -O2
-fomit-frame-pointer -mstackrealign -march=core2 -mfpmath=sse -MMD 
-fmerge-constants -ftracer  -mno-use-libstdc-wrappers  -Wall -Wstrict-aliasing
-Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0  -I. 
-I/tmp/winsup/winsup/cygwin  -I/tmp/winsup/winsup/w32api/include
-I../../.././winsup/cygwin/config/i386
-I/usr/lib/gcc/i686-pc-cygwin/4.7.0/include -fno-rtti -fno-exceptions -o
./strace.o /tmp/winsup/winsup/cygwin/strace.cc -save-temps -v
g++: warning: -pipe ignored because -save-temps specified
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: ./configure --config-cache --prefix=/usr
--disable-win32-registry --enable-threads=win32 --with-win32-nlsapi=unicode
--enable-tls --disable-bootstrap --enable-shared --disable-sjlj-exceptions
--enable-gomp --enable-cloog-backend=isl --enable-languages=c,c++,fortran,lto
--no-create --no-recursion
Thread model: win32
gcc version 4.7.0 2025 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-L/tmp/winsup/i686-pc-cygwin/winsup'
'-L/tmp/winsup/i686-pc-cygwin/winsup/cygwin'
'-L/tmp/winsup/i686-pc-cygwin/winsup/w32api/lib' '-isystem'
'/tmp/winsup/winsup/include' '-isystem' '/tmp/winsup/winsup/cygwin/include'
'-isystem' '/tmp/winsup/winsup/w32api/include' '-B'
'/tmp/winsup/i686-pc-cygwin/newlib/' '-isystem'
'/tmp/winsup/i686-pc-cygwin/newlib/targ-include' '-isystem'
'/tmp/winsup/newlib/libc/include' '-c' '-nostdinc++' '-D' 'HAVE_CONFIG_H' '-O2'
'-fomit-frame-pointer' '-mstackrealign' '-march=core2' '-mfpmath=sse' '-MMD'
'-fmerge-constants' '-ftracer' '-mno-use-libstdc-wrappers' '-Wall'
'-Wstrict-aliasing' '-Wwrite-strings' '-fno-common' '-pipe' '-fbuiltin'
'-fmessage-length=0' '-I' '.' '-I' '/tmp/winsup/winsup/cygwin' '-I'
'/tmp/winsup/winsup/w32api/include' '-I' '../../.././winsup/cygwin/config/i386'
'-I' '/usr/lib/gcc/i686-pc-cygwin/4.7.0/include' '-fno-rtti' '-fno-exceptions'
'-o' './strace.o' '-save-temps' '-v' '-shared-libgcc'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -E -quiet -nostdinc++ -v -I
. -I /tmp/winsup/winsup/cygwin -I /tmp/winsup/winsup/w32api/include -I
../../.././winsup/cygwin/config/i386 -I
/usr/lib/gcc/i686-pc-cygwin/4.7.0/include -MMD ./strace.d -MQ ./strace.o
-D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
-idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api
-D HAVE_CONFIG_H -isystem /tmp/winsup/winsup/include -isystem
/tmp/winsup/winsup/cygwin/include -isystem /tmp/winsup/winsup/w32api/include
-isystem /tmp/winsup/i686-pc-cygwin/newlib/targ-include -isystem
/tmp/winsup/newlib/libc/include /tmp/winsup/winsup/cygwin/strace.cc
-mstackrealign -march=core2 -mfpmath=sse -mno-use-libstdc-wrappers -Wall
-Wstrict-aliasing -Wwrite-strings -fomit-frame-pointer -fmerge-constants
-ftracer -fno-common -fbuiltin -fmessage-length=0 -fno-rtti -fno-exceptions -O2
-fpch-preprocess -o strace.ii
ignoring nonexistent directory /tmp/winsup/winsup/include
ignoring duplicate directory /usr/include
ignoring duplicate directory
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api
ignoring duplicate directory /tmp/winsup/winsup/w32api/include
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory /usr/lib/gcc/i686-pc-cygwin/4.7.0/include
  as it is a non-system directory that duplicates a system directory
#include ... search starts here:
#include ... search starts here:
 .
 /tmp/winsup/winsup/cygwin
 ../../.././winsup/cygwin/config/i386
 /tmp/winsup/winsup/cygwin/include
 /tmp/winsup/winsup/w32api/include
 /tmp/winsup/i686-pc-cygwin/newlib/targ-include
 /tmp/winsup/newlib/libc/include
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/include
 /usr/local/include
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/include-fixed
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/include

/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
End of search list.
COLLECT_GCC_OPTIONS='-L/tmp/winsup/i686-pc-cygwin/winsup'
'-L/tmp/winsup/i686-pc-cygwin/winsup/cygwin'
'-L/tmp/winsup/i686-pc-cygwin/winsup/w32api/lib' '-isystem'
'/tmp/winsup/winsup/include' '-isystem' '/tmp/winsup/winsup/cygwin/include

[Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure

2011-11-30 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

gee jojelino at gmail dot com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #15 from gee jojelino at gmail dot com 2011-11-30 13:53:00 UTC ---
$ i686-pc-mingw32-g++ -fverbose-asm -c -O1 -finline-small-functions
-ftree-vectorize -finline-functions -mstackrealign -march=core2  ./pr50725.c
-save-temps;cat pr50725.s|grep (%ecx)
pushl   -4(%ecx) #
movl(%ecx), %eax # u, u
leal-4(%ecx), %esp   #,
tested with trunk g++ target=mingw32.
Fixed.


[Bug middle-end/50426] [4.7 Regression] gfortran -O1 ICE in estimate_function_body_sizes

2011-11-10 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50426

--- Comment #4 from gee jojelino at gmail dot com 2011-11-10 17:04:40 UTC ---
Created attachment 25787
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25787
preprocessed source

$ g++ Engine.ii -c -O2
src/Engine.cpp: In member function 'void boost::python::class_T, X1, X2,
X3::def_impl(T*, const char*, Fn, const Helper, ...) [with T = CEngine; Fn =
boost::shared_ptrCScript (CEngine::*)(const std::basic_stringchar,
std::basic_stringchar, int, int, boost::python::api::object); Helper =
boost::python::detail::def_helperboost::python::detail::keywords5u,
boost::python::detail::not_specified, boost::python::detail::not_specified,
boost::python::detail::not_specified; W = CEngine; X1 =
boost::noncopyable_::noncopyable; X2 = boost::python::detail::not_specified; X3
= boost::python::detail::not_specified]':
src/Engine.cpp:559:1: internal compiler error: in estimate_function_body_sizes,
at ipa-inline-analysis.c:1977
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.


[Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure

2011-11-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

gee jojelino at gmail dot com changed:

   What|Removed |Added

  Attachment #25493|0   |1
is obsolete||
  Attachment #25502|0   |1
is obsolete||
  Attachment #25503|0   |1
is obsolete||

--- Comment #11 from gee jojelino at gmail dot com 2011-11-04 16:15:43 UTC ---
Created attachment 25718
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25718
reduced source code

Reduced.

$ g++ -fverbose-asm -c -O1 -finline-small-functions -fenable-ipa-inline
-ftree-vectorize -finline-functions -mstackrealign -march=core2  r.c
-save-temps -fdump-rtl-expand -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: ./configure --config-cache --prefix=/usr
--disable-win32-registry --enable-threads=win32
--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl
Thread model: win32
gcc version 4.7.0 20111025 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -E -quiet -v -D__CYGWIN32__
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
-idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api
r.c -mstackrealign -march=core2 -fverbose-asm -finline-small-functions
-fenable-ipa-inline -ftree-vectorize -finline-functions -fdump-rtl-expand -O1
-fpch-preprocess -o r.ii
cc1plus: note: enable pass ipa-inline for functions in the range of [0,
4294967295]
ignoring duplicate directory /usr/include
ignoring duplicate directory
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api
#include ... search starts here:
#include ... search starts here:
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0/i686-pc-cygwin
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0/backward
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/include
 /usr/local/include
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/include-fixed
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/include

/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
End of search list.
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -fpreprocessed r.ii -quiet
-dumpbase r.c -mstackrealign -march=core2 -auxbase r -O1 -version -fverbose-asm
-finline-small-functions -fenable-ipa-inline -ftree-vectorize
-finline-functions -fdump-rtl-expand -o r.s
cc1plus: note: enable pass ipa-inline for functions in the range of [0,
4294967295]
GNU C++ (GCC) version 4.7.0 20111025 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.7.0 20111025 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: cf86ba87ee966d84e06e2ba1fe53e4c2
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/bin/as.exe -o r.o
r.s
COMPILER_PATH=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/:/usr/libexec/gcc/i686-pc-cygwin/4.7.0/:/usr/libexec/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/:/usr/lib/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/bin/
LIBRARY_PATH=/usr/lib/gcc/i686-pc-cygwin/4.7.0/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl

[Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure

2011-11-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #12 from gee jojelino at gmail dot com 2011-11-04 16:16:57 UTC ---
Created attachment 25719
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25719
generated rtl with pr50725


[Bug tree-optimization/50995] New: [4.5 regression] ICE in ipa-inline.c:1413

2011-11-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50995

 Bug #: 50995
   Summary: [4.5 regression] ICE in ipa-inline.c:1413
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-cygwin
 Build: i686-pc-cygwin


Created attachment 25726
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25726
preprocessed source

Starting program: /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1.exe -quiet -v -I .
-I ./ -MMD libavfilter/libmpcodecs/vf_divtc.d -MF
libavfilter/libmpcodecs/vf_divtc.d -MT libavfilter/libmpcodecs/vf_divtc.o
-D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
-idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api
-D _ISOC99_SOURCE -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -U
__STRICT_ANSI__ -D HAVE_AV_CONFIG_H libavfilter/libmpcodecs/vf_divtc.c -quiet
-dumpbase vf_divtc.c -msse4.1 -mfpmath=sse -march=core2 -auxbase-strip
libavfilter/libmpcodecs/vf_divtc.o -g -O3 -Wdeclaration-after-statement -Wall
-Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization
-Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings
-Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast
-Wstrict-prototypes -Werror=implicit-function-declaration
-Werror=missing-prototypes -std=c99 -version -fno-common -fomit-frame-pointer
-fno-math-errno -fno-signed-zeros -fno-tree-vectorize -o /tmp/ccZPl6Qi.s
[New Thread 804.0xc28]
warning: section .gnu_debuglink not found in /cygdrive/d/cygwin/bin/cygwin1.dbg
[New Thread 804.0xc44]
GNU C (GCC) version 4.7.0 2004 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111025 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring duplicate directory /usr/include
ignoring duplicate directory
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api
ignoring duplicate directory ./
#include ... search starts here:
#include ... search starts here:
 .
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/include
 /usr/local/include
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/include-fixed
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/include

/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
End of search list.
GNU C (GCC) version 4.7.0 2004 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111025 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: e24543e05bd1bd65adee7e2b2587e7e1
libavfilter/libmpcodecs/vf_divtc.c:721:4: internal compiler error: in
inline_small_functions, at ipa-inline.c:1413
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
[Inferior 1 (process 804) exited with code 04]


[Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure

2011-11-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #10 from gee jojelino at gmail dot com 2011-11-04 13:40:37 UTC ---
g++ -fverbose-asm -c -O1 -finline-small-functions -fdisable-ipa-inline
-ftree-vectorize -finline-functions -mstackrealign -march=core2 
./pseudo-reloc.ii -save-temps ;cat pseudo-reloc.s|grep (%ecx) solves the
problem.


[Bug tree-optimization/50784] [4.7 regression] -fenable-ipa-pure-const causes segmentation fault in cgraph.c:327

2011-10-27 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50784

gee jojelino at gmail dot com changed:

   What|Removed |Added

Summary|[4.7 regression] internal   |[4.7 regression]
   |compiler error: |-fenable-ipa-pure-const
   |segmentation fault in   |causes segmentation fault
   |cgraph.c:327|in cgraph.c:327

--- Comment #2 from gee jojelino at gmail dot com 2011-10-27 11:25:53 UTC ---
(In reply to comment #1)
 Ugh.  I suppose you have a less reduced set of options?  (it's not really
 useful to reduce the set of options this way)
 
 Works for me on x86_64-linux with -m32 -O[123s]
 
 Can you re-confirm with a simpler set of options please?

Starting program: /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe
./pseudo-reloc.ii -quiet -version -fenable-ipa-pure-const -o pseudo-reloc.s
[New Thread 4064.0xd34]
warning: section .gnu_debuglink not found in /cygdrive/d/cygwin/bin/cygwin1.dbg
[New Thread 4064.0x894]
cc1plus: note: enable pass ipa-pure-const for functions in the range of [0,
4294967295]
GNU C++ (GCC) version 4.7.0 20111025 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.7.0 20111025 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: cf86ba87ee966d84e06e2ba1fe53e4c2

Program received signal SIGSEGV, Segmentation fault.
cgraph_remove_function_insertion_hook (entry=0x0) at ../.././gcc/cgraph.c:327
327   *ptr = entry-next;
(gdb)


[Bug libgcj/50053] [4.7 regression] SIGSEGV in natClass.cc:651

2011-10-23 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053

--- Comment #5 from gee jojelino at gmail dot com 2011-10-23 13:42:43 UTC ---
maybe this is related to x86_this_parameter in gcc/config/i386/i386.c
it might tell why caller push parameter to stack, whereas function prologue
treats first parameter is in %ecx when MS_ABI is default.


[Bug libgcj/50831] New: [4.7 regression] SIGSEGV in link.cc:1904

2011-10-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50831

 Bug #: 50831
   Summary: [4.7 regression] SIGSEGV in link.cc:1904
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcj
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-mingw32
 Build: i686-pc-cygwin


Running gcj-dbtool or gjar or any executable compiled with GCJ tag sigsegvs

/bin/sh ./libtool --tag=GCJ  --mode=link /tmp/gcc/host-i686-pc-cygwin/gcc/gcj
-B/tmp/gcc/i686-pc-mingw32/libjava/ -B/tmp/gcc/host-i686-pc-cygwin/gcc/
-L/tmp/gcc/i686-pc-mingw32/winsup/mingw
-L/tmp/gcc/i686-pc-mingw32/winsup/w32api/lib -isystem
/tmp/gcc/winsup/mingw/include -isystem /tmp/gcc/winsup/w32api/include
-B/usr/i686-pc-mingw32/bin/ -B/usr/i686-pc-mingw32/lib/ -isystem
/usr/i686-pc-mingw32/include -isystem /usr/i686-pc-mingw32/sys-include
--sysroot=/usr/i686-pc-mingw32/sys-root   -L/tmp/gcc/i686-pc-mingw32/libjava
-ffloat-store -fomit-frame-pointer -Usun -fno-omit-frame-pointer -g -O2  -o
gcj-dbtool.exe --main=gnu.gcj.tools.gcj_dbtool.Main -rpath
/usr/i686-pc-mingw32/lib -shared-libgcc   gnu/gcj/tools/gcj_dbtool/natMain.o
gnu/gcj/tools/gcj_dbtool.lo -L/tmp/gcc/i686-pc-mingw32/libjava/.libs libgcj.la
gdb --args .libs/gcj-dbtool.exe
(gdb) p klass-engine
$14 = (_Jv_ExecutionEngine *) 0x0
(gdb) p *klass
$15 = (java::lang::Class) {
  java::lang::Object = {No data fields},
  members of java::lang::Class:
  static class$ = {
java::lang::Object = {No data fields},
members of java::lang::Class:
static class$ = same as static member of an already seen type,
next_or_version = 0x0,
name = 0x6a04c874,
accflags = 0x31,
superclass = 0x69d57180,
constants = {
  size = 0x25,
  tags = 0x69d57620 ,
  data = 0x69d57580
},
{
  methods = 0x69d57660,
  element_type = 0x69d57660
},
method_count = 0x52,
vtable_method_count = 0x41,
fields = 0x0,
---Type return to continue, or q return to quit---
size_in_bytes = 0x90,
field_count = 0x0,
static_field_count = 0x0,
vtable = 0x69d57468,
otable = 0x0,
otable_syms = 0x0,
atable = 0x0,
atable_syms = 0x0,
itable = 0x0,
itable_syms = 0x0,
catch_classes = 0x69d57cc8,
interfaces = 0x69d57ce0,
loader = 0x0,
interface_count = 0x4,
state = 0xe,
thread = 0x1,
depth = 0x1,
ancestors = 0xa64ff0,
{
  idt = 0xa68fc8,
  ioffsets = 0xa68fc8
},
arrayclass = 0xa6ced8,
---Type return to continue, or q return to quit---
protectionDomain = 0x0,
assertion_table = 0x0,
hack_signers = 0x0,
chain = 0x69e6c120,
aux_info = 0x0,
engine = 0x6a3a95c0,
reflection_data = 0x6a04c8a0 \001
  },
  next_or_version = 0x400635d8,
  name = 0x4060bc,
  accflags = 0x21,
  superclass = 0x69d57180,
  constants = {
size = 0x32,
tags = 0x405420 ,
data = 0x4052c0
  },
  {
methods = 0x405460,
element_type = 0x405460
  },
  method_count = 0xa,
  vtable_method_count = 0x6,
---Type return to continue, or q return to quit---
  fields = 0x405528,
  size_in_bytes = 0x4,
  field_count = 0x1,
  static_field_count = 0x1,
  vtable = 0x4051a8,
  otable = 0x0,
  otable_syms = 0x0,
  atable = 0x0,
  atable_syms = 0x0,
  itable = 0x0,
  itable_syms = 0x0,
  catch_classes = 0x405538,
  interfaces = 0x0,
  loader = 0x0,
  interface_count = 0x0,
  state = 0x1,
  thread = 0x0,
  depth = 0x0,
  ancestors = 0x0,
  {
idt = 0x0,
ioffsets = 0x0
  },
---Type return to continue, or q return to quit---
  arrayclass = 0x0,
  protectionDomain = 0x0,
  assertion_table = 0x0,
  hack_signers = 0x0,
  chain = 0x0,
  aux_info = 0x0,
  engine = 0x0,
  reflection_data = 0x4060de 
}

why do we have two engine field?


[Bug libgcj/50831] [4.7 regression] SIGSEGV in link.cc:1904

2011-10-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50831

--- Comment #1 from gee jojelino at gmail dot com 2011-10-22 15:15:07 UTC ---

$ gdb --args ./gcj-dbtool.exe
rGNU gdb (GDB) 7.3.50.20110903-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-pc-cygwin.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...

warning: the current range check setting does not match the language.


warning: the current type check setting does not match the language.

Whether backtraces should continue past the entry point of a program is off.
Reading symbols from
/tmp/gcc/i686-pc-mingw32/libjava/.libs/gcj-dbtool.exe...done.
(gdb) r
Starting program: /tmp/gcc/i686-pc-mingw32/libjava/.libs/gcj-dbtool.exe
[New Thread 3860.0x1a7c]
[New Thread 3860.0x1c98]

Program received signal SIGSEGV, Segmentation fault.
0x69690e36 in verify_class (klass=0x405100) at ../.././libjava/link.cc:1904
1904  klass-engine-verify(klass);
(gdb) bt
#0  0x69690e36 in verify_class (klass=0x405100) at ../.././libjava/link.cc:1904
#1  _Jv_Linker::wait_for_state (klass=0x405100, state=0x9)
at ../.././libjava/link.cc:2074
#2  0x696c5280 in java::lang::Class::initializeClass (this=0x405100)
at ../.././libjava/java/lang/natClass.cc:722
#3  0x00401f38 in gnu.gcj.tools.gcj_dbtool.Main.main(java.lang.String[])void (
s=@a6af98) at /tmp/gcc/libjava/gnu/gcj/tools/gcj_dbtool/Main.java:26
#4  0x696bd552 in gnu::java::lang::MainThread::call_main (this=0xc0bf60)
at ../.././libjava/gnu/java/lang/natMainThread.cc:54
#5  0x696fad96 in gnu.java.lang.MainThread.run()void (this=@c0bf60)
at /tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#6  0x696cbeb2 in _Jv_ThreadRun (thread=0xc0bf60)
at ../.././libjava/java/lang/natThread.cc:335
#7  0x69684030 in _Jv_RunMain (vm_args=0x0, klass=0x405100, name=0x0,
argc=0x1, argv=0x3d8810, is_jar=0x0) at ../.././libjava/prims.cc:1789
#8  0x69684226 in _Jv_RunMain (klass=0x405100, name=0x0, argc=0x1,
argv=0x3d8810, is_jar=0x0) at ../.././libjava/prims.cc:1814
#9  0x6968428f in JvRunMain (klass=0x405100, argc=0x1, argv=0x3d8810)
at ../.././libjava/prims.cc:1820
#10 0x00401402 in _fu0___Jv_Compiler_Properties () at /tmp/ccMCI8VE.i:11
#11 0x004010bb in __mingw_CRTStartup ()
at
/usr/src/mingw-runtime/mingw-runtime-3.20-1/src/mingwrt-3.20-mingw32/crt1.c:244
---Type return to continue, or q return to quit---
#12 0x004012a8 in mainCRTStartup ()
at
/usr/src/mingw-runtime/mingw-runtime-3.20-1/src/mingwrt-3.20-mingw32/crt1.c:264
(gdb)


[Bug libgcj/50831] [4.7 regression] __gcc_register_frame must throw error when failed to load dll

2011-10-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50831

gee jojelino at gmail dot com changed:

   What|Removed |Added

Summary|[4.7 regression] SIGSEGV in |[4.7 regression]
   |link.cc:1904|__gcc_register_frame must
   ||throw error when failed to
   ||load dll

--- Comment #2 from gee jojelino at gmail dot com 2011-10-22 16:30:35 UTC ---
in config/i386/{cygwin,mingw32}.h, LIBGCJ_SONAME is hard-coded so
__gcc_register_frame tries to load libgcj-12.dll, but in
libjava/libtool-version the major version is 13. for permanant fix, it would be
needed to generate header file on configuration time for proper libjava
version.


[Bug java/50045] [4.7 regression] ICE in gcc/java/lang.c:427 with -ftree-dump-all

2011-10-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50045

--- Comment #1 from gee jojelino at gmail dot com 2011-10-22 17:35:01 UTC ---
and newer one.

(gdb) r
Starting program: /tmp/gcc/host-i686-pc-cygwin/gcc/jc1.exe gnu.zip
-fhash-synchronization -fuse-divide-subroutine -fcheck-references
-fuse-boehm-gc -fkeep-inline-functions -quiet -dumpbase gnu.zip -mtune=generic
-march=pentiumpro -auxbase-strip gnu/gcj/.libs/convert.o -g -O2 -Wno-deprecated
-version -ffloat-store -fno-omit-frame-pointer -fencoding=UTF-8
-fbootstrap-classes
-fsource-filename=/tmp/gcc/i686-pc-mingw32/libjava/classpath/lib/classes
-fdump-tree-all -fbootclasspath=./:../.././libjava/classpath/lib/
-faux-classpath gnu.zip -MD_ -MT gnu/gcj/convert.lo -MF gnu/gcj/convert.deps -o
/tmp/ccY2WWPD.s
[New Thread 5008.0xea0]
warning: section .gnu_debuglink not found in /cygdrive/d/cygwin/bin/cygwin1.dbg
[New Thread 5008.0x9d4]
GNU Java (GCC) version 4.7.0 20111021 (experimental) (i686-pc-mingw32)
compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Java (GCC) version 4.7.0 20111021 (experimental) (i686-pc-mingw32)
compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
gnu.zip/ (zip)
./ (system)
../.././libjava/classpath/lib/ (system)

Program received signal SIGSEGV, Segmentation fault.
put_decl_node (node=optimized out, verbosity=0x2)
at ../.././gcc/java/lang.c:427
427   put_decl_node (TREE_VALUE (args), verbosity);
(gdb) bt
#0  put_decl_node (node=optimized out, verbosity=0x2)
at ../.././gcc/java/lang.c:427
#1  0x004376da in lang_printable_name (decl=0x7ff60780, v=0x2)
at ../.././gcc/java/lang.c:473
#2  0x005b320a in cgraph_node_name (node=0x7ff57a10)
at ../.././gcc/cgraph.c:1768
#3  0x009be355 in dump_inline_edge_summary (f=0x20137d0c, indent=0x4,
info=0x7fbf6378, node=) at ../.././gcc/ipa-inline-analysis.c:1094
#4  0x009c323c in dump_inline_summary (node=0x7ff52a00, f=0x20137d0c)
at ../.././gcc/ipa-inline-analysis.c:1194
#5  dump_inline_summary (f=0x20137d0c, node=0x7ff52a00)
at ../.././gcc/ipa-inline-analysis.c:1161
#6  0x009c4b34 in estimate_function_body_sizes (early=0x1, node=0x7ff52a00)
at ../.././gcc/ipa-inline-analysis.c:2053
#7  compute_inline_parameters (node=0x7ff52a00, early=0x1)
at ../.././gcc/ipa-inline-analysis.c:2129
#8  0x009c5760 in compute_inline_parameters_for_current ()
at ../.././gcc/ipa-inline-analysis.c:2147
#9  0x00514f0d in execute_one_pass (pass=0xd20c00) at ../.././gcc/passes.c:2064
#10 0x00515245 in execute_pass_list (pass=0xd20c00)
at ../.././gcc/passes.c:2119
#11 0x005144bc in do_per_function_toporder (
callback=0x515230 execute_pass_list, data=0xd20a80)
---Type return to continue, or q return to quit---
at ../.././gcc/passes.c:1606
#12 0x005156a3 in execute_ipa_pass_list (pass=0xd20b40)
at ../.././gcc/passes.c:2436
#13 0x005c0c22 in ipa_passes () at ../.././gcc/cgraphunit.c:2033
#14 cgraph_optimize () at ../.././gcc/cgraphunit.c:2145
#15 0x005c128f in cgraph_finalize_compilation_unit ()
at ../.././gcc/cgraphunit.c:1327
#16 0x00588c3c in write_global_declarations () at ../.././gcc/langhooks.c:303
#17 0x004178ce in java_write_globals () at ../.././gcc/java/class.c:3241
#18 0x004fc3dc in compile_file () at ../.././gcc/toplev.c:581
#19 do_compile () at ../.././gcc/toplev.c:1930
#20 toplev_main (argc=0x22, argv=0x2003a368) at ../.././gcc/toplev.c:2006
#21 0x00cec270 in main (argc=0x22, argv=0x2003a368) at ../.././gcc/main.c:36
#22 0x610069a8 in _cygwin_exit_return ()
at /tmp/winsup/winsup/cygwin/dcrt0.cc:897
#23 0x61004e56 in _cygtls::call2 (this=0x5ecce64,
func=0x61005cd0 dll_crt0_1(void*), arg=0x0, buf=0x5eccdc4)
at /tmp/winsup/winsup/cygwin/cygtls.cc:69


[Bug java/50045] [4.7 regression] ICE in gcc/java/lang.c:427 with -ftree-dump-all

2011-10-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50045

--- Comment #2 from gee jojelino at gmail dot com 2011-10-22 17:37:37 UTC ---
Created attachment 25576
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25576
testcase


[Bug libgcj/50053] [4.7 regression] SIGSEGV in natClass.cc:651

2011-10-22 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053

--- Comment #4 from gee jojelino at gmail dot com 2011-10-22 19:33:19 UTC ---
;;
;; Full RTL generated for this function:
;;
(note 1 0 4 NOTE_INSN_DELETED)

(note 4 1 2 2 [bb 2] NOTE_INSN_BASIC_BLOCK)

(insn 2 4 3 2 (set (reg/f:SI 61 [ this ])
(reg:SI 2 cx [ this ]))
/tmp/gcc/libjava/gnu/gcj/convert/Input_8859_1.java:19 -1
 (nil))

cx again, maybe it would be related to
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725 except that it is compiled
without -mtune=core2 -mstackrealign.


  1   2   3   >