delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/09/11:34:00

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Fri, 9 Feb 2001 11:32:08 -0500
MIME-Version: 1.0
Subject: Re: GCC: DJGPP bootstrap fix + define MSDOS
Message-ID: <3A83D538.3193.6617F7@localhost>
In-reply-to: <3A83DDDB.27937.17876C@localhost>
References: <5137-Fri09Feb2001114100+0200-eliz AT is DOT elta DOT co DOT il>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Maybe it's possible to still provide these options simply for 
> compatibility for some time without actually using them (maybe 
> warning that this option is obsolete and is ignored would be OK.
> However I don't know whether it can easily be done)

It can. I had to revise the patch for defining MSDOS, so I also added a 
message to say that -mbnu210 is ignored.

Index: djgpp.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/djgpp.h,v
retrieving revision 1.22
diff -c -p -r1.22 djgpp.h
*** djgpp.h	2001/02/07 00:33:20	1.22
--- djgpp.h	2001/02/09 16:28:26
*************** Boston, MA 02111-1307, USA.  */
*** 117,123 ****
  /* Include <sys/version.h> so __DJGPP__ and __DJGPP_MINOR__ are defined.  
*/
  #undef CPP_SPEC
  #define CPP_SPEC "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} \
!   -imacros %s../include/sys/version.h"
  
  /* We need to override link_command_spec in gcc.c so support -Tdjgpp.djl.
     This cannot be done in LINK_SPECS as that LINK_SPECS is processed
--- 117,123 ----
  /* Include <sys/version.h> so __DJGPP__ and __DJGPP_MINOR__ are defined.  
*/
  #undef CPP_SPEC
  #define CPP_SPEC "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} \
!   %{!ansi:%{!std=c*:%{!std=i*:-DMSDOS}}} -imacros 
%s../include/sys/version.h"
  
  /* We need to override link_command_spec in gcc.c so support -Tdjgpp.djl.
     This cannot be done in LINK_SPECS as that LINK_SPECS is processed
*************** dtor_section ()							\
*** 266,281 ****
  
  #undef SUBTARGET_SWITCHES
  #define SUBTARGET_SWITCHES 		\
!   { "bnu210", -MASK_BNU210, "Enable weak symbol and enhanced C++ template 
support. Binutils 2.10 or higher required." }, \
!   { "no-bnu210", MASK_BNU210, "Disable weak symbol and enhanced C++ 
template support." },
  
! /* Weak symbols and .gnu.linkonce are only in Binutils-2.10 and later. 
!    Default to using Binutils 2.10 features.  */
! #undef SUPPORTS_WEAK
! #define SUPPORTS_WEAK ((target_flags & MASK_BNU210) == 0)
! 
! #undef SUPPORTS_ONE_ONLY
! #define SUPPORTS_ONE_ONLY ((target_flags & MASK_BNU210) == 0)
  
  /* Support for C++ templates.  */
  #undef MAKE_DECL_ONE_ONLY
--- 266,282 ----
  
  #undef SUBTARGET_SWITCHES
  #define SUBTARGET_SWITCHES 		\
!   { "no-bnu210", -MASK_BNU210, "Obsolete." }, \
!   { "bnu210", MASK_BNU210, "Obsolete." },
  
! #undef  SUBTARGET_OVERRIDE_OPTIONS
! #define SUBTARGET_OVERRIDE_OPTIONS					\
! do {									\
!   if (target_flags & MASK_BNU210)					\
!     {									\
!       warning ("-mbnu210 ignored.");					\
!     }									\
! } while (0)								\
  
  /* Support for C++ templates.  */
  #undef MAKE_DECL_ONE_ONLY

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019