This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/87927] New: ICE: segmentation fault with patchable_function_entry attribute for msp430-elf -mlarge
- From: "jozef.l at mittosystems dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Nov 2018 00:04:39 +0000
- Subject: [Bug c/87927] New: ICE: segmentation fault with patchable_function_entry attribute for msp430-elf -mlarge
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87927
Bug ID: 87927
Summary: ICE: segmentation fault with patchable_function_entry
attribute for msp430-elf -mlarge
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: jozef.l at mittosystems dot com
Target Milestone: ---
Use of the patchable_function_entry attribute with msp430-elf in the large
memory model causes a segfault on trunk.
For example in c-c++-common/patchable_function_entry-decl.c:
> extern int a;
>
> int f3 (void) __attribute__((patchable_function_entry(2)));
>
> int
> __attribute__((noinline))
> f3 (void)
> {
> return 5*a;
> }
> gcc -mlarge -fpatchable-function-entry=3,1 -S gcc/testsuite/c-c++-common/patchable_function_entry-decl.c
> gcc/testsuite/c-c++-common/patchable_function_entry-decl.c: In function 'f3':
> gcc/testsuite/c-c++-common/patchable_function_entry-decl.c:18:1: internal compiler error: Segmentation fault
> 0xb5e4af crash_signal
> ../../gcc/toplev.c:325
> 0xb59d41 default_print_patchable_function_entry(_IO_FILE*, unsigned long, bool)
> ../../gcc/targhooks.c:1816
> 0xe94d2c assemble_start_function(tree_node*, char const*)
> ../../gcc/varasm.c:1903
> 0x84188f rest_of_handle_final
> ../../gcc/final.c:4645
> 0x84188f execute
> ../../gcc/final.c:4723