Skip to content

Instantly share code, notes, and snippets.

Avatar

Johannes Pfau jpf91

View GitHub Profile
View fsm2.d
import std.meta, std.traits;
version = DebugPrint;
version (DebugPrint)
{
import std.experimental.logger;
alias log = infof;
extern(C) uint _currTime()
{
@jpf91
jpf91 / fsm.d
Created Mar 7, 2020
D test FSM
View fsm.d
import std.meta, std.traits;
version = DebugPrint;
version (DebugPrint)
{
import std.experimental.logger;
alias log = infof;
extern(C) uint _currTime()
{
View gcc.diff
diff -ur gcc-8-20171210.old/gcc/config/aarch64/aarch64.c gcc-8-20171210.new/gcc/config/aarch64/aarch64.c
--- gcc-8-20171210.old/gcc/config/aarch64/aarch64.c 2017-12-07 19:43:40.000000000 +0100
+++ gcc-8-20171210.new/gcc/config/aarch64/aarch64.c 2018-02-04 21:02:13.337405884 +0100
@@ -132,8 +132,8 @@
#define TARGET_HAVE_TLS 1
#endif
-static bool aarch64_composite_type_p (const_tree, machine_mode);
-static bool aarch64_vfp_is_call_or_return_candidate (machine_mode,
+bool aarch64_composite_type_p (const_tree, machine_mode);
View kitColor.d
// Run at https://dpaste.dzfl.pl/861b8e5dd07b
// https://intranet.kit.edu/gestaltungsrichtlinien.php
// https://intranet.kit.edu/downloads/2_Gestaltungsgrundlagen.pdf
import std.stdio, std.string, std.array, std.algorithm, std.conv, std.range, std.math;
string input = "KIT-Schwarz
0 C
0 R
0 M
0 G
View phobos_sources.d
import std.stdio, std.file, std.path, std.range, std.string, std.algorithm ;
string[] filterList = ["./Makefile.in", "./Makefile.am", "./index.d", "./unittest.d",
"./std/experimental/note.md"];
struct Files
{
string[] baseList;
string[][string] sysList;
}
View sources.d
import std.stdio, std.file, std.path, std.range, std.string, std.algorithm ;
string[] filterList = ["./test_runner.d", "./Makefile.in", "./gcc/config.d.in", "./gcc/libbacktrace.d.in", "./phobos-ver-syms.in",
"./Makefile.am", "./LICENSE_1_0.txt", "./README.txt", "./rt/dylib_fixes.c"];
struct Files
{
string[] baseList, gcList, gcStubList;
string[][string] sysList;
}
View get-gcc-version.sh
echo "$GCC_VERSION" | grep -qP "gcc-[\d\.]+$"
# Standard release
if [ $? = 0 ]
then
GCC_TARBALL="releases/${GCC_VERSION}/${GCC_VERSION}.tar.bz2"
if [ $(echo "$GCC_VERSION" | cut -c5-5) -gt "4" ]
then
PATCH_VERSION=$(echo "$GCC_VERSION" | cut -c5-5)
# Max supported gcc version in semaphore ci
if [ $(echo "$GCC_VERSION" | cut -c5-5) -gt "5" ]
View gist:1de81d6ff55587d702ae
[ALL ] /home/build/gdc-build-configs/configs/x86_64-linux-gnu/gcc-5/arm-gdcproject-linux-gnueabi/.build/src/gcc-5.1.0/libphobos/src/std/digest/crc.d: In member function 'finish':
[ERROR] /home/build/gdc-build-configs/configs/x86_64-linux-gnu/gcc-5/arm-gdcproject-linux-gnueabi/.build/src/gcc-5.1.0/libphobos/src/std/digest/crc.d:203:18: internal compiler error: in expand_expr_addr_expr_1, at expr.c:7736
[ALL ] auto tmp = peek();
[ALL ] ^
[ALL ] 0x81e40f expand_expr_addr_expr_1
[ALL ] /home/build/gdc-build-configs/configs/x86_64-linux-gnu/gcc-5/arm-gdcproject-linux-gnueabi/.build/src/gcc-5.1.0/gcc/expr.c:7736
[ALL ] 0x814498 expand_expr_addr_expr
[ALL ] /home/build/gdc-build-configs/configs/x86_64-linux-gnu/gcc-5/arm-gdcproject-linux-gnueabi/.build/src/gcc-5.1.0/gcc/expr.c:7850
[ALL ] 0x814498 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
[ALL ] /home/build/gdc-build-configs/configs/x86_64-linux-gn
View gist:cf40e78beed6c0a9e757
#
# Automatically generated make config: don't edit
# crosstool-NG 1.20.0 Configuration
# Fri Apr 3 08:21:33 2015
#
CT_CONFIGURE_has_xz=y
CT_CONFIGURE_has_svn=y
CT_MODULES=y
#
View gist:9464455
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<meta name="keywords" content="GNU D Compiler, GDC, D programming language">
<meta name="description" content="GNU D Compiler">
<link rel="stylesheet" href="/style/main.css" type="text/css" media="all" charset="utf-8">
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
<title>GDC - D Programming Language for GCC</title>
You can’t perform that action at this time.