PATCH: OpenServer and GNU as.

Jeffrey A Law law@cygnus.com
Thu Jul 2 01:03:00 GMT 1998


  In message <19980630222258.A2268@dgii.com>you write:
  > 
  > The following patch adds support for --with-gnu-as to OpenServer.  This
  > disables COFF multilibbing, COFF support in general, and the flags that
  > we pass to the native assembler that make GAS unhappy.
  > 
  > This approach isn't my favorite, but switching assembler names at
  > runtime would have required too much work for two little gain in gcc.c.
  > This way constrains all the damage to the OpenServer port.  I'm not
  > happy about creating another code path in this way, but I think this
  > should get the two or three people a month that have asked me about this
  > for two years happy once again.
  > 
  >         * install.texi (sco3.2v5): Document new --with-gnu-as flag.
  >         * config/i386/sco5.h (JUMP_TABLES_IN_TEXT_SECTION): Defined as
  >         in other targets.
  >         (USE_GAS): Conditionalize away native assembler usage.
  >         * config/i386/sco5gas.h: New file.
  >         * config/i386/t-sco5gas: New file.
  >         * configure.in (ix86-sco3.2v5*): Use new files if --with-gnu-as
Mostly OK.

  > Index: config/i386/sco5gas.h
This file seems to exist only to define USE_GAS, then include sco5.h.

Instead of including sco5.h, you should just list sco5.h as another
target file in the tm_file list.

ie

	tm_file="i386/sco5gas.h i386/sco5.h"

This is the preferred way to handle this kind of situation.  And
if we ever clean up gas.h you would add it to the tm file list and
you'd get the auto jump alignment stuff and whatever other interesting
gas bits might be around :-)

Consider it approved with the minor tweak.

jeff



More information about the Gcc-patches mailing list