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