fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1diff --git a/gcc/vhdl/Make-lang.in b/gcc/vhdl/Make-lang.in
2index 8f481df..681ac59 100644
3--- a/gcc/vhdl/Make-lang.in
4+++ b/gcc/vhdl/Make-lang.in
5@@ -96,7 +96,7 @@ AGCC_GCCOBJ_DIR=../
6 AGCC_INC_FLAGS=-I$(AGCC_GCCOBJ_DIR)/gcc -I$(AGCC_GCCSRC_DIR)/include \
7 -I$(AGCC_GCCSRC_DIR)/gcc -I$(AGCC_GCCSRC_DIR)/gcc/config \
8 -I$(AGCC_GCCSRC_DIR)/libcpp/include
9-AGCC_CFLAGS=-g -Wall -DIN_GCC $(AGCC_INC_FLAGS)
10+AGCC_CFLAGS=-g -Wall -DIN_GCC $(AGCC_INC_FLAGS) $(CFLAGS) $(INCLUDES)
11
12 AGCC_LOCAL_OBJS=ortho-lang.o
13
14@@ -140,7 +140,7 @@ ghdl$(exeext): force
15
16 # Ghdl libraries.
17 ghdllib: ghdl$(exeext) $(GCC_PASSES) force
18- $(MAKE_IN_VHDL) GRT_FLAGS="-O -g" ghdllib
19+ $(MAKE_IN_VHDL) GRT_FLAGS="-O -g $(CFLAGS)" ghdllib
20
21 # Build hooks:
22
23diff --git a/gcc/vhdl/Makefile.in b/gcc/vhdl/Makefile.in
24index d754c6c..07abc4a 100644
25--- a/gcc/vhdl/Makefile.in
26+++ b/gcc/vhdl/Makefile.in
27@@ -80,7 +80,8 @@ T_CPPFLAGS =
28 X_ADAFLAGS =
29 T_ADAFLAGS =
30
31-ADAC = $(CC)
32+# Never use the bootstrapped compiler, as it may not be built for ada
33+ADAC = gcc
34
35 ECHO = echo
36 CHMOD = chmod
37diff --git a/gcc/vhdl/ortho-lang.c b/gcc/vhdl/ortho-lang.c
38index 84aeb92..8eddd42 100644
39--- a/gcc/vhdl/ortho-lang.c
40+++ b/gcc/vhdl/ortho-lang.c
41@@ -16,6 +16,7 @@
42 #include "options.h"
43 #include "real.h"
44-#include "tree-gimple.h"
45+#include "gimple.h"
46+#include "tree.h"
47 #include "function.h"
48 #include "cgraph.h"
49 #include "target.h"
50@@ -680,38 +681,10 @@ type_for_mode (enum machine_mode mode, int unsignedp)
51
52 const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
53
54-/* Tree code classes. */
55-
56-#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) TYPE,
57-
58-const enum tree_code_class tree_code_type[] = {
59-#include "tree.def"
60- 'x'
61-};
62-#undef DEFTREECODE
63-
64-/* Table indexed by tree code giving number of expression
65- operands beyond the fixed part of the node structure.
66- Not used for types or decls. */
67-
68-#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) LENGTH,
69-
70-const unsigned char tree_code_length[] = {
71-#include "tree.def"
72- 0
73-};
74-#undef DEFTREECODE
75-
76-#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) NAME,
77-const char * const tree_code_name[] = {
78-#include "tree.def"
79- "@@dummy"
80-};
81-#undef DEFTREECODE
82
83 union lang_tree_node
84 GTY((desc ("0"),
85- chain_next ("(union lang_tree_node *) GENERIC_NEXT (&%h.generic)")))
86+ chain_next ("(union lang_tree_node *) TREE_CHAIN (&%h.generic)")))
87 {
88 union tree_node GTY ((tag ("0"))) generic;
89 };
90@@ -1162,7 +1135,7 @@ new_access_type (tree dtype)
91 res = make_node (POINTER_TYPE);
92 TREE_TYPE (res) = NULL_TREE;
93 /* Seems necessary. */
94- TYPE_MODE (res) = Pmode;
95+ SET_TYPE_MODE (res, Pmode);
96 layout_type (res);
97 return res;
98 }
99diff --git a/gcc/vhdl/Make-lang.in b/gcc/vhdl/Make-lang.in
100index e201f64..f36fb97 100644
101--- a/gcc/vhdl/Make-lang.in
102+++ b/gcc/vhdl/Make-lang.in
103@@ -132,7 +132,7 @@ ghdl1$(exeext): $(AGCC_OBJS) $(AGCC_DEPS) force
104 -cargs $(CFLAGS) $(GHDL_ADAFLAGS)
105 $(GNATMAKE) -o $@ -aI$(srcdir)/vhdl -aOvhdl ortho_gcc-main \
106 -bargs -E -cargs $(CFLAGS) $(GHDL_ADAFLAGS) \
107- -largs $(AGCC_OBJS) $(LIBS) $(GMPLIBS)
108+ -largs $(AGCC_OBJS) $(LIBS) $(GMPLIBS) $(CLOOGLIBS) $(PPLLIBS)
109
110 # The driver for ghdl.
111 ghdl$(exeext): force