This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/2] [MSP430] Fix issues handling .persistent attribute (PR 78818)
- From: Nick Clifton <nickc at redhat dot com>
- To: Jozef Lawrynowicz <jozef dot l at somniumtech dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 30 May 2017 12:50:29 +0100
- Subject: Re: [PATCH 2/2] [MSP430] Fix issues handling .persistent attribute (PR 78818)
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=nickc at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 9C9BB37E66
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9C9BB37E66
Hi Jozef,
> Attached patch with the string wrapped in G_().
When I applied this patch to the sources and ran the new test, I encountered
an internal compiler error:
msp430-elf/gcc/xgcc [...] pr78818-auto-warn.c [...]
[...]
gcc/testsuite/gcc.target/msp430/pr78818-auto-warn.c: In function 'main':
gcc/testsuite/gcc.target/msp430/pr78818-auto-warn.c:10:3: internal compiler error: in get, at cgraph.h:403
0xd30d3b symtab_node::get(tree_node const*)
gcc/current/gcc/cgraph.h:400
0xd30d3b decl_section_name(tree_node const*)
gcc/current/gcc/tree.c:700
0xd9ff22 msp430_data_attr
gcc/current/gcc/config/msp430/msp430.c:1998
It seems that there is a problem with calling the DECL_SECTION_NAME macro on the
line just before your new code. Are you able to reproduce this problem ?
Cheers
Nick