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
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:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #11 from Alexander Monakov ---
Marxin, you've marked this as WAITING, can you please re-evaluate? The nice
testcase from comment #2 is reproducible on trunk as well.
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 =
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
Alexander Monakov changed:
What|Removed |Added
CC||amonakov at gcc dot gnu.org
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
Eason Lai changed:
What|Removed |Added
CC||sen2403 at hotmail dot com
--- Comment #8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
Martin Liška changed:
What|Removed |Added
Status|NEW |WAITING
--- Comment #7 from Martin Liška
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #6 from H.J. Lu ---
(In reply to Martin Liška from comment #5)
> (In reply to Richard Biener from comment #4)
> > You want to look at the output of the linker resolution file (compile with
> > -v -save-temps and look for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #5 from Martin Liška ---
(In reply to Richard Biener from comment #4)
> You want to look at the output of the linker resolution file (compile with
> -v -save-temps and look for -fresolution=). The linker probably
> tells
> GCC that
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
Richard Biener changed:
What|Removed |Added
Target||arm-none-eabi-gcc
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #3 from Andrew Pinski ---
Related to PR 91252.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #2 from Peter Smith ---
Created attachment 46643
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46643=edit
All C reproducer without absolute symbols
Attaching a target independent C only reproducer for convenience.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
nsz at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
13 matches
Mail list logo