http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52583
--- Comment #3 from Uros Bizjak <ubizjak at gmail dot com> 2012-03-15 07:21:12 UTC --- (In reply to comment #2) > What's failing is not Printf or Println, but the filename and line number. > Those are retrieved using DWARF lookup on the PC, and evidently something is > going wrong in that area. It might be interesting to know if the test > succeeds > using GOCFLAGS=-g, rather than the default -g -O2. Please note that with Printf I get correct filename and line number. This is reflected in the report above, there are only 5 failures, only when useFormat is false. DWARF lookup works OK.