[前][次][番号順一覧][スレッド一覧]

ruby-changes:50251

From: k0kubun <ko1@a...>
Date: Sun, 11 Feb 2018 21:28:14 +0900 (JST)
Subject: [ruby-changes:50251] k0kubun:r62369 (trunk): mjit.c: some flags are no longer for GCC

k0kubun	2018-02-11 21:28:10 +0900 (Sun, 11 Feb 2018)

  New Revision: 62369

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62369

  Log:
    mjit.c: some flags are no longer for GCC
    
    Obviously they are for clang. For simplicity, just inlined them.
    
    Also another obsoleted commant was removed.

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 62368)
+++ mjit.c	(revision 62369)
@@ -562,14 +562,6 @@ free_list(struct rb_mjit_unit_list *list https://github.com/ruby/ruby/blob/trunk/mjit.c#L562
 
 #include "mjit_config.h"
 
-/* XXX_COMMONN_ARGS define the command line arguments of XXX C
-   compiler used by MJIT.
-
-   XXX_EMIT_PCH_ARGS define additional options to generate the
-   precomiled header.
-
-   XXX_USE_PCH_ARAGS define additional options to use the precomiled
-   header.  */
 static const char *const CC_DEBUG_ARGS[] = {MJIT_DEBUGFLAGS NULL};
 static const char *const CC_OPTIMIZE_ARGS[] = {MJIT_OPTFLAGS NULL};
 
@@ -588,11 +580,6 @@ static const char *const CC_COMMON_ARGS[ https://github.com/ruby/ruby/blob/trunk/mjit.c#L580
 static const char *const CC_LDSHARED_ARGS[] = {MJIT_LDSHARED GCC_PIC_FLAGS NULL};
 static const char *const CC_DLDFLAGS_ARGS[] = {MJIT_DLDFLAGS NULL};
 
-#ifdef __clang__
-static const char GCC_USE_PCH_ARGS[] = "-include-pch";
-static const char GCC_EMIT_PCH_ARGS[] = "-emit-pch";
-#endif
-
 #define CC_CODEFLAG_ARGS (mjit_opts.debug ? CC_DEBUG_ARGS : CC_OPTIMIZE_ARGS)
 /* Status of the the precompiled header creation.  The status is
    shared by the workers and the pch thread.  */
@@ -609,7 +596,7 @@ make_pch(void) https://github.com/ruby/ruby/blob/trunk/mjit.c#L596
 #else
     const char *rest_args[] = {
 # ifdef __clang__
-        GCC_EMIT_PCH_ARGS,
+        "-emit-pch",
 # endif
         "-o", pch_file, header_file,
         NULL,
@@ -655,7 +642,7 @@ compile_c_to_so(const char *c_file, cons https://github.com/ruby/ruby/blob/trunk/mjit.c#L642
     int exit_code;
     const char *files[] = {
 #ifdef __clang__
-        GCC_USE_PCH_ARGS, NULL,
+        "-include-pch", NULL,
 #endif
 #ifndef _MSC_VER
         "-o",

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]