Re: Why not remove entry for stripped function in ELF .debug_info section

2012-06-19 Thread Ian Lance Taylor
Terry Guo writes: > But when check .debug_info section of .out file, I can still see entry > for this deadstripped function: I have two things to say about this message. First, this message is not appropriate for the mailing list gcc@gcc.gnu.org, which is for discussion related to the developme

Why not remove entry for stripped function in ELF .debug_info section

2012-06-17 Thread Terry Guo
Hi, I have following code which will be built with options "-ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-Map=test.map": #include static int unusedint=5; static int usedint=1; int unused(void) { return 1; } int foo(void) { return usedint; } int main(void) { if (fo