Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Jul 2014 06:23:24 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Eitan Adler <eadler@freebsd.org>, John Baldwin <jhb@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Marius Strobl <marius@alchemy.franken.de>
Subject:   Re: svn commit: r268055 - head/sys/sys
Message-ID:  <53B237BC.4090207@selasky.org>
In-Reply-To: <CAF6rxg=C-%2Bm9LCwCBM1Ribfku6Ego1qnHGk4c_WE3md6%2BHesYQ@mail.gmail.com>
References:  <201406301811.s5UIBMxh036571@svn.freebsd.org> <201406301447.21620.jhb@freebsd.org> <20140630201555.GE7615@alchemy.franken.de> <201406301703.25593.jhb@freebsd.org> <CAF6rxg=C-%2Bm9LCwCBM1Ribfku6Ego1qnHGk4c_WE3md6%2BHesYQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/01/14 00:35, Eitan Adler wrote:
> On 30 June 2014 14:03, John Baldwin <jhb@freebsd.org> wrote:
>> On Monday, June 30, 2014 4:15:55 pm Marius Strobl wrote:
>>> On Mon, Jun 30, 2014 at 02:47:21PM -0400, John Baldwin wrote:
>>>> On Monday, June 30, 2014 2:43:42 pm Hans Petter Selasky wrote:
>>>>> On 06/30/14 20:37, John Baldwin wrote:
>>>>>> Reindenting the whitespace made this diff harder to read.  Why hasn't this
>>>>>> been a problem before on powerpc64?
>>>>>
>>>>> Hi,
>>>>>
>>>>> This has not been a problem before, because producers of DATA_SET()'s
>>>>> were using syntax along these lines:
>>>>>
>>>>> static int test2;
>>>>> static int test3;
>>>>>
>>>>> DATA_SET(test, test2);
>>>>> DATA_SET(test, test3);
>>>>>
>>>>> Now if you change this simple code to:
>>>>>
>>>>> static int test2;
>>>>> int test3;
>>>>>
>>>>> DATA_SET(test, test2);
>>>>> DATA_SET(test, test3);
>>>>>
>>>>> It breaks on powerpc64. Should be very easy to reproduce.
>>>>>
>>>>> The problem with SYSCTL's is that some are global and some are not.
>>>>> Before an indirect pointer was hiding this problem from appearing.
>>>>>
>>>>> Do you see? Or do you want me to explain more.
>>>>
>>>> Ahh, ok.  Seems odd that this sort of thing would be ppc64-specific however.
>>>>
>>>
>>> Apparently it isn't and has also has shown up on at least ia64:
>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31490
>>
>> Ugh.  Maybe this should be conditional on the GCC version rather than ppc64?
>
> There should also be a GCC bug id in a comment.
>

Hi,

Feel free to update my patch for linker_set.h. This is beyond what I 
feel comfortable at :-)

BTW: Is it possible to import those GCC patches into base?

Thank you!

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53B237BC.4090207>