]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.c (convert_filename): Append executable suffix if NO_AUTO_EXE_SUFFIX is not defined.
authorLaurynas Biveinis <lauras@softhome.net>
Sun, 4 Mar 2001 09:08:25 +0000 (09:08 +0000)
committerLaurynas Biveinis <lauras@gcc.gnu.org>
Sun, 4 Mar 2001 09:08:25 +0000 (09:08 +0000)
        * gcc.c (convert_filename): Append executable suffix
        if NO_AUTO_EXE_SUFFIX is not defined.
        * gcc.texi: Document NO_AUTO_EXE_SUFFIX.
        * config/i386/djgpp.h: Define NO_AUTO_EXE_SUFFIX.

From-SVN: r40229

gcc/ChangeLog
gcc/config/i386/djgpp.h
gcc/gcc.c
gcc/gcc.texi

index 4a34930fe3b9071669948ac85e30f47eed2ab9eb..419005403746808f09979d39515dbe863c762755 100644 (file)
@@ -1,3 +1,10 @@
+2001-03-04  Laurynas Biveinis  <lauras@softhome.net>\r
+\r
+       * gcc.c (convert_filename): Append executable suffix\r
+       if NO_AUTO_EXE_SUFFIX is not defined.\r
+       * gcc.texi: Document NO_AUTO_EXE_SUFFIX.\r
+       * config/i386/djgpp.h: Define NO_AUTO_EXE_SUFFIX.\r
+
 2001-03-03  David O'Brien  <obrien@FreeBSD.org>
        
        from 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
index 91940b570ef276b72f026fe380b19f4f0e2d8156..673f4f4426dd2a74f9d1e18a76d9339cba641d2e 100644 (file)
@@ -150,6 +150,11 @@ Boston, MA 02111-1307, USA.  */
    unless user explicitly requests it.  */
 #undef LOCAL_INCLUDE_DIR
 
+/* Do not make only .exe if no executable file suffix was specified.  */
+/* Let the linker handle that.  */
+#undef NO_AUTO_EXE_SUFFIX
+#define NO_AUTO_EXE_SUFFIX
+
 #undef EXTRA_SECTIONS
 #define EXTRA_SECTIONS in_ctor, in_dtor
 
index 780b1c1770ed0679fe27bba4aef36a6bff750950..ddf3f61e9a0839cd0aef636c12087df2930621af 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -2888,7 +2888,7 @@ convert_filename (name, do_exe)
     }
 #endif
 
-#ifdef HAVE_EXECUTABLE_SUFFIX
+#if defined(HAVE_EXECUTABLE_SUFFIX) && !defined(NO_AUTO_EXE_SUFFIX)
   /* If there is no filetype, make it the executable suffix (which includes
      the ".").  But don't get confused if we have just "-o".  */
   if (! do_exe || EXECUTABLE_SUFFIX[0] == 0 || (len == 2 && name[0] == '-'))
index c1b21b2188c2ee4f52ab947ea229cdd33758fdac..8210ad3497086f3e897d98dad3cac7afe6e658b2 100644 (file)
@@ -4225,6 +4225,12 @@ Define this macro to be a C string representing the suffix for executable
 files on your machine.  If you do not define this macro, GCC will use
 the null string as the suffix for object files.
 
+@findex NO_AUTO_EXE_SUFFIX
+@item NO_AUTO_EXE_SUFFIX
+Define this macro if executable files on your machine have a suffix, but 
+the compiler driver should not automatically append it to the output file
+name, if user hasn't specified one.
+
 @findex HOST_BIT_BUCKET
 @item HOST_BIT_BUCKET
 The name of a file or file-like object on the host system which acts as