public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/84023] gcc.dg/ipa/inline-8.c fail with -fpic
       [not found] <bug-84023-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-31  5:36 ` pinskia at gcc dot gnu.org
  2021-08-31  5:41 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-31  5:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84023

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
/* Can be inlined.  */
int
move (int a)
{
  return a;
}

Both move and cmp should be static for this testcase to work under -fPIC.
Basically we are testing to make sure cmp is not inlined but move is. with
-fPIC, neither will even be tried to inline because they don't bind local.
So we want to have both cmp and move as static.

Mine.


diff --git a/gcc/testsuite/gcc.dg/ipa/inline-8.c
b/gcc/testsuite/gcc.dg/ipa/inline-8.c
index 388283ca213..c51eec20fc8 100644
--- a/gcc/testsuite/gcc.dg/ipa/inline-8.c
+++ b/gcc/testsuite/gcc.dg/ipa/inline-8.c
@@ -6,13 +6,13 @@
 #include <math.h>
 extern int isnanf (float);
 /* Can't be inlined because isnanf will be optimized out.  */
-int
+static int
 cmp (float a)
 {
   return isnanf (a);
 }
 /* Can be inlined.  */
-int
+static int
 move (int a)
 {
   return a;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug testsuite/84023] gcc.dg/ipa/inline-8.c fail with -fpic
       [not found] <bug-84023-4@http.gcc.gnu.org/bugzilla/>
  2021-08-31  5:36 ` [Bug testsuite/84023] gcc.dg/ipa/inline-8.c fail with -fpic pinskia at gcc dot gnu.org
@ 2021-08-31  5:41 ` pinskia at gcc dot gnu.org
  2021-08-31  6:32 ` pinskia at gcc dot gnu.org
  2021-09-17  6:50 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-31  5:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84023

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                URL|                            |https://gcc.gnu.org/piperma
                   |                            |il/gcc-patches/2021-August/
                   |                            |578432.html

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Patch submitted:
https://gcc.gnu.org/pipermail/gcc-patches/2021-August/578432.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug testsuite/84023] gcc.dg/ipa/inline-8.c fail with -fpic
       [not found] <bug-84023-4@http.gcc.gnu.org/bugzilla/>
  2021-08-31  5:36 ` [Bug testsuite/84023] gcc.dg/ipa/inline-8.c fail with -fpic pinskia at gcc dot gnu.org
  2021-08-31  5:41 ` pinskia at gcc dot gnu.org
@ 2021-08-31  6:32 ` pinskia at gcc dot gnu.org
  2021-09-17  6:50 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-31  6:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84023

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed by r12-3244.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug testsuite/84023] gcc.dg/ipa/inline-8.c fail with -fpic
       [not found] <bug-84023-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-08-31  6:32 ` pinskia at gcc dot gnu.org
@ 2021-09-17  6:50 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-17  6:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84023

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-17  6:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-84023-4@http.gcc.gnu.org/bugzilla/>
2021-08-31  5:36 ` [Bug testsuite/84023] gcc.dg/ipa/inline-8.c fail with -fpic pinskia at gcc dot gnu.org
2021-08-31  5:41 ` pinskia at gcc dot gnu.org
2021-08-31  6:32 ` pinskia at gcc dot gnu.org
2021-09-17  6:50 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).