Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Commit 51d111f

Browse files
committed
Update frontend to 2.066
1 parent 8296d8b commit 51d111f

333 files changed

Lines changed: 76142 additions & 69597 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

gcc.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcc-5-20140831
1+
gcc-5-20140921

gcc/d/Make-lang.in

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,17 @@ D_DMD_H := \
4343
d/dfrontend/import.h d/dfrontend/init.h d/dfrontend/intrange.h \
4444
d/dfrontend/json.h d/dfrontend/lexer.h d/dfrontend/macro.h \
4545
d/dfrontend/mars.h d/dfrontend/module.h d/dfrontend/mtype.h \
46-
d/dfrontend/object.h d/dfrontend/outbuffer.h d/dfrontend/parse.h \
47-
d/dfrontend/port.h d/dfrontend/rmem.h d/dfrontend/root.h \
48-
d/dfrontend/scope.h d/dfrontend/speller.h d/dfrontend/statement.h \
49-
d/dfrontend/staticassert.h d/dfrontend/stringtable.h \
50-
d/dfrontend/target.h d/dfrontend/template.h d/dfrontend/utf.h \
46+
d/dfrontend/nspace.h d/dfrontend/object.h d/dfrontend/outbuffer.h \
47+
d/dfrontend/parse.h d/dfrontend/port.h d/dfrontend/rmem.h \
48+
d/dfrontend/root.h d/dfrontend/scope.h d/dfrontend/speller.h \
49+
d/dfrontend/statement.h d/dfrontend/staticassert.h \
50+
d/dfrontend/stringtable.h d/dfrontend/target.h \
51+
d/dfrontend/template.h d/dfrontend/utf.h \
5152
d/dfrontend/version.h d/dfrontend/visitor.h \
5253
d/d-dmd-gcc.h d/longdouble.h d/id.h d/verstr.h
5354

5455
D_TREE_H = $(TREE_H) $(D_DMD_H) d/d-intrinsics.def d/d-tree.def \
55-
d/d-lang.h d/d-codegen.h d/d-objfile.h d/d-irstate.h \
56+
d/d-lang.h d/d-codegen.h d/d-objfile.h d/irstate.h \
5657
d/d-dmd-gcc.h d/d-system.h d/longdouble.h coretypes.h function.h \
5758
$(VARRAY_H) $(SYSTEM_H) $(CONFIG_H) $(TARGET_H) $(GGC_H) \
5859
$(srcdir)/../include/hashtab.h $(srcdir)/../include/splay-tree.h
@@ -107,27 +108,28 @@ D_DMD_OBJS := \
107108
d/canthrow.dmd.o d/cast.dmd.o d/class.dmd.o \
108109
d/clone.dmd.o d/cond.dmd.o d/constfold.dmd.o d/cppmangle.dmd.o \
109110
d/ctfeexpr.dmd.o d/declaration.dmd.o d/delegatize.dmd.o d/doc.dmd.o \
110-
d/dsymbol.dmd.o d/dump.dmd.o d/entity.dmd.o d/enum.dmd.o \
111+
d/dsymbol.dmd.o d/entity.dmd.o d/enum.dmd.o \
111112
d/expression.dmd.o d/file.dmd.o d/filename.dmd.o d/func.dmd.o \
112113
d/hdrgen.dmd.o d/identifier.dmd.o d/imphint.dmd.o d/import.dmd.o \
113-
d/init.dmd.o d/inline.dmd.o d/interpret.dmd.o d/intrange.dmd.o \
114+
d/init.dmd.o d/interpret.dmd.o d/intrange.dmd.o \
114115
d/json.dmd.o d/lexer.dmd.o d/macro.dmd.o d/mangle.dmd.o \
115-
d/mtype.dmd.o d/module.dmd.o d/object.dmd.o d/opover.dmd.o \
116-
d/optimize.dmd.o d/outbuffer.dmd.o d/parse.dmd.o d/rmem.dmd.o \
117-
d/sapply.dmd.o d/scope.dmd.o d/sideeffect.dmd.o \
118-
d/speller.dmd.o d/statement.dmd.o d/staticassert.dmd.o \
119-
d/stringtable.dmd.o d/struct.dmd.o d/template.dmd.o d/traits.dmd.o \
120-
d/unittests.dmd.o d/utf.dmd.o d/version.dmd.o
116+
d/mtype.dmd.o d/module.dmd.o d/nogc.dmd.o d/nspace.dmd.o \
117+
d/object.dmd.o d/opover.dmd.o d/optimize.dmd.o d/outbuffer.dmd.o \
118+
d/parse.dmd.o d/rmem.dmd.o d/sapply.dmd.o d/scope.dmd.o \
119+
d/sideeffect.dmd.o d/speller.dmd.o d/statement.dmd.o \
120+
d/staticassert.dmd.o d/stringtable.dmd.o d/struct.dmd.o \
121+
d/template.dmd.o d/traits.dmd.o d/unittests.dmd.o \
122+
d/utf.dmd.o d/version.dmd.o
121123

122124
D_GENERATED_SRCS = d/id.c d/id.h d/impcnvtab.c
123125
D_GENERATED_OBJS = d/id.gen.o d/impcnvtab.gen.o
124126

125127
# D Glue sources
126-
D_GLUE_OBJS = d/d-lang.glue.o d/d-decls.glue.o d/d-codegen.glue.o \
127-
d/d-objfile.glue.o d/d-irstate.glue.o \
128-
d/d-convert.glue.o d/d-todt.glue.o d/d-longdouble.glue.o \
128+
D_GLUE_OBJS = d/d-lang.glue.o d/decls.glue.o d/d-codegen.glue.o \
129+
d/d-objfile.glue.o d/irstate.glue.o \
130+
d/d-convert.glue.o d/init.glue.o d/d-longdouble.glue.o \
129131
d/d-gt.cglue.o d/d-builtins.glue.o d/d-asmstmt.glue.o \
130-
d/d-incpath.glue.o d/d-ctype.glue.o d/d-elem.glue.o \
132+
d/d-incpath.glue.o d/ctype.glue.o d/expr.glue.o \
131133
d/toir.glue.o d/d-typinf.glue.o d/d-port.glue.o \
132134
d/d-target.glue.o d/d-glue.glue.o
133135

@@ -176,14 +178,14 @@ d/d-incpath.glue.o: d/d-incpath.cc $(D_TREE_H) d/d-confdefs.h
176178
d/id.gen.o: d/id.c $(D_DMD_H)
177179
d/impcnvtab.gen.o: d/impcnvtab.c $(D_DMD_H)
178180
d/d-lang.glue.o: d/d-lang.cc $(D_TREE_H) d/d-confdefs.h options.h
179-
d/d-irstate.glue.o: d/d-irstate.cc $(D_TREE_H)
181+
d/irstate.glue.o: d/irstate.cc $(D_TREE_H)
180182
d/d-codegen.glue.o: d/d-codegen.cc $(D_TREE_H)
181-
d/d-decls.glue.o: d/d-decls.cc $(D_TREE_H)
182-
d/d-ctype.glue.o: d/d-ctype.cc $(D_TREE_H)
183-
d/d-elem.glue.o: d/d-elem.cc $(D_TREE_H)
183+
d/decls.glue.o: d/decls.cc $(D_TREE_H)
184+
d/ctype.glue.o: d/ctype.cc $(D_TREE_H)
185+
d/expr.glue.o: d/expr.cc $(D_TREE_H)
184186
d/toir.glue.o: d/toir.cc $(D_TREE_H)
185187
d/d-convert.glue.o: d/d-convert.cc $(D_TREE_H)
186-
d/d-todt.glue.o: d/d-todt.cc $(D_TREE_H)
188+
d/init.glue.o: d/init.cc $(D_TREE_H)
187189
d/d-typinf.glue.o: d/d-typinf.cc $(D_TREE_H)
188190
d/d-longdouble.glue.o: d/d-longdouble.cc d/longdouble.h $(D_TREE_H)
189191
d/d-port.glue.o: d/d-port.cc d/dfrontend/port.h $(D_TREE_H)

gcc/d/d-ctype.cc renamed to gcc/d/ctype.cc

Lines changed: 15 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "dfrontend/target.h"
2525

2626
type *
27-
Type::toCtype (void)
27+
Type::toCtype()
2828
{
2929
if (!ctype)
3030
{
@@ -162,13 +162,7 @@ Type::toCtype (void)
162162
}
163163

164164
type *
165-
Type::toCParamtype (void)
166-
{
167-
return toCtype();
168-
}
169-
170-
type *
171-
TypeTypedef::toCtype (void)
165+
TypeTypedef::toCtype()
172166
{
173167
if (!ctype)
174168
{
@@ -201,13 +195,7 @@ TypeTypedef::toCtype (void)
201195
}
202196

203197
type *
204-
TypeTypedef::toCParamtype (void)
205-
{
206-
return toCtype();
207-
}
208-
209-
type *
210-
TypeEnum::toCtype (void)
198+
TypeEnum::toCtype()
211199
{
212200
if (!ctype)
213201
{
@@ -278,7 +266,7 @@ TypeEnum::toCtype (void)
278266
}
279267

280268
type *
281-
TypeStruct::toCtype (void)
269+
TypeStruct::toCtype()
282270
{
283271
if (!ctype)
284272
{
@@ -315,14 +303,16 @@ TypeStruct::toCtype (void)
315303
return ctype;
316304
}
317305

306+
#if 0
318307
Symbol *
319-
TypeClass::toSymbol (void)
308+
TypeClass::toSymbol()
320309
{
321310
return sym->toSymbol();
322311
}
312+
#endif
323313

324314
type *
325-
TypeFunction::toCtype (void)
315+
TypeFunction::toCtype()
326316
{
327317
if (!ctype)
328318
{
@@ -407,21 +397,8 @@ TypeFunction::toCtype (void)
407397
return ctype;
408398
}
409399

410-
RET
411-
TypeFunction::retStyle (void)
412-
{
413-
/* Return by reference or pointer. */
414-
if (isref || next->ty == Tclass || next->ty == Tpointer)
415-
return RETregs;
416-
417-
/* Need the ctype to determine this, but this is called from
418-
the front end before semantic processing is finished. An
419-
accurate value is not currently needed anyway. */
420-
return RETstack;
421-
}
422-
423400
type *
424-
TypeVector::toCtype (void)
401+
TypeVector::toCtype()
425402
{
426403
if (!ctype)
427404
{
@@ -454,7 +431,7 @@ TypeVector::toCtype (void)
454431
}
455432

456433
type *
457-
TypeSArray::toCtype (void)
434+
TypeSArray::toCtype()
458435
{
459436
if (!ctype)
460437
{
@@ -482,13 +459,7 @@ TypeSArray::toCtype (void)
482459
}
483460

484461
type *
485-
TypeSArray::toCParamtype (void)
486-
{
487-
return toCtype();
488-
}
489-
490-
type *
491-
TypeDArray::toCtype (void)
462+
TypeDArray::toCtype()
492463
{
493464
if (!ctype)
494465
{
@@ -513,7 +484,7 @@ TypeDArray::toCtype (void)
513484
}
514485

515486
type *
516-
TypeAArray::toCtype (void)
487+
TypeAArray::toCtype()
517488
{
518489
if (!ctype)
519490
{
@@ -544,7 +515,7 @@ TypeAArray::toCtype (void)
544515
}
545516

546517
type *
547-
TypePointer::toCtype (void)
518+
TypePointer::toCtype()
548519
{
549520
if (!ctype)
550521
{
@@ -563,7 +534,7 @@ TypePointer::toCtype (void)
563534
}
564535

565536
type *
566-
TypeDelegate::toCtype (void)
537+
TypeDelegate::toCtype()
567538
{
568539
if (!ctype)
569540
{
@@ -596,7 +567,7 @@ TypeDelegate::toCtype (void)
596567
}
597568

598569
type *
599-
TypeClass::toCtype (void)
570+
TypeClass::toCtype()
600571
{
601572
if (!ctype)
602573
{
@@ -657,24 +628,3 @@ TypeClass::toCtype (void)
657628
return ctype;
658629
}
659630

660-
661-
// These are not used for code generation in glue.
662-
663-
Symbol *
664-
Type::toSymbol (void)
665-
{
666-
return NULL;
667-
}
668-
669-
unsigned
670-
Type::totym (void)
671-
{
672-
return 0;
673-
}
674-
675-
unsigned
676-
TypeFunction::totym (void)
677-
{
678-
return 0;
679-
}
680-

0 commit comments

Comments
 (0)