[Bug c++/33556] New: [4.3 Regression] internal compiler error: in finish_function, at cp/decl.c:11638

2007-09-25 Thread jojelino at gmail dot com
following code invokes ICE.
svn revision 128768

class Ifoo
{
public:
virtual ~Ifoo(){}
};
class foo:public Ifoo
{
 foo(){};
// ~foo();
};
foo::~foo()
{
delete this;
}

1. if you uncomment ~foo in class definition, ICE go away.
2. if you comment functiono body of foo::~foo, it invokes error.
error: definition of implicitly-declared 'virtual foo::~foo()'


-- 
   Summary: [4.3 Regression] internal compiler error: in
finish_function, at cp/decl.c:11638
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jojelino at gmail dot com


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



[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 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
"/tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/../../lib/gcc/i686-pc-c

[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  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  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 
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:
...

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] )) ../.././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=, 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 )
at ../.././libgcc/unwind-dw2.c:1502
#9  0x00fa2062 in _Unwind_Backtrace (trace=0xf7b170 ,
trace_argument=0x5e0a5e8) at ../.././libgcc/unwind.inc:283
#10 0x00f7b23a in backtrace_full ()
#11 0x00f3245b in diagnostic_action_after_output (
context=0x15655a0 , diagnostic=0x5e0a6c4)
---Type  to continue, or q  to quit---
at ../.././gcc/diagnostic.c:463
#12 0x00f332b6 in diagnostic_report_diagnostic (
context=0x15655a0 , diagnostic=0x5e0a6c4)
at ../.././gcc/diagnostic.c:791
#13 0x00f33a07 in internal_error (
gmsgid=0x127143f  "in %s, at
%s:%d") at ../.././gcc/diagnostic.c:1123
#14 0x00f33af3 in fancy_abort (
file=0x10d3433 
"../.././gcc/recog.c", line=0x866,
function=0x10d39c7  "extract_insn")
at ../.././gcc/diagnostic.c:1177
#15 0x00b317b1 in _fatal_insn (
msgid=0x112f97f  "unrecognizable
insn:", insn=0x7e7b5a50,
file=0x10d3433 
"../.././gcc/recog.c", line=0x866,
function=0x10d39c7  "extract_insn")
at ../.././gcc/rtl-error.c:109
#16 0x00b317e9 in _fatal_insn_not_found (insn=0x7e7b5a50,
file=0x10d3433 
"../.././gcc/recog.c", line=0x866,
function=0x10d39c7  "extract_insn")
---Type  to continue, or q  to quit---
at ../.././gcc/rtl-error.c:117
#17 0x009b99eb in extract_insn (insn=0x7e7b5a50) at ../.././gcc/recog.c:2150
#18 0x00593e17 in instantiate_virtual_regs_in_insn (insn=0x7e7b5a50)
a

[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  changed:



   What|Removed |Added



   Severity|normal  |blocker


[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  changed:



   What|Removed |Added



 Status|UNCONFIRMED |RESOLVED

 Resolution||DUPLICATE



--- Comment #3 from gee  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  changed:



   What|Removed |Added



 CC||jojelino at gmail dot com



--- Comment #3 from gee  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  2013-04-18 16:25:13 UTC ---

Caused by r197373. Reverting the commit fixed the problem.



commit 5496fac88af2009a2c4d5cfec0e722d5f962d80e

Author: ktietz 

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 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  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 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=30121&action=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  to continue, or q  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  to continue, or q  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=0x7fa7135

[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  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_istream
>-in-std::basic_ifstream >'
/usr/include/c++/4.8.0/istream:106: undefined reference to `construction vtable
for std::basic_istream
>-in-std::basic_ifstream >'
/usr/include/c++/4.8.0/istream:106: undefined reference to `construction vtable
for std::basic_istream
>-in-std::basic_ifstream >'

it says that 'construction vtable for std::basic_istream >-in-std::basic_ifstream >'
cannot be found, but it exists. 

$ nm -sn /lib/libstdc++.a |c++filt |grep "construction vtable for
std::basic_istream >-in-std::basic_ifstream >"
construction vtable for std::basic_istream
>-in-std::basic_ifstream > in fstream-inst.o
 R construction vtable for std::basic_istream >-in-std::basic_ifstream >


[Bug regression/54314] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstream, std::allocator >'

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

--- Comment #1 from gee  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 c++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstream, std::allocator >'

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

--- Comment #3 from gee  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_ostringstream, std::allocator >'

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

--- Comment #4 from gee  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 c++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstream, std::allocator >'

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

--- Comment #5 from gee  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_ostringstream, std::allocator >'

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

--- Comment #6 from gee  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 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  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||WONTFIX

--- Comment #11 from gee  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 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  2012-09-19 13:20:59 UTC ---
(In reply to comment #5)
> Still broken?

I suspect it would be duplicate of 54314.


[Bug driver/47584] New: [4.6 regression] internal compiler error: sigsegv in libcpp/line-map.c:285

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

   Summary: [4.6 regression] internal compiler error: sigsegv in
libcpp/line-map.c:285
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: driver
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com


Starting program: /usr/libexec/gcc/i686-pc-mingw32/4.6.0/cc1.exe -quiet -v -I
/usr/include/w32api -I ../../../../include/QtCore -I
../../../../include/QtNetwork -I ../../../../include/QtGui -I
../../../../include -I bridge/qt -I page/qt -I platform/graphics/qt -I
platform/network/qt -I platform/qt -I ../WebKit/qt/Api -I
../WebKit/qt/WebCoreSupport -I . -I accessibility -I bindings/js -I bridge -I
bridge/c -I bridge/jsc -I css -I dom -I dom/default -I editing -I history -I
html -I html/canvas -I inspector -I loader -I loader/appcache -I loader/archive
-I loader/icon -I notifications -I page -I page/animation -I platform -I
platform/animation -I platform/graphics -I platform/graphics/filters -I
platform/graphics/transforms -I platform/image-decoders -I platform/mock -I
platform/network -I platform/sql -I platform/text -I plugins -I rendering -I
rendering/style -I storage -I svg -I svg/animation -I svg/graphics -I
svg/graphics/filters -I websockets -I wml -I workers -I xml -I generated -I
../JavaScriptCore -I ../../webkit -I ../JavaScriptCore/assembler -I
../JavaScriptCore/bytecode -I ../JavaScriptCore/bytecompiler -I
../JavaScriptCore/debugger -I ../JavaScriptCore/interpreter -I
../JavaScriptCore/jit -I ../JavaScriptCore/parser -I ../JavaScriptCore/pcre -I
../JavaScriptCore/profiler -I ../JavaScriptCore/runtime -I
../JavaScriptCore/wtf -I ../JavaScriptCore/wtf/symbian -I
../JavaScriptCore/wtf/unicode -I ../JavaScriptCore/yarr -I
../JavaScriptCore/API -I ../JavaScriptCore/ForwardingHeaders -I
../JavaScriptCore/generated -I ../include/QtWebKit -I
../../../../include/QtWebKit -I .rcc/release-shared -I tmp -I plugins/win -I
platform/win -I ../../sqlite -I ../../../../include/phonon -I
../../../../include/ActiveQt -I .moc/release-shared -I
../../../../mkspecs/win32-g++ -D UNICODE=1 -D QT_LARGEFILE_SUPPORT=1 -D
QT_SH---Type  to continue, or q  to quit---
ARED -D QT_THREAD_SUPPORT -D UNICODE -D QT_LARGEFILE_SUPPORT -D BUILDING_QT__=1
-D WTF_USE_ACCELERATED_COMPOSITING -D USE_SYSTEM_MALLOC -D NDEBUG -D QT_MAKEDLL
-D QT_NO_CAST_TO_ASCII -D QT_ASCII_CAST_WARNINGS -D QT3_SUPPORT -D
QT_MOC_COMPAT -D QT_USE_FAST_OPERATOR_PLUS -D QT_USE_FAST_CONCATENATION -D
_USE_MATH_DEFINES -D BUILD_WEBKIT -D _HAS_TR1=0 -D BUILDING_QT__ -D
BUILDING_JavaScriptCore -D BUILDING_WTF -D ENABLE_VIDEO=1 -D
ENABLE_JAVASCRIPT_DEBUGGER=1 -D ENABLE_DATABASE=1 -D ENABLE_EVENTSOURCE=1 -D
ENABLE_OFFLINE_WEB_APPLICATIONS=1 -D ENABLE_DOM_STORAGE=1 -D
ENABLE_ICONDATABASE=1 -D ENABLE_CHANNEL_MESSAGING=1 -D
ENABLE_ORIENTATION_EVENTS=0 -D ENABLE_SQLITE=1 -D ENABLE_DASHBOARD_SUPPORT=0 -D
ENABLE_FILTERS=1 -D ENABLE_XPATH=1 -D ENABLE_WCSS=0 -D ENABLE_WML=0 -D
ENABLE_SHARED_WORKERS=1 -D ENABLE_WORKERS=1 -D ENABLE_XHTMLMP=0 -D
ENABLE_DATAGRID=0 -D ENABLE_RUBY=1 -D ENABLE_SANDBOX=1 -D ENABLE_PROGRESS_TAG=1
-D ENABLE_BLOB_SLICE=0 -D ENABLE_3D_RENDERING=1 -D ENABLE_SVG=1 -D
ENABLE_SVG_FONTS=1 -D ENABLE_SVG_FOREIGN_OBJECT=1 -D ENABLE_SVG_ANIMATION=1 -D
ENABLE_SVG_AS_IMAGE=1 -D ENABLE_SVG_USE=1 -D ENABLE_DATALIST=1 -D
ENABLE_TILED_BACKING_STORE=1 -D ENABLE_NETSCAPE_PLUGIN_API=1 -D
ENABLE_WEB_SOCKETS=1 -D ENABLE_XSLT=0 -D ENABLE_QT_BEARER=1 -D
ENABLE_TOUCH_EVENTS=1 -D SQLITE_CORE -D SQLITE_OMIT_LOAD_EXTENSION -D
SQLITE_OMIT_COMPLETE -D QT_DLL -D QT_NO_DEBUG -D QT_GUI_LIB -D QT_NETWORK_LIB
-D QT_CORE_LIB -D QT_HAVE_MMX -D QT_HAVE_3DNOW -D QT_HAVE_SSE -D QT_HAVE_MMXEXT
-D QT_HAVE_SSE2 -D QT_HAVE_SSE3 -D QT_HAVE_SSSE3 -D QT_HAVE_SSE4_1 -D
QT_HAVE_SSE4_2 -D QT_HAVE_AVX -include .obj/release-shared/WebKit_pch.h
../../sqlite/sqlite3.c -quiet -dumpbase sqlite3.c -mtune=generic
-march=pentiumpro -auxbase-strip .obj/release-shared/sqlite3.o -O2 -Wall
-version -o /cygdrive/d/temp/cache/ccsxQ36R.s
[New Thread 7612.0x311c]
[New Thread 7612.0xc68]
[New Thread 7612.0x365c]
---Type  to continue, or q  to quit---

Program received signal SIGSEGV, Segmentation fault.
linemap_lookup (set=0x7fd20090, line=0x49) at ../.././libcpp/line-map.c:285
285   if (line >= cached->start_location)
(gdb) li
280   mn = set->cache;
281   mx = set->used;
282
283   cached = &set->maps[mn];
284   /* We should get a segfault if no line_maps have been added yet.  */
285   if (line >= cached->start_location)
286 {
287   if (mn + 1 == mx || line < cached[1].start_location)
288 return cached;
289 }
(gdb) bt
#0  linemap_lookup (set=0x7fd20090, line=0x49) at ../.././libcpp/line-map.c:285
#1  0x00669fc5 in diagnostic_report_current_module (context=0x10aecc0)
at ../.././gcc/diagnostic.c:271
#2  0x008e12f7 in diagnostic_report_current_function (con

[Bug driver/47584] [4.6 regression] internal compiler error: sigsegv in libcpp/line-map.c:285

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

--- Comment #1 from gee  2011-02-02 07:07:15 UTC ---
Created attachment 23208
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23208
source. -save-temps failed with segmentation fault


[Bug driver/47584] [4.6 regression] internal compiler error: sigsegv in libcpp/line-map.c:285

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

--- Comment #2 from gee  2011-02-02 07:23:19 UTC ---
Created attachment 23209
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23209
precompiled header


[Bug pch/47584] [4.6 regression] internal compiler error: sigsegv in libcpp/line-map.c:285

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

gee  changed:

   What|Removed |Added

   Host|i686-pc-mingw32 |i686-pc-cygwin

--- Comment #6 from gee  2011-02-02 19:33:39 UTC ---
i686-pc-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=i686-pc-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-mingw32/4.6.0/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ./configure --config-cache --prefix=/usr
--enable-win32-registry --enable-threads=win32 --enable-languages=c,c++,lto
--with-win32-nlsapi=unicode --enable-tls --disable-bootstrap
--target=i686-pc-mingw32 --enable-shared --enable-interpreter
--disable-sjlj-exceptions --enable-gomp
Thread model: win32
gcc version 4.6.0 20110202 (experimental) (GCC)

i'm sorry for this.


[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  ---
Created attachment 30129
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30129&action=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  ---
(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/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  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  ---
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  ---
(gdb) x/i 0x46e010
   0x46e010 <__deregister_frame_info_bases+160>:fs

which is cause of SIGILL


[Bug middle-end/50451] New: [4.7 regression] internal compiler error at tree-vect-loop.c:3557

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

 Bug #: 50451
   Summary: [4.7 regression] internal compiler error at
tree-vect-loop.c:3557
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com
  Host: i686-pc-cygwin
Target: i686-pc-cygwin
 Build: i686-pc-cygwin


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

gcc   -DHAVE_MKSTEMP   -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE 
-DHAVE_DBUS -DHAVE_BSWAP32 -DHAVE_BYTESWAP_H -O4 -mfpmath=sse -march=native
-mtune=native -g -flto -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations
-Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing
-Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=1
-DHAVE_SYS_TIME_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" 
-DUSE_LIBICONV_GNU  -Ifreetype/include -DFT2_BUILD_LIBRARY -DDARWIN_NO_CARBON 
-o ./obj/psconv.o -c freetype/src/psaux/psconv.c -v
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
--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 20110918 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-D' 'HAVE_MKSTEMP' '-D' 'HAVE_FONTCONFIG' '-D'
'HAVE_LIBIDN' '-D' 'HAVE_SETLOCALE' '-D' 'HAVE_DBUS' '-D' 'HAVE_BSWAP32' '-D'
'HAVE_BYTESWAP_H' '-O4' '-mfpmath=sse' '-march=native' '-mtune=native' '-g'
'-flto' '-Wall' '-Wstrict-prototypes' '-Wundef' '-Wmissing-declarations'
'-Wmissing-prototypes' '-Wwrite-strings' '-Wno-strict-aliasing'
'-Wdeclaration-after-statement' '-fno-builtin' '-fno-common' '-D'
'HAVE_STDINT_H=1' '-D' 'HAVE_SYS_TIME_H=1' '-D' 'GX_COLOR_INDEX_TYPE=unsigned
long long' '-D' 'USE_LIBICONV_GNU' '-I' 'freetype/include' '-D'
'FT2_BUILD_LIBRARY' '-D' 'DARWIN_NO_CARBON' '-o' './obj/psconv.o' '-c' '-v'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1.exe -quiet -v -I freetype/include
-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_MKSTEMP -D HAVE_FONTCONFIG -D HAVE_LIBIDN -D HAVE_SETLOCALE -D
HAVE_DBUS -D HAVE_BSWAP32 -D HAVE_BYTESWAP_H -D HAVE_STDINT_H=1 -D
HAVE_SYS_TIME_H=1 -D GX_COLOR_INDEX_TYPE=unsigned long long -D USE_LIBICONV_GNU
-D FT2_BUILD_LIBRARY -D DARWIN_NO_CARBON freetype/src/psaux/psconv.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 --param l1-cache-size=32 --param
l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 -quiet -dumpbase
psconv.c -mfpmath=sse -auxbase-strip ./obj/psconv.o -g -O4 -Wall
-Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes
-Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -version
-flto -fno-builtin -fno-common -o /tmp/ccOOLJGb.s
GNU C (GCC) version 4.7.0 20110918 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20110829 (experimental), GMP version
5.0.0, MPFR version 3.0.1-p4, MPC version 0.8.1
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"
#include "..." search starts here:
#include <...> search starts here:
 freetype/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.
GNU C (GCC) version 4.7.0 20110918 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20110829 (experimental), GMP version
5.0.0, MPFR version 3.0.1-p4, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 5daf0dfdc983589a8c64d9638e3b743e
freetype/src/psaux/psconv.c: In function 'PS_Conv_ToFixed':
freetype/src/psaux/psconv.c:143:3: internal compiler error: vector
VEC(tree,base) index domain error, in vect_create_epilog_for_reduction at
tree-vect-loop.c:3557
Please submit a full bug report,
with preprocessed source if appropriate.
See  for inst

[Bug driver/50475] New: [4.7 regression] internal compiler error at passes.c:1730

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

 Bug #: 50475
   Summary: [4.7 regression] internal compiler error at
passes.c:1730
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: driver
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com


Created attachment 25334
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25334
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   -MMD 
-fmerge-constants -ftracer -mno-use-libstdc-wrappers  -DPROFILE -O4 
-mstackrealign -march=core2 -g -mfpmath=sse -g -pg -finstrument-functions -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
./syscalls.o /tmp/winsup/winsup/cygwin/syscalls.cc -v -save-temps
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 --enable-languages=c,c++,lto
--with-win32-nlsapi=unicode --enable-tls --disable-bootstrap --enable-shared
--disable-sjlj-exceptions --enable-gomp --enable-cloog-backend=isl :
(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 --enable-languages=c,c++,lto
--no-create --no-recursion
Thread model: win32
gcc version 4.7.0 20110921 (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'
'-MMD' '-fmerge-constants' '-ftracer' '-mno-use-libstdc-wrappers' '-D'
'PROFILE' '-O4' '-mstackrealign' '-march=core2' '-g' '-mfpmath=sse' '-g' '-pg'
'-finstrument-functions' '-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'
'./syscalls.o' '-v' '-save-temps' '-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 ./syscalls.d -MQ ./syscalls.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 -D PROFILE -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/syscalls.cc
-mno-use-libstdc-wrappers -mstackrealign -march=core2 -mfpmath=sse -Wall
-Wstrict-aliasing -Wwrite-strings -fmerge-constants -ftracer
-finstrument-functions -fno-common -fbuiltin -fmessage-length=0 -fno-rtti
-fno-exceptions -g -g -fworking-directory -O4 -fpch-preprocess -o syscalls.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/cygw

[Bug target/50482] New: [4.7 regression] internal compiler error at recog.c:2137

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

 Bug #: 50482
   Summary: [4.7 regression] internal compiler error at
recog.c:2137
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: jojel...@gmail.com


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

$ gcc   -DHAVE_MKSTEMP   -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE 
-DHAVE_DBUS -DHAVE_BSWAP32 -DHAVE_BYTESWAP_H -O4 -mfpmath=sse -march=native
-mtune=native -g -flto -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations
-Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing
-Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=1
-DHAVE_SYS_TIME_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" 
-DUSE_LIBICONV_GNU  -I./psi -I./obj -I./obj -I./base  -o ./obj/zimage3.o -c
./psi/zimage3.c -v -save-temps
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
--with-win32-nlsapi=unicode --enable-tls --disable-bootstrap --enable-shared
--disable-sjlj-exceptions --enable-gomp --enable-cloog-backend=isl :
(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 --enable-languages=c,c++,lto
--no-create --no-recursion : (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
--enable-languages=c,c++,lto --no-create --no-recursion
Thread model: win32
gcc version 4.7.0 20110922 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-D' 'HAVE_MKSTEMP' '-D' 'HAVE_FONTCONFIG' '-D'
'HAVE_LIBIDN' '-D' 'HAVE_SETLOCALE' '-D' 'HAVE_DBUS' '-D' 'HAVE_BSWAP32' '-D'
'HAVE_BYTESWAP_H' '-O4' '-mfpmath=sse' '-march=native' '-mtune=native' '-g'
'-flto' '-Wall' '-Wstrict-prototypes' '-Wundef' '-Wmissing-declarations'
'-Wmissing-prototypes' '-Wwrite-strings' '-Wno-strict-aliasing'
'-Wdeclaration-after-statement' '-fno-builtin' '-fno-common' '-D'
'HAVE_STDINT_H=1' '-D' 'HAVE_SYS_TIME_H=1' '-D' 'GX_COLOR_INDEX_TYPE=unsigned
long long' '-D' 'USE_LIBICONV_GNU' '-I' './psi' '-I' './obj' '-I' './obj' '-I'
'./base' '-o' './obj/zimage3.o' '-c' '-v' '-save-temps'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1.exe -E -quiet -v -I ./psi -I ./obj
-I ./obj -I ./base -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_MKSTEMP -D HAVE_FONTCONFIG -D HAVE_LIBIDN -D HAVE_SETLOCALE -D
HAVE_DBUS -D HAVE_BSWAP32 -D HAVE_BYTESWAP_H -D HAVE_STDINT_H=1 -D
HAVE_SYS_TIME_H=1 -D GX_COLOR_INDEX_TYPE=unsigned long long -D USE_LIBICONV_GNU
./psi/zimage3.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 --param
l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048
-mtune=core2 -mfpmath=sse -Wall -Wstrict-prototypes -Wundef
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings
-Wno-strict-aliasing -Wdeclaration-after-statement -flto -fno-builtin
-fno-common -g -fworking-directory -O4 -fpch-preprocess -o zimage3.i
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 "./obj"
#include "..." search starts here:
#include <...> search starts here:
 ./psi
 ./obj
 ./base
 /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='-D' 'HAVE_MKSTEMP' '-D' 'HAVE_FONTCONFIG' '-D'
'HAVE_LIBIDN' '-D' 'HAVE_SETLOCALE' '-D' 'HAVE_DBUS' '-D' 'HAVE_BSWAP32' '-D'
'HAVE_BYTESWAP_H' '-O4' '-mfpmath=sse' '-march=native' '-mtune=native' '-g'
'-flto' '-Wall' '-Wstrict-prototypes' '-Wundef' '-Wmissing-declarations'
'-Wmissing-prototypes' '-Wwrite-strings' '-Wno-strict-aliasing'
'-Wdeclaration-after-statement' '-fno-builtin' '-fno-common' '-D'
'HAVE_STDINT_H=1' '-D' 'HAVE_SYS_TIME_H=1' '-D' 'GX_COLOR_INDEX_T

[Bug tree-optimization/50658] New: [4.7 regression] SIGSEGV in tree-flow-inline.h:562

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

 Bug #: 50658
   Summary: [4.7 regression] SIGSEGV in tree-flow-inline.h:562
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 25440
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25440
preprocessed source

$ gdb --args /tmp/gcc/host-i686-pc-cygwin/gcc/cc1plus.exe -quiet -nostdinc++ -v
-I /tmp/gcc/libstdc++-v3/../libgcc -I
/tmp/gcc/i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin -I
/tmp/gcc/i686-pc-cygwin/libstdc++-v3/include -I /tmp/gcc/libstdc++-v3/libsupc++
-iprefix /tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/i686-pc-cygwin/4.7.0/
-isystem /tmp/gcc/host-i686-pc-cygwin/gcc/include -isystem
/tmp/gcc/host-i686-pc-cygwin/gcc/include-fixed -D__CYGWIN32__ -D__CYGWIN__
-Dunix -D__unix__ -D__unix -idirafter /usr/i686-pc-cygwin/bin/../include/w32api
-idirafter /usr/i686-pc-cygwin/bin/../../include/w32api -isystem
/usr/i686-pc-cygwin/include -isystem /usr/i686-pc-cygwin/sys-include
../../.././libstdc++-v3/libsupc++/eh_globals.cc -quiet -dumpbase eh_globals.cc
-mtune=generic -march=pentiumpro -auxbase-strip eh_globals.o -O2 -Wall -Wextra
-Wwrite-strings -Wcast-qual -version -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=eh_globals.lo -o /tmp/ccF1jDqY.s
GNU gdb (GDB) 7.3.50.20110903-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
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:
...

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/host-i686-pc-cygwin/gcc/cc1plus.exe...rdone.
(gdb) r
Starting program: /tmp/gcc/host-i686-pc-cygwin/gcc/cc1plus.exe -quiet
-nostdinc++ -v -I /tmp/gcc/libstdc++-v3/../libgcc -I
/tmp/gcc/i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin -I
/tmp/gcc/i686-pc-cygwin/libstdc++-v3/include -I /tmp/gcc/libstdc++-v3/libsupc++
-iprefix /tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/i686-pc-cygwin/4.7.0/
-isystem /tmp/gcc/host-i686-pc-cygwin/gcc/include -isystem
/tmp/gcc/host-i686-pc-cygwin/gcc/include-fixed -D__CYGWIN32__ -D__CYGWIN__
-Dunix -D__unix__ -D__unix -idirafter /usr/i686-pc-cygwin/bin/../include/w32api
-idirafter /usr/i686-pc-cygwin/bin/../../include/w32api -isystem
/usr/i686-pc-cygwin/include -isystem /usr/i686-pc-cygwin/sys-include
../../.././libstdc++-v3/libsupc++/eh_globals.cc -quiet -dumpbase eh_globals.cc
-mtune=generic -march=pentiumpro -auxbase-strip eh_globals.o -O2 -Wall -Wextra
-Wwrite-strings -Wcast-qual -version -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=eh_globals.lo -o /tmp/ccF1jDqY.s
[New Thread 4884.0x2ac]
warning: section .gnu_debuglink not found in /cygdrive/d/cygwin/bin/cygwin1.dbg
[New Thread 4884.0x170c]
GNU C++ (GCC) version 4.7.0 20111007 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111006 (experimental), GMP version
5.0.0, MPFR version 3.0.1-p4, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/usr/i686-pc-cygwin/sys-include"
ignoring nonexistent directory
"/tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/i686-pc-cygwin/4.7.0/include"
ignoring nonexistent directory
"/tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/i686-pc-cygwin/4.7.0/include-fixed"
ignoring nonexistent directory
"/tmp/gcc/host-i686-pc-cygwin/gcc/../lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/include"
ignoring duplicate directory
"/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/include"
ignoring duplicate directory "/usr/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/bin/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /tmp/gcc/libstdc++-v3/../libgcc
 /tmp/gcc/i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin
 /tmp/gcc/i686-pc-cygwin/libstdc++-v3/include
 /tmp/gcc/libstdc++-v3/libsupc++
 /tmp/gcc/host-i686-pc-cygwin/gcc/include
 /tmp/gcc/host-i686-pc-cygwin/gcc/include-fixed
 /usr/i686-pc-cygwin/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/i686-pc-cygwin/bin/../include

[Bug driver/50475] [4.7 regression] internal compiler error at passes.c:1730

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

gee  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED

--- Comment #2 from gee  2011-10-10 14:43:45 UTC ---
(In reply to comment #1)
> Works on x86_64-linux, maybe a dup of PR50389 (for which I have a local 
> patch)?
> 
> Please re-check once that bug is fixed.

Fixed.


[Bug tree-optimization/50723] New: [4.7 regression] internal compiler error: verify_ssa failed

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

 Bug #: 50723
   Summary: [4.7 regression] internal compiler error: verify_ssa
failed
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 25492
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25492
preprocessed source

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++,fortran,lto --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl : (reconfigured)  : (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
--enable-languages=c,c++,fortran,lto --no-create --no-recursion
Thread model: win32
gcc version 4.7.0 20111011 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-D' '__MINGW32__' '-D' '__MSVCRT__' '-D' 'WIN32' '-D'
'_WIN32' '-D' '__WIN32' '-D' '__WIN32__' '-U' '__CYGWIN__' '-U' 'unix' '-U'
'__unix__' '-U' '__unix' '-U' '__CYGWIN32__' '-B'
'/usr/i686-pc-mingw32/sys-root/mingw/lib/' '-c' '-O4' '-mstackrealign'
'-march=core2' '-g' '-mfpmath=sse' '-Wall' '-fomit-frame-pointer' '-I'
'../../../.././winsup/mingw/mingwex' '-I' '../../../.././winsup/mingw' '-I'
'../../../.././winsup/mingw/include' '-nostdinc' '-iwithprefixbefore' 'include'
'-I' '../../../.././winsup/mingw/../w32api/include' '-v' '-save-temps' '-o'
'wcrtomb.o'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1.exe -E -quiet -nostdinc -v -I
../../../.././winsup/mingw/mingwex -I ../../../.././winsup/mingw -I
../../../.././winsup/mingw/include -I
../../../.././winsup/mingw/../w32api/include -D__CYGWIN32__ -D__CYGWIN__ -Dunix
-D__unix__ -D__unix -D __MINGW32__ -D __MSVCRT__ -D WIN32 -D _WIN32 -D __WIN32
-D __WIN32__ -U __CYGWIN__ -U unix -U __unix__ -U __unix -U __CYGWIN32__
-iwithprefixbefore include ../../../.././winsup/mingw/mingwex/wcrtomb.c
-mstackrealign -march=core2 -mfpmath=sse -Wall -fomit-frame-pointer -g
-fworking-directory -O4 -fpch-preprocess -o wcrtomb.i
#include "..." search starts here:
#include <...> search starts here:
 ../../../.././winsup/mingw/mingwex
 ../../../.././winsup/mingw
 ../../../.././winsup/mingw/include
 ../../../.././winsup/mingw/../w32api/include
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/include
End of search list.
COLLECT_GCC_OPTIONS='-D' '__MINGW32__' '-D' '__MSVCRT__' '-D' 'WIN32' '-D'
'_WIN32' '-D' '__WIN32' '-D' '__WIN32__' '-U' '__CYGWIN__' '-U' 'unix' '-U'
'__unix__' '-U' '__unix' '-U' '__CYGWIN32__' '-B'
'/usr/i686-pc-mingw32/sys-root/mingw/lib/' '-c' '-O4' '-mstackrealign'
'-march=core2' '-g' '-mfpmath=sse' '-Wall' '-fomit-frame-pointer' '-I'
'../../../.././winsup/mingw/mingwex' '-I' '../../../.././winsup/mingw' '-I'
'../../../.././winsup/mingw/include' '-nostdinc' '-iwithprefixbefore' 'include'
'-I' '../../../.././winsup/mingw/../w32api/include' '-v' '-save-temps' '-o'
'wcrtomb.o'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1.exe -fpreprocessed wcrtomb.i -quiet
-dumpbase wcrtomb.c -mstackrealign -march=core2 -mfpmath=sse -auxbase-strip
wcrtomb.o -g -O4 -Wall -version -fomit-frame-pointer -o wcrtomb.s
GNU C (GCC) version 4.7.0 20111011 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111006 (experimental), GMP version
5.0.0, MPFR version 3.0.1-p4, MPC version 0.8.1
warning: MPFR header version 3.0.1-p4 differs from library version 3.2.0-dev.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 4.7.0 20111011 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111006 (experimental), GMP version
5.0.0, MPFR version 3.0.1-p4, MPC version 0.8.1
warning: MPFR header version 3.0.1-p4 differs from library version 3.2.0-dev.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: ff55cda5b7745a2de214166d277da77c
../../../.././winsup/mingw/mingwex/wcrtomb.c: In function '__wcrtomb_cp':
../../../.././winsup/mingw/mingwex/wcrtomb.c:94:1: error: definition in block 4
follows the use
for SSA_NAME: D.18798_14 in statement:
# .MEM_19 = VDEF <.MEM_18(D)>
size_16 = __wcrtomb_cp.part.0 (dst_8(D), D.18798_14, cp_2(D), mb_max_10(D));
../../../.././winsup/mingw/mingwex/wcrtomb.c:94:1: internal compiler error:
verify_ssa failed
Please submit a full bug report,
with preprocessed source if appr

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

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

 Bug #: 50725
   Summary: [4.7 regression] -O3 -mstackrealign -march=core2
generates invalid prologue code in callee procedure
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


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

it does generates wrong prologue. here are some pieces of it.
.ascii "  Unknown pseudo relocation bit size %d.\12\0"
.text
.p2align 4,,15
.globl__Z25_pei386_runtime_relocatorP11per_process
.def__Z25_pei386_runtime_relocatorP11per_process;.scl2;   
.type32;.endef
__Z25_pei386_runtime_relocatorP11per_process:
LFB221:
.cfi_startproc
movl(%ecx), %eax
imull$1000, 128(%eax), %edx
addl132(%eax), %edx
cmpl$226, %edx
jaL95
ret 
.p2align 4,,10
L95:

it is trivial that %ecx is not where first parameter stored. so please fix this
problem.

$ g++ -c -O3 -mstackrealign -march=core2 -o ./pseudo-reloc.o ./pseudo-reloc.ii
-v -save-temps
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++,fortran,lto --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl : (reconfigured)  : (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
--enable-languages=c,c++,fortran,lto --no-create --no-recursion
Thread model: win32
gcc version 4.7.0 20111011 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-c' '-O3' '-mstackrealign' '-march=core2' '-o'
'./pseudo-reloc.o' '-v' '-save-temps' '-shared-libgcc'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -fpreprocessed
./pseudo-reloc.ii -quiet -dumpbase pseudo-reloc.ii -mstackrealign -march=core2
-auxbase-strip ./pseudo-reloc.o -O3 -version -o pseudo-reloc.s
GNU C++ (GCC) version 4.7.0 20111011 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111006 (experimental), GMP version
5.0.0, MPFR version 3.0.1-p4, MPC version 0.8.1
warning: MPFR header version 3.0.1-p4 differs from library version 3.2.0-dev.
warning: MPC header version 0.8.1 differs from library version 0.9.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.7.0 20111011 (experimental) (i686-pc-cygwin)
compiled by GNU C version 4.7.0 20111006 (experimental), GMP version
5.0.0, MPFR version 3.0.1-p4, MPC version 0.8.1
warning: MPFR header version 3.0.1-p4 differs from library version 3.2.0-dev.
warning: MPC header version 0.8.1 differs from library version 0.9.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: fd6a3acd2dd7d494d520503529e6a109
COLLECT_GCC_OPTIONS='-c' '-O3' '-mstackrealign' '-march=core2' '-o'
'./pseudo-reloc.o' '-v' '-save-temps' '-shared-libgcc'
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/bin/as.exe -o
./pseudo-reloc.o pseudo-reloc.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='-c' '-O3' '-mstackrealign' '-march=core2' '-o'
'./pseudo-reloc.o' '-v' '-save-temps' '-shared-libgcc'


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

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

--- Comment #2 from gee  2011-10-14 16:01:26 UTC ---
following passes were enabled. i think if the following result of -fdump-passes
aren't same for the result of -m32, the wrong generated one wouldn't come out.

$ gcc -O3 -mstackrealign -march=core2 pseudo-reloc.ii -S -fdump-passes
   *warn_unused_result :  ON
   *diagnose_omp_blocks:  OFF
   tree-mudflap1   :  OFF
   tree-omplower   :  ON
   tree-lower  :  ON
   tree-ehopt  :  ON
   tree-eh :  ON
   tree-cfg:  ON
   *warn_function_return   :  ON
   *build_cgraph_edges :  ON
   *free_lang_data :  ON
   ipa-visibility  :  ON
   ipa-early_local_cleanups:  ON
  *free_cfg_annotations:  ON
  *init_datastructures :  ON
  tree-ompexp  :  OFF
  *referenced_vars :  ON
  tree-ssa :  ON
  tree-veclower:  OFF
  *early_warn_uninitialized:  OFF
  *rebuild_cgraph_edges:  ON
  tree-inline_param1   :  ON
  tree-einline :  ON
  tree-early_optimizations :  ON
 *remove_cgraph_callee_edges   :  ON
 tree-copyrename1  :  ON
 tree-ccp1 :  ON
 tree-forwprop1:  ON
 tree-ealias   :  ON
 tree-esra :  ON
 tree-fre1 :  ON
 tree-copyprop1:  ON
 tree-mergephi1:  ON
 tree-cddce1   :  ON
 tree-eipa_sra :  ON
 tree-tailr1   :  ON
 tree-switchconv   :  ON
 tree-ehcleanup1   :  OFF
 tree-profile_estimate :  ON
 tree-local-pure-const1:  ON
 tree-fnsplit  :  ON
  tree-release_ssa :  ON
  *rebuild_cgraph_edges:  ON
  tree-inline_param2   :  ON
   ipa-profile :  OFF
  tree-feedback_fnsplit:  OFF
   ipa-increase_alignment  :  OFF
   ipa-matrix-reorg:  OFF
   ipa-emutls  :  ON
   ipa-whole-program   :  ON
   ipa-profile_estimate:  ON
   ipa-cp  :  ON
   ipa-cdtor   :  OFF
   ipa-inline  :  ON
   ipa-pure-const  :  ON
   ipa-static-var  :  ON
   ipa-lto_gimple_out  :  OFF
   ipa-lto_decls_out   :  OFF
   ipa-pta :  OFF
   *free_cfg_annotations   :  ON
   tree-ehdisp :  OFF
   *all_optimizations  :  ON
  *remove_cgraph_callee_edges  :  ON
  *strip_predict_hints :  ON
  tree-copyrename2 :  ON
  tree-cunrolli:  ON
  tree-ccp2:  ON
  tree-forwprop2   :  ON
  tree-cdce:  ON
  tree-alias   :  ON
  tree-retslot :  ON
  tree-phiprop :  ON
  tree-fre2:  ON
  tree-copyprop2   :  ON
  tree-mergephi2   :  ON
  tree-vrp1:  ON
  tree-dc

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

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

--- Comment #3 from gee  2011-10-14 16:26:15 UTC ---
generated prologue with pseudo-reloc.ii (wrong one)
;;
;; Full RTL generated for this function:
;;
(note 8 0 11 NOTE_INSN_DELETED)

(note 11 8 459 2 [bb 2] NOTE_INSN_BASIC_BLOCK)

(insn 459 11 9 2 (set (reg:SI 344)
(reg:SI 2 cx)) /tmp/winsup/winsup/cygwin/pseudo-reloc.cc:333 -1
 (nil))

(insn 9 459 10 2 (set (reg/v/f:SI 248 [ u ])
(mem/f/c/i:SI (reg/f:SI 53 virtual-incoming-args) [2 u+0 S4 A32]))
/tmp/winsup/winsup/cygwin/pseudo-reloc.cc:333 -1
 (nil))

(note 10 9 12 2 NOTE_INSN_FUNCTION_BEG)

(note 12 10 13 3 [bb 3] NOTE_INSN_BASIC_BLOCK)

(insn 13 12 14 3 (set (reg:SI 250)
(mem/s:SI (plus:SI (reg/v/f:SI 248 [ u ])
(const_int 128 [0x80])) [4 u_1(D)->api_major+0 S4 A32]))
/tmp/winsup/winsup/cygwin/pseudo-reloc.cc:334 -1
 (nil))

generated prologue with r.c

;;
;; Full RTL generated for this function:
;;
(note 8 0 11 NOTE_INSN_DELETED)

(note 11 8 9 2 [bb 2] NOTE_INSN_BASIC_BLOCK)

(insn 9 11 10 2 (set (reg/v/f:SI 117 [ u ])
(mem/f/c/i:SI (reg/f:SI 53 virtual-incoming-args) [7 u+0 S4 A32]))
/tmp/winsup/winsup/cygwin/pseudo-reloc.cc:273 -1
 (expr_list:REG_EQUIV (mem/f/c/i:SI (reg/f:SI 53 virtual-incoming-args) [7
u+0 S4 A32])
(nil)))

(note 10 9 12 2 NOTE_INSN_FUNCTION_BEG)

(note 12 10 13 3 [bb 3] NOTE_INSN_BASIC_BLOCK)

(insn 13 12 14 3 (set (reg:SI 119)
(mem/s:SI (plus:SI (reg/v/f:SI 117 [ u ])
(const_int 120 [0x78])) [3 u_1(D)->api_major+0 S4 A32]))
/tmp/winsup/winsup/cygwin/pseudo-reloc.cc:274 -1
 (nil))

which one set the invalid (reg:SI 2 cx) constraint??


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

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

--- Comment #4 from gee  2011-10-14 16:27:31 UTC ---
Created attachment 25501
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25501
reduced source code but generates correct prologue.


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

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

--- Comment #5 from gee  2011-10-14 16:29:56 UTC ---
by comparing the result of -fdump-passes between pseudo-reloc.ii and r.c,
--- r.c.pass
+++ pseudo-reloc.pass
@@ -3,7 +3,7 @@
tree-mudflap1   :  OFF
tree-omplower   :  ON
tree-lower  :  ON
-   tree-ehopt  :  OFF
+   tree-ehopt  :  ON
tree-eh :  ON
tree-cfg:  ON
*warn_function_return   :  ON
@@ -148,7 +148,7 @@
   tree-local-pure-const2   :  ON
tree-cplxlower0 :  ON
tree-ehcleanup2 :  OFF
-   tree-resx   :  OFF
+   tree-resx   :  ON
tree-nrv:  ON
tree-mudflap2   :  OFF
tree-optimized  :  ON
please take a look at tree-ehopt and tree-resx.


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

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

--- Comment #6 from gee  2011-10-14 16:38:22 UTC ---
(In reply to comment #5)
Sorry. this comment is obsolete.


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

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

gee  changed:

   What|Removed |Added

  Attachment #25501|0   |1
is obsolete||

--- Comment #7 from gee  2011-10-14 16:49:11 UTC ---
Created attachment 25502
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25502
reduced source code but generates correct prologue.

r.c.pass pseudo-reloc.pass were same.


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

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

--- Comment #8 from gee  2011-10-14 17:00:11 UTC ---
Created attachment 25503
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25503
generated rtl with pseudo-reloc.ii


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

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

--- Comment #9 from gee  2011-10-17 15:42:21 UTC ---
here is more specific option for reproduce this bug.
$ g++ -fverbose-asm -c -O1 -finline-small-functions -ftree-vectorize 
-finline-functions -mstackrealign -march=core2  ./pseudo-reloc.ii
-save-temps;cat pseudo-reloc.s|grep "(%ecx)"
movl(%ecx), %eax # u, u
pushl   -4(%ecx) #
leal-4(%ecx), %esp   #,


using -fverbose-asm, i got following equivalant option to above but it doesn't
emit same one as above. the only difference on RTL generated between two is
do_pseudo_reloc is inlined in above but below.

$ g++ -fverbose-asm -c -fcombine-stack-adjustments -fcompare-elim
-fcprop-registers -fdefer-pop -fforward-propagate -fguess-branch-probability
-fif-conversion -fif-conversion2 -finline -finline-functions-called-once
-fipa-profile -fipa-pure-const -fipa-reference -fmerge-constants
-fomit-frame-pointer -fshrink-wrap -fsplit-wide-types -ftoplevel-reorder
-ftree-bit-ccp -ftree-ccp -ftree-ch -ftree-copy-prop -ftree-copyrename
-ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-sink -ftree-sra
-ftree-ter -finline-small-functions -ftree-vectorize  -finline-functions
-mstackrealign -march=core2  ./pseudo-reloc.ii -save-temps;cat
pseudo-reloc.s|grep "(%ecx)"


[Bug tree-optimization/50784] New: [4.6 regression] internal compiler error: segmentation fault in cgraph.c:327

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

 Bug #: 50784
   Summary: [4.6 regression] internal compiler error: segmentation
fault in cgraph.c:327
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


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

gdb --args /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -fpreprocessed
./pseudo-reloc.ii -quiet -dumpbase pseudo-reloc.ii -mstackrealign -march=core2
-auxbase pseudo-reloc -version -fdump-passes -fverbose-asm
-finline-small-functions -ftree-vectorize -finline-functions -fdump-rtl-expand
-fenable-tree-early_optimizations -fenable-tree-copyrename1 -fenable-tree-ccp1
-fenable-tree-esra -fenable-tree-fre1 -fenable-tree-copyprop1
-fenable-tree-cddce1 -fenable-tree-local-pure-const1
-fenable-tree-profile_estimate -fenable-tree-copyrename2 -fenable-tree-ccp2
-fenable-tree-fre2 -fenable-tree-copyprop2 -fenable-tree-dce1 -fenable-tree-ch
-fenable-tree-sra -fenable-tree-copyrename3 -fenable-tree-dom1
-fenable-tree-phicprop1 -fenable-tree-dse1 -fenable-tree-dce2
-fenable-tree-ccp3 -fenable-tree-copyprop3 -fenable-tree-sincos
-fenable-tree-sink -fenable-tree-copyprop4 -fenable-tree-dceloop1
-fenable-tree-copyprop5 -fenable-tree-copyprop6 -fenable-tree-dceloop2
-fenable-tree-dceloop3 -fenable-tree-dom2 -fenable-tree-phicprop2
-fenable-tree-cddce2 -fenable-tree-dse2 -fenable-tree-copyrename4
-fenable-tree-uncprop -fenable-tree-local-pure-const2 -fenable-tree-nrv
-fenable-ipa-inline -fenable-ipa-pure-const -fenable-ipa-static-var
-fdisable-tree-veclower -o pseudo-reloc.s
GNU gdb (GDB) 7.3.50.20110903-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
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:
...

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 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe...done.
(gdb) r
Starting program: /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe
-fpreprocessed ./pseudo-reloc.ii -quiet -dumpbase pseudo-reloc.ii
-mstackrealign -march=core2 -auxbase pseudo-reloc -version -fdump-passes
-fverbose-asm -finline-small-functions -ftree-vectorize -finline-functions
-fdump-rtl-expand -fenable-tree-early_optimizations -fenable-tree-copyrename1
-fenable-tree-ccp1 -fenable-tree-esra -fenable-tree-fre1
-fenable-tree-copyprop1 -fenable-tree-cddce1 -fenable-tree-local-pure-const1
-fenable-tree-profile_estimate -fenable-tree-copyrename2 -fenable-tree-ccp2
-fenable-tree-fre2 -fenable-tree-copyprop2 -fenable-tree-dce1 -fenable-tree-ch
-fenable-tree-sra -fenable-tree-copyrename3 -fenable-tree-dom1
-fenable-tree-phicprop1 -fenable-tree-dse1 -fenable-tree-dce2
-fenable-tree-ccp3 -fenable-tree-copyprop3 -fenable-tree-sincos
-fenable-tree-sink -fenable-tree-copyprop4 -fenable-tree-dceloop1
-fenable-tree-copyprop5 -fenable-tree-copyprop6 -fenable-tree-dceloop2
-fenable-tree-dceloop3 -fenable-tree-dom2 -fenable-tree-phicprop2
-fenable-tree-cddce2 -fenable-tree-dse2 -fenable-tree-copyrename4
-fenable-tree-uncprop -fenable-tree-local-pure-const2 -fenable-tree-nrv
-fenable-ipa-inline -fenable-ipa-pure-const -fenable-ipa-static-var
-fdisable-tree-veclower -o pseudo-reloc.s
[New Thread 2996.0x1130]
warning: section .gnu_debuglink not found in /cygdrive/d/cygwin/bin/cygwin1.dbg
[New Thread 2996.0x6f4]
cc1plus: note: enable pass tree-early_optimizations for functions in the range
of [0, 4294967295]
cc1plus: note: enable pass tree-copyrename1 for functions in the range of [0,
4294967295]
cc1plus: note: enable pass tree-ccp1 for functions in the range of [0,
4294967295]
cc1plus: note: enable pass tree-esra for functions in the range of [0,
4294967295]
cc1plus: note: enable pass tree-fre1 for functions in the range of [0,
4294967295]
cc1plus: note: enable pass tree-copyprop1 for functions in the range of [0,
4294967295]
cc1plus: note: enable pass tree-cddce1 for functions in the range of [0,
4294967295]
cc1plus: note: enable pass tree-local-pure-const1 for functions in the range of
[0, 4294967295]
cc1plus: note: enable pass tree-profile_estimate for functions in the range of
[0, 4294967295]
cc1plus: note: enable pass tree-copyrename2 for functions in the range of [0,
4294967295]
cc1plus: note: enable pass tree-ccp2 for functi

[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) {
   = {},
  members of java::lang::Class:
  static class$ = {
 = {},
members of java::lang::Class:
static class$ = ,
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  to continue, or q  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  to continue, or q  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  to continue, or q  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  to continue, or q  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  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 
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:
...

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  to continue, or q  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  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  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  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=, verbosity=0x2)
at ../.././gcc/java/lang.c:427
427   put_decl_node (TREE_VALUE (args), verbosity);
(gdb) bt
#0  put_decl_node (node=, 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 , data=0xd20a80)
---Type  to continue, or q  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 , 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  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  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.


[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  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 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  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  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 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  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 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  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  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-expand' '-v' '-shared-libgcc'

__Z25_pei3

[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  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  for instructions.
[Inferior 1 (process 804) exited with code 04]


[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  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_::def_impl(T*, const char*, Fn, const Helper&, ...) [with T = CEngine; Fn =
boost::shared_ptr (CEngine::*)(const std::basic_string&,
std::basic_string, int, int, boost::python::api::object); Helper =
boost::python::detail::def_helper,
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  for instructions.


[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 2>&1; 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'" 1>&2; :;\
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 

[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  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 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  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=,
deps=, depth=)
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=,
lb=, type=, 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  to continue, or q  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 ../.././gcc/passes.c:2214
#15 0x006b8cd8 in execute_pass_list (pass=0xda6460)
 

[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  changed:

   What|Removed |Added

 Depends on||51901

--- Comment #18 from gee  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-02-04 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

--- Comment #20 from gee  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  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  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=) at ./md-unwind-support.h:134
134   if (SIG_PAT1 || SIG_PAT2 || SIG_SEH1 || SIG_SEH2)
(gdb) p context
$1 = 
(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=) 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  to continue, or q  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  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-02-06 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500

gee  changed:

   What|Removed |Added

  Attachment #26574|0   |1
is obsolete||

--- Comment #24 from gee  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.(/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 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 ,
cd=cd@entry=0x696c9580, ofn=ofn@entry=0x0, ocd=ocd@entry=0x0,
mp=mp@entry=0x69cf0330 )
at ../.././boehm-gc/finalize.c:361
#9  0x69cf0bc7 in GC_register_finalizer_no_order (obj=0xa47fa0,
fn=0x696d2530 , 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=)
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=)
at ../.././libjava/java/lang/Class.h:754
#23 _Jv_FindClassFromSignature (sig=,
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
#34 0x69682ffd in _Jv_GetArrayClass (loader=0x0, klass=)
at ../.././libjava/java/lang/Class.h:754
#35 _Jv_FindClassFr

[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 
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 ,
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 
(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 :
jbe0x69ce18c0 
(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 :   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 :   mov0x14(%ebp),%ecx
(gdb) bt
#0  ffi_call_win32 () at ../.././libffi/src/x86/win32.S:433
#1  0x69ce15e8 in ffi_raw_call (cif=0xc01bec, fn=
0x696d4940 , rvalue=0x22fbf0,
fake_avalue=0x22fa58) at ../.././libffi/src/x86/ffi.c:827
#2  0x6969bd0e in _Jv_InterpMethod::run (retp=0x22fd58, args=0x22fd

[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  changed:

   What|Removed |Added

 Status|RESOLVED|WAITING
 Resolution|FIXED   |

--- Comment #4 from gee  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 
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  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 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  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  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] 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  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  changed:

   What|Removed |Added

  Attachment #26653|0   |1
is obsolete||

--- Comment #9 from gee  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  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-17 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52221

--- Comment #12 from gee  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 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  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED

--- Comment #8 from gee  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  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  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||WORKSFORME

--- Comment #2 from gee  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 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=)
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  to continue, or q  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/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  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 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  ---
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/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  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #15 from gee  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 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  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'
'-isystem'

[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  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  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  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  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  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)
{
:
  # 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  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:: (struct
gnu.gcj.convert.BytesToUnicode *) * D.9460;
  void * D.9459;
  void * _ref_1_2.1041;

:
  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:: (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 ;
  else
goto ;

:
  _Jv_ThrowNullPointerException ();

:
  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 ;
  else
goto ;

:
  _Jv_ThrowNullPointerException ();

:
  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;

:
  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  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #1 from gee  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 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  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/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 executio

[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  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 , 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  to continue, or q  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.()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 , 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",
argc=argc@entry=0x1, argv=argv@entry=0x3d8660, is_jar=is_jar@entry=0x0)
at ../.././libjava/prims.cc:1790
---Type  to continue, or q  t

[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  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  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  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] [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  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 2>&1; 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'" 1>&2; :;\
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-15 Thread jojelino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51498

--- Comment #7 from gee  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).


  1   2   3   >