diff mbox

[Darwin/PR49992,2/2] remove ranlib special-casing from the darwin port.

Message ID 38B7862F-BC2B-4F85-A6B2-A73780920111@sandoe-acoustics.co.uk
State New
Headers show

Commit Message

Iain Sandoe Oct. 14, 2011, 9:37 a.m. UTC
As per the PR audit trail, there is no reason to retain this in the  
building of GCC.

As for its use as a general option in tool-builds;
With current darwin toolsets it has the potential to cause issues when  
using convenience libs containing common.
OK for trunk?
Iain

gcc/ada:

	PR target/49992
	* mlib-tgt-specific-darwin.adb: Remove ranlib special case.
	* gcc-interface/Makefile.in (darwin): Likewise.

Comments

Iain Sandoe Oct. 22, 2011, 7:37 a.m. UTC | #1
On 14 Oct 2011, at 10:37, Iain Sandoe wrote:

> As per the PR audit trail, there is no reason to retain this in the  
> building of GCC.
>
> As for its use as a general option in tool-builds;
> With current darwin toolsets it has the potential to cause issues  
> when using convenience libs containing common.
> OK for trunk?
> Iain
>
> gcc/ada:
>
> 	PR target/49992
> 	* mlib-tgt-specific-darwin.adb: Remove ranlib special case.
> 	* gcc-interface/Makefile.in (darwin): Likewise.
> 	
>
> Index: gcc/ada/mlib-tgt-specific-darwin.adb
> ===================================================================
> --- gcc/ada/mlib-tgt-specific-darwin.adb	(revision 179962)
> +++ gcc/ada/mlib-tgt-specific-darwin.adb	(working copy)
> @@ -68,7 +68,7 @@ package body MLib.Tgt.Specific is
>
>    function Archive_Indexer_Options return String_List_Access is
>    begin
> -      return new String_List'(1 => new String'("-c"));
> +      return new String_List'(1 => new String'(""));
>    end Archive_Indexer_Options;
>
>    ---------------------------
> Index: gcc/ada/gcc-interface/Makefile.in
> ===================================================================
> --- gcc/ada/gcc-interface/Makefile.in	(revision 179962)
> +++ gcc/ada/gcc-interface/Makefile.in	(working copy)
> @@ -2179,7 +2179,6 @@ ifeq ($(strip $(filter-out darwin%,$(osys))),)
>
>   EH_MECHANISM=-gcc
>   GNATLIB_SHARED = gnatlib-shared-darwin
> -  RANLIB = ranlib -c
>   GMEM_LIB = gmemlib
>   LIBRARY_VERSION := $(LIB_VERSION)
>   soext = .dylib
>
>
Iain Sandoe Oct. 28, 2011, 3:41 p.m. UTC | #2
This is unreviewed for 2 weeks.

I am sure that this issue will be affecting Ada on Darwin10/11 with  
the latest toolchains.

It might be subtle without LTO - OTOH when LTO is engaged it breaks  
things completely.


On 22 Oct 2011, at 08:37, Iain Sandoe wrote:

>
> On 14 Oct 2011, at 10:37, Iain Sandoe wrote:
>
>> As per the PR audit trail, there is no reason to retain this in the  
>> building of GCC.
>>
>> As for its use as a general option in tool-builds;
>> With current darwin toolsets it has the potential to cause issues  
>> when using convenience libs containing common.
>> OK for trunk?
>> Iain
>>
>> gcc/ada:
>>
>> 	PR target/49992
>> 	* mlib-tgt-specific-darwin.adb: Remove ranlib special case.
>> 	* gcc-interface/Makefile.in (darwin): Likewise.
>> 	
>>
>> Index: gcc/ada/mlib-tgt-specific-darwin.adb
>> ===================================================================
>> --- gcc/ada/mlib-tgt-specific-darwin.adb	(revision 179962)
>> +++ gcc/ada/mlib-tgt-specific-darwin.adb	(working copy)
>> @@ -68,7 +68,7 @@ package body MLib.Tgt.Specific is
>>
>>   function Archive_Indexer_Options return String_List_Access is
>>   begin
>> -      return new String_List'(1 => new String'("-c"));
>> +      return new String_List'(1 => new String'(""));
>>   end Archive_Indexer_Options;
>>
>>   ---------------------------
>> Index: gcc/ada/gcc-interface/Makefile.in
>> ===================================================================
>> --- gcc/ada/gcc-interface/Makefile.in	(revision 179962)
>> +++ gcc/ada/gcc-interface/Makefile.in	(working copy)
>> @@ -2179,7 +2179,6 @@ ifeq ($(strip $(filter-out darwin%,$(osys))),)
>>
>>  EH_MECHANISM=-gcc
>>  GNATLIB_SHARED = gnatlib-shared-darwin
>> -  RANLIB = ranlib -c
>>  GMEM_LIB = gmemlib
>>  LIBRARY_VERSION := $(LIB_VERSION)
>>  soext = .dylib
>>
>>
>
Mike Stump Oct. 28, 2011, 6:49 p.m. UTC | #3
On Oct 28, 2011, at 8:41 AM, Iain Sandoe wrote:
> This is unreviewed for 2 weeks.

Odd, usually the Ada people are fairly responsive.  If they want me to weigh in, I approve of the concept behind the work.
Arnaud Charlet Nov. 1, 2011, 8:29 p.m. UTC | #4
Le 28/10/2011 17:41, Iain Sandoe a écrit :
> This is unreviewed for 2 weeks.
>
> I am sure that this issue will be affecting Ada on Darwin10/11 with 
> the latest toolchains.

It's actually under discussion and is pretty subtle, so delicate. Thanks 
for your patience.

Arno
Arnaud Charlet Nov. 17, 2011, 11:20 a.m. UTC | #5
The new version of the patch as suggested by Tristan is OK to commit,
thanks.

Arno
diff mbox

Patch

Index: gcc/ada/mlib-tgt-specific-darwin.adb
===================================================================
--- gcc/ada/mlib-tgt-specific-darwin.adb	(revision 179962)
+++ gcc/ada/mlib-tgt-specific-darwin.adb	(working copy)
@@ -68,7 +68,7 @@  package body MLib.Tgt.Specific is

     function Archive_Indexer_Options return String_List_Access is
     begin
-      return new String_List'(1 => new String'("-c"));
+      return new String_List'(1 => new String'(""));
     end Archive_Indexer_Options;

     ---------------------------
Index: gcc/ada/gcc-interface/Makefile.in
===================================================================
--- gcc/ada/gcc-interface/Makefile.in	(revision 179962)
+++ gcc/ada/gcc-interface/Makefile.in	(working copy)
@@ -2179,7 +2179,6 @@  ifeq ($(strip $(filter-out darwin%,$(osys))),)

    EH_MECHANISM=-gcc
    GNATLIB_SHARED = gnatlib-shared-darwin
-  RANLIB = ranlib -c
    GMEM_LIB = gmemlib
    LIBRARY_VERSION := $(LIB_VERSION)
    soext = .dylib