public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <20030531225148.11051.bangerth@dealii.org>
@ 2003-08-03 17:50 ` pinskia at physics dot uc dot edu
  2003-08-03 18:33 ` neroden at gcc dot gnu dot org
  1 sibling, 0 replies; 15+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-03 17:50 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051



------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-03 17:50 -------
The code is no rejected in the mainline (20030802).  Can any one think of another case 
but I still agree that -Wno-deprecated needs to be supported in C/ObjC.  Before 
20030729, I know that #import was deprecated but that had a option to disable the 
warning.

Right now only one thing in the C front end is deprecated but that only is a pedwarn.

I argree that there should be still an option for this in the furture.


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <20030531225148.11051.bangerth@dealii.org>
  2003-08-03 17:50 ` [Bug c/11051] -Wno-deprecated needed also for C pinskia at physics dot uc dot edu
@ 2003-08-03 18:33 ` neroden at gcc dot gnu dot org
  1 sibling, 0 replies; 15+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-08-03 18:33 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


neroden at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
   Target Milestone|3.4                         |---


------- Additional Comments From neroden at gcc dot gnu dot org  2003-08-03 18:33 -------
No reason to believe that this is going to be in 3.4, although it's certainly a
good idea.  It's also an enhancement request, fundamentally.


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2007-03-12 17:22 ` manu at gcc dot gnu dot org
@ 2007-05-21  8:54 ` manu at gcc dot gnu dot org
  11 siblings, 0 replies; 15+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-05-21  8:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from manu at gcc dot gnu dot org  2007-05-21 09:54 -------
This bug will be fixed as soon as Tom's patch goes in.

*** This bug has been marked as a duplicate of 22168 ***


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2007-02-16 16:05 ` manu at gcc dot gnu dot org
@ 2007-03-12 17:22 ` manu at gcc dot gnu dot org
  2007-05-21  8:54 ` manu at gcc dot gnu dot org
  11 siblings, 0 replies; 15+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-03-12 17:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from manu at gcc dot gnu dot org  2007-03-12 17:22 -------
Tom,

your patch 
http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01853.html
will also fix this by adding Wdeprecated to the C front-end.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2007-01-27  1:40 ` hpa at zytor dot com
@ 2007-02-16 16:05 ` manu at gcc dot gnu dot org
  2007-03-12 17:22 ` manu at gcc dot gnu dot org
  2007-05-21  8:54 ` manu at gcc dot gnu dot org
  11 siblings, 0 replies; 15+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-02-16 16:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from manu at gcc dot gnu dot org  2007-02-16 16:04 -------
(In reply to comment #12)
> Subject: Re:  -Wno-deprecated needed also for C
> 
> manu at gcc dot gnu dot org wrote:
> > 
> > Wouldn't it be better to remove the dead code? Or is there a policy against
> > touching things that are not broken? I think that at least one comment on the
> > code would be appropriate.
> > 
> 
> The dead code should presumably be removed, too.
> 

OK. But back to this PR. Is there anything deprecated in the C front-end that
would be suitable for -Wno-deprecated ?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2007-01-27  1:38 ` manu at gcc dot gnu dot org
@ 2007-01-27  1:40 ` hpa at zytor dot com
  2007-02-16 16:05 ` manu at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: hpa at zytor dot com @ 2007-01-27  1:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from hpa at zytor dot com  2007-01-27 01:40 -------
Subject: Re:  -Wno-deprecated needed also for C

manu at gcc dot gnu dot org wrote:
> 
> Wouldn't it be better to remove the dead code? Or is there a policy against
> touching things that are not broken? I think that at least one comment on the
> code would be appropriate.
> 

The dead code should presumably be removed, too.

        -hpa


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2007-01-27  1:09 ` hpa at zytor dot com
@ 2007-01-27  1:38 ` manu at gcc dot gnu dot org
  2007-01-27  1:40 ` hpa at zytor dot com
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-01-27  1:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from manu at gcc dot gnu dot org  2007-01-27 01:38 -------
(In reply to comment #10)
> Subject: Re:  -Wno-deprecated needed also for C
> 
> manu at gcc dot gnu dot org wrote:
> > 
> > But it doesn't produce that warning. Is that warning dead code or what?
> > 
> 
> Apparently so.  I think it should have stayed a warning, but that's a 
> long time gone, and is way too late to fix now.  I'm going to submit a 
> doc patch, since this change was never documented.
> 

Wouldn't it be better to remove the dead code? Or is there a policy against
touching things that are not broken? I think that at least one comment on the
code would be appropriate.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2007-01-27  1:02 ` manu at gcc dot gnu dot org
@ 2007-01-27  1:09 ` hpa at zytor dot com
  2007-01-27  1:38 ` manu at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: hpa at zytor dot com @ 2007-01-27  1:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from hpa at zytor dot com  2007-01-27 01:09 -------
Subject: Re:  -Wno-deprecated needed also for C

manu at gcc dot gnu dot org wrote:
> 
> But it doesn't produce that warning. Is that warning dead code or what?
> 

Apparently so.  I think it should have stayed a warning, but that's a 
long time gone, and is way too late to fix now.  I'm going to submit a 
doc patch, since this change was never documented.

        -hpa


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2007-01-23  0:29 ` pinskia at physics dot uc dot edu
@ 2007-01-27  1:02 ` manu at gcc dot gnu dot org
  2007-01-27  1:09 ` hpa at zytor dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-01-27  1:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from manu at gcc dot gnu dot org  2007-01-27 01:02 -------
(In reply to comment #8)
> Subject: Re:  -Wno-deprecated needed also for C
> 
> > manu at gcc dot gnu dot org wrote:
> > > ------- Comment #4 from manu at gcc dot gnu dot org  2007-01-23 00:01 -------
> > > The testcase given is not valid any more. Could you think in any other
> > > testcase?
> > > 
> > > In stmt.c (expand_asm_operands) there is:
> > > 
> > >             warning (0, "use of memory input without lvalue in "
> > >                        "asm operand %d is deprecated", i + noutputs);
> > > 
> > > 
> > 
> > Hang on, hang on...
> > 
> > WTF?!  Using an rvalue in an assembly input that may contain "m" is 
> > something that is highly useful, and it will break metric tons of code. 
> >   -Wno-deprecated or no -Wno-deprecated, deprecating this particular 
> > construct is a major mistake.
> 
> This has been true since 3.3.3 and in fact, this was made an error in 4.0.0,
> even though the warning remains.  

Huh? What is that suppose to mean? 

> So:
> float f(float a)
> {
>   asm(""::"mo"((double)a));
>   return a;
> }
> 
> Fails

But it doesn't produce that warning. Is that warning dead code or what?

Still, going back to this PR, is there anything deprecated in C front-end worth
of implementing -Wno-deprecated for C?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2007-01-23  0:25 ` hpa at zytor dot com
@ 2007-01-23  0:29 ` pinskia at physics dot uc dot edu
  2007-01-27  1:02 ` manu at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at physics dot uc dot edu @ 2007-01-23  0:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at physics dot uc dot edu  2007-01-23 00:29 -------
Subject: Re:  -Wno-deprecated needed also for C

> manu at gcc dot gnu dot org wrote:
> > ------- Comment #4 from manu at gcc dot gnu dot org  2007-01-23 00:01 -------
> > The testcase given is not valid any more. Could you think in any other
> > testcase?
> > 
> > In stmt.c (expand_asm_operands) there is:
> > 
> >             warning (0, "use of memory input without lvalue in "
> >                        "asm operand %d is deprecated", i + noutputs);
> > 
> > 
> 
> Hang on, hang on...
> 
> WTF?!  Using an rvalue in an assembly input that may contain "m" is 
> something that is highly useful, and it will break metric tons of code. 
>   -Wno-deprecated or no -Wno-deprecated, deprecating this particular 
> construct is a major mistake.

This has been true since 3.3.3 and in fact, this was made an error in 4.0.0,
even though the warning remains.  Also what is deprecated/removed is not may
contain a memory constraint but an input which only contains memory
constraints.

So:
float f(float a)
{
  asm(""::"mo"((double)a));
  return a;
}

Fails but:
float f(float a)
{
  asm(""::"mr"((double)a));
  return a;
}

Works.


-- Pinski


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* Re: [Bug c/11051] -Wno-deprecated needed also for C
  2007-01-23  0:16 ` hpa at zytor dot com
@ 2007-01-23  0:29   ` Andrew Pinski
  0 siblings, 0 replies; 15+ messages in thread
From: Andrew Pinski @ 2007-01-23  0:29 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs

> manu at gcc dot gnu dot org wrote:
> > ------- Comment #4 from manu at gcc dot gnu dot org  2007-01-23 00:01 -------
> > The testcase given is not valid any more. Could you think in any other
> > testcase?
> > 
> > In stmt.c (expand_asm_operands) there is:
> > 
> >             warning (0, "use of memory input without lvalue in "
> >                        "asm operand %d is deprecated", i + noutputs);
> > 
> > 
> 
> Hang on, hang on...
> 
> WTF?!  Using an rvalue in an assembly input that may contain "m" is 
> something that is highly useful, and it will break metric tons of code. 
>   -Wno-deprecated or no -Wno-deprecated, deprecating this particular 
> construct is a major mistake.

This has been true since 3.3.3 and in fact, this was made an error in 4.0.0,
even though the warning remains.  Also what is deprecated/removed is not may
contain a memory constraint but an input which only contains memory constraints.

So:
float f(float a)
{
  asm(""::"mo"((double)a));
  return a;
}

Fails but:
float f(float a)
{
  asm(""::"mr"((double)a));
  return a;
}

Works.


-- Pinski


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2007-01-23  0:20 ` manu at gcc dot gnu dot org
@ 2007-01-23  0:25 ` hpa at zytor dot com
  2007-01-23  0:29 ` pinskia at physics dot uc dot edu
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: hpa at zytor dot com @ 2007-01-23  0:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from hpa at zytor dot com  2007-01-23 00:24 -------
Subject: Re:  -Wno-deprecated needed also for C

manu at gcc dot gnu dot org wrote:
> ------- Comment #6 from manu at gcc dot gnu dot org  2007-01-23 00:20 -------
> Hey, don't look at me. I am not sure what that means, I was just looking for
> something deprecated in C front-end to make a testcase.

It looks like it's deprecating the following code:

void foo(int bar)
{
        asm volatile("" : : "m" (bar+1));
}

This type of constructions are actually quite common (although with a 
real instruction, and usually something like "rm" or "abdSm" in the 
constraints box.)

        -hpa


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
  2007-01-23  0:01 ` manu at gcc dot gnu dot org
  2007-01-23  0:16 ` hpa at zytor dot com
@ 2007-01-23  0:20 ` manu at gcc dot gnu dot org
  2007-01-23  0:25 ` hpa at zytor dot com
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-01-23  0:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from manu at gcc dot gnu dot org  2007-01-23 00:20 -------
Hey, don't look at me. I am not sure what that means, I was just looking for
something deprecated in C front-end to make a testcase.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
  2007-01-23  0:01 ` manu at gcc dot gnu dot org
@ 2007-01-23  0:16 ` hpa at zytor dot com
  2007-01-23  0:29   ` Andrew Pinski
  2007-01-23  0:20 ` manu at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 1 reply; 15+ messages in thread
From: hpa at zytor dot com @ 2007-01-23  0:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hpa at zytor dot com  2007-01-23 00:15 -------
Subject: Re:  -Wno-deprecated needed also for C

manu at gcc dot gnu dot org wrote:
> ------- Comment #4 from manu at gcc dot gnu dot org  2007-01-23 00:01 -------
> The testcase given is not valid any more. Could you think in any other
> testcase?
> 
> In stmt.c (expand_asm_operands) there is:
> 
>             warning (0, "use of memory input without lvalue in "
>                        "asm operand %d is deprecated", i + noutputs);
> 
> 

Hang on, hang on...

WTF?!  Using an rvalue in an assembly input that may contain "m" is 
something that is highly useful, and it will break metric tons of code. 
  -Wno-deprecated or no -Wno-deprecated, deprecating this particular 
construct is a major mistake.

        -hpa


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

* [Bug c/11051] -Wno-deprecated needed also for C
       [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
@ 2007-01-23  0:01 ` manu at gcc dot gnu dot org
  2007-01-23  0:16 ` hpa at zytor dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-01-23  0:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from manu at gcc dot gnu dot org  2007-01-23 00:01 -------
The testcase given is not valid any more. Could you think in any other
testcase?

In stmt.c (expand_asm_operands) there is:

            warning (0, "use of memory input without lvalue in "
                       "asm operand %d is deprecated", i + noutputs);


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11051


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

end of thread, other threads:[~2007-05-21  8:54 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030531225148.11051.bangerth@dealii.org>
2003-08-03 17:50 ` [Bug c/11051] -Wno-deprecated needed also for C pinskia at physics dot uc dot edu
2003-08-03 18:33 ` neroden at gcc dot gnu dot org
     [not found] <bug-11051-102@http.gcc.gnu.org/bugzilla/>
2007-01-23  0:01 ` manu at gcc dot gnu dot org
2007-01-23  0:16 ` hpa at zytor dot com
2007-01-23  0:29   ` Andrew Pinski
2007-01-23  0:20 ` manu at gcc dot gnu dot org
2007-01-23  0:25 ` hpa at zytor dot com
2007-01-23  0:29 ` pinskia at physics dot uc dot edu
2007-01-27  1:02 ` manu at gcc dot gnu dot org
2007-01-27  1:09 ` hpa at zytor dot com
2007-01-27  1:38 ` manu at gcc dot gnu dot org
2007-01-27  1:40 ` hpa at zytor dot com
2007-02-16 16:05 ` manu at gcc dot gnu dot org
2007-03-12 17:22 ` manu at gcc dot gnu dot org
2007-05-21  8:54 ` manu at gcc dot gnu dot org

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).