(In reply to Jiri Slaby from comment #8) > (In reply to Michael Matz from comment #7) > > (In reply to Andreas Schwab from comment #6) > > > In 13.2 or 42.1 the debuginfo contains fully prototyped entries. Why is > > > factory different? > > > > I guess gcc-6 makes the difference in that case. If somebody provides us a > > preprocessed file I can analyze this. > > I tried your example from comment #3. I need -O2 to have getenv in dw. gcc-5 > behaves the same. Oh wow. It never occured to me to try -g -O2 as producing more debug info (even if incomplete) than just -g. Okay I can reproduce, will poke at this a bit. Thanks.