public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/37323]  New: [4.4 Regression] __builtin_apply failures
@ 2008-09-01 19:50 danglin at gcc dot gnu dot org
  2008-09-01 19:54 ` [Bug middle-end/37323] " danglin at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-09-01 19:50 UTC (permalink / raw)
  To: gcc-bugs

FAIL: gcc.dg/builtin-apply2.c execution test
FAIL: gcc.dg/builtin-apply3.c execution test
FAIL: gcc.dg/builtin-apply4.c execution test


-- 
           Summary: [4.4 Regression] __builtin_apply failures
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
@ 2008-09-01 19:54 ` danglin at gcc dot gnu dot org
  2008-09-02 11:36 ` rguenth at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-09-01 19:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from danglin at gcc dot gnu dot org  2008-09-01 19:52 -------
Also,
FAIL: gcc.dg/builtin-return-1.c execution test


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
  2008-09-01 19:54 ` [Bug middle-end/37323] " danglin at gcc dot gnu dot org
@ 2008-09-02 11:36 ` rguenth at gcc dot gnu dot org
  2008-10-22  3:06 ` mmitchel at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-02 11:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
  2008-09-01 19:54 ` [Bug middle-end/37323] " danglin at gcc dot gnu dot org
  2008-09-02 11:36 ` rguenth at gcc dot gnu dot org
@ 2008-10-22  3:06 ` mmitchel at gcc dot gnu dot org
  2008-11-08  2:04 ` danglin at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2008-10-22  3:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-10-22  3:06 ` mmitchel at gcc dot gnu dot org
@ 2008-11-08  2:04 ` danglin at gcc dot gnu dot org
  2008-11-08 17:29 ` danglin at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-11-08  2:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from danglin at gcc dot gnu dot org  2008-11-08 02:02 -------
As of 2008-11-07, the only remaining failure is builtin-apply4.c.


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-11-08  2:04 ` danglin at gcc dot gnu dot org
@ 2008-11-08 17:29 ` danglin at gcc dot gnu dot org
  2008-11-08 19:00 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-11-08 17:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from danglin at gcc dot gnu dot org  2008-11-08 17:28 -------
(gdb) r
Starting program: /test/gnu/gcc/objdir/gcc/testsuite/gcc/builtin-apply4.xg 
warning: Private mapping of shared library text was not specified
by the executable; setting a breakpoint in a shared library which
is not privately mapped will not work.  See the HP-UX 11i v3 chatr
manpage for methods to privately map shared library text.
warning: Loadable segment ".tbss" outside of ELF segments
warning: Loadable segment ".tbss" outside of ELF segments

Program received signal SIGSEGV, Segmentation fault.
bar (arg=<value optimized out>)
    at /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtin-apply4.c:20
20        __builtin_return (__builtin_apply ((void (*) ()) foo,
(gdb) p/x $pc
$1 = 0x4000000000002b2c
(gdb) disass 0x4000000000002b0c 0x4000000000002b3c
Dump of assembler code from 0x4000000000002b0c to 0x4000000000002b3c:
0x4000000000002b0c <bar+108>:   std r26,58(r3)
0x4000000000002b10 <bar+112>:   fstd fr4,60(r3)
0x4000000000002b14 <bar+116>:   b,l 0x4000000000002a68 <foo>,rp
0x4000000000002b18 <bar+120>:   std r0,10(r3)
0x4000000000002b1c <bar+124>:   ldd 10(r3),ret0
0x4000000000002b20 <bar+128>:   ldo 20(sp),sp
0x4000000000002b24 <bar+132>:   std r3,-8(sp)
0x4000000000002b28 <bar+136>:   copy r4,dp
0x4000000000002b2c <bar+140>:   ldd,mb -10(ret0),r31
0x4000000000002b30 <bar+144>:   std r31,-80(sp)
0x4000000000002b34 <bar+148>:   ldo -30(sp),ret1
0x4000000000002b38 <bar+152>:   ldd 8(ret0),ret0
End of assembler dump.

This is a wrong code bug.

Register r0 is always 0.  It is stored into the frame at 10(r3) in
the delay slot of the first call to foo.  The value is loaded
from 10(r3) into register ret0.  The segv is caused by the null
pointer used in the memory load at 0x4000000000002b2c. 


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-11-08 17:29 ` danglin at gcc dot gnu dot org
@ 2008-11-08 19:00 ` dave at hiauly1 dot hia dot nrc dot ca
  2008-11-08 19:39 ` danglin at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2008-11-08 19:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dave at hiauly1 dot hia dot nrc dot ca  2008-11-08 18:59 -------
Subject: Re:  [4.4 Regression] __builtin_apply
        failures

On Sat, 08 Nov 2008, danglin at gcc dot gnu dot org wrote:

> 0x4000000000002b18 <bar+120>:   std r0,10(r3)
> 0x4000000000002b1c <bar+124>:   ldd 10(r3),ret0
> 0x4000000000002b20 <bar+128>:   ldo 20(sp),sp
> 0x4000000000002b24 <bar+132>:   std r3,-8(sp)
> 0x4000000000002b28 <bar+136>:   copy r4,dp
> 0x4000000000002b2c <bar+140>:   ldd,mb -10(ret0),r31

Seems to arise in the initvals pass.  The pseudo reg/f:DI 69 has
no initialization.

Attaching rtl dump.

Dave


------- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca  2008-11-08 18:59 -------
Created an attachment (id=16635)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16635&action=view)


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-11-08 19:00 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2008-11-08 19:39 ` danglin at gcc dot gnu dot org
  2008-11-08 21:31 ` danglin at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-11-08 19:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from danglin at gcc dot gnu dot org  2008-11-08 19:38 -------
Starting program: /test/gnu/gcc/objdir/stage1-gcc/cc1 -iprefix
/test/gnu/gcc/objdir/gcc/../lib/gcc/hppa64-hp-hpux11.11/4.4.0/ -isystem
/test/gnu/gcc/objdir/gcc/include -isystem
/test/gnu/gcc/objdir/gcc/include-fixed
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtin-apply4.c -dumpbase
builtin-apply4.c -auxbase-strip ./builtin-apply4.s -O2 -version -o
./builtin-apply4.s
warning: Private mapping of shared library text was not specified
by the executable; setting a breakpoint in a shared library which
is not privately mapped will not work.  See the HP-UX 11i v3 chatr
manpage for methods to privately map shared library text.
warning: Loadable segment ".tbss" outside of ELF segments
warning: Loadable segment ".tbss" outside of ELF segments
GNU C (GCC) version 4.4.0 20081108 (experimental) [trunk revision 141703]
(hppa64-hp-hpux11.11)
        compiled by GNU C version 4.3.2, GMP version 4.2.3, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
options passed:  -iprefix
 /test/gnu/gcc/objdir/gcc/../lib/gcc/hppa64-hp-hpux11.11/4.4.0/ -isystem
 /test/gnu/gcc/objdir/gcc/include -isystem
 /test/gnu/gcc/objdir/gcc/include-fixed
 /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtin-apply4.c -auxbase-strip
 ./builtin-apply4.s -O2
options enabled:  -fPIC -falign-functions -falign-jumps -falign-labels
 -fargument-alias -fauto-inc-dec -fbranch-count-reg -fcaller-saves -fcommon
 -fcprop-registers -fcrossjumping -fcse-follow-jumps -fdefer-pop
 -fdelayed-branch -fdelete-null-pointer-checks -fdwarf2-cfi-asm
 -fearly-inlining -feliminate-unused-debug-types -fexpensive-optimizations
 -fforward-propagate -ffunction-cse -fgcse -fgcse-lm
 -fguess-branch-probability -fident -fif-conversion -fif-conversion2
 -findirect-inlining -finline -finline-functions-called-once
 -finline-small-functions -fipa-cp -fipa-pure-const -fipa-reference -fira
 -fira-share-save-slots -fira-share-spill-slots -fivopts
 -fkeep-static-consts -fleading-underscore -fmath-errno -fmerge-constants
 -fmerge-debug-strings -fmove-loop-invariants -fomit-frame-pointer
 -foptimize-register-move -foptimize-sibling-calls -fpeephole -fpeephole2
 -freg-struct-return -fregmove -freorder-blocks -freorder-functions
 -frerun-cse-after-loop -fsched-interblock -fsched-spec
 -fsched-stalled-insns-dep -fschedule-insns -fschedule-insns2
 -fsigned-zeros -fsplit-ivs-in-unroller -fsplit-wide-types
 -fstrict-aliasing -fstrict-overflow -fthread-jumps -ftoplevel-reorder
 -ftrapping-math -ftree-builtin-call-dce -ftree-ccp -ftree-ch
 -ftree-copy-prop -ftree-copyrename -ftree-cselim -ftree-dce
 -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-loop-im
 -ftree-loop-ivcanon -ftree-loop-optimize -ftree-parallelize-loops=
 -ftree-pre -ftree-reassoc -ftree-scev-cprop -ftree-sink -ftree-sra
 -ftree-switch-conversion -ftree-ter -ftree-vect-loop-version -ftree-vrp
 -funit-at-a-time -fvar-tracking -fzero-initialized-in-bss -mbig-switch
 -mgas -mspace-regs
Compiler executable checksum: 179292e5c700da1abd8b505954c7109b
 foo bar main
Analyzing compilation unit
Performing interprocedural optimizations
 <visibility> <early_local_cleanups> <summary generate> <cp> <inline>
<static-var> <pure-const>Assembling functions:
 foo bar
Breakpoint 1, emit_move_sequence (operands=0x800003fffdff8980, mode=DImode, 
    scratch_reg=0x0) at ../../gcc/gcc/config/pa/pa.c:1422
1422      register rtx operand0 = operands[0];
(gdb) p debug_rtx (operands[0])
(reg:DI 72)
$6 = void
(gdb) p debug_rtx (operands[1])
(reg/f:DI 69)
$7 = void
(gdb) bt
#0  emit_move_sequence (operands=0x800003fffdff8980, mode=DImode, 
    scratch_reg=0x0) at ../../gcc/gcc/config/pa/pa.c:1422
#1  0x400000000311530c in gen_movdi (operand0=0x800003fffddb8b20,
operand1=Cannot access memory at address 0x2b
)
    at ../../gcc/gcc/config/pa/pa.md:4357
#2  0x4000000000d991fc in emit_move_insn_1 (x=0x800003fffddb8b20, y=Cannot
access memory at address 0x2b
)
    at ../../gcc/gcc/expr.c:3355
#3  0x4000000000d999f0 in emit_move_insn (x=0x800003fffdff8980, 
    y=0x800003fffdfc5c60) at ../../gcc/gcc/expr.c:3443
#4  0x4000000000d22f44 in copy_to_reg (x=0x800003fffddb8b20)
    at ../../gcc/gcc/explow.c:596
#5  0x400000000090be78 in expand_builtin_apply_args_1 ()
    at ../../gcc/gcc/builtins.c:1376
#6  0x400000000090c05c in expand_builtin_apply_args ()
    at ../../gcc/gcc/builtins.c:1424
#7  0x400000000092baa8 in expand_builtin (exp=0x800003fffdff8980, 
    target=0x8000a2f20, subtarget=0x800003fffdff88e0, mode=Cannot access memory
at address 0x3b
)
    at ../../gcc/gcc/builtins.c:6322
#8  0x4000000000dc0560 in expand_expr_real_1 (exp=0x800003fffdff8980,
target=Cannot access memory at address 0x10
)
    at ../../gcc/gcc/expr.c:8065
#9  0x4000000000db19d4 in expand_expr_real (exp=0x800003fffdff8980, 
    target=0x800003fffdfc5c60, tmode=Cannot access memory at address 0x33
) at ../../gcc/gcc/expr.c:7115
#10 0x4000000000d9faa4 in store_expr (exp=0x800003fffdff8980, 
    target=0x8000a2f20, call_param_p=-2147482625, nontemporal=Cannot access
memory at address 0x3b
)
---Type <return> to continue, or q <return> to quit---
    at ../../gcc/gcc/expr.c:4611
#11 0x4000000000d9de38 in expand_assignment (to=0x800003fffdff8980, 
    from=0x8000a2f20, nontemporal=Cannot access memory at address 0x50
) at ../../gcc/gcc/expr.c:4395
#12 0x4000000000dd8678 in expand_expr_real_1 (exp=0x800003fffdff8980,
target=Cannot access memory at address 0x10
)
    at ../../gcc/gcc/expr.c:9214
#13 0x4000000000db19d4 in expand_expr_real (exp=0x800003fffdff8980, 
    target=0x800003fffdfc5c60, tmode=Cannot access memory at address 0x33
) at ../../gcc/gcc/expr.c:7115
#14 0x4000000001834848 in expand_expr (exp=0x800003fffddb8b20, 
    target=0x800003fffdfc5c60, mode=2147484671, modifier=2147484671)
    at ../../gcc/gcc/expr.h:538
#15 0x4000000001842708 in expand_expr_stmt (exp=0x800003fffdff8980)
    at ../../gcc/gcc/stmt.c:1352
#16 0x4000000003278730 in expand_gimple_basic_block (bb=0x800003fffdff8980)
    at ../../gcc/gcc/cfgexpand.c:1980
#17 0x400000000327a910 in gimple_expand_cfg ()
    at ../../gcc/gcc/cfgexpand.c:2377
#18 0x4000000001380118 in execute_one_pass (pass=0x800003fffdff8980)
    at ../../gcc/gcc/passes.c:1279
#19 0x40000000013804ec in execute_pass_list (pass=0x800003fffddb8b20)
    at ../../gcc/gcc/passes.c:1328
#20 0x4000000001d5f9c8 in tree_rest_of_compilation (fndecl=0x800003fffdff8980)
    at ../../gcc/gcc/tree-optimize.c:418
#21 0x4000000002dc6ae0 in cgraph_expand_function (node=0x800003fffdff8980)
---Type <return> to continue, or q <return> to quit---
    at ../../gcc/gcc/cgraphunit.c:1038
#22 0x4000000002dc6e18 in cgraph_expand_all_functions ()
    at ../../gcc/gcc/cgraphunit.c:1097
#23 0x4000000002dc7960 in cgraph_optimize ()
    at ../../gcc/gcc/cgraphunit.c:1302
#24 0x40000000005f84e4 in c_write_global_declarations ()
    at ../../gcc/gcc/c-decl.c:8074
#25 0x40000000018c30c0 in compile_file () at ../../gcc/gcc/toplev.c:979
#26 0x40000000018c700c in do_compile () at ../../gcc/gcc/toplev.c:2191
#27 0x40000000018c712c in toplev_main (argc=16, argv=0x800003fffdff0648)
    at ../../gcc/gcc/toplev.c:2223
#28 0x400000000085a0e4 in main (argc=Cannot access memory at address 0x23
) at ../../gcc/gcc/main.c:35


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-11-08 19:39 ` danglin at gcc dot gnu dot org
@ 2008-11-08 21:31 ` danglin at gcc dot gnu dot org
  2008-11-08 21:41 ` danglin at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-11-08 21:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from danglin at gcc dot gnu dot org  2008-11-08 21:29 -------
It seems the insn to initialize reg:DI 69 is being emitted, but it appears
that it is done too early and gets lost.

Breakpoint 8, emit_insn (x=0x800003fffdfc5c80)
    at ../../gcc/gcc/emit-rtl.c:4415
4415      rtx last = last_insn;
(gdb) bt
#0  emit_insn (x=0x800003fffdfc5c80) at ../../gcc/gcc/emit-rtl.c:4415
#1  0x4000000002cff6cc in emit_move_sequence (operands=0x800003fffdff1950, 
    mode=Cannot access memory at address 0xc001002000000007
) at ../../gcc/gcc/config/pa/pa.c:1732
#2  0x400000000311530c in gen_movdi (operand0=0x800003fffdfc5c80, 
    operand1=0x800003fffdfc5c60) at ../../gcc/gcc/config/pa/pa.md:4357
#3  0x4000000000d991fc in emit_move_insn_1 (x=0x800003fffdfc5c80, 
    y=0x800003fffdfc5c60) at ../../gcc/gcc/expr.c:3355
#4  0x4000000000d999f0 in emit_move_insn (x=Cannot access memory at address
0xc001001fffffffff
) at ../../gcc/gcc/expr.c:3443
#5  0x4000000000d22f44 in copy_to_reg (x=0x800003fffdfc5c80)
    at ../../gcc/gcc/explow.c:596
#6  0x4000000001886058 in default_internal_arg_pointer ()
    at ../../gcc/gcc/targhooks.c:573
#7  0x4000000000f6ae1c in assign_parms (fndecl=0x800003fffdff1950)
    at ../../gcc/gcc/function.c:2998
#8  0x4000000000f71b38 in expand_function_start (subr=0x800003fffdff1950)
    at ../../gcc/gcc/function.c:4316
#9  0x400000000327a538 in gimple_expand_cfg ()
    at ../../gcc/gcc/cfgexpand.c:2351
#10 0x4000000001380118 in execute_one_pass (pass=0x800003fffdff1950)
    at ../../gcc/gcc/passes.c:1279
#11 0x40000000013804ec in execute_pass_list (pass=0x800003fffdfc5c80)
    at ../../gcc/gcc/passes.c:1328
#12 0x4000000001d5f9c8 in tree_rest_of_compilation (fndecl=0x800003fffdff1950)
---Type <return> to continue, or q <return> to quit---
    at ../../gcc/gcc/tree-optimize.c:418
#13 0x4000000002dc6ae0 in cgraph_expand_function (node=0x800003fffdff1950)
    at ../../gcc/gcc/cgraphunit.c:1038
#14 0x4000000002dc6e18 in cgraph_expand_all_functions ()
    at ../../gcc/gcc/cgraphunit.c:1097
#15 0x4000000002dc7960 in cgraph_optimize ()
    at ../../gcc/gcc/cgraphunit.c:1302
#16 0x40000000005f84e4 in c_write_global_declarations ()
    at ../../gcc/gcc/c-decl.c:8074
#17 0x40000000018c30c0 in compile_file () at ../../gcc/gcc/toplev.c:979
#18 0x40000000018c700c in do_compile () at ../../gcc/gcc/toplev.c:2191
#19 0x40000000018c712c in toplev_main (argc=16, argv=0x800003fffdff0648)
    at ../../gcc/gcc/toplev.c:2223
#20 0x400000000085a0e4 in main (argc=1310720, argv=0x800003fffdfc5c60)
    at ../../gcc/gcc/main.c:35
(gdb) p debug_rtx (x)
(set (reg/f:DI 69)
    (reg/f:DI 61 virtual-incoming-args))


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-11-08 21:31 ` danglin at gcc dot gnu dot org
@ 2008-11-08 21:41 ` danglin at gcc dot gnu dot org
  2008-11-08 21:48 ` danglin at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-11-08 21:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from danglin at gcc dot gnu dot org  2008-11-08 21:40 -------
> It seems the insn to initialize reg:DI 69 is being emitted, but it appears
> that it is done too early and gets lost.

No, it's not lost.  Insn 27 has been inserted before insn 2:

[...]
(insn 27 26 28 2 /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtin-apply4.c:20
(set (reg/f:DI 72)
        (reg/f:DI 69)) -1 (nil))

(insn 28 27 29 2 /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtin-apply4.c:20
(set (mem/c:DI (plus:DI (reg/f:DI 62 virtual-stack-vars)
                (const_int 8 [0x8])) [0 S8 A128])
        (reg/f:DI 72)) -1 (nil))

(insn 29 28 30 2 /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtin-apply4.c:20
(set (reg:DI 73)
        (reg:DI 28 %r28)) -1 (nil))

(insn 30 29 31 2 /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtin-apply4.c:20
(set (mem/c:DI (plus:DI (reg/f:DI 62 virtual-stack-vars)
                (const_int 16 [0x10])) [0 S8 A64])
        (reg:DI 73)) -1 (nil))

(insn 31 30 2 2 /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtin-apply4.c:20 (set
(reg/f:DI 74)
        (plus:DI (reg/f:DI 62 virtual-stack-vars)
            (const_int 8 [0x8]))) -1 (nil))

(insn 2 31 3 2 /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtin-apply4.c:18 (set
(reg/f:DI 69)
        (reg/f:DI 61 virtual-incoming-args)) -1 (nil))


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2008-11-08 21:41 ` danglin at gcc dot gnu dot org
@ 2008-11-08 21:48 ` danglin at gcc dot gnu dot org
  2008-11-09 10:58 ` jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-11-08 21:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from danglin at gcc dot gnu dot org  2008-11-08 21:46 -------
This seems wrong:

    /* Put the insns after the NOTE that starts the function.
       If this is inside a start_sequence, make the outer-level insn
       chain current, so the code is placed at the start of the
       function.  */
    push_topmost_sequence ();
    emit_insn_before (seq, NEXT_INSN (entry_of_function ()));
    pop_topmost_sequence ();


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-11-08 21:46:55
               date|                            |


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2008-11-08 21:48 ` danglin at gcc dot gnu dot org
@ 2008-11-09 10:58 ` jakub at gcc dot gnu dot org
  2008-11-09 16:30 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-09 10:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jakub at gcc dot gnu dot org  2008-11-09 10:57 -------
Created an attachment (id=16639)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16639&action=view)
gcc44-pr37323.patch

I guess the following patch should fix it.  The question is if it doesn't break
other targets...


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2008-11-09 10:58 ` jakub at gcc dot gnu dot org
@ 2008-11-09 16:30 ` dave at hiauly1 dot hia dot nrc dot ca
  2008-11-10 14:55 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2008-11-09 16:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from dave at hiauly1 dot hia dot nrc dot ca  2008-11-09 16:28 -------
Subject: Re:  [4.4 Regression] __builtin_apply failures

> I guess the following patch should fix it.  The question is if it doesn't break
> other targets...

I'll give it a try.  If this fixes the problem, the preceding comment
needs adjustment.

Dave


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2008-11-09 16:30 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2008-11-10 14:55 ` dave at hiauly1 dot hia dot nrc dot ca
  2008-11-10 18:07 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2008-11-10 14:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from dave at hiauly1 dot hia dot nrc dot ca  2008-11-10 14:54 -------
Subject: Re:  [4.4 Regression] __builtin_apply failures

> Created an attachment (id=16639)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16639&action=view)
>  --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16639&action=view)
> gcc44-pr37323.patch
> 
> I guess the following patch should fix it.  The question is if it doesn't break
> other targets...

The patch fixes the PR, and there were no new regressions with the change
on hppa64-hp-hpux11.11 or hppa-unknown-linux-gnu.

Dave


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2008-11-10 14:55 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2008-11-10 18:07 ` jakub at gcc dot gnu dot org
  2008-11-22  8:31 ` jakub at gcc dot gnu dot org
  2008-11-22  8:33 ` jakub at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-10 18:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2008-
                   |                            |11/msg00366.html
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-11-08 21:46:55         |2008-11-10 18:05:45
               date|                            |


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2008-11-10 18:07 ` jakub at gcc dot gnu dot org
@ 2008-11-22  8:31 ` jakub at gcc dot gnu dot org
  2008-11-22  8:33 ` jakub at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-22  8:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from jakub at gcc dot gnu dot org  2008-11-22 08:30 -------
Subject: Bug 37323

Author: jakub
Date: Sat Nov 22 08:28:44 2008
New Revision: 142116

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142116
Log:
        PR middle-end/37323
        * builtins.c (expand_builtin_apply_args): Emit sequence before
        parm_birth_insn instead of after entry_of_function's first insn.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c


-- 


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/37323] [4.4 Regression] __builtin_apply failures
  2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2008-11-22  8:31 ` jakub at gcc dot gnu dot org
@ 2008-11-22  8:33 ` jakub at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-22  8:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from jakub at gcc dot gnu dot org  2008-11-22 08:32 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2008-11-22  8:33 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-01 19:50 [Bug middle-end/37323] New: [4.4 Regression] __builtin_apply failures danglin at gcc dot gnu dot org
2008-09-01 19:54 ` [Bug middle-end/37323] " danglin at gcc dot gnu dot org
2008-09-02 11:36 ` rguenth at gcc dot gnu dot org
2008-10-22  3:06 ` mmitchel at gcc dot gnu dot org
2008-11-08  2:04 ` danglin at gcc dot gnu dot org
2008-11-08 17:29 ` danglin at gcc dot gnu dot org
2008-11-08 19:00 ` dave at hiauly1 dot hia dot nrc dot ca
2008-11-08 19:39 ` danglin at gcc dot gnu dot org
2008-11-08 21:31 ` danglin at gcc dot gnu dot org
2008-11-08 21:41 ` danglin at gcc dot gnu dot org
2008-11-08 21:48 ` danglin at gcc dot gnu dot org
2008-11-09 10:58 ` jakub at gcc dot gnu dot org
2008-11-09 16:30 ` dave at hiauly1 dot hia dot nrc dot ca
2008-11-10 14:55 ` dave at hiauly1 dot hia dot nrc dot ca
2008-11-10 18:07 ` jakub at gcc dot gnu dot org
2008-11-22  8:31 ` jakub at gcc dot gnu dot org
2008-11-22  8:33 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).