[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-10 Thread rguenth at gcc dot gnu dot org


--- Comment #19 from rguenth at gcc dot gnu dot org  2010-03-10 16:33 
---
Fixed (I assume).


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.5.0


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-10 Thread howarth at nitro dot med dot uc dot edu


--- Comment #20 from howarth at nitro dot med dot uc dot edu  2010-03-10 
22:52 ---
According to...

http://gcc.gnu.org/regtest/HEAD/native-lastbuild.txt.gzip

it is fixed for powerpc-apple-darwin9.


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-09 Thread dominiq at lps dot ens dot fr


--- Comment #12 from dominiq at lps dot ens dot fr  2010-03-09 08:08 ---
Bootstrapping all languages minus ADA with the patch in comment #10 succeeded
at revision 157293.

 Needs testing on darwin as well as verification that there
 really isn't any indirection etc. missed (i.e. that (lo_sum ((reg X),
 (symbol_ref foo))) is always equivalent to (symbol_ref foo).

I'll try to some testing in the coming nights, but I am leaving the
verification ... to those who really know the details about Darwin.


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-09 Thread dominiq at lps dot ens dot fr


--- Comment #13 from dominiq at lps dot ens dot fr  2010-03-09 08:49 ---
AFAICT the patch in comment #10 affects only powerpc-apple-darwin*. Could it be
committed now in order to allow the automatic tester 'regress' to start again?


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-09 Thread developer at sandoe-acoustics dot co dot uk


--- Comment #14 from developer at sandoe-acoustics dot co dot uk  
2010-03-09 08:54 ---
(In reply to comment #12)
 Bootstrapping all languages minus ADA with the patch in comment #10 succeeded
 at revision 157293.

at 157294 (minus ada and java) with the patch.
I see the following new 4.5 regressions (possibly unrelated)

FAIL: gcc.dg/vmx/7-01.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/vmx/7-01.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/vmx/7-01a.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/vmx/7-01a.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/vmx/fft.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/vmx/fft.c  -O3 -g  (test for excess errors)

  Needs testing on darwin as well as verification that there
  really isn't any indirection etc. missed (i.e. that (lo_sum ((reg X),
  (symbol_ref foo))) is always equivalent to (symbol_ref foo).
 
 I'll try to some testing in the coming nights, but I am leaving the
 verification ... to those who really know the details about Darwin.

ditto [157304 is building at present] - but, to be sure, this needs someone
familiar with the nitty gritty of macho.


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-09 Thread dominiq at lps dot ens dot fr


--- Comment #15 from dominiq at lps dot ens dot fr  2010-03-09 09:14 ---
 at 157294 (minus ada and java) with the patch.
 I see the following new 4.5 regressions (possibly unrelated)

 FAIL: gcc.dg/vmx/7-01.c  -O3 -g  (internal compiler error)
 FAIL: gcc.dg/vmx/7-01.c  -O3 -g  (test for excess errors)
 FAIL: gcc.dg/vmx/7-01a.c  -O3 -g  (internal compiler error)
 FAIL: gcc.dg/vmx/7-01a.c  -O3 -g  (test for excess errors)
 FAIL: gcc.dg/vmx/fft.c  -O3 -g  (internal compiler error)
 FAIL: gcc.dg/vmx/fft.c  -O3 -g  (test for excess errors)

Minimal options '-O1 -g' for 7-01.c and fft.c, and '-O2 -g' for 7-01a.c giving

[karma] f90/bug% gcc45 -O1 -g
/opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/vmx/7-01.c
/opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/vmx/7-01.c: In function 'haar':
/opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/vmx/7-01.c:36:1: internal compiler
error: in simplify_binary_operation_1, at simplify-rtx.c:2958
[karma] f90/bug% gcc45 -O1 -g
/opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/vmx/fft.c
/opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/vmx/fft.c: In function 'transpose4x4':
/opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/vmx/fft.c:18:1: internal compiler
error: in simplify_binary_operation_1, at simplify-rtx.c:2958


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-09 Thread dominiq at lps dot ens dot fr


--- Comment #16 from dominiq at lps dot ens dot fr  2010-03-09 10:01 ---
Backtrace of run -maltivec -O1 -g
/opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/vmx/7-01.c:

(gdb) bt
#0  fancy_abort (file=0x81ed14 ../../gcc-4.5-work/gcc/simplify-rtx.c,
line=2958, function=0x9f3c14 simplify_binary_operation_1) at
../../gcc-4.5-work/gcc/diagnostic.c:763
#1  0x00523314 in simplify_binary_operation (code=value temporarily
unavailable, due to optimizations, mode=V8HImode, op0=0x4160a178,
op1=0x416bc828) at ../../gcc-4.5-work/gcc/simplify-rtx.c:2958
#2  0x002378c4 in cselib_expand_value_rtx_1 (orig=value temporarily
unavailable, due to optimizations, evd=0xbfffcba8, max_depth=value
temporarily unavailable, due to optimizations) at
../../gcc-4.5-work/gcc/cselib.c:1388
#3  0x00237528 in cselib_expand_value_rtx_1 (orig=0x416f5a10, evd=0xbfffcba8,
max_depth=value temporarily unavailable, due to optimizations) at
../../gcc-4.5-work/gcc/cselib.c:1286
#4  0x00238220 in cselib_expand_value_rtx_cb (orig=value temporarily
unavailable, due to optimizations, regs_active=value temporarily unavailable,
due to optimizations, max_depth=value temporarily unavailable, due to
optimizations, cb=value temporarily unavailable, due to optimizations,
data=value temporarily unavailable, due to optimizations) at
../../gcc-4.5-work/gcc/cselib.c:1095
#5  0x007030dc in vt_expand_loc_callback (x=0x416fbccc, regs=0x4181faa4,
max_depth=5, data=0xbfffce78) at ../../gcc-4.5-work/gcc/var-tracking.c:6563
#6  0x00237698 in cselib_expand_value_rtx_1 (orig=0x416fbccc, evd=0xbfffcce8,
max_depth=5) at ../../gcc-4.5-work/gcc/cselib.c:1214
#7  0x00238258 in cselib_dummy_expand_value_rtx_cb (orig=value temporarily
unavailable, due to optimizations, regs_active=value temporarily unavailable,
due to optimizations, max_depth=value temporarily unavailable, due to
optimizations, cb=value temporarily unavailable, due to optimizations,
data=value temporarily unavailable, due to optimizations) at
../../gcc-4.5-work/gcc/cselib.c:1113
#8  0x007032fc in vt_expand_loc_callback (x=0x4182dc08, regs=0x4181faa4,
max_depth=5, data=0xbfffce78) at ../../gcc-4.5-work/gcc/var-tracking.c:6647
#9  0x002377cc in cselib_expand_value_rtx_1 (orig=0x4182dc08, evd=0xbfffce28,
max_depth=5) at ../../gcc-4.5-work/gcc/cselib.c:1249
#10 0x00238258 in cselib_dummy_expand_value_rtx_cb (orig=value temporarily
unavailable, due to optimizations, regs_active=value temporarily unavailable,
due to optimizations, max_depth=value temporarily unavailable, due to
optimizations, cb=value temporarily unavailable, due to optimizations,
data=value temporarily unavailable, due to optimizations) at
../../gcc-4.5-work/gcc/cselib.c:1113
#11 0x006f9f1c in vt_expand_loc_dummy (loc=value temporarily unavailable, due
to optimizations, vars=value temporarily unavailable, due to optimizations,
pcur_loc_changed=0xbfffced8 ) at ../../gcc-4.5-work/gcc/var-tracking.c:6718
#12 0x006fa700 in check_changed_vars_3 (slot=value temporarily unavailable,
due to optimizations, data=0x41513df0) at
../../gcc-4.5-work/gcc/var-tracking.c:7070
#13 0x007c9cac in htab_traverse_noresize (htab=value temporarily unavailable,
due to optimizations, callback=value temporarily unavailable, due to
optimizations, info=0x41513df0) at ../../gcc-4.5-work/libiberty/hashtab.c:753
#14 0x00700064 in emit_notes_for_changes (insn=0x416f7264,
where=EMIT_NOTE_AFTER_INSN) at ../../gcc-4.5-work/gcc/var-tracking.c:7107
#15 0x007064d8 in vt_emit_notes () at
../../gcc-4.5-work/gcc/var-tracking.c:7507
#16 0x007095cc in variable_tracking_main () at
../../gcc-4.5-work/gcc/var-tracking.c:8126
#17 0x0047edf0 in execute_one_pass (pass=0xa8a358) at
../../gcc-4.5-work/gcc/passes.c:1567
#18 0x0047f124 in execute_pass_list (pass=0xa8a358) at
../../gcc-4.5-work/gcc/passes.c:1622
#19 execute_pass_list (pass=0xa76b70) at ../../gcc-4.5-work/gcc/passes.c:1624
#20 execute_pass_list (pass=0xa76b3c) at ../../gcc-4.5-work/gcc/passes.c:1624
#21 0x005ac81c in tree_rest_of_compilation (fndecl=0x416a2c80) at
../../gcc-4.5-work/gcc/tree-optimize.c:413
#22 0x00752054 in cgraph_expand_function (node=0x416bd1a0) at
../../gcc-4.5-work/gcc/cgraphunit.c:1545
#23 0x00754f64 in cgraph_optimize () at
../../gcc-4.5-work/gcc/cgraphunit.c:1624
#24 0x0075537c in cgraph_finalize_compilation_unit () at
../../gcc-4.5-work/gcc/cgraphunit.c:1093
#25 0x000208e4 in c_write_global_declarations () at
../../gcc-4.5-work/gcc/c-decl.c:9510
#26 0x00545328 in toplev_main (argc=5, argv=Cannot access memory at address
0x1c
) at ../../gcc-4.5-work/gcc/toplev.c:1065
#27 0x27d4 in start ()


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-09 Thread jakub at gcc dot gnu dot org


--- Comment #17 from jakub at gcc dot gnu dot org  2010-03-09 12:22 ---
The vmx/{fft,7-01{,a}}.c failures are tracked in PR43304.


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-09 Thread jakub at gcc dot gnu dot org


--- Comment #18 from jakub at gcc dot gnu dot org  2010-03-10 07:51 ---
Subject: Bug 43287

Author: jakub
Date: Wed Mar 10 07:51:17 2010
New Revision: 157334

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157334
Log:
PR bootstrap/43287
* config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
UNSPEC_MACHOPIC_OFFSET.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread dominiq at lps dot ens dot fr


--- Comment #1 from dominiq at lps dot ens dot fr  2010-03-08 11:08 ---
Created an attachment (id=20042)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20042action=view)
file libgcc2.i


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread jakub at gcc dot gnu dot org


--- Comment #2 from jakub at gcc dot gnu dot org  2010-03-08 11:13 ---
Can you provide backtrace where it SIGBUSes?


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread dominiq at lps dot ens dot fr


--- Comment #3 from dominiq at lps dot ens dot fr  2010-03-08 11:17 ---
 Can you provide backtrace where it SIGBUSes?

I tried with a breakpoint in gdb for fancy_abort, but only got

../../../../gcc-4.5-work/libgcc/../gcc/libgcc2.c:1526:1: internal compiler
error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.

Program exited with code 01.
(gdb) bt
No stack.


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread jakub at gcc dot gnu dot org


--- Comment #4 from jakub at gcc dot gnu dot org  2010-03-08 11:50 ---
That seems like you've tried to debug xgcc instead of cc1.  Of course the
backtrace from cc1 is interesting, not from xgcc (which doesn't SIGBUS).
Run xgcc with additional -v option, and copypaste the cc1 command line it
invokes and run that under gdb.  Or instead of -v use -### and copypaste the
cc1 command line from there.


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread dominiq at lps dot ens dot fr


--- Comment #5 from dominiq at lps dot ens dot fr  2010-03-08 12:45 ---
(gdb) run  -fpreprocessed libgcc2.i -feliminate-unused-debug-symbols -fPIC
-quiet -dumpbase libgcc2.c -m64 -mmacosx-version-min=10.4 -auxbase-strip
_floatdisf.o -g -O2 -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -version -fvisibility=hidden -o
libgcc2.s

[...]

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x
0x00c4e12c in decl_assembler_name (decl=0x0) at
../../gcc-4.5-work/gcc/tree.c:567
567   if (!DECL_ASSEMBLER_NAME_SET_P (decl))
(gdb) bt
#0  0x00c4e12c in decl_assembler_name (decl=0x0) at
../../gcc-4.5-work/gcc/tree.c:567
#1  0x00d2ff60 in machopic_output_function_base_name (file=0xa03fd4c8) at
../../gcc-4.5-work/gcc/config/darwin.c:303
#2  0x00d1282c in rs6000_output_addr_const_extra (file=0xa03fd4c8, x=0x128fdec)
at ../../gcc-4.5-work/gcc/config/rs6000/rs6000.c:15087
#3  0x005316ec in output_addr_const (file=0xa03fd4c8, x=0x128fdec) at
../../gcc-4.5-work/gcc/final.c:3636
#4  0x0053136c in output_addr_const (file=0xa03fd4c8, x=0x1290008) at
../../gcc-4.5-work/gcc/final.c:3559
#5  0x004642c4 in dw2_assemble_integer (size=8, x=0x1290008) at
../../gcc-4.5-work/gcc/dwarf2asm.c:59
#6  0x00464958 in dw2_asm_output_addr_rtx (size=8, addr=0x1290008, comment=0x0)
at ../../gcc-4.5-work/gcc/dwarf2asm.c:253
#7  0x00473f1c in output_loc_operands (loc=0x129230c) at
../../gcc-4.5-work/gcc/dwarf2out.c:5035
#8  0x00473fa4 in output_loc_sequence (loc=0x129230c) at
../../gcc-4.5-work/gcc/dwarf2out.c:5060
#9  0x0047fc34 in output_loc_list (list_head=0x1280bb8) at
../../gcc-4.5-work/gcc/dwarf2out.c:10380
#10 0x0047e100 in output_location_lists (die=0x1283300) at
../../gcc-4.5-work/gcc/dwarf2out.c:9799
#11 0x0047e180 in output_location_lists (die=0x12831e0) at
../../gcc-4.5-work/gcc/dwarf2out.c:9801
#12 0x0047e180 in output_location_lists (die=0x41ea0cf0) at
../../gcc-4.5-work/gcc/dwarf2out.c:9801
#13 0x004ab348 in dwarf2out_finish (filename=0x41d09320
../../../../gcc-4.5-work/libgcc/../gcc/libgcc2.c) at
../../gcc-4.5-work/gcc/dwarf2out.c:21404
#14 0x00987a10 in compile_file () at ../../gcc-4.5-work/gcc/toplev.c:1095
#15 0x0098b01c in do_compile () at ../../gcc-4.5-work/gcc/toplev.c:2409
#16 0x0098b140 in toplev_main (argc=25, argv=0xbfffd5e8) at
../../gcc-4.5-work/gcc/toplev.c:2451
#17 0x00122f80 in main (argc=25, argv=0xbfffd5e8) at
../../gcc-4.5-work/gcc/main.c:35


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread howarth at nitro dot med dot uc dot edu


--- Comment #6 from howarth at nitro dot med dot uc dot edu  2010-03-08 
14:08 ---
i686-apple-darwin10 built fine at 157264 and 157265/156266 are commits to the
melt-branch.


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread howarth at nitro dot med dot uc dot edu


--- Comment #7 from howarth at nitro dot med dot uc dot edu  2010-03-08 
17:50 ---
regress is failing from this...

http://gcc.gnu.org/regtest/HEAD/native-lastbuild.txt.gzip


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread howarth at nitro dot med dot uc dot edu


--- Comment #8 from howarth at nitro dot med dot uc dot edu  2010-03-08 
17:54 ---
The last good build for powerpc-apple-darwin9 on regress was at r157263 so...

r157264

must be the offending commit. Is powerpc64-unknown-linux-gnu still
bootstrapping?


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread jakub at gcc dot gnu dot org


--- Comment #9 from jakub at gcc dot gnu dot org  2010-03-08 18:11 ---
x is:
(unspec:DI [
(symbol_ref/u:DI (*LC0) [flags 0x2])
] 50)

Guess rs6000_delegitimize_address needs to handle UNSPEC_MACHOPIC_OFFSET.
ix86_delegitimize_address handles it, so assuming it means the same on ppc too,
you should just add similar support for it for TARGET_MACHO.


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread jakub at gcc dot gnu dot org


--- Comment #10 from jakub at gcc dot gnu dot org  2010-03-08 19:08 ---
Created an attachment (id=20045)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20045action=view)
gcc45-pr43287.patch

Possible fix.  Needs testing on darwin as well as verification that there
really isn't any indirection etc. missed (i.e. that (lo_sum ((reg X),
(symbol_ref foo))) is always equivalent to (symbol_ref foo).


-- 


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



[Bug bootstrap/43287] [4.5 Regression] Bootstrap fails at stage 1 on powerpc-apple-darwin9

2010-03-08 Thread dominiq at lps dot ens dot fr


--- Comment #11 from dominiq at lps dot ens dot fr  2010-03-08 20:06 ---
With the patch in comment #10 I am now at stage 2. So far so good! Thanks for
the patch.

Why is rs6000_delegitimize_address much simpler (even with the patch) than
ix86_delegitimize_address?


-- 

dominiq at lps dot ens dot fr changed:

   What|Removed |Added

 CC||mikestump at comcast dot net


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