This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Resend patch RFC] EXECUTABLE_SUFFIX changes




    Here ya go then, first pass at the backport for 2.95.4.  This time with the attachment!


             DaveK
=====================================================================
Tested on i686-pc-cygwin32 with make bootstrap and make check with no
regressions; also built as powerpc-wrs-vxworks cross.  DTRT in both
cases.


  * config/alpha/vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX
  to TARGET_OBJECT_SUFFIX and TARGET_EXECUTABLE_SUFFIX.
  * config/i386/cygwin.h: Likewise.
  * config/i386/mingw32.h: Likewise.
  * config/vax/vms.h: Likewise.

  * config/alpha/xm-vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX
  to HOST_OBJECT_SUFFIX and HOST_EXECUTABLE_SUFFIX.
  * config/i386/xm-cygwin.h: Likewise.
  * config/i386/xm-djgpp.h: Likewise.
  * config/i386/xm-dos.h: Likewise.
  * config/i386/xm-mingw32.h: Likewise.
  * config/i386/xm-os2.h: Likewise.
  * config/rs6000/xm-cygwin.h: Likewise.
  * config/vax/xm-vms.h: Likewise.
  * config/winnt/xm-winnt.h: Likewise.

  * cccp.c (main): Use TARGET_OBJECT_SUFFIX instead of OBJECT_SUFFIX.
  * cppinit.c (initialize_dependency_output): Likewise.

  * collect2.c (find_a_file): Look for files matching the extension
  HOST_EXECUTABLE_SUFFIX instead of EXECUTABLE_SUFFIX.

  * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Depend on 
  TARGET_EXECUTABLE_SUFFIX.
  (find_a_file): Use HOST_EXECUTABLE_SUFFIX.
  (convert_filename): Use TARGET_ suffixes throughout.
  (process_command): Likewise.
  (do_spec_1): Likewise.
  * java/lang.c (init_parse): Likewise.

  * gcc.texi : Document four new options matching the pattern
  (HOST|TARGET)_(OBJECT|EXECUTABLE)_SUFFIX.  Remove documentation
  for deleted defines OBJECT_SUFFIX and EXECUTABLE_SUFFIX.

==================[details snipped; see attachment]==================

dj-suffix.diff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]