https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #13 from Eason Lai ---
The inline rule in ipa-inline.c::inline_small_functions can be bypassed by
adding "noinline" attribute as shown below.
__attribute__((weak, noinline)) int get_t(void)
{
return 0;
}
It's an alternative solu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #12 from Eason Lai ---
Hope this information could help.
I added "-fopt-info-inline-optimized-missed=inline.txt" in the CFLAGS to see
what happens between -Os and -O1.
Here is the output when using "-O1":
missed: not inlinable: ma
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #10 from Eason Lai ---
Add my test program.
$cat boo.c
#include "boo.h"
int get_t(void)
{
return 1;
}
$cat main.c
#include "boo.h"
__attribute__((weak)) int get_t(void)
{
return 0;
}
int a;
int main(void)
{
a = get_t(
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91252
--- Comment #6 from Eason Lai ---
(In reply to Eason Lai from comment #5)
> d
Sorry for add wrong comment.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91252
Eason Lai changed:
What|Removed |Added
CC||sen2403 at hotmail dot com
--- Comment #5 fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
Eason Lai changed:
What|Removed |Added
CC||sen2403 at hotmail dot com
--- Comment #8 fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102292
--- Comment #2 from Eason Lai ---
sorry, I'm not sure whether this is a linker issue or not. Only thing I know is
enabling or disabling LTO makes the result different.
I can do more experiments to provide information if any suggestions. Thank y