This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] eliminate config/usegas.h
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 25 Sep 2003 04:39:53 -0400
- Subject: [patch] eliminate config/usegas.h
Yet another in the long list of hopefully behavior-free changes.
The only functional line in usegas.h is:
#define USE_GAS 1
By replacing an 'if' with an 'ifdef' in i386/sco5.h, this can be replaced
in both remaining locations with a tm_define of USE_GAS. (I carefully
checked that usegas.h was earlier in the list than any file which might
care about the state of USE_GAS.)
It would be nice if Kean Johnston could approve the SCO-specific change
(perhaps testing it); although I believe this qualifies as obvious,
I'm going to wait until I get a second opinion.
* config.gcc: Replace references to 'usegas.h' with tm_define of
USE_GAS.
* config/i386/sco5.h: Replace #if USE_GAS with #ifdef USE_GAS.
* config/usegas.h: Remove.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.380
diff -u -r1.380 config.gcc
--- config.gcc 25 Sep 2003 07:30:57 -0000 1.380
+++ config.gcc 25 Sep 2003 08:24:26 -0000
@@ -895,7 +895,7 @@
i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
if test x$gas = xyes
then
- tm_file="${tm_file} usegas.h"
+ tm_defines="USE_GAS"
fi
xm_defines="SMALL_ARG_MAX"
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
@@ -1029,7 +1029,7 @@
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
if test x$gas = xyes
then
- tm_file="usegas.h ${tm_file}"
+ tm_defines="USE_GAS"
fi
tmake_file=i386/t-sco5
extra_parts="crtbegin.o crtend.o"
Index: config/i386/sco5.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/sco5.h,v
retrieving revision 1.80
diff -u -r1.80 sco5.h
--- config/i386/sco5.h 2 Jul 2003 21:33:54 -0000 1.80
+++ config/i386/sco5.h 25 Sep 2003 08:38:19 -0000
@@ -159,7 +159,7 @@
#define MD_STARTFILE_PREFIX "/usr/gnu/lib/"
#define MD_STARTFILE_PREFIX_1 "/usr/ccs/lib/"
-#if USE_GAS
+#ifdef USE_GAS
# define MD_EXEC_PREFIX "/usr/gnu/bin/"
#else
# define MD_EXEC_PREFIX "/usr/ccs/bin/elf/"
@@ -173,7 +173,7 @@
/* Set up assembler flags for PIC and ELF compilations */
#undef ASM_SPEC
-#if USE_GAS
+#ifdef USE_GAS
/* Leave ASM_SPEC undefined so we pick up the master copy from gcc.c */
#else
#define ASM_SPEC \
Index: config/usegas.h
===================================================================
RCS file: config/usegas.h
diff -N config/usegas.h
--- config/usegas.h 16 Jun 2003 11:34:38 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
-/* Copyright (C) 2001 Free Software Foundation, Inc.
-
- This file is part of GCC.
-
- GCC is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- GCC is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with GCC; see the file COPYING. If not, write to
- the Free Software Foundation, 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-/* Just set a single flag we can test for it inside other files. */
-#define USE_GAS 1
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html