This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix PR 2030
- To: gcc-patches at gcc dot gnu dot org
- Subject: [patch] Fix PR 2030
- From: Matt Kraai <kraai at alumni dot carnegiemellon dot edu>
- Date: Mon, 19 Feb 2001 17:53:07 -0700
Howdy,
The appended patch fixes PR 2030, which reports inaccurate
warnings regarding the -m486 flag (and which also applies to
-m386). The first stage compiler built and the warning was
correct when I tried it on i686-pc-linux-gnu.
Matt
2001-02-19 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* i386.h (CC1_CPU_SPEC): Fix warnings for -m386 and -m486.
Index: i386.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.h,v
retrieving revision 1.156
diff -c -3 -p -r1.156 i386.h
*** i386.h 2001/02/19 15:47:30 1.156
--- i386.h 2001/02/20 00:28:19
*************** extern int ix86_arch;
*** 406,414 ****
#define CC1_CPU_SPEC "\
%{!mcpu*: \
%{m386:-mcpu=i386 \
! %n`-mpentium' is deprecated. Use `-march' or `-mcpu' instead.\n} \
%{m486:-mcpu=i486 \
! %n`-mpentium' is deprecated. Use `-march' or `-mcpu' instead.\n} \
%{mpentium:-mcpu=pentium \
%n`-mpentium' is deprecated. Use `-march' or `-mcpu' instead.\n} \
%{mpentiumpro:-mcpu=pentiumpro \
--- 406,414 ----
#define CC1_CPU_SPEC "\
%{!mcpu*: \
%{m386:-mcpu=i386 \
! %n`-m386' is deprecated. Use `-march' or `-mcpu' instead.\n} \
%{m486:-mcpu=i486 \
! %n`-m486' is deprecated. Use `-march' or `-mcpu' instead.\n} \
%{mpentium:-mcpu=pentium \
%n`-mpentium' is deprecated. Use `-march' or `-mcpu' instead.\n} \
%{mpentiumpro:-mcpu=pentiumpro \