public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* GNU libobjc on Darwin
@ 2004-08-31  5:04 Bill Northcott
  2004-08-31 15:27 ` David Edelsohn
  2004-09-01 17:23 ` Stan Shebs
  0 siblings, 2 replies; 6+ messages in thread
From: Bill Northcott @ 2004-08-31  5:04 UTC (permalink / raw)
  To: gcc

I may have mentioned this here before or perhaps it only went to Andrew 
Pinski.

Andrew has proposed some changes that allow GNU libobjc to build on 
Darwin as libobjc-gnu.   These work for an FSF style build.

However, on the apple-ppc-darwin branch the same patches don't build 
the library.
The cause is an APPLE_LOCAL mod to config/rs6000/darwin.h which 
redefines ADJUST_FIELD_ALIGN to need three arguments.  This breaks in 
encoding.c around line 838.  The only other place the macro appears to 
be used is stor-layout.c.

I can't make up my mind if this is an Apple bug or an FSF one.

Perhaps someone who can see how to fix it might not care.

Bill Northcott

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

* Re: GNU libobjc on Darwin
  2004-08-31  5:04 GNU libobjc on Darwin Bill Northcott
@ 2004-08-31 15:27 ` David Edelsohn
  2004-09-01  0:36   ` Bill Northcott
  2004-09-01 17:23 ` Stan Shebs
  1 sibling, 1 reply; 6+ messages in thread
From: David Edelsohn @ 2004-08-31 15:27 UTC (permalink / raw)
  To: Bill Northcott; +Cc: gcc

>>>>> Bill Northcott writes:

Bill> Andrew has proposed some changes that allow GNU libobjc to build on 
Bill> Darwin as libobjc-gnu.   These work for an FSF style build.

Bill> However, on the apple-ppc-darwin branch the same patches don't build 
Bill> the library.
Bill> The cause is an APPLE_LOCAL mod to config/rs6000/darwin.h which 
Bill> redefines ADJUST_FIELD_ALIGN to need three arguments.  This breaks in 
Bill> encoding.c around line 838.  The only other place the macro appears to 
Bill> be used is stor-layout.c.

Bill> I can't make up my mind if this is an Apple bug or an FSF one.

	This is not a bug.  There are two different branches and a macro
that differs between the two branches.  The patch uses the macro and needs
to be adjusted for the change of parameters on the branch.

David

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

* Re: GNU libobjc on Darwin
  2004-08-31 15:27 ` David Edelsohn
@ 2004-09-01  0:36   ` Bill Northcott
  2004-09-01  1:16     ` Mike Stump
  0 siblings, 1 reply; 6+ messages in thread
From: Bill Northcott @ 2004-09-01  0:36 UTC (permalink / raw)
  To: David Edelsohn; +Cc: gcc

On 01/09/2004, at 12:48 AM, David Edelsohn wrote:
> Bill> However, on the apple-ppc-darwin branch the same patches don't 
> build
> Bill> the library.
> Bill> The cause is an APPLE_LOCAL mod to config/rs6000/darwin.h which
> Bill> redefines ADJUST_FIELD_ALIGN to need three arguments.  This 
> breaks in
> Bill> encoding.c around line 838.  The only other place the macro 
> appears to
> Bill> be used is stor-layout.c.
>
> Bill> I can't make up my mind if this is an Apple bug or an FSF one.
>
> 	This is not a bug.  There are two different branches and a macro
> that differs between the two branches.  The patch uses the macro and 
> needs
> to be adjusted for the change of parameters on the branch.
>
Let is just agree that it is a feature of the source code that prevents 
compilation under certain circumstances.

My question was if there anyone interested in fixing it, and where I 
might file a request.  Although the problem is on the Apple branch, 
they are hardly going to be interested in fixing something they don't 
use.  The FSF people might well argue that it is not broken on the 
HEAD.

Ideally of course there might be a configure option to build 
gnu-libobjc on Darwin.

I tried to analyse the problem myself, but it is way out of my league.  
I am an engineer turned finance academic not a computer scientist, and 
I really have little idea of compiler internals.

Bill Northcott

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

* Re: GNU libobjc on Darwin
  2004-09-01  0:36   ` Bill Northcott
@ 2004-09-01  1:16     ` Mike Stump
  0 siblings, 0 replies; 6+ messages in thread
From: Mike Stump @ 2004-09-01  1:16 UTC (permalink / raw)
  To: Bill Northcott; +Cc: gcc, David Edelsohn

On Aug 31, 2004, at 5:35 PM, Bill Northcott wrote:
> My question was if there anyone interested in fixing it, and where I 
> might file a request.

You can request it here...  You've done that.

> Although the problem is on the Apple branch, they are hardly going to 
> be interested in fixing something they don't use.

It may surprise you...

In the fullness of time, I'm sure that we'll make it work, we just 
can't promise exactly when.

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

* Re: GNU libobjc on Darwin
  2004-08-31  5:04 GNU libobjc on Darwin Bill Northcott
  2004-08-31 15:27 ` David Edelsohn
@ 2004-09-01 17:23 ` Stan Shebs
  2004-09-01 18:07   ` David Edelsohn
  1 sibling, 1 reply; 6+ messages in thread
From: Stan Shebs @ 2004-09-01 17:23 UTC (permalink / raw)
  To: Bill Northcott; +Cc: gcc

Bill Northcott wrote:

> I may have mentioned this here before or perhaps it only went to 
> Andrew Pinski.
>
> Andrew has proposed some changes that allow GNU libobjc to build on 
> Darwin as libobjc-gnu.   These work for an FSF style build.
>
> However, on the apple-ppc-darwin branch the same patches don't build 
> the library.
> The cause is an APPLE_LOCAL mod to config/rs6000/darwin.h which 
> redefines ADJUST_FIELD_ALIGN to need three arguments.  This breaks in 
> encoding.c around line 838.  The only other place the macro appears to 
> be used is stor-layout.c.
>
> I can't make up my mind if this is an Apple bug or an FSF one.

I kind of volunteered to figure this one out at some point. We use
the extra argument to behave differently for the first field of a
structure, but it's not so clear whether it's critical or just a
leftover from old days.

Stan

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

* Re: GNU libobjc on Darwin
  2004-09-01 17:23 ` Stan Shebs
@ 2004-09-01 18:07   ` David Edelsohn
  0 siblings, 0 replies; 6+ messages in thread
From: David Edelsohn @ 2004-09-01 18:07 UTC (permalink / raw)
  To: Stan Shebs; +Cc: Bill Northcott, gcc

>>>>> Stan Shebs writes:

Stan> I kind of volunteered to figure this one out at some point. We use
Stan> the extra argument to behave differently for the first field of a
Stan> structure, but it's not so clear whether it's critical or just a
Stan> leftover from old days.

	The special behavior for the first first of a structure is due to
ABI compatibility.

David

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

end of thread, other threads:[~2004-09-01 18:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-31  5:04 GNU libobjc on Darwin Bill Northcott
2004-08-31 15:27 ` David Edelsohn
2004-09-01  0:36   ` Bill Northcott
2004-09-01  1:16     ` Mike Stump
2004-09-01 17:23 ` Stan Shebs
2004-09-01 18:07   ` David Edelsohn

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