summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-04 09:08:25 +0000
committerlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-04 09:08:25 +0000
commitd048ef60051cdd4bc5b206742a76174d220f7805 (patch)
treea3560db6cd52c029f8e243143e9494e86f02061b
parent585f00a100efeb555375e06f0f97f90fdc8aa699 (diff)
downloadppe42-gcc-d048ef60051cdd4bc5b206742a76174d220f7805.tar.gz
ppe42-gcc-d048ef60051cdd4bc5b206742a76174d220f7805.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40229 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/i386/djgpp.h5
-rw-r--r--gcc/gcc.c2
-rw-r--r--gcc/gcc.texi6
4 files changed, 19 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4a34930fe3b..41900540374 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2001-03-04 Laurynas Biveinis <lauras@softhome.net>
+
+ * 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.
+
2001-03-03 David O'Brien <obrien@FreeBSD.org>
from 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
diff --git a/gcc/config/i386/djgpp.h b/gcc/config/i386/djgpp.h
index 91940b570ef..673f4f4426d 100644
--- a/gcc/config/i386/djgpp.h
+++ b/gcc/config/i386/djgpp.h
@@ -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
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 780b1c1770e..ddf3f61e9a0 100644
--- 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] == '-'))
diff --git a/gcc/gcc.texi b/gcc/gcc.texi
index c1b21b2188c..8210ad34970 100644
--- a/gcc/gcc.texi
+++ b/gcc/gcc.texi
@@ -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
OpenPOWER on IntegriCloud