This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81317] builtin_vec_ld fails for powerpc with altivec
- From: "randy.macleod at windriver dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Jul 2017 15:11:11 +0000
- Subject: [Bug target/81317] builtin_vec_ld fails for powerpc with altivec
- Auto-submitted: auto-generated
- References: <bug-81317-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81317
--- Comment #23 from Randy MacLeod <randy.macleod at windriver dot com> ---
Here is the 'bt' and 'bt full' with line numbers and symbols. YP diff to enable
this is below as well. Thanks for you patience as I re-learn these ropes.
Program received signal SIGSEGV, Segmentation fault.
store_expr_with_bounds (exp=exp@entry=0x7ffff658ed80,
target=target@entry=0x7ffff6722930, call_param_p=call_param_p@entry=0,
nontemporal=nontemporal@entry=false, reverse=reverse@entry=false,
btarget=btarget@entry=0x7ffff658d480)
at ../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/expr.c:5575
5575 if (CONSTANT_P (temp) && GET_MODE (temp) == VOIDmode
(gdb) bt
#0 store_expr_with_bounds (exp=exp@entry=0x7ffff658ed80,
target=target@entry=0x7ffff6722930, call_param_p=call_param_p@entry=0,
nontemporal=nontemporal@entry=false, reverse=reverse@entry=false,
btarget=btarget@entry=0x7ffff658d480)
at ../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/expr.c:5575
#1 0x00000000007604e0 in expand_assignment (to=0x7ffff658d480,
from=from@entry=0x7ffff658ed80, nontemporal=nontemporal@entry=false)
at ../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/expr.c:5321
#2 0x00000000006728fb in expand_call_stmt (stmt=0x7ffff6715240) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:2656
#3 expand_gimple_stmt_1 (stmt=0x7ffff6715240) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:3571
#4 expand_gimple_stmt (stmt=stmt@entry=0x7ffff6715240) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:3737
#5 0x00000000006742f1 in expand_gimple_basic_block (bb=0x7ffff65a0410,
disable_tail_calls=disable_tail_calls@entry=false)
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:5744
#6 0x0000000000678ddf in (anonymous namespace)::pass_expand::execute
(this=<optimized out>, fun=0x7ffff6710000)
[90/202]
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:6357
#7 0x000000000092be4b in execute_one_pass (pass=pass@entry=0x1a80650) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/passes.c:2465
#8 0x000000000092c668 in execute_pass_list_1 (pass=0x1a80650) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/passes.c:2554
#9 0x000000000092c6c5 in execute_pass_list (fn=<optimized out>,
pass=<optimized out>)
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/passes.c:2565
#10 0x00000000006a360d in cgraph_node::expand (this=0x7ffff670c2e0) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2042
#11 0x00000000006a4b3d in expand_all_functions () at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2178
#12 symbol_table::compile (this=this@entry=0x7ffff6585000) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2535
---Type <return> to continue, or q <return> to quit---
#13 0x00000000006a6598 in symbol_table::compile (this=0x7ffff6585000)
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2599
#14 symbol_table::finalize_compilation_unit (this=0x7ffff6585000) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2625
#15 0x00000000009e75b0 in compile_file () at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/toplev.c:492
#16 0x0000000000577a4c in do_compile () at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/toplev.c:2000
#17 toplev::main (this=this@entry=0x7fffffffada0, argc=argc@entry=27,
argv=argv@entry=0x7fffffffaea8)
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/toplev.c:2134
#18 0x0000000000579dd7 in main (argc=27, argv=0x7fffffffaea8) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/main.c:39
(gdb)
(gdb) bt full
[69/202]
#0 store_expr_with_bounds (exp=exp@entry=0x7ffff658ed80,
target=target@entry=0x7ffff6722930, call_param_p=call_param_p@entry=0,
nontemporal=nontemporal@entry=false, reverse=reverse@entry=false,
btarget=btarget@entry=0x7ffff658d480)
at ../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/expr.c:5575
temp = 0x0
alt_rtl = 0x0
loc = 2147483667
__FUNCTION__ = "store_expr_with_bounds"
#1 0x00000000007604e0 in expand_assignment (to=0x7ffff658d480,
from=from@entry=0x7ffff658ed80, nontemporal=nontemporal@entry=false)
at ../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/expr.c:5321
to_rtx = <optimized out>
result = <optimized out>
mode = <optimized out>
align = <optimized out>
icode = <optimized out>
__FUNCTION__ = "expand_assignment"
#2 0x00000000006728fb in expand_call_stmt (stmt=0x7ffff6715240) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:26[53/202]
exp = 0x7ffff658ed80
i = <optimized out>
builtin_p = <optimized out>
#3 expand_gimple_stmt_1 (stmt=0x7ffff6715240) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:3571
op0 = <optimized out>
#4 expand_gimple_stmt (stmt=stmt@entry=0x7ffff6715240) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:3737
saved_location = 364796
lp_nr = <optimized out>
__FUNCTION__ = "expand_gimple_stmt"
#5 0x00000000006742f1 in expand_gimple_basic_block (bb=0x7ffff65a0410,
disable_tail_calls=disable_tail_calls@entry=false) [42/202]
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:5744
gsi = {ptr = 0x7ffff6715240, seq = 0x7fffffffaac0, bb = 0x7ffff65a0410}
stmts = 0x7ffff6715240
stmt = <optimized out>
note = <optimized out>
last = <optimized out>
e = <optimized out>
ei = <optimized out>
__FUNCTION__ = "expand_gimple_basic_block"
#6 0x0000000000678ddf in (anonymous namespace)::pass_expand::execute
(this=<optimized out>, fun=0x7ffff6710000)
[32/202]
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cfgexpand.c:6357
bb = <optimized out>
init_block = 0x0
ei = <optimized out>
e = 0x0
var_ret_seq = 0x0
i = <optimized out>
name = 0x0
__FUNCTION__ = "execute"
blocks = <optimized out>
#7 0x000000000092be4b in execute_one_pass (pass=pass@entry=0x1a80650) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/passes.c:2465
todo_after = 0
gate_status = true
__FUNCTION__ = "execute_one_pass"
#8 0x000000000092c668 in execute_pass_list_1 (pass=0x1a80650) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/passes.c:2554
[16/202]
No locals.
#9 0x000000000092c6c5 in execute_pass_list (fn=<optimized out>,
pass=<optimized out>)
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/passes.c:2565
No locals.
#10 0x00000000006a360d in cgraph_node::expand (this=0x7ffff670c2e0) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2042
saved_loc = 462912
this = 0x7ffff670c2e0
#11 0x00000000006a4b3d in expand_all_functions () at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2178
node = 0x7ffff670c2e0
order_pos = <optimized out>
i = <optimized out>
order = 0x1a6c6d0
expanded_func_count = 1
profiled_func_count = 0
new_order_pos = <optimized out>
#12 symbol_table::compile (this=this@entry=0x7ffff6585000) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2535
No locals.
#13 0x00000000006a6598 in symbol_table::compile (this=0x7ffff6585000)
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2599
No locals.
#14 symbol_table::finalize_compilation_unit (this=0x7ffff6585000) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/cgraphunit.c:2625
No locals.
#15 0x00000000009e75b0 in compile_file () at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/toplev.c:492
No locals.
#16 0x0000000000577a4c in do_compile () at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/toplev.c:2000
i = 1
#17 toplev::main (this=this@entry=0x7fffffffada0, argc=argc@entry=27,
argv=argv@entry=0x7fffffffaea8)
at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/toplev.c:2134
__FUNCTION__ = "main"
#18 0x0000000000579dd7 in main (argc=27, argv=0x7fffffffaea8) at
../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/gcc/main.c:39
toplev = {m_use_TV_TOTAL = true, m_init_signals = true}
(gdb)
(gdb) info registers
[7/228]
rax 0x0 0
rbx 0x1b 27
rcx 0x0 0
rdx 0x7fffffffa8b0 140737488332976
rsi 0x7fffffffa8a0 140737488332960
rdi 0x0 0
rbp 0x7fffffffaea8 0x7fffffffaea8
rsp 0x7fffffffada0 0x7fffffffada0
r8 0x0 0
r9 0x0 0
r10 0x7ffff658d798 140737326405528
r11 0x0 0
r12 0x57a1c0 5743040
r13 0x7fffffffaea0 140737488334496
r14 0x0 0
r15 0x0 0
rip 0x579dd7 0x579dd7 <main(int, char**)+55>
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
-----------
For YP people who may read this, I simplely changed cross.bbclass:
$ git diff
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 4887317..7de3f09 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -34,8 +34,8 @@ TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}"
TARGET_LDFLAGS = "${BUILD_LDFLAGS}"
CPPFLAGS = "${BUILD_CPPFLAGS}"
-CFLAGS = "${BUILD_CFLAGS}"
-CXXFLAGS = "${BUILD_CFLAGS}"
+CFLAGS = "${BUILD_CFLAGS} -g"
+CXXFLAGS = "${BUILD_CFLAGS} -g"
LDFLAGS = "${BUILD_LDFLAGS}"
LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}"