artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe52019
)
inform that diagnostics in functions won't work, but don't error out
author
espie
<espie@openbsd.org>
Fri, 20 Jul 2018 10:02:03 +0000
(10:02 +0000)
committer
espie
<espie@openbsd.org>
Fri, 20 Jul 2018 10:02:03 +0000
(10:02 +0000)
flatly.
this will help sparc64 compile code without needing to patch away recent
pragma diagnostic use.
problem found by landry@
okay kettenis@, guenther@
gnu/gcc/gcc/c-pragma.c
patch
|
blob
|
history
diff --git
a/gnu/gcc/gcc/c-pragma.c
b/gnu/gcc/gcc/c-pragma.c
index
b2712ac
..
3f9c7ea
100644
(file)
--- a/
gnu/gcc/gcc/c-pragma.c
+++ b/
gnu/gcc/gcc/c-pragma.c
@@
-691,7
+691,7
@@
handle_pragma_diagnostic(cpp_reader *ARG_UNUSED(dummy))
if (cfun)
{
-
error ("#pragma GCC diagnostic not allow
ed inside functions");
+
warning (OPT_Wpragmas, "#pragma GCC diagnostic ignor
ed inside functions");
return;
}