Adriaan van Os | 2 Dec 2005 08:37
Picon
Favicon

Re: GPC on i686-apple-darwin

Waldek Hebisch wrote:

> Adriaan van Os wrote:
>> Waldek Hebisch wrote:
>>> Yes, it is bug 16649. The following patch extracted from the bug 
>>> report
>>> eliminated ICE. I still get duplicate labels, but I had to skip one
>>> hunk which did not apply:
>>
>> I looks like the missing pieces of the puzzle can be found here
>> <http://gcc.gnu.org/ml/gcc-cvs/2004-07/msg01139.html>.
>>
>
> As I wrote in the other message, 4.0 still has the same problem. So
> the above patch is of little help. On the other hand it makes 
> substantial
> changes to PPC Darwin, which may be dangerous alone (the patch is
> to 4.0 branch).
>
> I can reproduce the problem with a C program, so I reported it to
> backend folks:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22099

It looks like the Apple gcc back-end folks now finally woke up 
<http://gcc.gnu.org/ml/gcc-patches/2005-11/msg02158.html>.

Regards,

Adriaan van Os
(Continue reading)

Adriaan van Os | 19 Jan 2006 18:56
Picon
Favicon

Re: GPC on i686-apple-darwin

>> Adriaan van Os wrote:
>>
>>> Waldek Hebisch wrote:
>>>
>>>> Adriaan van Os wrote:
>>>>> Waldek Hebisch wrote:
>>>>>> Yes, it is bug 16649. The following patch extracted from the bug 
>>>>>> report
>>>>>> eliminated ICE. I still get duplicate labels, but I had to skip 
>>>>>> one
>>>>>> hunk which did not apply:
>>>>>
>>>>> I looks like the missing pieces of the puzzle can be found here
>>>>> <http://gcc.gnu.org/ml/gcc-cvs/2004-07/msg01139.html>.
>>>>>
>>>>
>>>> As I wrote in the other message, 4.0 still has the same problem. So
>>>> the above patch is of little help. On the other hand it makes 
>>>> substantial
>>>> changes to PPC Darwin, which may be dangerous alone (the patch is
>>>> to 4.0 branch).
>>>>
>>>> I can reproduce the problem with a C program, so I reported it to
>>>> backend folks:
>>>>
>>>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22099
>>>
>>> It looks like the Apple gcc back-end folks now finally woke up 
>>> <http://gcc.gnu.org/ml/gcc-patches/2005-11/msg02158.html>.
>>
(Continue reading)

Adriaan van Os | 22 Dec 2005 11:16
Picon
Favicon

Re: GPC on i686-apple-darwin

Adriaan van Os wrote:

>>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22099
>>
>> It looks like the Apple gcc back-end folks now finally woke up 
>> <http://gcc.gnu.org/ml/gcc-patches/2005-11/msg02158.html>.
>
> Yes, a quick hack to gcc-3.4.4 (included as a separate file), together 
> with the below patch (my apologies), solves the remaining compiler 
> problems for position independent code on i686-apple-darwin

Still, another problem, -Os is broken on i686-apple-darwin, but the 
following patch (taken from 
<http://gcc.gnu.org/ml/gcc-patches/2005-12/msg01656.html>) fixes it.

--- gcc-3.4.5/gcc/config/i386/i386.c.orig	2005-12-22 10:49:44.000000000 
+0100
+++ gcc-3.4.5/gcc/config/i386/i386.c	2005-12-22 09:16:54.000000000 +0100
 <at>  <at>  -1357,9 +1357,8  <at>  <at> 
       The default of 128 bits is for Pentium III's SSE __m128, but we
       don't want additional code to keep the stack aligned when
       optimizing for code size.  */
-   ix86_preferred_stack_boundary = (optimize_size
- 				   ? TARGET_64BIT ? 128 : 32
- 				   : 128);
+   ix86_preferred_stack_boundary = ((TARGET_64BIT || TARGET_MACHO || 
!optimize_size)
+ 				   ? 128 : 32);
    if (ix86_preferred_stack_boundary_string)
      {
(Continue reading)

Adriaan van Os | 2 Dec 2005 13:02
Picon
Favicon

Re: GPC on i686-apple-darwin

Adriaan van Os wrote:

> Waldek Hebisch wrote:
>
>> Adriaan van Os wrote:
>>> Waldek Hebisch wrote:
>>>> Yes, it is bug 16649. The following patch extracted from the bug 
>>>> report
>>>> eliminated ICE. I still get duplicate labels, but I had to skip one
>>>> hunk which did not apply:
>>>
>>> I looks like the missing pieces of the puzzle can be found here
>>> <http://gcc.gnu.org/ml/gcc-cvs/2004-07/msg01139.html>.
>>>
>>
>> As I wrote in the other message, 4.0 still has the same problem. So
>> the above patch is of little help. On the other hand it makes 
>> substantial
>> changes to PPC Darwin, which may be dangerous alone (the patch is
>> to 4.0 branch).
>>
>> I can reproduce the problem with a C program, so I reported it to
>> backend folks:
>>
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22099
>
> It looks like the Apple gcc back-end folks now finally woke up 
> <http://gcc.gnu.org/ml/gcc-patches/2005-11/msg02158.html>.

Yes, a quick hack to gcc-3.4.4 (included as a separate file), together 
(Continue reading)


Gmane