Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into 7995
Browse files Browse the repository at this point in the history
Conflicts:
	src/rt/dmain2.d
  • Loading branch information
jacob-carlborg committed May 10, 2012
2 parents 714e86f + daac568 commit 35d26e8
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 211 deletions.
7 changes: 1 addition & 6 deletions posix.mak
Expand Up @@ -62,7 +62,6 @@ MANIFEST= \
src/core/simd.d \
src/core/thread.d \
src/core/thread.di \
src/core/threadasm.S \
src/core/time.d \
src/core/vararg.d \
\
Expand Down Expand Up @@ -379,7 +378,7 @@ SRC_D_MODULES = \
# NOTE: a pre-compiled minit.obj has been provided in dmd for Win32 and
# minit.asm is not used by dmd for Linux

OBJS= $(OBJDIR)/errno_c.o $(OBJDIR)/threadasm.o $(OBJDIR)/complex.o
OBJS= $(OBJDIR)/errno_c.o $(OBJDIR)/complex.o

DOCS=\
$(DOCDIR)/object.html \
Expand Down Expand Up @@ -542,10 +541,6 @@ $(OBJDIR)/errno_c.o : src/core/stdc/errno.c
@mkdir -p $(OBJDIR)
$(CC) -c $(CFLAGS) $< -o$@

$(OBJDIR)/threadasm.o : src/core/threadasm.S
@mkdir -p $(OBJDIR)
$(CC) -Wa,-noexecstack -c $(CFLAGS) $< -o$@

################### Library generation #########################

$(DRUNTIME): $(OBJS) $(SRCS) win32.mak
Expand Down
4 changes: 0 additions & 4 deletions src/core/math.d
Expand Up @@ -25,10 +25,6 @@
*/
module core.math;

version(LDC) {
public import ldc.intrinsics;
}

public:

/***********************************
Expand Down
16 changes: 0 additions & 16 deletions src/core/runtime.d
Expand Up @@ -17,8 +17,6 @@ module core.runtime;

private
{
extern (C) bool rt_isHalting();

alias bool function() ModuleUnitTester;
alias bool function(Object) CollectHandler;
alias Throwable.TraceInfo function( void* ptr ) TraceHandler;
Expand Down Expand Up @@ -136,20 +134,6 @@ struct Runtime
}


/**
* Returns true if the runtime is halting. Under normal circumstances,
* this will be set between the time that normal application code has
* exited and before module dtors are called.
*
* Returns:
* true if the runtime is halting.
*/
deprecated static @property bool isHalting()
{
return rt_isHalting();
}


/**
* Returns the arguments supplied when the process was started.
*
Expand Down
19 changes: 0 additions & 19 deletions src/core/thread.d
Expand Up @@ -1267,9 +1267,6 @@ class Thread
///////////////////////////////////////////////////////////////////////////


deprecated alias thread_findByAddr findThread;


private:
//
// Initializes a thread object which has no associated executable function.
Expand Down Expand Up @@ -2049,22 +2046,6 @@ version( Windows )
thisThread.m_tlsgcdata = rt.tlsgc.init();
return thisThread;
}


/// This should be handled automatically by thread_attach.
deprecated extern (C) void thread_setNeedLock( bool need ) nothrow
{
if( need )
multiThreadedFlag = true;
}


/// Renamed to be more consistent with other extern (C) routines.
deprecated alias thread_attachByAddr thread_attach;


/// ditto
deprecated alias thread_detachByAddr thread_detach;
}


Expand Down
12 changes: 0 additions & 12 deletions src/core/thread.di
Expand Up @@ -405,9 +405,6 @@ class Thread
///////////////////////////////////////////////////////////////////////////


deprecated alias thread_findByAddr findThread;


private:
//
// Standard types
Expand Down Expand Up @@ -489,15 +486,6 @@ version( Windows )

/// ditto
extern (C) Thread thread_attachByAddrB( Thread.ThreadAddr addr, void* bstack );

/// This should be handled automatically by thread_attach.
deprecated extern (C) void thread_setNeedLock( bool need ) nothrow;

/// Renamed to be more consistent with other extern (C) routines.
deprecated alias thread_attachByAddr thread_attach;

/// ditto
deprecated alias thread_detachByAddr thread_detach;
}


Expand Down
145 changes: 0 additions & 145 deletions src/core/threadasm.S

This file was deleted.

8 changes: 0 additions & 8 deletions src/rt/dmain2.d
Expand Up @@ -236,13 +236,6 @@ extern (C) void _d_hidden_func()
onHiddenFuncError(o);
}

shared bool _d_isHalting = false;

extern (C) bool rt_isHalting()
{
return _d_isHalting;
}

__gshared string[] _d_args = null;

extern (C) string[] rt_args()
Expand Down Expand Up @@ -355,7 +348,6 @@ extern (C) bool rt_term(ExceptionHandler dg = null)
{
rt_moduleTlsDtor();
thread_joinAll();
_d_isHalting = true;
rt_moduleDtor();
gc_term();
return result = true;
Expand Down
1 change: 0 additions & 1 deletion win32.mak
Expand Up @@ -41,7 +41,6 @@ MANIFEST= \
src\core\simd.d \
src\core\thread.d \
src\core\thread.di \
src\core\threadasm.S \
src\core\time.d \
src\core\vararg.d \
\
Expand Down

0 comments on commit 35d26e8

Please sign in to comment.