Re: Fix inconsistent section flags

2017-08-29 Thread Joerg Sonnenberger
On Mon, Aug 28, 2017 at 11:42:53AM -0600, Jeff Law wrote: > Does the attached (untested) patch work for you? Works for the cases I care about, yes. Joerg

Re: Fix inconsistent section flags

2017-08-28 Thread Joerg Sonnenberger
On Mon, Aug 28, 2017 at 11:42:53AM -0600, Jeff Law wrote: > On 07/17/2017 08:35 AM, Joerg Sonnenberger wrote: > > Hello, > > attached patch fixes inconsistent handling of section flags when using > > the section attribute, i.e.: > > > > __attribute__

Re: Fix inconsistent section flags

2017-07-22 Thread Joerg Sonnenberger
One more patch needed for another edge condition. Joerg Index: src/external/gpl3/gcc/dist/gcc/varasm.c diff -u src/external/gpl3/gcc/dist/gcc/varasm.c:1.2 src/external/gpl3/gcc/dist/gcc/varasm.c:1.3 --- src/external/gpl3/gcc/dist/gcc/varasm.c:1.2 Mon Jul 17 19:53:10 2017 +++ src/external/gpl3/gcc

Fix inconsistent section flags

2017-07-17 Thread Joerg Sonnenberger
Hello, attached patch fixes inconsistent handling of section flags when using the section attribute, i.e.: __attribute__((section("writable1"))) int foo1; __attribute__((section("readonly1"))) const int foo1c; __attribute__((section("writable2"))) int foo2 = 42; __attribute__((section("readonly2")