From patchwork Thu Apr 14 19:47:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 91289 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 5B785B6FDF for ; Fri, 15 Apr 2011 05:48:55 +1000 (EST) Received: (qmail 27930 invoked by alias); 14 Apr 2011 19:48:53 -0000 Received: (qmail 27918 invoked by uid 22791); 14 Apr 2011 19:48:52 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, TW_CP, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Apr 2011 19:48:20 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 02055134; Thu, 14 Apr 2011 21:48:19 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o8fz07d64x-y; Thu, 14 Apr 2011 21:47:46 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 361DF133; Thu, 14 Apr 2011 21:47:46 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p3EJljAu029171; Thu, 14 Apr 2011 21:47:45 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford , "Joseph S. Myers" Subject: [doc] Remove references to mips-tfile on MIPS Date: Thu, 14 Apr 2011 21:47:45 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org I noticed that there were a couple of references to mips-tfile on MIPS, but this is only used on Tru64 UNIX these days. The following patch corrects this. Included in an i386-pc-solaris2.11 bootstrap to ensure the doc changes are syntactically correct. The MIPS changes should be obvious, though I will include them in an mips-sgi-irix6.5 bootstrap over the weekend. Ok for mainline if that passes? Rainer 2011-04-08 Rainer Orth * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove. * config/mips/mips.opt (mmips-tfile): Remove. * doc/install.texi (Specific, mips-*-*): Move mips-tfile, mips-tdump reference to ... (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX. * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS reference by Tru64 UNIX. diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -2556,12 +2556,6 @@ do \ } \ while (0) -/* mips-tfile does not understand .stabd directives. */ -#define DBX_OUTPUT_SOURCE_LINE(STREAM, LINE, COUNTER) do { \ - dbxout_begin_stabn_sline (LINE); \ - dbxout_stab_value_internal_label ("LM", &COUNTER); \ -} while (0) - /* Use .loc directives for SDB line numbers. */ #define SDB_OUTPUT_SOURCE_LINE(STREAM, LINE) \ fprintf (STREAM, "\t.loc\t%d %d\n", num_source_filenames, LINE) diff --git a/gcc/config/mips/mips.opt b/gcc/config/mips/mips.opt --- a/gcc/config/mips/mips.opt +++ b/gcc/config/mips/mips.opt @@ -222,10 +222,6 @@ mmemcpy Target Report Mask(MEMCPY) Don't optimize block moves -mmips-tfile -Target -Use the mips-tfile postpass - mmt Target Report Var(TARGET_MT) Allow the use of MT instructions diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -3102,6 +3102,10 @@ As of GNU binutils 2.21, neither GNU @co are supported on Tru64 UNIX, so you must not configure GCC with @option{--with-gnu-as} or @option{--with-gnu-ld}. +Cross-compilers for the Tru64 UNIX target currently do not work because +the auxiliary programs @command{mips-tdump} and @command{mips-tfile} can't +be compiled on anything but Tru64 UNIX. + GCC writes a @samp{.verstamp} directive to the assembler output file unless it is built as a cross-compiler. It gets the version to use from the system header file @file{/usr/include/stamp.h}. If you install a @@ -3843,12 +3847,6 @@ the use of break, use the @option{--with @command{configure} option when configuring GCC@. The default is to use traps on systems that support them. -Cross-compilers for the MIPS as target using the MIPS assembler -currently do not work, because the auxiliary programs -@file{mips-tdump.c} and @file{mips-tfile.c} can't be compiled on -anything but a MIPS@. It does work to cross compile for a MIPS -if you use the GNU assembler and linker. - The assembler from GNU binutils 2.17 and earlier has a bug in the way it sorts relocations for REL targets (o32, o64, EABI). This can cause bad code to be generated for simple C++ programs. Also the linker diff --git a/gcc/doc/trouble.texi b/gcc/doc/trouble.texi --- a/gcc/doc/trouble.texi +++ b/gcc/doc/trouble.texi @@ -55,7 +55,7 @@ for several reasons. @itemize @bullet @item At present, the program @file{mips-tfile} which adds debug -support to object files on MIPS systems does not work in a cross +support to object files on Tru64 UNIX systems does not work in a cross compile environment. @end itemize