GCC_DRIVER_HOST_INITIALIZATION in gcc.c

DJ Delorie dj@redhat.com
Mon Feb 9 22:35:00 GMT 2004


> From: Jim Wilson <wilson@specifixinc.com>
> 
> On Wed, 2004-01-21 at 12:58, DJ Delorie wrote:
> > How about a compromise?  Revert the const in the 3.4 branch, but
> > require a redesign for 3.5?
> 
> I am willing to approve that.

After discussing it in the djgpp workers list, we decided to just drop
that logic.  There's a slight performance penalty, but it does seem to
function correctly.

Committed to head and 3.4

2004-02-09  DJ Delorie  <dj@redhat.com>

	* config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
	longer modify standard_exec_prefix, standard_bindir_prefix, or
	standard_startfile_prefix.

Index: config/i386/xm-djgpp.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/xm-djgpp.h,v
retrieving revision 1.18
diff -p -2 -r1.18 xm-djgpp.h
*** config/i386/xm-djgpp.h	26 Sep 2003 04:07:46 -0000	1.18
--- config/i386/xm-djgpp.h	9 Feb 2004 22:31:29 -0000
*************** Boston, MA 02111-1307, USA.  */
*** 44,50 ****
    } while (0)
  
- /* Change /dev/env/DJDIR/prefix/dir/ to canonical form so gcc_exec_prefix
-    is set properly in 'gcc.c'. It also helps to cut down the number of times
-    the value of the DJGPP environment variable 'DJDIR' is evaluated.  */
  #undef GCC_DRIVER_HOST_INITIALIZATION
  #define GCC_DRIVER_HOST_INITIALIZATION \
--- 44,47 ----
*************** Boston, MA 02111-1307, USA.  */
*** 70,76 ****
                    djgpp); \
        } \
-     standard_exec_prefix = update_path (standard_exec_prefix, NULL); \
-     standard_bindir_prefix = update_path (standard_bindir_prefix, NULL); \
-     standard_startfile_prefix = update_path (standard_startfile_prefix, NULL); \
    } while (0)
  
--- 67,70 ----



More information about the Gcc mailing list