Skip to content

Instantly share code, notes, and snippets.

struct StructBuilder
{
Scope *scope;
Loc loc;
StructDeclaration *decl;
TypeStruct *type;
StructBuilder(Module *mod, const char* name)
{
scope = mod->scope;
diff --git a/gcc/d/d-glue.cc b/gcc/d/d-glue.cc
index 71c85e7..14d7000 100644
--- a/gcc/d/d-glue.cc
+++ b/gcc/d/d-glue.cc
@@ -2675,6 +2675,20 @@ FuncDeclaration::toObjFile (int)
fbody->toIR (irs);
+ // Find all template instances that are nested in this scope and emit
+ Module * module = getModule();
diff -ur config.orig/arm/arm.h config/arm/arm.h
--- config.orig/arm/arm.h 2013-01-20 14:48:46.355048483 +0100
+++ config/arm/arm.h 2013-01-20 17:00:20.998917173 +0100
@@ -109,6 +109,28 @@
builtin_define ("__ARM_ARCH_EXT_IDIV__"); \
} while (0)
+/* Target CPU builtins for D. */
+#define TARGET_CPU_D_BUILTINS() \
+ do \
diff --git a/aarch64/aarch64.h b/aarch64/aarch64.h
index c3efd2a..60ed005 100644
--- a/aarch64/aarch64.h
+++ b/aarch64/aarch64.h
@@ -51,6 +51,14 @@
\
} while (0)
+/* Target CPU builtins for D. */
+#define TARGET_CPU_D_BUILTINS() \
From f750e1fdbd0cf0ec0e791709fd204aaeb7781bb1 Mon Sep 17 00:00:00 2001
From: Johannes Pfau <johannespfau@gmail.com>
Date: Sat, 2 Feb 2013 22:53:21 +0100
Subject: [PATCH] Implement D predefined OS versions
This implements the following official versions:
* Windows
** Win32
** Win64
** Cygwin
struct S7965
{
}
auto f7965()()
{
int a;
class Result
{
S7965 s;
auto f7965()()
{
int a;
class Result
{
void g() { /*a = 42;*/ }
}
return new Result();
}
class RedBlackTree(alias less)
{
struct Range
{
auto @property empty()
{
}
}
Range opSlice()
class RedBlackTree(alias less)
{
int a;
struct Range
{
auto @property empty()
{
return a;
}
}
class RedBlackTree(alias less)
{
int a;
struct Range
{
auto @property empty()
{
return a;
}
}