aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2004-03-20 12:33:41 +0000
committerFrank Ch. Eigler <fche@redhat.com>2004-03-20 12:33:41 +0000
commit03846eafd7c275b583a97c40554da04c978a110a (patch)
tree53b12c63066029936e6876b93d0be026b2d43805
parentd88a0cc3600382df3dd3bbff45e7243cf744dcb4 (diff)
2004-03-20 Frank Ch. Eigler <fche@redhat.com>
* mf-hooks[123].c, mf-runtime.c, mf-heuristics.c: Added libgcc license header. * mf-hooks3.c (__mf_0fn_pthread_create): Correct arg constness. (pthread_create): Simplify stack allocation syntax. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79740 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libmudflap/ChangeLog7
-rw-r--r--libmudflap/mf-heuristics.c28
-rw-r--r--libmudflap/mf-hooks1.c27
-rw-r--r--libmudflap/mf-hooks2.c27
-rw-r--r--libmudflap/mf-hooks3.c42
-rw-r--r--libmudflap/mf-runtime.c26
6 files changed, 139 insertions, 18 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog
index cd473d5de66..0b4b98a9f6d 100644
--- a/libmudflap/ChangeLog
+++ b/libmudflap/ChangeLog
@@ -1,3 +1,10 @@
+2004-03-20 Frank Ch. Eigler <fche@redhat.com>
+
+ * mf-hooks[123].c, mf-runtime.c, mf-heuristics.c:
+ Added libgcc license header.
+ * mf-hooks3.c (__mf_0fn_pthread_create): Correct arg constness.
+ (pthread_create): Simplify stack allocation syntax.
+
2004-03-08 Loren J. Rittle <ljrittle@acm.org>
* mf-hooks2.c: Support FreeBSD.
diff --git a/libmudflap/mf-heuristics.c b/libmudflap/mf-heuristics.c
index 305a06513d7..5231a08253a 100644
--- a/libmudflap/mf-heuristics.c
+++ b/libmudflap/mf-heuristics.c
@@ -3,10 +3,32 @@
Contributed by Frank Ch. Eigler <fche@redhat.com>
and Graydon Hoare <graydon@redhat.com>
- This file is part of GCC.
+This file is part of GCC.
- XXX: libgcc license?
-*/
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+In addition to the permissions in the GNU General Public License, the
+Free Software Foundation gives you unlimited permission to link the
+compiled version of this file into combinations with other programs,
+and to distribute those combinations without any restriction coming
+from the use of this file. (The General Public License restrictions
+do apply in other respects; for example, they cover modification of
+the file, and distribution when not linked into a combine
+executable.)
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING. If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA. */
+
#include "config.h"
diff --git a/libmudflap/mf-hooks1.c b/libmudflap/mf-hooks1.c
index 1ec42a944dc..7199472ebe1 100644
--- a/libmudflap/mf-hooks1.c
+++ b/libmudflap/mf-hooks1.c
@@ -4,8 +4,31 @@
and Graydon Hoare <graydon@redhat.com>
This file is part of GCC.
-XXX: libgcc license?
-*/
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+In addition to the permissions in the GNU General Public License, the
+Free Software Foundation gives you unlimited permission to link the
+compiled version of this file into combinations with other programs,
+and to distribute those combinations without any restriction coming
+from the use of this file. (The General Public License restrictions
+do apply in other respects; for example, they cover modification of
+the file, and distribution when not linked into a combine
+executable.)
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING. If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA. */
+
#include "config.h"
diff --git a/libmudflap/mf-hooks2.c b/libmudflap/mf-hooks2.c
index f4ded3a14ee..b0867729979 100644
--- a/libmudflap/mf-hooks2.c
+++ b/libmudflap/mf-hooks2.c
@@ -4,8 +4,31 @@
and Graydon Hoare <graydon@redhat.com>
This file is part of GCC.
-XXX: libgcc license?
-*/
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+In addition to the permissions in the GNU General Public License, the
+Free Software Foundation gives you unlimited permission to link the
+compiled version of this file into combinations with other programs,
+and to distribute those combinations without any restriction coming
+from the use of this file. (The General Public License restrictions
+do apply in other respects; for example, they cover modification of
+the file, and distribution when not linked into a combine
+executable.)
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING. If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA. */
+
#include "config.h"
diff --git a/libmudflap/mf-hooks3.c b/libmudflap/mf-hooks3.c
index 9d4ffd73232..838f3810db5 100644
--- a/libmudflap/mf-hooks3.c
+++ b/libmudflap/mf-hooks3.c
@@ -4,8 +4,31 @@
and Graydon Hoare <graydon@redhat.com>
This file is part of GCC.
-XXX: libgcc license?
-*/
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+In addition to the permissions in the GNU General Public License, the
+Free Software Foundation gives you unlimited permission to link the
+compiled version of this file into combinations with other programs,
+and to distribute those combinations without any restriction coming
+from the use of this file. (The General Public License restrictions
+do apply in other respects; for example, they cover modification of
+the file, and distribution when not linked into a combine
+executable.)
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING. If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA. */
+
#include "config.h"
@@ -314,7 +337,7 @@ __mf_pthread_spawner (void *arg)
#if PIC
/* A special bootstrap variant. */
int
-__mf_0fn_pthread_create (pthread_t *thr, pthread_attr_t *attr,
+__mf_0fn_pthread_create (pthread_t *thr, const pthread_attr_t *attr,
void * (*start) (void *), void *arg)
{
return -1;
@@ -407,17 +430,18 @@ WRAPPER(int, pthread_create, pthread_t *thr, const pthread_attr_t *attr,
#endif
override_stacksize = max (PTHREAD_STACK_MIN, __mf_opts.thread_stack * 1024);
- override_stack = CALL_REAL (mmap, NULL, override_stacksize,
- PROT_READ|PROT_WRITE,
- MAP_PRIVATE
+
#if defined(MAP_ANONYMOUS)
- |MAP_ANONYMOUS
+#define MF_MAP_ANON MAP_ANONYMOUS
#elif defined(MAP_ANON)
- |MAP_ANON
+#define MF_MAP_ANON MAP_ANON
#else
#error "Cannot mmap anonymous memory."
#endif
- ,
+
+ override_stack = CALL_REAL (mmap, NULL, override_stacksize,
+ PROT_READ|PROT_WRITE,
+ MAP_PRIVATE|MF_MAP_ANON,
0, 0);
if (override_stack == 0 || override_stack == MAP_FAILED)
{
diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c
index 19266153e41..88a3682081c 100644
--- a/libmudflap/mf-runtime.c
+++ b/libmudflap/mf-runtime.c
@@ -4,8 +4,30 @@
and Graydon Hoare <graydon@redhat.com>
This file is part of GCC.
-XXX: libgcc license?
-*/
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+In addition to the permissions in the GNU General Public License, the
+Free Software Foundation gives you unlimited permission to link the
+compiled version of this file into combinations with other programs,
+and to distribute those combinations without any restriction coming
+from the use of this file. (The General Public License restrictions
+do apply in other respects; for example, they cover modification of
+the file, and distribution when not linked into a combine
+executable.)
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING. If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA. */
#include "config.h"