[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2022-08-25 Thread sen2403 at hotmail dot com via Gcc-bugs
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

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2022-08-25 Thread sen2403 at hotmail dot com via Gcc-bugs
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:

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2022-07-26 Thread amonakov at gcc dot gnu.org via Gcc-bugs
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.

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2022-07-20 Thread sen2403 at hotmail dot com via Gcc-bugs
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 =

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2022-07-20 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org ---

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2022-07-20 Thread sen2403 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299 Eason Lai changed: What|Removed |Added CC||sen2403 at hotmail dot com --- Comment #8

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2019-08-02 Thread marxin at gcc dot gnu.org
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

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2019-07-31 Thread hjl.tools at gmail dot com
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

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2019-07-31 Thread marxin at gcc dot gnu.org
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

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2019-07-31 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299 Richard Biener changed: What|Removed |Added Target||arm-none-eabi-gcc CC|

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2019-07-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299 --- Comment #3 from Andrew Pinski --- Related to PR 91252.

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2019-07-30 Thread peter.smith at linaro dot org
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.

[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file

2019-07-30 Thread nsz at gcc dot gnu.org
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|