[#29190] AIXでのコンパイル (オプションの統一など) — "Yutaka Kanemoto" <kinpoco@...>

金本ともうします。

21 messages 2006/08/06

[#29200] Re: [ruby-cvs:17336] ruby/lib/date: * lib/date/format.rb: specify maximum number of digits to parse — Tadayoshi Funaba <tadf@...>

ふなばです。

9 messages 2006/08/07

[#29252] 1.8.5への最終コミット — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

14 messages 2006/08/10

[#29284] CGI#out で MIMEエンコード文字列がデコードされる — とみたまさひろ <tommy@...>

とみたです。

26 messages 2006/08/17
[#29285] Re: CGI#out で MIMEエンコード文字列がデコードされる — Takahiro Kambe <taca@...> 2006/08/17

In message <20060817182312.adce9ff7.tommy@tmtm.org>

[#29286] Re: CGI#out で MIMEエンコード文字列がデコードされる — とみたまさひろ <tommy@...> 2006/08/17

とみたです。

[#29287] Re: CGI#out で MIMEエンコード文字列がデコードされる — Fujioka <fuj@...> 2006/08/17

藤岡です。

[#29288] Re: CGI#out で MIMEエンコード文字列がデコードされる — Fujioka <fuj@...> 2006/08/17

藤岡です。

[#29290] Re: CGI#out で MIMEエンコード文字列がデコードされる — Yukihiro Matsumoto <matz@...> 2006/08/17

まつもと ゆきひろです

[#29292] Re: CGI#out で MIMEエンコード文字列がデコードされる — Fujioka <fuj@...> 2006/08/17

藤岡です。

[#29291] ruby 1.8.5 preview4 — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

21 messages 2006/08/17
[#29314] Re: ruby 1.8.5 preview4 — URABE Shyouhei <root@...> 2006/08/18

卜部です。

[#29319] Re: ruby 1.8.5 preview4 — Yukihiro Matsumoto <matz@...> 2006/08/19

[#29321] Re: ruby 1.8.5 preview4 — URABE Shyouhei <root@...> 2006/08/19

卜部です。

[ruby-dev:29191] AIXでのコンパイル (ワーニングの抑制)

From: "Yutaka Kanemoto" <kinpoco@...>
Date: 2006-08-06 16:46:07 UTC
List: ruby-dev #29191
金本ともうします。

たびたびすみません。
現在、AIXで、コンパイルのたびに#pragma allocaというものに対してワーニングが出てしまいます。
添付のパッチで抑えられます。
現状のソースでできるだけ他のプラットフォームに影響が出ないようにしつつ、古めのAIX(4.3.3)でも対応できるように変更したつもりです。

よろしくおねがいします。
#すみません。今気づいたのですが先ほどのメールのpatchでdiffで-uを付け忘れてしまいました。
#必要であれば変更後に再送させていただきます。申し訳ありません。
-- 
Yutaka KANEMOTO
http://d.hatena.ne.jp/kinpoco/

Attachments (1)

alloca.patch (2.45 KB, text/x-diff)
Index: dln.c
===================================================================
RCS file: /src/ruby/dln.c,v
retrieving revision 1.59.2.9
diff -u -r1.59.2.9 dln.c
--- dln.c	25 Jan 2006 13:30:10 -0000	1.59.2.9
+++ dln.c	6 Aug 2006 16:41:16 -0000
@@ -27,10 +27,6 @@
 char *dln_argv0;
 #endif
 
-#ifdef _AIX
-#pragma alloca
-#endif
-
 #if defined(HAVE_ALLOCA_H)
 #include <alloca.h>
 #endif
Index: eval.c
===================================================================
RCS file: /src/ruby/eval.c,v
retrieving revision 1.616.2.189
diff -u -r1.616.2.189 eval.c
--- eval.c	1 Aug 2006 03:25:14 -0000	1.616.2.189
+++ eval.c	6 Aug 2006 16:41:16 -0000
@@ -53,9 +53,7 @@
 # ifdef HAVE_ALLOCA_H
 #  include <alloca.h>
 # else
-#  ifdef _AIX
- #pragma alloca
-#  else
+#  ifndef _AIX
 #   ifndef alloca /* predefined by HP cc +Olibcalls */
 void *alloca ();
 #   endif
Index: gc.c
===================================================================
RCS file: /src/ruby/gc.c,v
retrieving revision 1.168.2.43
diff -u -r1.168.2.43 gc.c
--- gc.c	14 Jul 2006 17:12:47 -0000	1.168.2.43
+++ gc.c	6 Aug 2006 16:41:16 -0000
@@ -66,9 +66,7 @@
 # ifdef HAVE_ALLOCA_H
 #  include <alloca.h>
 # else
-#  ifdef _AIX
- #pragma alloca
-#  else
+#  ifndef _AIX
 #   ifndef alloca /* predefined by HP cc +Olibcalls */
 void *alloca ();
 #   endif
Index: regex.c
===================================================================
RCS file: /src/ruby/Attic/regex.c,v
retrieving revision 1.96.2.8
diff -u -r1.96.2.8 regex.c
--- regex.c	24 Apr 2006 15:15:21 -0000	1.96.2.8
+++ regex.c	6 Aug 2006 16:41:16 -0000
@@ -84,16 +84,19 @@
 #  endif
 # endif /* atarist */
 #else
-# if defined(HAVE_ALLOCA_H)
+# ifdef HAVE_ALLOCA_H
 #  include <alloca.h>
-# elif !defined(alloca)
-char *alloca();
-# endif
-#endif /* __GNUC__ */
+# else
+#  ifdef _AIX
+ #pragma alloca
+#  else
+#   ifndef alloca /* predefined by HP cc +Olibcalls */
+void *alloca ();
+#   endif
+#  endif /* AIX */
+# endif /* HAVE_ALLOCA_H */
 
-#ifdef _AIX
-#pragma alloca
-#endif
+#endif /* __GNUC__ */
 
 #ifdef HAVE_STRING_H
 # include <string.h>
Index: ruby.h
===================================================================
RCS file: /src/ruby/ruby.h,v
retrieving revision 1.97.2.20
diff -u -r1.97.2.20 ruby.h
--- ruby.h	31 Jul 2006 06:34:10 -0000	1.97.2.20
+++ ruby.h	6 Aug 2006 16:41:16 -0000
@@ -65,10 +65,10 @@
 
 #if defined(HAVE_ALLOCA_H)
 #include <alloca.h>
-#endif
-
-#ifdef _AIX
+#else
+#  ifdef _AIX
 #pragma alloca
+#  endif
 #endif
 
 #if defined(__VMS)

In This Thread

Prev Next