public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Remove unnecessaily included limits.h in libgcc2.c
@ 2013-01-04 19:01 Wookey
  2013-01-14 21:54 ` Matthias Klose
  0 siblings, 1 reply; 5+ messages in thread
From: Wookey @ 2013-01-04 19:01 UTC (permalink / raw)
  To: gcc-patches

I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55743 (my first
upstream gcc bug so be gentle :-)

Details are there but the short version is that the limits.h inclusion
in libgcc2.c is now a relic because the constants that it brings
in are no longer used (since
http://repo.or.cz/w/official-gcc.git/blobdiff/49f0f270673c4512c11f72a038b84c321ae5534a..7429c938827aa98bf3b02c4ac89510f4d28ef0b1:/gcc/libgcc2.c
)

And this inclusion can break --without-headers bootstrapping (which is
how I noticed it).

Doko poked me to send the patch to this list for consideration for
inclusion in trunk.

--- gcc-4.7-4.7.2/src/libgcc/libgcc2.c.orig	2011-11-02 15:26:35.000000000 +0000
+++ gcc-4.7-4.7.2/src/libgcc/libgcc2.c	2012-12-18 19:33:40.000000000 +0000
@@ -1676,18 +1676,6 @@
 #endif
 
 #if defined(L_fixunsxfsi) && LIBGCC2_HAS_XF_MODE
-/* Reenable the normal types, in case limits.h needs them.  */
-#undef char
-#undef short
-#undef int
-#undef long
-#undef unsigned
-#undef float
-#undef double
-#undef MIN
-#undef MAX
-#include <limits.h>
-
 UWtype
 __fixunsxfSI (XFtype a)
 {
@@ -1698,18 +1686,6 @@
 #endif
 
 #if defined(L_fixunsdfsi) && LIBGCC2_HAS_DF_MODE
-/* Reenable the normal types, in case limits.h needs them.  */
-#undef char
-#undef short
-#undef int
-#undef long
-#undef unsigned
-#undef float
-#undef double
-#undef MIN
-#undef MAX
-#include <limits.h>
-
 UWtype
 __fixunsdfSI (DFtype a)
 {
@@ -1720,18 +1696,6 @@
 #endif
 
 #if defined(L_fixunssfsi) && LIBGCC2_HAS_SF_MODE
-/* Reenable the normal types, in case limits.h needs them.  */
-#undef char
-#undef short
-#undef int
-#undef long
-#undef unsigned
-#undef float
-#undef double
-#undef MIN
-#undef MAX
-#include <limits.h>
-
 UWtype
 __fixunssfSI (SFtype a)
 {


Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/

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

* Re: [PATCH] Remove unnecessaily included limits.h in libgcc2.c
  2013-01-04 19:01 [PATCH] Remove unnecessaily included limits.h in libgcc2.c Wookey
@ 2013-01-14 21:54 ` Matthias Klose
  2013-05-15 11:46   ` [ping] " Matthias Klose
  0 siblings, 1 reply; 5+ messages in thread
From: Matthias Klose @ 2013-01-14 21:54 UTC (permalink / raw)
  To: gcc-patches; +Cc: Wookey, Alexandre Oliva

Am 04.01.2013 20:01, schrieb Wookey:
> I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55743 (my first
> upstream gcc bug so be gentle :-)
> 
> Details are there but the short version is that the limits.h inclusion
> in libgcc2.c is now a relic because the constants that it brings
> in are no longer used (since
> http://repo.or.cz/w/official-gcc.git/blobdiff/49f0f270673c4512c11f72a038b84c321ae5534a..7429c938827aa98bf3b02c4ac89510f4d28ef0b1:/gcc/libgcc2.c
> )
> 
> And this inclusion can break --without-headers bootstrapping (which is
> how I noticed it).
> 
> Doko poked me to send the patch to this list for consideration for
> inclusion in trunk.

The --without-headers build failures is unrelated.  To catch this
mis-configuration I did propose a patch in
http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00743.html

I think the patch itself is correct.  However

 - please submit your patch against trunk, and state that you
   did test the patch against trunk (of course, after testing it)

 - please provide a ChangeLog entry

 - thanks for your reference to the repo.or.cz repo, however it
   would be good to reference a GCC commit.
   looks like Alexandre Oliva did commit this without removing
   the unneeded bits in r39365.

  Matthias


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

* [ping] Re: [PATCH] Remove unnecessaily included limits.h in libgcc2.c
  2013-01-14 21:54 ` Matthias Klose
@ 2013-05-15 11:46   ` Matthias Klose
  2013-07-15 14:48     ` [ping 2] " Matthias Klose
  0 siblings, 1 reply; 5+ messages in thread
From: Matthias Klose @ 2013-05-15 11:46 UTC (permalink / raw)
  To: gcc-patches; +Cc: Wookey, Alexandre Oliva, ian

[-- Attachment #1: Type: text/plain, Size: 1514 bytes --]

ping?

regenerated the patch for the trunk, check with builds on arm-linux-gnueabihf
and x86_64-linux-gnu

  Matthias

	* libgcc2.c: Don't include <limits.h>.

Am 14.01.2013 22:54, schrieb Matthias Klose:
> Am 04.01.2013 20:01, schrieb Wookey:
>> I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55743 (my first
>> upstream gcc bug so be gentle :-)
>>
>> Details are there but the short version is that the limits.h inclusion
>> in libgcc2.c is now a relic because the constants that it brings
>> in are no longer used (since
>> http://repo.or.cz/w/official-gcc.git/blobdiff/49f0f270673c4512c11f72a038b84c321ae5534a..7429c938827aa98bf3b02c4ac89510f4d28ef0b1:/gcc/libgcc2.c
>> )
>>
>> And this inclusion can break --without-headers bootstrapping (which is
>> how I noticed it).
>>
>> Doko poked me to send the patch to this list for consideration for
>> inclusion in trunk.
> 
> The --without-headers build failures is unrelated.  To catch this
> mis-configuration I did propose a patch in
> http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00743.html
> 
> I think the patch itself is correct.  However
> 
>  - please submit your patch against trunk, and state that you
>    did test the patch against trunk (of course, after testing it)
> 
>  - please provide a ChangeLog entry
> 
>  - thanks for your reference to the repo.or.cz repo, however it
>    would be good to reference a GCC commit.
>    looks like Alexandre Oliva did commit this without removing
>    the unneeded bits in r39365.
> 
>   Matthias
> 
> 


[-- Attachment #2: libgcc.diff --]
[-- Type: text/plain, Size: 1151 bytes --]

Index: libgcc/libgcc2.c
===================================================================
--- libgcc/libgcc2.c	(revision 198927)
+++ libgcc/libgcc2.c	(working copy)
@@ -1674,18 +1674,6 @@
 #endif
 
 #if defined(L_fixunsxfsi) && LIBGCC2_HAS_XF_MODE
-/* Reenable the normal types, in case limits.h needs them.  */
-#undef char
-#undef short
-#undef int
-#undef long
-#undef unsigned
-#undef float
-#undef double
-#undef MIN
-#undef MAX
-#include <limits.h>
-
 UWtype
 __fixunsxfSI (XFtype a)
 {
@@ -1696,18 +1684,6 @@
 #endif
 
 #if defined(L_fixunsdfsi) && LIBGCC2_HAS_DF_MODE
-/* Reenable the normal types, in case limits.h needs them.  */
-#undef char
-#undef short
-#undef int
-#undef long
-#undef unsigned
-#undef float
-#undef double
-#undef MIN
-#undef MAX
-#include <limits.h>
-
 UWtype
 __fixunsdfSI (DFtype a)
 {
@@ -1718,18 +1694,6 @@
 #endif
 
 #if defined(L_fixunssfsi) && LIBGCC2_HAS_SF_MODE
-/* Reenable the normal types, in case limits.h needs them.  */
-#undef char
-#undef short
-#undef int
-#undef long
-#undef unsigned
-#undef float
-#undef double
-#undef MIN
-#undef MAX
-#include <limits.h>
-
 UWtype
 __fixunssfSI (SFtype a)
 {

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

* [ping 2] Re: [ping] Re: [PATCH] Remove unnecessaily included limits.h in libgcc2.c
  2013-05-15 11:46   ` [ping] " Matthias Klose
@ 2013-07-15 14:48     ` Matthias Klose
  2013-07-15 17:59       ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Matthias Klose @ 2013-07-15 14:48 UTC (permalink / raw)
  To: gcc-patches, ian; +Cc: Wookey, Alexandre Oliva

ping 2

Am 15.05.2013 13:46, schrieb Matthias Klose:
> ping?
> 
> regenerated the patch for the trunk, check with builds on arm-linux-gnueabihf
> and x86_64-linux-gnu
> 
>   Matthias
> 
> 	* libgcc2.c: Don't include <limits.h>.
> 
> Am 14.01.2013 22:54, schrieb Matthias Klose:
>> Am 04.01.2013 20:01, schrieb Wookey:
>>> I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55743 (my first
>>> upstream gcc bug so be gentle :-)
>>>
>>> Details are there but the short version is that the limits.h inclusion
>>> in libgcc2.c is now a relic because the constants that it brings
>>> in are no longer used (since
>>> http://repo.or.cz/w/official-gcc.git/blobdiff/49f0f270673c4512c11f72a038b84c321ae5534a..7429c938827aa98bf3b02c4ac89510f4d28ef0b1:/gcc/libgcc2.c
>>> )
>>>
>>> And this inclusion can break --without-headers bootstrapping (which is
>>> how I noticed it).
>>>
>>> Doko poked me to send the patch to this list for consideration for
>>> inclusion in trunk.
>>
>> The --without-headers build failures is unrelated.  To catch this
>> mis-configuration I did propose a patch in
>> http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00743.html
>>
>> I think the patch itself is correct.  However
>>
>>  - please submit your patch against trunk, and state that you
>>    did test the patch against trunk (of course, after testing it)
>>
>>  - please provide a ChangeLog entry
>>
>>  - thanks for your reference to the repo.or.cz repo, however it
>>    would be good to reference a GCC commit.
>>    looks like Alexandre Oliva did commit this without removing
>>    the unneeded bits in r39365.
>>
>>   Matthias
>>
>>
> 

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

* Re: [ping 2] Re: [ping] Re: [PATCH] Remove unnecessaily included limits.h in libgcc2.c
  2013-07-15 14:48     ` [ping 2] " Matthias Klose
@ 2013-07-15 17:59       ` Ian Lance Taylor
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Lance Taylor @ 2013-07-15 17:59 UTC (permalink / raw)
  To: Matthias Klose; +Cc: gcc-patches, ian, Wookey, Alexandre Oliva

This patch is OK.

Sorry for not looking at it earlier.

Thanks.

Ian

On Mon, Jul 15, 2013 at 5:40 AM, Matthias Klose <doko@ubuntu.com> wrote:
> ping 2
>
> Am 15.05.2013 13:46, schrieb Matthias Klose:
>> ping?
>>
>> regenerated the patch for the trunk, check with builds on arm-linux-gnueabihf
>> and x86_64-linux-gnu
>>
>>   Matthias
>>
>>       * libgcc2.c: Don't include <limits.h>.
>>
>> Am 14.01.2013 22:54, schrieb Matthias Klose:
>>> Am 04.01.2013 20:01, schrieb Wookey:
>>>> I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55743 (my first
>>>> upstream gcc bug so be gentle :-)
>>>>
>>>> Details are there but the short version is that the limits.h inclusion
>>>> in libgcc2.c is now a relic because the constants that it brings
>>>> in are no longer used (since
>>>> http://repo.or.cz/w/official-gcc.git/blobdiff/49f0f270673c4512c11f72a038b84c321ae5534a..7429c938827aa98bf3b02c4ac89510f4d28ef0b1:/gcc/libgcc2.c
>>>> )
>>>>
>>>> And this inclusion can break --without-headers bootstrapping (which is
>>>> how I noticed it).
>>>>
>>>> Doko poked me to send the patch to this list for consideration for
>>>> inclusion in trunk.
>>>
>>> The --without-headers build failures is unrelated.  To catch this
>>> mis-configuration I did propose a patch in
>>> http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00743.html
>>>
>>> I think the patch itself is correct.  However
>>>
>>>  - please submit your patch against trunk, and state that you
>>>    did test the patch against trunk (of course, after testing it)
>>>
>>>  - please provide a ChangeLog entry
>>>
>>>  - thanks for your reference to the repo.or.cz repo, however it
>>>    would be good to reference a GCC commit.
>>>    looks like Alexandre Oliva did commit this without removing
>>>    the unneeded bits in r39365.
>>>
>>>   Matthias
>>>
>>>
>>
>

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

end of thread, other threads:[~2013-07-15 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-04 19:01 [PATCH] Remove unnecessaily included limits.h in libgcc2.c Wookey
2013-01-14 21:54 ` Matthias Klose
2013-05-15 11:46   ` [ping] " Matthias Klose
2013-07-15 14:48     ` [ping 2] " Matthias Klose
2013-07-15 17:59       ` Ian Lance Taylor

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).