This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch,commited,i386] Getting rid of -mcpu deprecation warnings
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Thu, 13 Jan 2005 14:00:41 +0100
- Subject: [patch,commited,i386] Getting rid of -mcpu deprecation warnings
Hi,
I have committed the patch below to trunk and gcc-3_4-branch.
It changes RTEMS multilibs for the i386 to using -mtune instead of
-mcpu, to avoid i386-rtems-gcc to emit "-mcpu is deprecated ..."
warnings.
Ralf
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.7107
diff -u -r2.7107 ChangeLog
--- ChangeLog 13 Jan 2005 07:11:45 -0000 2.7107
+++ ChangeLog 13 Jan 2005 11:59:33 -0000
@@ -1,3 +1,7 @@
+2005-01-13 Ralf Corsepius <ralf.corsepius@rtems.org>
+
+ * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
+
2005-01-13 Jan Beulich <jbeulich@novell.com>
* config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
Index: config/i386/t-rtems-i386
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/t-rtems-i386,v
retrieving revision 1.3
diff -u -r1.3 t-rtems-i386
--- config/i386/t-rtems-i386 13 Feb 2002 22:48:53 -0000 1.3
+++ config/i386/t-rtems-i386 13 Jan 2005 11:59:33 -0000
@@ -36,17 +36,17 @@
echo '#define EXTENDED_FLOAT_STUBS' > xp-bit.c
cat $(srcdir)/config/fp-bit.c >> xp-bit.c
-MULTILIB_OPTIONS = mcpu=i486/mcpu=pentium/mcpu=pentiumpro/mcpu=k6/mcpu=athlon \
+MULTILIB_OPTIONS = mtune=i486/mtune=pentium/mtune=pentiumpro/mtune=k6/mtune=athlon \
msoft-float mno-fp-ret-in-387
MULTILIB_DIRNAMES= m486 mpentium mpentiumpro k6 athlon soft-float nofp
MULTILIB_MATCHES = msoft-float=mno-m80387
MULTILIB_EXCEPTIONS = \
mno-fp-ret-in-387 \
-mcpu=i486/*mno-fp-ret-in-387* \
-mcpu=pentium/*msoft-float* mcpu=pentium/*mno-fp-ret-in-387* \
-mcpu=pentiumpro/*msoft-float* mcpu=pentiumpro/*mno-fp-ret-in-387* \
-mcpu=k6/*msoft-float* mcpu=k6/*mno-fp-ret-in-387* \
-mcpu=athlon/*msoft-float* mcpu=athlon/*mno-fp-ret-in-387*
+mtune=i486/*mno-fp-ret-in-387* \
+mtune=pentium/*msoft-float* mtune=pentium/*mno-fp-ret-in-387* \
+mtune=pentiumpro/*msoft-float* mtune=pentiumpro/*mno-fp-ret-in-387* \
+mtune=k6/*msoft-float* mtune=k6/*mno-fp-ret-in-387* \
+mtune=athlon/*msoft-float* mtune=athlon/*mno-fp-ret-in-387*
EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o