public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libgcc: xtensa: fix build with -mtext-section-literals
@ 2018-01-31  8:01 Max Filippov
  2018-01-31 19:47 ` augustine.sterling
  0 siblings, 1 reply; 6+ messages in thread
From: Max Filippov @ 2018-01-31  8:01 UTC (permalink / raw)
  To: gcc-patches; +Cc: linux-xtensa, Sterling Augustine, Max Filippov

libgcc/
2018-01-31  Max Filippov  <jcmvbkbc@gmail.com>

	* config/xtensa/ieee754-df.S (__adddf3_aux): Add
	.literal_position directive.
	* config/xtensa/ieee754-sf.S (__addsf3_aux): Likewise.
---
 libgcc/config/xtensa/ieee754-df.S | 1 +
 libgcc/config/xtensa/ieee754-sf.S | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libgcc/config/xtensa/ieee754-df.S b/libgcc/config/xtensa/ieee754-df.S
index 2662a6600751..a997c1b42632 100644
--- a/libgcc/config/xtensa/ieee754-df.S
+++ b/libgcc/config/xtensa/ieee754-df.S
@@ -55,6 +55,7 @@ __negdf2:
 
 #ifdef L_addsubdf3
 
+	.literal_position
 	/* Addition */
 __adddf3_aux:
 	
diff --git a/libgcc/config/xtensa/ieee754-sf.S b/libgcc/config/xtensa/ieee754-sf.S
index d48b230a7588..695c67b0fc8f 100644
--- a/libgcc/config/xtensa/ieee754-sf.S
+++ b/libgcc/config/xtensa/ieee754-sf.S
@@ -55,6 +55,7 @@ __negsf2:
 
 #ifdef L_addsubsf3
 
+	.literal_position
 	/* Addition */
 __addsf3_aux:
 
-- 
2.1.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] libgcc: xtensa: fix build with -mtext-section-literals
  2018-01-31  8:01 [PATCH] libgcc: xtensa: fix build with -mtext-section-literals Max Filippov
@ 2018-01-31 19:47 ` augustine.sterling
  2018-01-31 19:50   ` Max Filippov
  0 siblings, 1 reply; 6+ messages in thread
From: augustine.sterling @ 2018-01-31 19:47 UTC (permalink / raw)
  To: Max Filippov; +Cc: gcc-patches, linux-xtensa

On Tue, Jan 30, 2018 at 8:02 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>
> libgcc/
> 2018-01-31  Max Filippov  <jcmvbkbc@gmail.com>
>
>         * config/xtensa/ieee754-df.S (__adddf3_aux): Add
>         .literal_position directive.
>         * config/xtensa/ieee754-sf.S (__addsf3_aux): Likewise.


This is fine, but when did it stop working, and why isn't there a test
that would catch it?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] libgcc: xtensa: fix build with -mtext-section-literals
  2018-01-31 19:47 ` augustine.sterling
@ 2018-01-31 19:50   ` Max Filippov
  2018-02-01 17:12     ` Max Filippov
  0 siblings, 1 reply; 6+ messages in thread
From: Max Filippov @ 2018-01-31 19:50 UTC (permalink / raw)
  To: augustine.sterling; +Cc: gcc-patches, linux-xtensa

On Wed, Jan 31, 2018 at 11:11 AM, augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
> On Tue, Jan 30, 2018 at 8:02 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>>
>> libgcc/
>> 2018-01-31  Max Filippov  <jcmvbkbc@gmail.com>
>>
>>         * config/xtensa/ieee754-df.S (__adddf3_aux): Add
>>         .literal_position directive.
>>         * config/xtensa/ieee754-sf.S (__addsf3_aux): Likewise.
>
>
> This is fine, but when did it stop working, and why isn't there a test
> that would catch it?

I broke it with the recent softfloat NaN fix. Haven't noticed that because
I usually build without any flags or with -mauto-litpools.
Let me add the test, thanks for the suggestion.

-- 
Thanks.
-- Max

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] libgcc: xtensa: fix build with -mtext-section-literals
  2018-01-31 19:50   ` Max Filippov
@ 2018-02-01 17:12     ` Max Filippov
  2018-02-07 22:10       ` Max Filippov
  0 siblings, 1 reply; 6+ messages in thread
From: Max Filippov @ 2018-02-01 17:12 UTC (permalink / raw)
  To: augustine.sterling; +Cc: gcc-patches, linux-xtensa

Hi Sterling,

On Wed, Jan 31, 2018 at 11:17 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> On Wed, Jan 31, 2018 at 11:11 AM, augustine.sterling@gmail.com <augustine.sterling@gmail.com> wrote:
>> On Tue, Jan 30, 2018 at 8:02 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>>>
>>> libgcc/
>>> 2018-01-31  Max Filippov  <jcmvbkbc@gmail.com>
>>>
>>>         * config/xtensa/ieee754-df.S (__adddf3_aux): Add
>>>         .literal_position directive.
>>>         * config/xtensa/ieee754-sf.S (__addsf3_aux): Likewise.
>>
>> This is fine, but when did it stop working, and why isn't there a test
>> that would catch it?
>
> I broke it with the recent softfloat NaN fix. Haven't noticed that because
> I usually build without any flags or with -mauto-litpools.
> Let me add the test, thanks for the suggestion.

I've taken a look at gcc testsuites and I don't see how to add a test that would
check that libgcc builds with different compiler options. Any suggestions?

-- 
Thanks.
-- Max

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] libgcc: xtensa: fix build with -mtext-section-literals
  2018-02-01 17:12     ` Max Filippov
@ 2018-02-07 22:10       ` Max Filippov
  2018-02-20 21:17         ` Max Filippov
  0 siblings, 1 reply; 6+ messages in thread
From: Max Filippov @ 2018-02-07 22:10 UTC (permalink / raw)
  To: augustine.sterling; +Cc: gcc-patches, linux-xtensa

On Thu, Feb 1, 2018 at 9:12 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> On Wed, Jan 31, 2018 at 11:17 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>> On Wed, Jan 31, 2018 at 11:11 AM, augustine.sterling@gmail.com <augustine.sterling@gmail.com> wrote:
>>> On Tue, Jan 30, 2018 at 8:02 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>>>>
>>>> libgcc/
>>>> 2018-01-31  Max Filippov  <jcmvbkbc@gmail.com>
>>>>
>>>>         * config/xtensa/ieee754-df.S (__adddf3_aux): Add
>>>>         .literal_position directive.
>>>>         * config/xtensa/ieee754-sf.S (__addsf3_aux): Likewise.
>>>
>>> This is fine, but when did it stop working, and why isn't there a test
>>> that would catch it?
>>
>> I broke it with the recent softfloat NaN fix. Haven't noticed that because
>> I usually build without any flags or with -mauto-litpools.
>> Let me add the test, thanks for the suggestion.
>
> I've taken a look at gcc testsuites and I don't see how to add a test that would
> check that libgcc builds with different compiler options. Any suggestions?

If there are no suggestions I will check in the fix as is and will add building
with -mtext-section-literals to my testing scripts.

-- 
Thanks.
-- Max

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] libgcc: xtensa: fix build with -mtext-section-literals
  2018-02-07 22:10       ` Max Filippov
@ 2018-02-20 21:17         ` Max Filippov
  0 siblings, 0 replies; 6+ messages in thread
From: Max Filippov @ 2018-02-20 21:17 UTC (permalink / raw)
  To: augustine.sterling; +Cc: gcc-patches, linux-xtensa

On Wed, Feb 7, 2018 at 2:10 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> On Thu, Feb 1, 2018 at 9:12 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>> On Wed, Jan 31, 2018 at 11:17 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>>> On Wed, Jan 31, 2018 at 11:11 AM, augustine.sterling@gmail.com <augustine.sterling@gmail.com> wrote:
>>>> On Tue, Jan 30, 2018 at 8:02 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>>>>>
>>>>> libgcc/
>>>>> 2018-01-31  Max Filippov  <jcmvbkbc@gmail.com>
>>>>>
>>>>>         * config/xtensa/ieee754-df.S (__adddf3_aux): Add
>>>>>         .literal_position directive.
>>>>>         * config/xtensa/ieee754-sf.S (__addsf3_aux): Likewise.
>>>>
>>>> This is fine, but when did it stop working, and why isn't there a test
>>>> that would catch it?
>>>
>>> I broke it with the recent softfloat NaN fix. Haven't noticed that because
>>> I usually build without any flags or with -mauto-litpools.
>>> Let me add the test, thanks for the suggestion.
>>
>> I've taken a look at gcc testsuites and I don't see how to add a test that would
>> check that libgcc builds with different compiler options. Any suggestions?
>
> If there are no suggestions I will check in the fix as is and will add building
> with -mtext-section-literals to my testing scripts.

I've checked the fix into the trunk, gcc-6 and gcc-7 branches.

-- 
Thanks.
-- Max

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-02-20 21:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31  8:01 [PATCH] libgcc: xtensa: fix build with -mtext-section-literals Max Filippov
2018-01-31 19:47 ` augustine.sterling
2018-01-31 19:50   ` Max Filippov
2018-02-01 17:12     ` Max Filippov
2018-02-07 22:10       ` Max Filippov
2018-02-20 21:17         ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).