public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/giulianob/heads/pfe_backport_clean)] Backport Fix patchable-function-entry on arc
@ 2021-10-21 14:49 Giuliano Belinassi
  0 siblings, 0 replies; 2+ messages in thread
From: Giuliano Belinassi @ 2021-10-21 14:49 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1b5eac0b3d586f3b51baff5667d903de4a4e06a6

commit 1b5eac0b3d586f3b51baff5667d903de4a4e06a6
Author: Andrew Pinski <apinski@marvell.com>
Date:   Wed Jan 22 23:34:34 2020 +0000

    Backport Fix patchable-function-entry on arc
    
    The problem here is arc looks at current_output_insn unconditional
    but sometimes current_output_insn is NULL.  With patchable-function-entry,
    it will be. This is similar to how the nios2, handles "%.".
    
    Committed as obvious after a simple test with -fpatchable-function-entry=1.
    
    gcc/ChangeLog
    2021-10-07  Giuliano Belinassi  <gbelinassi@suse.de>
    
            Backport from mainline
            2020-01-22  Andrew Pinski  <apinski@marvell.com>
    
            * config/arc/arc.c (output_short_suffix): Check insn for nullness.

Diff:
---
 gcc/config/arc/arc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 92fecad93d9..5e92983929d 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -4195,6 +4195,8 @@ static void
 output_short_suffix (FILE *file)
 {
   rtx_insn *insn = current_output_insn;
+  if (!insn)
+    return;
 
   if (arc_verify_short (insn, cfun->machine->unalign, 1))
     {


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

* [gcc(refs/users/giulianob/heads/pfe_backport_clean)] Backport Fix patchable-function-entry on arc
@ 2021-10-19 18:40 Giuliano Belinassi
  0 siblings, 0 replies; 2+ messages in thread
From: Giuliano Belinassi @ 2021-10-19 18:40 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8387783b66844e2ec2bcce0758088b309ab8559a

commit 8387783b66844e2ec2bcce0758088b309ab8559a
Author: Andrew Pinski <apinski@marvell.com>
Date:   Wed Jan 22 23:34:34 2020 +0000

    Backport Fix patchable-function-entry on arc
    
    The problem here is arc looks at current_output_insn unconditional
    but sometimes current_output_insn is NULL.  With patchable-function-entry,
    it will be. This is similar to how the nios2, handles "%.".
    
    Committed as obvious after a simple test with -fpatchable-function-entry=1.
    
    gcc/ChangeLog
    2021-10-07  Giuliano Belinassi  <gbelinassi@suse.de>
    
            Backport from mainline
            2020-01-22  Andrew Pinski  <apinski@marvell.com>
    
            * config/arc/arc.c (output_short_suffix): Check insn for nullness.

Diff:
---
 gcc/config/arc/arc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 92fecad93d9..5e92983929d 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -4195,6 +4195,8 @@ static void
 output_short_suffix (FILE *file)
 {
   rtx_insn *insn = current_output_insn;
+  if (!insn)
+    return;
 
   if (arc_verify_short (insn, cfun->machine->unalign, 1))
     {


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

end of thread, other threads:[~2021-10-21 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 14:49 [gcc(refs/users/giulianob/heads/pfe_backport_clean)] Backport Fix patchable-function-entry on arc Giuliano Belinassi
  -- strict thread matches above, loose matches on Subject: below --
2021-10-19 18:40 Giuliano Belinassi

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).