public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Disable warning about -mcpu
@ 2001-09-06 21:26 Thiemo Seufer
  2001-09-06 21:32 ` Eric Christopher
  0 siblings, 1 reply; 3+ messages in thread
From: Thiemo Seufer @ 2001-09-06 21:26 UTC (permalink / raw)
  To: binutils

Hi All,

this disables warnings about the use of -mcpu=FOO. The idea of it
was to bring people away from using this to-be-deprecated option,
but ATM it is an senseless obstacle to anyone who needs to use
released gcc with a new assembler.


Thiemo


2001-09-07  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
	/gas/ChangeLog
	* config/tc-mips.c (md_begin): Disable warning about deprecated
	-mcpu option.


diff -BurpNX /bigdisk/src/binutils-exclude src-orig/gas/config/tc-mips.c src/gas/config/tc-mips.c
--- src-orig/gas/config/tc-mips.c	Fri Aug 31 22:00:08 2001
+++ src/gas/config/tc-mips.c	Thu Sep  6 21:58:05 2001
@@ -995,6 +1044,9 @@ md_begin ()
 		  "Use -march instead of -mcpu."));
     }
 
+  /* We should warn about deprecated -mcpu, but gcc 3.0 needs it.
+     Commented out for now.  */
+#if 0
   if (mips_arch == CPU_UNKNOWN && mips_cpu != CPU_UNKNOWN)
     {
       ci = mips_cpu_info_from_cpu (mips_cpu);
@@ -1003,6 +1055,7 @@ md_begin ()
       as_warn (_("The -mcpu option is deprecated.  Please use -march and "
 		 "-mtune instead."));
     }
+#endif
 
   /* At this point, mips_arch will either be CPU_UNKNOWN if no ARCH was
      specified on the command line, or some other value if one was.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Disable warning about -mcpu
  2001-09-06 21:26 [PATCH] Disable warning about -mcpu Thiemo Seufer
@ 2001-09-06 21:32 ` Eric Christopher
  2001-09-06 22:35   ` H . J . Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Christopher @ 2001-09-06 21:32 UTC (permalink / raw)
  To: Thiemo Seufer; +Cc: binutils

Ok, I'm not going to approve this one as it is a policy decision for all of
binutils.  I'd prefer to leave it in, but I'd rather have Nick give a
comment on whether or not he wants it.

-eric

> this disables warnings about the use of -mcpu=FOO. The idea of it
> was to bring people away from using this to-be-deprecated option,
> but ATM it is an senseless obstacle to anyone who needs to use
> released gcc with a new assembler.
> 
> 
> Thiemo
> 
> 
> 2001-09-07  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
> 	/gas/ChangeLog
> 	* config/tc-mips.c (md_begin): Disable warning about deprecated
> 	-mcpu option.
> 
> 
> diff -BurpNX /bigdisk/src/binutils-exclude src-orig/gas/config/tc-mips.c src/gas/config/tc-mips.c
> --- src-orig/gas/config/tc-mips.c	Fri Aug 31 22:00:08 2001
> +++ src/gas/config/tc-mips.c	Thu Sep  6 21:58:05 2001
> @@ -995,6 +1044,9 @@ md_begin ()
>  		  "Use -march instead of -mcpu."));
>      }
>  
> +  /* We should warn about deprecated -mcpu, but gcc 3.0 needs it.
> +     Commented out for now.  */
> +#if 0
>    if (mips_arch == CPU_UNKNOWN && mips_cpu != CPU_UNKNOWN)
>      {
>        ci = mips_cpu_info_from_cpu (mips_cpu);
> @@ -1003,6 +1055,7 @@ md_begin ()
>        as_warn (_("The -mcpu option is deprecated.  Please use -march and "
>  		 "-mtune instead."));
>      }
> +#endif
>  
>    /* At this point, mips_arch will either be CPU_UNKNOWN if no ARCH was
>       specified on the command line, or some other value if one was.
-- 
Look out behind you!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Disable warning about -mcpu
  2001-09-06 21:32 ` Eric Christopher
@ 2001-09-06 22:35   ` H . J . Lu
  0 siblings, 0 replies; 3+ messages in thread
From: H . J . Lu @ 2001-09-06 22:35 UTC (permalink / raw)
  To: Eric Christopher; +Cc: Thiemo Seufer, binutils

On Thu, Sep 06, 2001 at 09:32:02PM -0700, Eric Christopher wrote:
> Ok, I'm not going to approve this one as it is a policy decision for all of
> binutils.  I'd prefer to leave it in, but I'd rather have Nick give a
> comment on whether or not he wants it.
> 
> >  
> > +  /* We should warn about deprecated -mcpu, but gcc 3.0 needs it.
> > +     Commented out for now.  */

FWIW, I'd like to see all those mips backend fixes go into gcc 3.0.x.
As far as I am concerned, gcc 3.0.x is broken on Linux/mips. I only
track the main trunk for Linux/mips.


H.J.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-06 22:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-06 21:26 [PATCH] Disable warning about -mcpu Thiemo Seufer
2001-09-06 21:32 ` Eric Christopher
2001-09-06 22:35   ` H . J . Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).