Date: Fri, 9 Sep 2005 07:30:11 +0200 From: "Andreas Kohn" <andreas@syndrom23.de> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: gnu/85895: [PATCH] cc -print-search-dirs returns (null) Message-ID: <1126243811.0@klamath.syndrom23.de> Resent-Message-ID: <200509090540.j895eEM3019987@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 85895 >Category: gnu >Synopsis: [PATCH] cc -print-search-dirs returns (null) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 09 05:40:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andreas Kohn >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 7.0-CURRENT #20: Mon Aug 22 20:25:19 CEST 2005 root@klamath.syndrom23.de:/usr/obj/usr/src/sys/KLAMATH >Description: cc -print-search-dirs should print the installation location of cc, and where support files can be found. The lcc sources (at least the included one for Q3A) use this flag. >How-To-Repeat: Expected behavior: $ cc -print-search-dirs install: /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/ (from a linux system) Behavior on FreeBSD: $ cc -print-search-dirs install: /usr/libexec/(null) >Fix: This patch fixes the (null). DragonflyBSD uses a similar, but longer change to remove the use of machine_suffix completely. --- gcc-print-search-dirs-null.diff begins here --- Index: contrib/gcc/gcc.c =================================================================== RCS file: /storage/freebsd/cvs/src/contrib/gcc/gcc.c,v retrieving revision 1.40 diff -u -r1.40 gcc.c --- contrib/gcc/gcc.c 3 Jun 2005 04:02:20 -0000 1.40 +++ contrib/gcc/gcc.c 20 Aug 2005 13:02:49 -0000 @@ -6095,6 +6095,7 @@ /* Read specs from a file if there is one. */ #ifdef FREEBSD_NATIVE + machine_suffix = ""; just_machine_suffix = ""; #else /* FREEBSD_NATIVE */ machine_suffix = concat (spec_machine, dir_separator_str, --- gcc-print-search-dirs-null.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1126243811.0>