http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53453
--- Comment #11 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-05-24 23:26:22 UTC --- Proposed patch bootstraps on x86_64-apple-darwin12 under Xcode 4.4 and eliminates the dsymutil warnings for... gcc-fsf-4.8 /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20120524/gcc/testsuite/gcc.c-torture/execute/builtins/20010124-1.c /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20120524/gcc/testsuite/gcc.c-torture/execute/builtins/20010124-1-lib.c /sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20120524/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c -fno-diagnostics-show-caret --save-temps -v -w -O3 -g -lm -m64 -o 20010124-1.x4 with the missing AT_comp_dir attribute now being emitted on darwin... dwarfdump --debug-info main.o ---------------------------------------------------------------------- File: main.o (x86_64)---------------------------------------------------------------------- .debug_info contents: 0x00000000: Compile Unit: length = 0x00000178 version = 0x0002 abbr_offset = 0x00000000 addr_size = 0x08 (next CU at 0x0000017c) 0x0000000b: TAG_compile_unit [1] * AT_producer( "GNU C 4.8.0 20120524 (experimental) -fpreprocessed -fPIC -feliminate-unused-debug-symbols -mmacosx-version-min=10.8.0 -m64 -mtune=core2 -g -O3" ) AT_language( DW_LANG_C89 ) AT_name( "/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20120524/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c" ) AT_comp_dir( "/Users/howarth/xcode44_bugv2/bad_binary" ) AT_stmt_list( 0x00000000 ) 0x00000135: TAG_subprogram [2] AT_external( 0x01 ) AT_name( "main" ) AT_decl_file( "/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20120524/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c" ) AT_decl_line( 7 ) AT_type( {0x00000156} ( int ) ) AT_low_pc( 0x0000000000000000 ) AT_high_pc( 0x000000000000001d ) AT_frame_base( 0x00000000 0x0000000000000000 - 0x0000000000000001: rsp+8 0x0000000000000001 - 0x000000000000001c: rsp+16 0x000000000000001c - 0x000000000000001d: rsp+8 ) 0x00000156: TAG_base_type [3] AT_byte_size( 0x04 ) AT_encoding( DW_ATE_signed ) AT_name( "int" ) 0x0000015d: TAG_variable [4] AT_name( "inside_main" ) AT_decl_file( "/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20120524/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c" ) AT_decl_line( 4 ) AT_type( {0x00000156} ( int ) ) AT_external( 0x01 ) AT_location( [0x0000000000000000] ) 0x0000017b: NULL