Re: Unused libgcc symbol reference

2020-08-13 Thread Tobias Wölfel via Gcc
On Thu Aug 13, 2020 at 2:50 PM CEST, Jakub Jelinek wrote: > And unfortunately the functions that add the .globl directives for the > calls > are done at expansion time rather than only based on what calls survive > through the RTL optimizations. Thanks a lot Jakub for the explanation! > Or why we

Re: Unused libgcc symbol reference

2020-08-13 Thread Jakub Jelinek via Gcc
On Thu, Aug 13, 2020 at 02:33:50PM +0200, Tobias Wölfel via Gcc wrote: > I observed that in some ELF files there is code present which is not used. > It originates from integer arithmetics. > The following snipped should help to demonstrate the problem. It is there because the division in this ca

Unused libgcc symbol reference

2020-08-13 Thread Tobias Wölfel via Gcc
Hi, I observed that in some ELF files there is code present which is not used. It originates from integer arithmetics. The following snipped should help to demonstrate the problem. I have the function in the file foo.c: ``` unsigned long long foo(unsigned long a, unsigned long b) { retur