• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision1712e1d4f7d73b741c8390e11c10d1e162650874 (tree)
l'heure2012-01-26 23:28:31
AuteurJakub Jelinek <jakub@redh...>
CommiterJakub Jelinek

Message de Log

* make-relative-prefix.c (make_relative_prefix_1): Avoid warning
about using preprocessor directives inside of macro arguments.

Change Summary

Modification

--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
1+2012-01-26 Jakub Jelinek <jakub@redhat.com>
2+
3+ * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
4+ about using preprocessor directives inside of macro arguments.
5+
16 2012-01-22 Douglas B Rupp <rupp@gnat.com>
27
38 * configure: Regenerate.
--- a/libiberty/make-relative-prefix.c
+++ b/libiberty/make-relative-prefix.c
@@ -248,14 +248,15 @@ make_relative_prefix_1 (const char *progname, const char *bin_prefix,
248248 {
249249 char *startp, *endp, *nstore;
250250 size_t prefixlen = strlen (temp) + 1;
251+ size_t len;
251252 if (prefixlen < 2)
252253 prefixlen = 2;
253254
254- nstore = (char *) alloca (prefixlen + strlen (progname) + 1
255+ len = prefixlen + strlen (progname) + 1;
255256 #ifdef HAVE_HOST_EXECUTABLE_SUFFIX
256- + strlen (HOST_EXECUTABLE_SUFFIX)
257+ len += strlen (HOST_EXECUTABLE_SUFFIX);
257258 #endif
258- );
259+ nstore = (char *) alloca (len);
259260
260261 startp = endp = temp;
261262 while (1)