This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11051] -Wno-deprecated needed also for C
- From: "hpa at zytor dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2007 00:16:00 -0000
- Subject: [Bug c/11051] -Wno-deprecated needed also for C
- References: <bug-11051-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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