This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, committed] Unbreak the JIT after conversion of md_asm_adjust to use vec<>


The patch:
  https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00600.html

broke the build of the jit:

In file included from ../../src/gcc/jit/jit-builtins.c:23:0:
../../src/gcc/target.h:188:60: error: expected â;â at end of member declaration
 #define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT) TYPE (* NAME) PARAMS;
                                                            ^
../../src/gcc/target.def:3747:1: note: in expansion of macro âDEFHOOKâ
 DEFHOOK
 ^
../../src/gcc/target.def:3758:6: error: expected â)â before â<â token
  (vec<rtx>& outputs, vec<rtx>& inputs, vec<const char *>& constraints,
      ^
../../src/gcc/target.h:188:62: note: in definition of macro âDEFHOOKâ
 #define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT) TYPE (* NAME) PARAMS;
                                                              ^

The fix is trivial, to include vec.h in jit-builtins.c before including
target.h.

Committed to trunk as r223091.

gcc/jit/ChangeLog:
	* jit-builtins.c: Include vec.h before target.h.
---
 gcc/jit/jit-builtins.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/jit/jit-builtins.c b/gcc/jit/jit-builtins.c
index 5bf4a67..a29f446 100644
--- a/gcc/jit/jit-builtins.c
+++ b/gcc/jit/jit-builtins.c
@@ -20,6 +20,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
+#include "vec.h"
 #include "target.h"
 #include "stringpool.h"
 
-- 
1.8.5.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]