projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d62c8c7
)
d: fix thinko in optimize attr parsing
author
Martin Liska
<mliska@suse.cz>
Sun, 28 Nov 2021 08:39:40 +0000
(09:39 +0100)
committer
Martin Liska
<mliska@suse.cz>
Sun, 28 Nov 2021 08:39:40 +0000
(09:39 +0100)
gcc/d/ChangeLog:
* d-attribs.cc (parse_optimize_options): Fix thinko.
gcc/d/d-attribs.cc
patch
|
blob
|
history
diff --git
a/gcc/d/d-attribs.cc
b/gcc/d/d-attribs.cc
index
1ec8005
..
b79cf96
100644
(file)
--- a/
gcc/d/d-attribs.cc
+++ b/
gcc/d/d-attribs.cc
@@
-854,7
+854,7
@@
parse_optimize_options (tree args)
{
unsigned opt_index = decoded_options[i].opt_index;
if (opt_index >= cl_options_count
-
&&
! (cl_options[opt_index].flags & CL_OPTIMIZATION))
+
||
! (cl_options[opt_index].flags & CL_OPTIMIZATION))
{
ret = false;
warning (OPT_Wattributes,