ruby-changes:23987
From: shyouhei <ko1@a...>
Date: Tue, 12 Jun 2012 18:41:20 +0900 (JST)
Subject: [ruby-changes:23987] shyouhei:r36038 (trunk): * configure.in: enable strict ANSI mode by default in case of GCC,
shyouhei 2012-06-12 18:41:07 +0900 (Tue, 12 Jun 2012) New Revision: 36038 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36038 Log: * configure.in: enable strict ANSI mode by default in case of GCC, requested by _ko1. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 36037) +++ configure.in (revision 36038) @@ -584,6 +584,7 @@ warnflags= fi if test "$GCC" = yes; then + test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-ggdb3, [debugflags=-ggdb])} test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-ggdb, [debugflags=-ggdb])} test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-g3, [debugflags=-g3])} @@ -607,6 +608,12 @@ RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector) fi + # ANSI (no XCFLAGS because this is C only) + RUBY_TRY_CFLAGS(-ansi -std=iso9899:199409, [ + RUBY_APPEND_OPTION(warnflags, -ansi -std=iso9899:199409) + RUBY_APPEND_OPTION(rb_cv_warnflags, -ansi -std=iso9899:199409) + ]) + # suppress annoying -Wstrict-overflow warnings RUBY_TRY_CFLAGS(-fno-strict-overflow, [RUBY_APPEND_OPTION(XCFLAGS, -fno-strict-overflow)]) fi Index: ChangeLog =================================================================== --- ChangeLog (revision 36037) +++ ChangeLog (revision 36038) @@ -1,3 +1,8 @@ +Tue Jun 12 18:39:59 2012 URABE Shyouhei <shyouhei@r...> + + * configure.in: enable strict ANSI mode by default in case of GCC, + requested by _ko1. + Tue Jun 12 06:40:23 2012 Tanaka Akira <akr@f...> * process.c (rb_exec_fillarg): detect '#' as a meta character. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/