Skip to content
Snippets Groups Projects
  • Martin Sebor's avatar
    8423e57c
    c.opt (-Wframe-address): New warning option. · 8423e57c
    Martin Sebor authored
    gcc/ChangeLog
    2015-07-28  Martin Sebor  <msebor@redhat.com>
    
        * c-family/c.opt (-Wframe-address): New warning option.
        * doc/invoke.texi (Wframe-address): Document it.
        * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
        Clarify possible effects of calling the functions with non-zero
        arguments and mention -Wframe-address.
        * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
    
    gcc/testsuite/ChangeLog
    2015-07-28  Martin Sebor  <msebor@redhat.com>
    
        * g++.dg/Wframe-address-in-Wall.C: New test.
        * g++.dg/Wframe-address.C: New test.
        * g++.dg/Wno-frame-address.C: New test.
        * gcc.dg/Wframe-address-in-Wall.c: New test.
        * gcc.dg/Wframe-address.c: New test.
        * gcc.dg/Wno-frame-address.c: New test.
    
    From-SVN: r226480
    8423e57c
    History
    c.opt (-Wframe-address): New warning option.
    Martin Sebor authored
    gcc/ChangeLog
    2015-07-28  Martin Sebor  <msebor@redhat.com>
    
        * c-family/c.opt (-Wframe-address): New warning option.
        * doc/invoke.texi (Wframe-address): Document it.
        * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
        Clarify possible effects of calling the functions with non-zero
        arguments and mention -Wframe-address.
        * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
    
    gcc/testsuite/ChangeLog
    2015-07-28  Martin Sebor  <msebor@redhat.com>
    
        * g++.dg/Wframe-address-in-Wall.C: New test.
        * g++.dg/Wframe-address.C: New test.
        * g++.dg/Wno-frame-address.C: New test.
        * gcc.dg/Wframe-address-in-Wall.c: New test.
        * gcc.dg/Wframe-address.c: New test.
        * gcc.dg/Wno-frame-address.c: New test.
    
    From-SVN: r226480