Hi,
Recently I wanted to take and print the address of a label. When
compiling with -O2, I noticed that the address equals the function body
start address if the label is not used as a goto target.
Here is an example:
#include
int main(void) {
printf("main: %p\n", main);
printf("labe
Hi Martin,
That can definitely done better, if I see correctly only reference
from sem_item, sem_function and sem_variable
is in sem_item::add_type. That can be removed.
Yes, only sem_item::add_type uses this variable. Do you think the
whole static optimizer variable should be removed?
Hi,
I stumbled across this during my work on a gcc compiler plugin [1].
During the ipa-icf pass semantic items (`sem_function` and
`sem_variable`) are generated to find potential candidates for function
or variable merging.
In `ipa-icf.c` there is a static variable `optimizer` (of type
`sem