mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rohieb@rohieb.name>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <post@lespocky.de>, Roland Hieber <rohieb@rohieb.name>
Subject: [ptxdist] [PATCH 2/2] m4: make it build with ICECC again
Date: Fri, 26 Apr 2019 19:49:44 +0200	[thread overview]
Message-ID: <20190426174944.20947-2-rohieb@rohieb.name> (raw)
In-Reply-To: <20190426174944.20947-1-rohieb@rohieb.name>

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
---
 ...nt-warnings-when-building-with-ICECC.patch | 39 +++++++++++++++++++
 patches/m4-1.4.18/series                      |  3 +-
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 patches/m4-1.4.18/0002-HACK-prevent-warnings-when-building-with-ICECC.patch

diff --git a/patches/m4-1.4.18/0002-HACK-prevent-warnings-when-building-with-ICECC.patch b/patches/m4-1.4.18/0002-HACK-prevent-warnings-when-building-with-ICECC.patch
new file mode 100644
index 000000000..979106910
--- /dev/null
+++ b/patches/m4-1.4.18/0002-HACK-prevent-warnings-when-building-with-ICECC.patch
@@ -0,0 +1,39 @@
+From: Roland Hieber <rohieb@rohieb.name>
+Date: Fri, 26 Apr 2019 19:11:19 +0200
+Subject: [PATCH] HACK: prevent warnings when building with ICECC
+
+If ICECC is enabled, -fdirectives-only is apparently always used, which
+leads to errors like
+
+    verify.h:161:31: error: __COUNTER__ expanded inside directive with -fdirectives-only
+
+when compiling host-m4.  _GL_COUNTER is not used anywhere in the code
+base, so remove it to get rid of this error.
+
+Bug-ICECC: https://github.com/icecc/icecream/issues/414
+Forwarded: not-needed
+---
+ lib/verify.h | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+diff --git a/lib/verify.h b/lib/verify.h
+index 5c8381d2906a..40334ceb7c4a 100644
+--- a/lib/verify.h
++++ b/lib/verify.h
+@@ -154,16 +154,6 @@
+ #define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y)
+ #define _GL_CONCAT0(x, y) x##y
+ 
+-/* _GL_COUNTER is an integer, preferably one that changes each time we
+-   use it.  Use __COUNTER__ if it works, falling back on __LINE__
+-   otherwise.  __LINE__ isn't perfect, but it's better than a
+-   constant.  */
+-#if defined __COUNTER__ && __COUNTER__ != __COUNTER__
+-# define _GL_COUNTER __COUNTER__
+-#else
+-# define _GL_COUNTER __LINE__
+-#endif
+-
+ /* Generate a symbol with the given prefix, making it unique if
+    possible.  */
+ #define _GL_GENSYM(prefix) _GL_CONCAT (prefix, _GL_COUNTER)
diff --git a/patches/m4-1.4.18/series b/patches/m4-1.4.18/series
index c9993f086..4432c70dc 100644
--- a/patches/m4-1.4.18/series
+++ b/patches/m4-1.4.18/series
@@ -1,4 +1,5 @@
 # generated by git-ptx-patches
 #tag:base --start-number 1
 0001-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
-# b03bed9248af170f04892265a5918d5b  - git-ptx-patches magic
+0002-HACK-prevent-warnings-when-building-with-ICECC.patch
+# bf804d896c85607d3736444a83133fe2  - git-ptx-patches magic
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2019-04-26 17:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-26 17:49 [ptxdist] [PATCH 1/2] m4: re-export patches with git-ptx-patches Roland Hieber
2019-04-26 17:49 ` Roland Hieber [this message]
2019-04-26 18:42   ` [ptxdist] [PATCH 2/2] m4: make it build with ICECC again Roland Hieber
2019-04-26 19:08     ` Alexander Dahl
2019-04-26 19:16       ` Roland Hieber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190426174944.20947-2-rohieb@rohieb.name \
    --to=rohieb@rohieb.name \
    --cc=post@lespocky.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox