This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C] Fix PR57258: unused variable warning is emitted for volatile variables


On Nov 8, 2013, at 2:35 AM, Mingjie Xing <mingjie.xing@gmail.com> wrote:
> Oops, if it is not a bug, please close the report
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57258

Well, I've stated my position.  I can be swayed by a good argument, if someone has one.  I'd give people a chance to weigh in if they can think of one.  A global variable with linkage is completely different, as the linker can grab it, dlsym can grab it, and who knows…  while a cleaver (Ian type of cleaver) person could grab an automatic variable, the difficulty is enormous and doing that would be exceedingly odd.  I don't know of any coding style where people do that sort of thing.  Reflection comes the closest; dynamic bindings (a la lisp) I guess comes second; shudder.  I'd make them mark it with the used attribute, since they're really weird.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]