summaryrefslogtreecommitdiffstats
path: root/gcc/ada/adaint.c
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-16 09:00:19 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-16 09:00:19 +0000
commite0f42093b7ec59ece3ef77310adaaebb5741cd49 (patch)
tree168a8f766937c47892e57a5c6fb8b61b4f50921f /gcc/ada/adaint.c
parentaf16d7943e75f30ebc5fdf330d8f92c5bdcedbea (diff)
downloadppe42-gcc-e0f42093b7ec59ece3ef77310adaaebb5741cd49.tar.gz
ppe42-gcc-e0f42093b7ec59ece3ef77310adaaebb5741cd49.zip
2004-08-16 Pascal Obry <obry@gnat.com>
* adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared option and not mdll anymore. Update comment. 2004-08-16 Pascal Obry <obry@gnat.com> * bld.adb (Put_Include_Project): Properly handle directory separators on Windows. 2004-08-16 Ed Schonberg <schonberg@gnat.com> * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by decreasing the number of allocated junk nodes while searching for the appropriate subprogram. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86049 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/adaint.c')
-rw-r--r--gcc/ada/adaint.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index bf6454ea8b3..a07f008c58a 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -2469,8 +2469,11 @@ int __gnat_argument_needs_quote = 0;
/* This option is used to enable/disable object files handling from the
binder file by the GNAT Project module. For example, this is disabled on
- Windows as it is already done by the mdll module. */
-#if defined (_WIN32)
+ Windows (prior to GCC 3.4) as it is already done by the mdll module.
+ Stating with GCC 3.4 the shared libraries are not based on mdll
+ anymore as it uses the GCC's -shared option */
+#if defined (_WIN32) \
+ && ((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 4)))
int __gnat_prj_add_obj_files = 0;
#else
int __gnat_prj_add_obj_files = 1;
OpenPOWER on IntegriCloud