public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Incorrect i960 linker config
@ 1997-08-30 12:00 Stephen Williams
  1997-08-30 19:18 ` Joel Sherrill
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Stephen Williams @ 1997-08-30 12:00 UTC (permalink / raw)
  To: egcs

The LINK_SPEC doesn't deal with the -mjx and -mrp switches. Also,
ld handles not being given an architecture switch well enough by
looking at what its got. This very simply patch fixes the link spec
by adding the new Jx target types.

NOTE: I think I was the one who submitted the -mjx spec entries for the
assembler, so this is my error I'm correcting:-) (Joel, I'm suprised that
you missed this. I would have thought it would effect RTEMS/i960 links:-)

*** dist/egcs-970828/gcc/config/i960/i960.h     Mon Aug 11 08:57:28 1997
--- egcs-970828/gcc/config/i960/i960.h  Fri Aug 29 23:45:01 1997
***************
*** 81,87 ****
  #define LINK_SPEC \
        "%{mka:-AKA}%{mkb:-AKB}%{msa:-ASA}%{msb:-ASB}\
        %{mmc:-AMC}%{mca:-ACA}%{mcc:-ACC}%{mcf:-ACF}\
!       %{!mka:%{!mkb:%{!msa:%{!msb:%{!mmc:%{!mca:%{!mcc:%{!mcf:-AKB}}}}}}}}\
        %{mbout:-Fbout}%{mcoff:-Fcoff}\
        %{mlink-relax:-relax}"
  
--- 81,87 ----
  #define LINK_SPEC \
        "%{mka:-AKA}%{mkb:-AKB}%{msa:-ASA}%{msb:-ASB}\
        %{mmc:-AMC}%{mca:-ACA}%{mcc:-ACC}%{mcf:-ACF}\
!         %{mja:-AJX}%{mjd:-AJX}%{mjf:-AJX}%{mrp:-AJX}\
        %{mbout:-Fbout}%{mcoff:-Fcoff}\
        %{mlink-relax:-relax}"
  

-- 
Steve Williams
steve@icarus.com
steve@picturel.com

"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <340871EF.6B4F@datadesign.nospam.com>]
* RE: Include Hackery
@ 1997-09-02 11:26 Bruce Korb
  1997-09-02 15:47 ` Jim Wilson
  0 siblings, 1 reply; 9+ messages in thread
From: Bruce Korb @ 1997-09-02 11:26 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: egcs

Ian Lance Taylor wrote:

> The only problem I saw in a quick glance is that using functions in sh
> scripts is unfortunately nonportable.

I am not a portable shell expert.  In fact, I mostly use ksh.
Anyway, I'll regen it and embed it inside the main loop
for anyone that needs it that way.

> In general, this seems like a very promising approach.  It would be
> nice if people on different systems could compare this to the
> traditional fixincludes script.
> 
> You can run
>     fixincludes foo /usr/include

Thanks.  This is what I was hoping people would do.

> Any differences would presumably require investigation.

I can tell you of two that I know about:
1.  the "#undef NULL" inserted before "#define NULL" is left-justified
2.  The commentary to the right of "#else" and "#endif" used to
    be stripped.  I put it inside "/* */".

-- 
Bruce Korb                      | Data Design Systems, Inc.
Korbb at DataDesign dot com     | 45 Cabot Dr., Suite 110
Voice:  408-260-0280            | Santa Clara,  CA   95051
Fax:    408-260-0281            | USA

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

end of thread, other threads:[~1997-09-02 15:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-30 12:00 Incorrect i960 linker config Stephen Williams
1997-08-30 19:18 ` Joel Sherrill
1997-08-30 19:18 ` include hackery Bruce Korb
1997-08-30 19:18 ` fixing the c++/f77 circular dependency Joel Sherrill
1997-08-30 21:24 ` libg++? Jason Merrill
1997-09-01 10:27 ` Incorrect i960 linker config Jeffrey A Law
     [not found] <340871EF.6B4F@datadesign.nospam.com>
1997-09-02 10:52 ` include hackery Ian Lance Taylor
1997-09-02 11:26 Include Hackery Bruce Korb
1997-09-02 15:47 ` Jim Wilson

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