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]

Re: -O3 -gdwarf-2 breaks on static function redeclared in local scope



  In message <orhfbqmguw.fsf@tamanduatei.dcc.unicamp.br>you write:
  > On May 22, 2000, Jeffrey A Law <law@cygnus.com> wrote:
  > 
  > >   In message <orln12mh2g.fsf@tamanduatei.dcc.unicamp.br>you write:
  > >> I'm checking in this testcase as gcc.dg/dwarf2-1.c:
  > >> 
  > >> /* { dg-do compile } */
  > >> /* { dg-options "-O3 -gdwarf-2" } */
  > > Note you need to make it conditional since several platforms do not suppo
  > rt
  > > dwarf2 debugging.
  > 
  > Wow!  That was fast! :-)
  > 
  > How about just -g, then?
That would be OK too; however, be aware that many targets that support dwarf2
do it as an option, not as the default.  

jeff


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