aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNo Author <no-author@gcc.gnu.org>2003-08-04 12:50:23 +0000
committerNo Author <no-author@gcc.gnu.org>2003-08-04 12:50:23 +0000
commit89c33093fce932db969445f2c314d9b6c43f0a24 (patch)
tree10c186e9100213642541a9d7d9d83680a1c42c2b
parent73b957175e53b073ef54d9012de00026297a4829 (diff)
This commit was manufactured by cvs2svn to create tagreleases/gcc-3.3.1
'gcc_3_3_1_release'. From-SVN: r70145
-rw-r--r--gcc/config/sh/libgcc-glibc.ver21
-rw-r--r--gcc/config/t-libunwind1
-rw-r--r--gcc/fixinc/tests/base/string.h13
-rw-r--r--gcc/fixinc/tests/base/sys/regset.h26
-rw-r--r--gcc/testsuite/g++.dg/init/ref8.C10
-rw-r--r--gcc/testsuite/gcc.dg/20030711-1.c25
-rw-r--r--gcc/testsuite/gcc.dg/Wunreachable-6.c18
-rw-r--r--gcc/testsuite/gcc.dg/Wunreachable-7.c18
-rw-r--r--gcc/testsuite/gcc.dg/ia64-sync-4.c21
-rw-r--r--gcc/testsuite/gcc.dg/noncompile/init-4.c3
-rw-r--r--gcc/testsuite/gcc.dg/torture/dg-torture.exp7
-rw-r--r--gcc/unwind-libunwind.c172
-rw-r--r--libiberty/lrealpath.c128
13 files changed, 0 insertions, 463 deletions
diff --git a/gcc/config/sh/libgcc-glibc.ver b/gcc/config/sh/libgcc-glibc.ver
deleted file mode 100644
index 734d3d6bfe1..00000000000
--- a/gcc/config/sh/libgcc-glibc.ver
+++ /dev/null
@@ -1,21 +0,0 @@
-# In order to work around the very problems that force us to now generally
-# create a libgcc.so, glibc reexported a number of routines from libgcc.a.
-# By now choosing the same version tags for these specific routines, we
-# maintain enough binary compatibility to allow future versions of glibc
-# to defer implementation of these routines to libgcc.so via DT_AUXILIARY.
-
-# Note that we cannot use the default libgcc-glibc.ver file on sh,
-# because GLIBC_2.0 does not exist on this architecture, as the first
-# ever glibc release on the platform was GLIBC_2.2.
-
-%inherit GCC_3.0 GLIBC_2.2
-GLIBC_2.2 {
- __register_frame
- __register_frame_table
- __deregister_frame
- __register_frame_info
- __deregister_frame_info
- __frame_state_for
- __register_frame_info_table
-}
-
diff --git a/gcc/config/t-libunwind b/gcc/config/t-libunwind
deleted file mode 100644
index be50bc481c5..00000000000
--- a/gcc/config/t-libunwind
+++ /dev/null
@@ -1 +0,0 @@
-LIB2ADDEH = $(srcdir)/unwind-libunwind.c $(srcdir)/unwind-sjlj.c
diff --git a/gcc/fixinc/tests/base/string.h b/gcc/fixinc/tests/base/string.h
deleted file mode 100644
index f32c240ae34..00000000000
--- a/gcc/fixinc/tests/base/string.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/* DO NOT EDIT THIS FILE.
-
- It has been auto-edited by fixincludes from:
-
- "fixinc/tests/inc/string.h"
-
- This had to be done to correct non-standard usages in the
- original, manufacturer supplied header file. */
-
-#ifndef _STRING_INCLUDED
-#define _STRING_INCLUDED
-#include <strings.h>
-#endif /* _STRING_INCLUDED */
diff --git a/gcc/fixinc/tests/base/sys/regset.h b/gcc/fixinc/tests/base/sys/regset.h
deleted file mode 100644
index adc31add5dd..00000000000
--- a/gcc/fixinc/tests/base/sys/regset.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/* DO NOT EDIT THIS FILE.
-
- It has been auto-edited by fixincludes from:
-
- "fixinc/tests/inc/sys/regset.h"
-
- This had to be done to correct non-standard usages in the
- original, manufacturer supplied header file. */
-
-
-
-#if defined( SCO_REGSET_CHECK )
-union u_fps {
- struct rsfpstate
- {
- int whatever;
- }
-};
-union _u_fps {
- struct _rsfpstate
- {
- int whatever;
- }
-};
-
-#endif /* SCO_REGSET_CHECK */
diff --git a/gcc/testsuite/g++.dg/init/ref8.C b/gcc/testsuite/g++.dg/init/ref8.C
deleted file mode 100644
index 406cc10401d..00000000000
--- a/gcc/testsuite/g++.dg/init/ref8.C
+++ /dev/null
@@ -1,10 +0,0 @@
-struct A {
- A operator=(const A&);
-};
-
-A operator*(A, A);
-
-A& operator+=(A& a, const A& b)
-{
- return a = a * b; // { dg-error "non-const reference" }
-}
diff --git a/gcc/testsuite/gcc.dg/20030711-1.c b/gcc/testsuite/gcc.dg/20030711-1.c
deleted file mode 100644
index 25f515cbe50..00000000000
--- a/gcc/testsuite/gcc.dg/20030711-1.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Test whether strncmp has not been "optimized" into memcmp
- nor any code with memcmp semantics. */
-/* { dg-do run { target i?86-*-linux* x86_64-*-linux* ia64-*-linux* alpha*-*-linux* powerpc*-*-linux* s390*-*-linux* sparc*-*-linux* } } */
-/* { dg-options "-O2" } */
-#include <sys/mman.h>
-#include <stdlib.h>
-
-void __attribute__((noinline)) test (const char *p)
-{
- if (__builtin_strncmp (p, "abcdefghijklmnopq", 17) == 0)
- abort ();
-}
-
-int main (void)
-{
- char *p = mmap (NULL, 131072, PROT_READ | PROT_WRITE,
- MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
- if (p == MAP_FAILED)
- return 0;
- if (munmap (p + 65536, 65536) < 0)
- return 0;
- __builtin_memcpy (p + 65536 - 5, "abcd", 5);
- test (p + 65536 - 5);
- return 0;
-}
diff --git a/gcc/testsuite/gcc.dg/Wunreachable-6.c b/gcc/testsuite/gcc.dg/Wunreachable-6.c
deleted file mode 100644
index 77b6228fc86..00000000000
--- a/gcc/testsuite/gcc.dg/Wunreachable-6.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* PR c/11370 */
-/* { dg-do compile } */
-/* { dg-options "-Wunreachable-code" } */
-
-int main(int argc, char *argv[])
-{
- if (argc != 1)
- exit(1);
-
- {
- int ix; /* { dg-bogus "will never be executed" } */
- ix = printf("hello\n");
- printf("%d\n", ix);
- }
-
- return 0;
-}
-
diff --git a/gcc/testsuite/gcc.dg/Wunreachable-7.c b/gcc/testsuite/gcc.dg/Wunreachable-7.c
deleted file mode 100644
index a19c94a1760..00000000000
--- a/gcc/testsuite/gcc.dg/Wunreachable-7.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* PR c/11370 */
-/* { dg-do compile } */
-/* { dg-options "-O2 -Wunreachable-code" } */
-
-int main(int argc, char *argv[])
-{
- if (argc != 1)
- exit(1);
-
- {
- int ix; /* { dg-bogus "will never be executed" } */
- ix = printf("hello\n");
- printf("%d\n", ix);
- }
-
- return 0;
-}
-
diff --git a/gcc/testsuite/gcc.dg/ia64-sync-4.c b/gcc/testsuite/gcc.dg/ia64-sync-4.c
deleted file mode 100644
index 98dfdac78ac..00000000000
--- a/gcc/testsuite/gcc.dg/ia64-sync-4.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* { dg-do compile { target ia64-*-* } } */
-/* { dg-options "-O2 -finline-functions" } */
-
-/* Test inlining __sync_bool_compare_and_swap_di. */
-
-#include <stdbool.h>
-#include <ia64intrin.h>
-
-static bool
-compare_and_swap(long *addr, long old, long new_val)
-{
- return __sync_bool_compare_and_swap_di(addr, old, new_val);
-}
-
-void
-foo (long *address)
-{
- long he_address = *address & ~1;
- while (!compare_and_swap(address, he_address, he_address | 1))
- he_address = *address & ~1;
-}
diff --git a/gcc/testsuite/gcc.dg/noncompile/init-4.c b/gcc/testsuite/gcc.dg/noncompile/init-4.c
deleted file mode 100644
index 906c115b8cc..00000000000
--- a/gcc/testsuite/gcc.dg/noncompile/init-4.c
+++ /dev/null
@@ -1,3 +0,0 @@
-struct a { char *b; } c[D] /* { dg-error "undeclared" } */
- = /* { dg-error "storage size" } */
- { { "" } } ; /* { dg-warning "braces around scalar initializer|near" } */
diff --git a/gcc/testsuite/gcc.dg/torture/dg-torture.exp b/gcc/testsuite/gcc.dg/torture/dg-torture.exp
deleted file mode 100644
index b151c2e0772..00000000000
--- a/gcc/testsuite/gcc.dg/torture/dg-torture.exp
+++ /dev/null
@@ -1,7 +0,0 @@
-# This harness is for tests that should be run at all optimisation levels.
-
-load_lib gcc-dg.exp
-
-dg-init
-gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.c]] ""
-dg-finish
diff --git a/gcc/unwind-libunwind.c b/gcc/unwind-libunwind.c
deleted file mode 100644
index 2e53a59eac7..00000000000
--- a/gcc/unwind-libunwind.c
+++ /dev/null
@@ -1,172 +0,0 @@
-/* Subroutines needed for unwinding stack frames via the libunwind API.
- Copyright (C) 2002, 2003
- Free Software Foundation, Inc.
- Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
-
- This file is part of GCC.
-
- 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.
-
- 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. */
-
-/* As a special exception, if you link this library with other files,
- some of which are compiled with GCC, to produce an executable,
- this library does not by itself cause the resulting executable
- to be covered by the GNU General Public License.
- This exception does not however invalidate any other reasons why
- the executable file might be covered by the GNU General Public License. */
-
-#include "tconfig.h"
-#include "tsystem.h"
-#include "unwind.h"
-
-#ifndef __USING_SJLJ_EXCEPTIONS__
-
-#define UNW_LOCAL_ONLY
-
-#include <libunwind.h>
-
-typedef struct {
- _Unwind_Personality_Fn personality;
-} _Unwind_FrameState;
-
-struct _Unwind_Context {
- unw_cursor_t cursor;
-};
-
-
-/* First come the helper-routines that are needed by unwind.inc. */
-
-static _Unwind_Reason_Code
-uw_frame_state_for (struct _Unwind_Context *context, _Unwind_FrameState *fs)
-{
- unw_proc_info_t pi;
-
- if (unw_step (&context->cursor) <= 0)
- return _URC_END_OF_STACK;
-
- unw_get_proc_info(&context->cursor, &pi);
- fs->personality = (_Unwind_Personality_Fn) pi.handler;
-
- return _URC_NO_REASON;
-}
-
-#define uw_update_context(context,fs) do { ; } while (0)
-
-static inline _Unwind_Ptr
-uw_identify_context (struct _Unwind_Context *context)
-{
- unw_word_t ip;
- unw_get_reg (&context->cursor, UNW_REG_IP, &ip);
- return (_Unwind_Ptr) ip;
-}
-
-#define uw_init_context(context) \
-do \
- { \
- unw_context_t uc; \
- unw_getcontext (&uc); \
- unw_init_local (&(context)->cursor, &uc); \
- } \
-while (0)
-
-static inline void __attribute__ ((noreturn))
-uw_install_context (struct _Unwind_Context *current __attribute__ ((unused)),
- struct _Unwind_Context *target)
-{
- unw_resume (&(target)->cursor);
- abort ();
-}
-
-
-/* Now come the helper-routines which may be called from an exception
- handler. The interface for these routines are defined by the C++
- ABI. See: http://www.codesourcery.com/cxx-abi/abi-eh.html */
-
-_Unwind_Word
-_Unwind_GetGR (struct _Unwind_Context *context, int index)
-{
- unw_word_t ret;
-
- /* Note: here we depend on the fact that general registers are
- expected to start with register number 0! */
- unw_get_reg (&context->cursor, index, &ret);
- return ret;
-}
-
-/* Get the value of the CFA as saved in CONTEXT. */
-
-_Unwind_Word
-_Unwind_GetCFA (struct _Unwind_Context *context)
-{
- /* ??? Is there any way to get this information? */
- return NULL;
-}
-
-/* Overwrite the saved value for register REG in CONTEXT with VAL. */
-
-void
-_Unwind_SetGR (struct _Unwind_Context *context, int index, _Unwind_Word val)
-{
- /* Note: here we depend on the fact that general registers are
- expected to start with register number 0! */
- unw_set_reg (&context->cursor, index, val);
-}
-
-/* Retrieve the return address for CONTEXT. */
-
-inline _Unwind_Ptr
-_Unwind_GetIP (struct _Unwind_Context *context)
-{
- unw_word_t ret;
-
- unw_get_reg (&context->cursor, UNW_REG_IP, &ret);
- return ret;
-}
-
-/* Overwrite the return address for CONTEXT with VAL. */
-
-inline void
-_Unwind_SetIP (struct _Unwind_Context *context, _Unwind_Ptr val)
-{
- unw_set_reg (&context->cursor, UNW_REG_IP, val);
-}
-
-void *
-_Unwind_GetLanguageSpecificData (struct _Unwind_Context *context)
-{
- unw_proc_info_t pi;
-
- unw_get_proc_info(&context->cursor, &pi);
- return (void *) pi.lsda;
-}
-
-_Unwind_Ptr
-_Unwind_GetRegionStart (struct _Unwind_Context *context)
-{
- unw_proc_info_t pi;
-
- unw_get_proc_info(&context->cursor, &pi);
- return (_Unwind_Ptr) pi.start_ip;
-}
-
-void *
-_Unwind_FindEnclosingFunction (void *pc)
-{
- return NULL;
-}
-
-#include "unwind.inc"
-
-#endif /* !__USING_SJLJ_EXCEPTIONS__ */
diff --git a/libiberty/lrealpath.c b/libiberty/lrealpath.c
deleted file mode 100644
index b001b38ef66..00000000000
--- a/libiberty/lrealpath.c
+++ /dev/null
@@ -1,128 +0,0 @@
-/* Libiberty realpath. Like realpath, but more consistent behavior.
- Based on gdb_realpath from GDB.
-
- Copyright 2003 Free Software Foundation, Inc.
-
- This file is part of the libiberty library.
-
- This program 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 of the License, or
- (at your option) any later version.
-
- This program 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 this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-/*
-
-@deftypefn Replacement {const char*} lrealpath (const char *@var{name})
-
-Given a pointer to a string containing a pathname, returns a canonical
-version of the filename. Symlinks will be resolved, and ``.'' and ``..''
-components will be simplified. The returned value will be allocated using
-@code{malloc}, or @code{NULL} will be returned on a memory allocation error.
-
-@end deftypefn
-
-*/
-
-#include "config.h"
-#include "ansidecl.h"
-#include "libiberty.h"
-
-#ifdef HAVE_LIMITS_H
-#include <limits.h>
-#endif
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-/* On GNU libc systems the declaration is only visible with _GNU_SOURCE. */
-#if defined(HAVE_CANONICALIZE_FILE_NAME) \
- && defined(NEED_DECLARATION_CANONICALIZE_FILE_NAME)
-extern char *canonicalize_file_name (const char *);
-#endif
-
-#if defined(HAVE_REALPATH)
-# if defined (PATH_MAX)
-# define REALPATH_LIMIT PATH_MAX
-# else
-# if defined (MAXPATHLEN)
-# define REALPATH_LIMIT MAXPATHLEN
-# endif
-# endif
-#endif
-
-char *
-lrealpath (filename)
- const char *filename;
-{
- /* Method 1: The system has a compile time upper bound on a filename
- path. Use that and realpath() to canonicalize the name. This is
- the most common case. Note that, if there isn't a compile time
- upper bound, you want to avoid realpath() at all costs. */
-#if defined(REALPATH_LIMIT)
- {
- char buf[REALPATH_LIMIT];
- const char *rp = realpath (filename, buf);
- if (rp == NULL)
- rp = filename;
- return strdup (rp);
- }
-#endif /* REALPATH_LIMIT */
-
- /* Method 2: The host system (i.e., GNU) has the function
- canonicalize_file_name() which malloc's a chunk of memory and
- returns that, use that. */
-#if defined(HAVE_CANONICALIZE_FILE_NAME)
- {
- char *rp = canonicalize_file_name (filename);
- if (rp == NULL)
- return strdup (filename);
- else
- return rp;
- }
-#endif
-
- /* Method 3: Now we're getting desperate! The system doesn't have a
- compile time buffer size and no alternative function. Query the
- OS, using pathconf(), for the buffer limit. Care is needed
- though, some systems do not limit PATH_MAX (return -1 for
- pathconf()) making it impossible to pass a correctly sized buffer
- to realpath() (it could always overflow). On those systems, we
- skip this. */
-#if defined (HAVE_REALPATH) && defined (HAVE_UNISTD_H)
- {
- /* Find out the max path size. */
- long path_max = pathconf ("/", _PC_PATH_MAX);
- if (path_max > 0)
- {
- /* PATH_MAX is bounded. */
- char *buf, *rp, *ret;
- buf = malloc (path_max);
- if (buf == NULL)
- return NULL;
- rp = realpath (filename, buf);
- ret = strdup (rp ? rp : filename);
- free (buf);
- return ret;
- }
- }
-#endif
-
- /* This system is a lost cause, just duplicate the filename. */
- return strdup (filename);
-}