Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several compilation fixes for updated toolchain #4

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions implement.h
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@ extern "C"
void pte_threadDestroy (pthread_t tid);
void pte_threadExitAndDestroy (pthread_t tid);

pte_cleanup_t * pte_pop_cleanup (int execute);
void pte_push_cleanup (pte_cleanup_t * cleanup,
void (*routine) (void *),
void *arg);
void pte_pop_cleanup_all (int execute);

pthread_t pte_new (void);
Expand Down
2 changes: 1 addition & 1 deletion platform/vita/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ CC = arm-vita-eabi-gcc
CXX = arm-vita-eabi-g++
AR = arm-vita-eabi-ar

CFLAGS = $(GLOBAL_CFLAGS) -Wl,-q -Wall -O3 -ffat-lto-objects -flto -fno-strict-aliasing -I. -I../.. -I../helper
CFLAGS = $(GLOBAL_CFLAGS) -Wl,-q -Wall -O3 -DINCLUDE_NP -ffat-lto-objects -flto -fno-strict-aliasing -I. -I../.. -I../helper
CXXFLAGS = $(CFLAGS) -fexceptions -fno-rtti -Werror -D__CLEANUP_CXX
ASFLAGS = $(CFLAGS)

Expand Down
4 changes: 2 additions & 2 deletions pte_throw.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pte_throw (unsigned int exception)
* explicit thread exit here after cleaning up POSIX
* residue (i.e. cleanup handlers, POSIX thread handle etc).
*/
unsigned exitCode = 0;
/*unsigned exitCode = 0;

switch (exception)
{
Expand All @@ -87,7 +87,7 @@ pte_throw (unsigned int exception)
case PTE_EPS_EXIT:
exitCode = (unsigned) sp->exitStatus;;
break;
}
}*/

pte_thread_detach_and_exit_np ();

Expand Down