public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/PR103696-fix-combined-pragma)] A fix attempt.
@ 2021-12-15 16:28 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-12-15 16:28 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:924c45d3a7c5856ff6ddabae2d85e8361b62b86e

commit 924c45d3a7c5856ff6ddabae2d85e8361b62b86e
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Dec 15 17:27:56 2021 +0100

    A fix attempt.

Diff:
---
 gcc/attribs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/attribs.c b/gcc/attribs.c
index 01a9ed66485..29703e75fba 100644
--- a/gcc/attribs.c
+++ b/gcc/attribs.c
@@ -605,7 +605,8 @@ decl_attributes (tree *node, tree attributes, int flags,
     }
 
   if (TREE_CODE (*node) == FUNCTION_DECL
-      && optimization_current_node != optimization_default_node
+      && (optimization_current_node != optimization_default_node
+	  || target_option_current_node != target_option_default_node)
       && !DECL_FUNCTION_SPECIFIC_OPTIMIZATION (*node))
     {
       DECL_FUNCTION_SPECIFIC_OPTIMIZATION (*node) = optimization_current_node;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-15 16:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15 16:28 [gcc(refs/users/marxin/heads/PR103696-fix-combined-pragma)] A fix attempt Martin Liska

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