Deleted Added
full compact
gthr-posix.c (169689) gthr-posix.c (171825)
1/* POSIX threads dummy routines for systems without weak definitions. */
2/* Compile this one with gcc. */
1/* POSIX threads dummy routines for systems without weak definitions. */
2/* Compile this one with gcc. */
3/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
3/* Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 2, or (at your option) any later
10version.
11

--- 11 unchanged lines hidden (view full) ---

23 some of which are compiled with GCC, to produce an executable,
24 this library does not by itself cause the resulting executable
25 to be covered by the GNU General Public License.
26 This exception does not however invalidate any other reasons why
27 the executable file might be covered by the GNU General Public License. */
28
29#include "tconfig.h"
30#include "tm.h"
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 2, or (at your option) any later
10version.
11

--- 11 unchanged lines hidden (view full) ---

23 some of which are compiled with GCC, to produce an executable,
24 this library does not by itself cause the resulting executable
25 to be covered by the GNU General Public License.
26 This exception does not however invalidate any other reasons why
27 the executable file might be covered by the GNU General Public License. */
28
29#include "tconfig.h"
30#include "tm.h"
31# define __gthrw_pragma(pragma) _Pragma (#pragma)
31/* Define so we provide weak definitions of functions used by libobjc only. */
32#define _LIBOBJC_WEAK
33#include "gthr.h"
34
35int
36pthread_once (pthread_once_t *once ATTRIBUTE_UNUSED,
37 void (*func) (void) ATTRIBUTE_UNUSED)
38{

--- 31 unchanged lines hidden (view full) ---

70 const pthread_attr_t *attr ATTRIBUTE_UNUSED,
71 void *(*start_routine) (void *) ATTRIBUTE_UNUSED,
72 void *arg ATTRIBUTE_UNUSED)
73{
74 return 0;
75}
76
77int
32/* Define so we provide weak definitions of functions used by libobjc only. */
33#define _LIBOBJC_WEAK
34#include "gthr.h"
35
36int
37pthread_once (pthread_once_t *once ATTRIBUTE_UNUSED,
38 void (*func) (void) ATTRIBUTE_UNUSED)
39{

--- 31 unchanged lines hidden (view full) ---

71 const pthread_attr_t *attr ATTRIBUTE_UNUSED,
72 void *(*start_routine) (void *) ATTRIBUTE_UNUSED,
73 void *arg ATTRIBUTE_UNUSED)
74{
75 return 0;
76}
77
78int
78pthread_cancel(pthread_t thread ATTRIBUTE_UNUSED)
79pthread_cancel (pthread_t thread ATTRIBUTE_UNUSED)
79{
80 return 0;
81}
82
83int
84pthread_mutex_lock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED)
85{
86 return 0;

--- 147 unchanged lines hidden ---
80{
81 return 0;
82}
83
84int
85pthread_mutex_lock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED)
86{
87 return 0;

--- 147 unchanged lines hidden ---