https://bugs.llvm.org/show_bug.cgi?id=46284

            Bug ID: 46284
           Summary: Weird interaction between -g0 and -gmodules
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected],
                    [email protected]

$ bin/clang -o - -x c -S - -gmodules -g0 <<<"void f(){}"  | grep debug
        .section        .debug_abbrev,"",@progbits
        .section        .debug_info,"",@progbits
        .long   .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
.Ldebug_info_start0:
        .long   .debug_abbrev           # Offset Into Abbrev. Section
.Ldebug_info_end0:
        .section        .debug_str,"MS",@progbits,1
        .section        .debug_line,"",@progbits


I would have expected that the subsequent -g0 will disable all debug info, but
that doesn't seem to be happening.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to