Skip to content

Instantly share code, notes, and snippets.

View danielhams's full-sized avatar

Daniel Hams danielhams

View GitHub Profile
@danielhams
danielhams / libsodiumenv.txt
Created July 8, 2019 07:52
For gijoe, the env I used to build libsodium with gcc4
ERROR: sodium_utils2
ERROR: sodium_utils3
============================================================================
Testsuite summary for libsodium 1.0.18
============================================================================
# TOTAL: 77
# PASS: 75
# SKIP: 0
# XFAIL: 0
# FAIL: 0
@danielhams
danielhams / mrxvt.sgifixes.patch
Last active July 18, 2019 13:15
mrxvtfixes for irix compilation
diff -r -u -w mrxvt-0.5.4/src/init.c mrxvt-0.5.4-patched/src/init.c
--- mrxvt-0.5.4/src/init.c 2008-06-13 20:08:13.000000000 +0000
+++ mrxvt-0.5.4-patched/src/init.c 2019-07-18 14:11:10.551324080 +0000
@@ -812,7 +812,7 @@
{
char fifo_name[FILENAME_MAX];
- sprintf( fifo_name, "/tmp/.mrxvt-%d", getpid() );
+ sprintf( fifo_name, "/tmp/.mrxvt-%ld", getpid() );
r->fbuf_ptr = r->fifo_buf;
@danielhams
danielhams / mrxvt.sgi_scrollbarsfix.patch
Created July 21, 2019 10:58
mrxvt on irix + better scrollbars patch
diff -u -r -w mrxvt-0.5.4/src/init.c mrxvt-0.5.4-patched/src/init.c
--- mrxvt-0.5.4/src/init.c 2008-06-13 20:08:13.000000000 +0000
+++ mrxvt-0.5.4-patched/src/init.c 2019-07-19 07:34:24.638524560 +0000
@@ -812,7 +812,7 @@
{
char fifo_name[FILENAME_MAX];
- sprintf( fifo_name, "/tmp/.mrxvt-%d", getpid() );
+ sprintf( fifo_name, "/tmp/.mrxvt-%ld", getpid() );
r->fbuf_ptr = r->fifo_buf;
@danielhams
danielhams / devinstalllist.txt
Created August 4, 2019 13:26
Irix DEV tools versions
I c++_dev 06/10/2018 C++ Headers and Libraries, 7.3
I c++_dev.books 06/10/2018 C++ IRIS InSight Books
I c++_dev.books.Tlshh_RG 06/10/2018 Tools.h++ Class Reference
I c++_dev.books.Tlshh_UG 06/10/2018 Tools.h++ User's Guide
I c++_dev 06/11/2018 C++ Headers and Libraries, 7.4.4m
I c++_dev.books 06/11/2018 C++ IRIS InSight Books
I c++_dev.books.C++_PG 06/11/2018 C++ Programming Guide
I c++_dev.books.STL_PG 06/11/2018 Standard Template Library Programmer's Guide
I c++_dev.hdr 06/11/2018 C++ Headers
I c++_dev.hdr.lib 06/11/2018 C++ Library Headers
@danielhams
danielhams / postrefactor.cpp
Created August 4, 2019 22:33
Post-refactor create_pseudo_cfg
static void
create_pseudo_cfg (void)
{
bool saw_barrier, switch_sections;
dw_trace_info ti;
rtx insn;
unsigned i;
/* The first trace begins at the start of the function,
and begins with the CIE row state. */
@danielhams
danielhams / prerefactor.cpp
Last active August 4, 2019 22:38
Pre-refactor create_pseudo_cfg
static void
create_pseudo_cfg (void)
{
bool saw_barrier, switch_sections;
dw_trace_info *ti;
rtx insn;
unsigned i;
/* The first trace begins at the start of the function,
and begins with the CIE row state. */
@danielhams
danielhams / gcc4_8_2_sgugfixes.patch
Created August 6, 2019 16:38
Patch for native compilation of gcc4.8.2 on irix 6.5.30 n32
diff -N -u -r -w gcc-4.8.2/fixincludes/Makefile.in gcc-4.8.2-patched/fixincludes/Makefile.in
--- gcc-4.8.2/fixincludes/Makefile.in 2013-01-04 12:49:55.000000000 +0000
+++ gcc-4.8.2-patched/fixincludes/Makefile.in 2019-08-06 12:58:55.280882560 +0000
@@ -1,6 +1,6 @@
# Makefile for fixincludes.
#
-# Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2009, 2010, 2012
+# Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2009, 2010
# Free Software Foundation, Inc.
@danielhams
danielhams / sneakpreview.txt
Last active August 7, 2019 16:00
A sneak preview
[didbsshell dan@leafy official820]$ ldd ./throw_test_multi_official820.exe
libstdc++.so.6 => /olddisk/gbb/official820/install/lib/libstdc++.so.6
libm.so => /usr/lib32/libm.so
libgcc_s.so.1 => /olddisk/gbb/official820/install/lib/libgcc_s.so.1
libc.so.1 => /usr/lib32/libc.so.1
[didbsshell dan@leafy official820]$ ./throw_test_multi_official820.exe
EXE Starting main
EXE Before try
EXE Before doe construct
EXE destrobj create
@danielhams
danielhams / gcc5_4_0.sgidevfixes.patch
Created August 7, 2019 16:21
GCC5.4.0 on irix patch
diff -N -u -r -w gcc-5.4.0/fixincludes/Makefile.in gcc-5.4.0-patched/fixincludes/Makefile.in
--- gcc-5.4.0/fixincludes/Makefile.in 2013-12-20 12:07:52.000000000 +0000
+++ gcc-5.4.0-patched/fixincludes/Makefile.in 2019-08-06 14:05:54.286435720 +0000
@@ -1,6 +1,6 @@
# Makefile for fixincludes.
#
-# Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2009, 2010, 2012
+# Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2009, 2010
# Free Software Foundation, Inc.
@danielhams
danielhams / pthread.h
Created August 13, 2019 07:06
Irix 6.5.30 + mipspro 7.4.4m pthread.h header
#ifndef _PTHREAD_H_
#define _PTHREAD_H_
/**************************************************************************
* *
* Copyright (C) 1996 Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., and *