[Bug target/55033] [4.6/4.7/4.8 Regression] PowerPC section type conflict error

2012-12-03 Thread rguenth at gcc dot gnu.org


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



Richard Biener rguenth at gcc dot gnu.org changed:



   What|Removed |Added



 Target|powerpc-rtems4.11   |powerpc-rtems4.11

   ||powerpc-eabi

   Priority|P3  |P4


[Bug target/55033] [4.6/4.7/4.8 Regression] PowerPC section type conflict error

2012-11-25 Thread rguenth at gcc dot gnu.org


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



Richard Biener rguenth at gcc dot gnu.org changed:



   What|Removed |Added



   Target Milestone|--- |4.6.4


[Bug target/55033] [4.6/4.7/4.8 Regression] PowerPC section type conflict error

2012-11-06 Thread fang at csl dot cornell.edu


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



David Fang fang at csl dot cornell.edu changed:



   What|Removed |Added



 CC||fang at csl dot cornell.edu



--- Comment #3 from David Fang fang at csl dot cornell.edu 2012-11-06 
09:26:38 UTC ---

Would this be testable on powerpc-apple-darwin8?


[Bug target/55033] [4.6/4.7/4.8 Regression] PowerPC section type conflict error

2012-11-06 Thread sebastian.hu...@embedded-brains.de


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



--- Comment #4 from Sebastian Huber sebastian.hu...@embedded-brains.de 
2012-11-06 13:18:15 UTC ---

(In reply to comment #3)

 Would this be testable on powerpc-apple-darwin8?



See also



http://gcc.gnu.org/ml/gcc-patches/2012-10/msg02051.html



The -mcpu=8540 -msdata=eabi option is important.  I don't know how to trigger

this bug without the -mcpu=8540 option.


[Bug target/55033] [4.6/4.7/4.8 Regression] PowerPC section type conflict error

2012-10-23 Thread sebastian.hu...@embedded-brains.de


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



--- Comment #2 from Sebastian Huber sebastian.hu...@embedded-brains.de 
2012-10-23 15:03:37 UTC ---

#0  default_elf_select_section (decl=0x772b92d0, reloc=0, align=32) at

/home/sh/archive/gcc-git/gcc/varasm.c:6251

#1  0x00c57d4e in get_constant_section (align=optimized out,

exp=0x772b92d0) at /home/sh/archive/gcc-git/gcc/varasm.c:3021

#2  build_constant_desc (exp=0x772b92d0) at

/home/sh/archive/gcc-git/gcc/varasm.c:3091

#3  0x00c5c3f0 in tree_output_constant_def (exp=0x772b92d0) at

/home/sh/archive/gcc-git/gcc/varasm.c:3282

#4  0x008fe0a4 in gimplify_init_constructor (expr_p=0x7fffd108,

pre_p=0x7fffd2e8, post_p=0x7fffd088, want_value=false,

notify_temp_creation=false) at /home/sh/archive/gcc-git/gcc/gimplify.c:4085

#5  0x008feb16 in gimplify_modify_expr_rhs (expr_p=0x7fffd108,

from_p=0x768ed110, to_p=0x768ed108, pre_p=0x7fffd2e8,

post_p=0x7fffd088, want_value=false) at

/home/sh/archive/gcc-git/gcc/gimplify.c:4530

#6  0x009010ef in gimplify_modify_expr (want_value=false,

post_p=0x7fffd088, pre_p=0x7fffd2e8, expr_p=0x7fffd108) at

/home/sh/archive/gcc-git/gcc/gimplify.c:4840

#7  gimplify_expr (expr_p=0x7fffd108, pre_p=0x7fffd2e8,

post_p=0x7fffd088, gimple_test_f=0x8f7b70 is_gimple_stmt(tree),

fallback=0) at /home/sh/archive/gcc-git/gcc/gimplify.c:7167

#8  0x00907429 in gimplify_stmt (stmt_p=optimized out,

seq_p=0x7fffd2e8) at /home/sh/archive/gcc-git/gcc/gimplify.c:5700

#9  0x00908fe3 in gimplify_and_add (t=0x768ed0f0, seq_p=optimized

out) at /home/sh/archive/gcc-git/gcc/gimplify.c:371

#10 0x0090a0c0 in gimplify_decl_expr (stmt_p=optimized out,

seq_p=0x7fffd2e8) at /home/sh/archive/gcc-git/gcc/gimplify.c:1484

#11 0x008ffcd1 in gimplify_expr (expr_p=0x768bebf8,

pre_p=0x7fffd2e8, post_p=0x7fffd228, gimple_test_f=0x8f7b70

is_gimple_stmt(tree), fallback=0) at

/home/sh/archive/gcc-git/gcc/gimplify.c:7334

#12 0x00907429 in gimplify_stmt (stmt_p=optimized out,

seq_p=0x7fffd2e8) at /home/sh/archive/gcc-git/gcc/gimplify.c:5700

#13 0x00908c88 in gimplify_cleanup_point_expr (expr_p=0x772b93d0,

pre_p=0x7fffd5e8) at /home/sh/archive/gcc-git/gcc/gimplify.c:5477

#14 0x008ffa71 in gimplify_expr (expr_p=0x772b93d0,

pre_p=0x7fffd5e8, post_p=0x7fffd408, gimple_test_f=0x8f7b70

is_gimple_stmt(tree), fallback=0) at

/home/sh/archive/gcc-git/gcc/gimplify.c:7504

#15 0x00907429 in gimplify_stmt (stmt_p=optimized out,

seq_p=0x7fffd5e8) at /home/sh/archive/gcc-git/gcc/gimplify.c:5700

#16 0x008ff98c in gimplify_statement_list (pre_p=0x7fffd5e8,

expr_p=0x7656d8f0) at /home/sh/archive/gcc-git/gcc/gimplify.c:1537

#17 gimplify_expr (expr_p=0x7656d8f0, pre_p=0x7fffd5e8,

post_p=0x7fffd558, gimple_test_f=0x8f7b70 is_gimple_stmt(tree),

fallback=0) at /home/sh/archive/gcc-git/gcc/gimplify.c:7556

#18 0x00907429 in gimplify_stmt (stmt_p=optimized out,

seq_p=0x7fffd5e8) at /home/sh/archive/gcc-git/gcc/gimplify.c:5700

#19 0x00908316 in gimplify_bind_expr (expr_p=0x762f2b98,

pre_p=0x7fffd7f8) at /home/sh/archive/gcc-git/gcc/gimplify.c:1230

#20 0x00900787 in gimplify_expr (expr_p=0x762f2b98,

pre_p=0x7fffd7f8, post_p=0x7fffd718, gimple_test_f=0x8f7b70

is_gimple_stmt(tree), fallback=0) at

/home/sh/archive/gcc-git/gcc/gimplify.c:7338

#21 0x00907429 in gimplify_stmt (stmt_p=optimized out,

seq_p=0x7fffd7f8) at /home/sh/archive/gcc-git/gcc/gimplify.c:5700

#22 0x00907522 in gimplify_body (fndecl=0x762f2b00, do_parms=true)

at /home/sh/archive/gcc-git/gcc/gimplify.c:8203

#23 0x00907a16 in gimplify_function_tree (fndecl=0x762f2b00) at

/home/sh/archive/gcc-git/gcc/gimplify.c:8337

#24 0x007adc98 in cgraph_analyze_function (node=0x7679f6f0) at

/home/sh/archive/gcc-git/gcc/cgraphunit.c:643

#25 0x007b0ad7 in cgraph_analyze_functions () at

/home/sh/archive/gcc-git/gcc/cgraphunit.c:928

#26 0x007b1991 in finalize_compilation_unit () at

/home/sh/archive/gcc-git/gcc/cgraphunit.c:2071

#27 0x005d46cc in cp_write_global_declarations () at

/home/sh/archive/gcc-git/gcc/cp/decl2.c:4286

#28 0x00a55b8d in compile_file () at

/home/sh/archive/gcc-git/gcc/toplev.c:560

#29 0x00a577f2 in do_compile () at

/home/sh/archive/gcc-git/gcc/toplev.c:1866

#30 toplev_main (argc=18, argv=0x7fffdb28) at

/home/sh/archive/gcc-git/gcc/toplev.c:1942

#31 0x7761223d in __libc_start_main () from /lib64/libc.so.6

#32 0x004ebbcd in _start () at ../sysdeps/x86_64/elf/start.S:113



The problem is that something in GCC calls default_elf_select_section(decl,

reloc, align) with categorize_decl_for_section(decl, reloc) == SECCAT_SRODATA. 

This in turn calls get_named_section