adapt the C++ fix for C99 math functions, and bump c++ pkgname:
don't undefine C99 math macros, if !_GLIBCPP_USE_C99, so that we can use these functions in C++. espie@ agrees
This commit is contained in:
parent
6d68596d52
commit
0ffeb6ec02
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.30 2008/07/04 19:41:21 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.31 2008/07/25 20:50:26 martynas Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= alpha i386 m68k sparc sparc64 powerpc vax
|
||||
|
||||
@ -7,7 +7,7 @@ FULL_VERSION=3.3.6
|
||||
FULL_PKGVERSION=3.3.6
|
||||
|
||||
PKGNAME-main= gcc-${FULL_PKGVERSION}p10
|
||||
PKGNAME-c++ = g++-${FULL_PKGVERSION}p9
|
||||
PKGNAME-c++ = g++-${FULL_PKGVERSION}p10
|
||||
PKGNAME-estdc= libstdc++-${FULL_PKGVERSION}p3
|
||||
PKGNAME-g77= g77-${FULL_PKGVERSION}p9
|
||||
PKGNAME-java= gcj-${FULL_PKGVERSION}p6
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-gcc_Makefile_in,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $
|
||||
--- gcc/Makefile.in.orig Mon Jan 3 12:27:24 2005
|
||||
+++ gcc/Makefile.in Mon Jan 3 12:28:10 2005
|
||||
$OpenBSD: patch-gcc_Makefile_in,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/Makefile.in.orig Thu Apr 1 19:55:23 2004
|
||||
+++ gcc/Makefile.in Fri Jul 25 12:34:56 2008
|
||||
@@ -742,7 +742,8 @@ CXX_TARGET_OBJS=@cxx_target_objs@
|
||||
|
||||
# Language-specific object files for C and Objective C.
|
||||
@ -11,7 +11,7 @@ $OpenBSD: patch-gcc_Makefile_in,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $
|
||||
c-objc-common.o c-dump.o libcpp.a $(C_TARGET_OBJS)
|
||||
|
||||
# Language-specific object files for C.
|
||||
@@ -1269,6 +1270,9 @@ attribs.o : attribs.c $(CONFIG_H) $(SYST
|
||||
@@ -1269,6 +1270,9 @@ attribs.o : attribs.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H
|
||||
builtin-types.def $(TARGET_H) langhooks.h
|
||||
|
||||
c-format.o : c-format.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) langhooks.h \
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_builtins_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
--- gcc/builtins.c.orig Tue Aug 3 22:06:45 2004
|
||||
+++ gcc/builtins.c Mon Jan 3 10:17:41 2005
|
||||
@@ -4003,9 +4003,11 @@ expand_builtin (exp, target, subtarget,
|
||||
$OpenBSD: patch-gcc_builtins_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/builtins.c.orig Tue Aug 3 23:06:45 2004
|
||||
+++ gcc/builtins.c Fri Jul 25 12:34:56 2008
|
||||
@@ -4003,9 +4003,11 @@ expand_builtin (exp, target, subtarget, mode, ignore)
|
||||
break;
|
||||
|
||||
case BUILT_IN_STRCPY:
|
||||
@ -13,7 +13,7 @@ $OpenBSD: patch-gcc_builtins_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
break;
|
||||
|
||||
case BUILT_IN_STRNCPY:
|
||||
@@ -4015,9 +4017,11 @@ expand_builtin (exp, target, subtarget,
|
||||
@@ -4015,9 +4017,11 @@ expand_builtin (exp, target, subtarget, mode, ignore)
|
||||
break;
|
||||
|
||||
case BUILT_IN_STRCAT:
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_c-common_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
--- gcc/c-common.c.orig Sun Jun 8 00:13:24 2003
|
||||
+++ gcc/c-common.c Mon Jan 3 10:17:41 2005
|
||||
@@ -39,7 +39,6 @@ Software Foundation, 59 Temple Place - S
|
||||
$OpenBSD: patch-gcc_c-common_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/c-common.c.orig Sun Jun 8 01:13:24 2003
|
||||
+++ gcc/c-common.c Fri Jul 25 12:34:56 2008
|
||||
@@ -39,7 +39,6 @@ Software Foundation, 59 Temple Place - Suite 330, Bost
|
||||
#include "langhooks.h"
|
||||
#include "except.h" /* For USING_SJLJ_EXCEPTIONS. */
|
||||
#include "tree-inline.h"
|
||||
@ -20,7 +20,7 @@ $OpenBSD: patch-gcc_c-common_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
/* C/ObjC language option variables. */
|
||||
|
||||
|
||||
@@ -767,6 +769,8 @@ static tree handle_vector_size_attribute
|
||||
@@ -767,6 +769,8 @@ static tree handle_vector_size_attribute PARAMS ((tree
|
||||
bool *));
|
||||
static tree handle_nonnull_attribute PARAMS ((tree *, tree, tree, int,
|
||||
bool *));
|
||||
@ -29,7 +29,7 @@ $OpenBSD: patch-gcc_c-common_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
static tree handle_nothrow_attribute PARAMS ((tree *, tree, tree, int,
|
||||
bool *));
|
||||
static tree handle_cleanup_attribute PARAMS ((tree *, tree, tree, int,
|
||||
@@ -850,12 +854,16 @@ const struct attribute_spec c_common_att
|
||||
@@ -850,12 +854,16 @@ const struct attribute_spec c_common_attribute_table[]
|
||||
handle_deprecated_attribute },
|
||||
{ "vector_size", 1, 1, false, true, false,
|
||||
handle_vector_size_attribute },
|
||||
@ -46,7 +46,7 @@ $OpenBSD: patch-gcc_c-common_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
{ "nothrow", 0, 0, true, false, false,
|
||||
handle_nothrow_attribute },
|
||||
{ "may_alias", 0, 0, false, true, false, NULL },
|
||||
@@ -3052,6 +3060,7 @@ c_sizeof_or_alignof_type (type, op, comp
|
||||
@@ -3052,6 +3060,7 @@ c_sizeof_or_alignof_type (type, op, complain)
|
||||
const char *op_name;
|
||||
tree value = NULL;
|
||||
enum tree_code type_code = TREE_CODE (type);
|
||||
@ -54,7 +54,7 @@ $OpenBSD: patch-gcc_c-common_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
|
||||
my_friendly_assert (op == SIZEOF_EXPR || op == ALIGNOF_EXPR, 20020720);
|
||||
op_name = op == SIZEOF_EXPR ? "sizeof" : "__alignof__";
|
||||
@@ -3083,10 +3092,15 @@ c_sizeof_or_alignof_type (type, op, comp
|
||||
@@ -3083,10 +3092,15 @@ c_sizeof_or_alignof_type (type, op, complain)
|
||||
else
|
||||
{
|
||||
if (op == SIZEOF_EXPR)
|
||||
@ -74,7 +74,7 @@ $OpenBSD: patch-gcc_c-common_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
else
|
||||
value = size_int (TYPE_ALIGN (type) / BITS_PER_UNIT);
|
||||
}
|
||||
@@ -3097,7 +3111,10 @@ c_sizeof_or_alignof_type (type, op, comp
|
||||
@@ -3097,7 +3111,10 @@ c_sizeof_or_alignof_type (type, op, complain)
|
||||
`size_t', which is just a typedef for an ordinary integer type. */
|
||||
value = fold (build1 (NOP_EXPR, size_type_node, value));
|
||||
my_friendly_assert (!TYPE_IS_SIZETYPE (TREE_TYPE (value)), 20001021);
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-gcc_c-common_h,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
--- gcc/c-common.h.orig Sun Dec 1 18:51:44 2002
|
||||
+++ gcc/c-common.h Mon Jan 3 10:17:41 2005
|
||||
$OpenBSD: patch-gcc_c-common_h,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/c-common.h.orig Sun Dec 1 19:51:44 2002
|
||||
+++ gcc/c-common.h Fri Jul 25 12:34:57 2008
|
||||
@@ -501,7 +501,10 @@ extern int warn_format_nonliteral;
|
||||
|
||||
extern int warn_format_security;
|
||||
@ -12,7 +12,7 @@ $OpenBSD: patch-gcc_c-common_h,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
/* C/ObjC language option variables. */
|
||||
|
||||
|
||||
@@ -866,7 +869,10 @@ extern void check_function_arguments_rec
|
||||
@@ -866,7 +869,10 @@ extern void check_function_arguments_recurse PARAMS ((
|
||||
void *, tree,
|
||||
unsigned HOST_WIDE_INT));
|
||||
extern void check_function_format PARAMS ((int *, tree, tree));
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-gcc_c-format_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
--- gcc/c-format.c.orig Sun Dec 1 18:51:44 2002
|
||||
+++ gcc/c-format.c Mon Jan 3 10:17:41 2005
|
||||
$OpenBSD: patch-gcc_c-format_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/c-format.c.orig Sun Dec 1 19:51:44 2002
|
||||
+++ gcc/c-format.c Fri Jul 25 12:34:57 2008
|
||||
@@ -54,7 +54,7 @@ set_Wformat (setting)
|
||||
|
||||
/* This must be in the same order as format_types, with format_type_error
|
||||
@ -30,7 +30,7 @@ $OpenBSD: patch-gcc_c-format_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
/* The argument number of that parameter. */
|
||||
int arg_num;
|
||||
/* The next type to check for this format conversion, or NULL if none. */
|
||||
@@ -572,7 +578,15 @@ static const format_length_info printf_l
|
||||
@@ -572,7 +578,15 @@ static const format_length_info printf_length_specs[]
|
||||
{ NULL, 0, 0, NULL, 0, 0 }
|
||||
};
|
||||
|
||||
@ -46,7 +46,7 @@ $OpenBSD: patch-gcc_c-format_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
/* This differs from printf_length_specs only in that "Z" is not accepted. */
|
||||
static const format_length_info scanf_length_specs[] =
|
||||
{
|
||||
@@ -765,6 +779,46 @@ static const format_char_info print_char
|
||||
@@ -765,6 +779,46 @@ static const format_char_info print_char_table[] =
|
||||
{ NULL, 0, 0, NOLENGTHS, NULL, NULL }
|
||||
};
|
||||
|
||||
@ -93,7 +93,7 @@ $OpenBSD: patch-gcc_c-format_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
static const format_char_info scan_char_table[] =
|
||||
{
|
||||
/* C89 conversion specifiers. */
|
||||
@@ -828,6 +882,18 @@ static const format_kind_info format_typ
|
||||
@@ -828,6 +882,18 @@ static const format_kind_info format_types[] =
|
||||
'w', 0, 'p', 0, 'L',
|
||||
&integer_type_node, &integer_type_node
|
||||
},
|
||||
@ -112,7 +112,7 @@ $OpenBSD: patch-gcc_c-format_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
{ "scanf", scanf_length_specs, scan_char_table, "*'I", NULL,
|
||||
scanf_flag_specs, scanf_flag_pairs,
|
||||
FMT_FLAG_ARG_CONVERT|FMT_FLAG_SCANF_A_KLUDGE|FMT_FLAG_USE_DOLLAR|FMT_FLAG_ZERO_WIDTH_BAD|FMT_FLAG_DOLLAR_GAP_POINTER_OK,
|
||||
@@ -1574,6 +1640,7 @@ check_format_info_main (status, res, inf
|
||||
@@ -1574,6 +1640,7 @@ check_format_info_main (status, res, info, format_char
|
||||
const format_length_info *fli = NULL;
|
||||
const format_char_info *fci = NULL;
|
||||
char flag_chars[256];
|
||||
@ -120,7 +120,7 @@ $OpenBSD: patch-gcc_c-format_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
int aflag = 0;
|
||||
if (*format_chars == 0)
|
||||
{
|
||||
@@ -1715,20 +1782,29 @@ check_format_info_main (status, res, inf
|
||||
@@ -1715,20 +1782,29 @@ check_format_info_main (status, res, info, format_char
|
||||
/* Possibly read a numeric width. If the width is zero,
|
||||
we complain if appropriate. */
|
||||
int non_zero_width_char = FALSE;
|
||||
@ -154,7 +154,7 @@ $OpenBSD: patch-gcc_c-format_c,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
|
||||
i = strlen (flag_chars);
|
||||
flag_chars[i++] = fki->width_char;
|
||||
flag_chars[i] = 0;
|
||||
@@ -2126,10 +2202,15 @@ check_format_info_main (status, res, inf
|
||||
@@ -2126,10 +2202,15 @@ check_format_info_main (status, res, info, format_char
|
||||
main_wanted_type.wanted_type_name = wanted_type_name;
|
||||
main_wanted_type.pointer_count = fci->pointer_count + aflag;
|
||||
main_wanted_type.char_lenient_flag = 0;
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_c-opts_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
--- gcc/c-opts.c.orig Thu Jun 12 13:58:31 2003
|
||||
+++ gcc/c-opts.c Mon Jan 3 10:17:41 2005
|
||||
@@ -127,6 +127,7 @@ static void sanitize_cpp_opts PARAMS ((v
|
||||
$OpenBSD: patch-gcc_c-opts_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/c-opts.c.orig Thu Jun 12 14:58:31 2003
|
||||
+++ gcc/c-opts.c Fri Jul 25 12:34:57 2008
|
||||
@@ -127,6 +127,7 @@ static void sanitize_cpp_opts PARAMS ((void));
|
||||
OPT("Wabi", CL_CXX, OPT_Wabi) \
|
||||
OPT("Wall", CL_ALL, OPT_Wall) \
|
||||
OPT("Wbad-function-cast", CL_C, OPT_Wbad_function_cast) \
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-gcc_config_gcc,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $
|
||||
--- gcc/config.gcc.orig Thu Apr 29 06:42:47 2004
|
||||
+++ gcc/config.gcc Mon Jan 3 10:17:41 2005
|
||||
$OpenBSD: patch-gcc_config_gcc,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/config.gcc.orig Thu Apr 29 07:42:47 2004
|
||||
+++ gcc/config.gcc Fri Jul 25 12:34:57 2008
|
||||
@@ -402,9 +402,19 @@ case $machine in
|
||||
esac
|
||||
;;
|
||||
@ -110,7 +110,7 @@ $OpenBSD: patch-gcc_config_gcc,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $
|
||||
;;
|
||||
m88k-*-sysv4*)
|
||||
xm_defines=POSIX
|
||||
@@ -1893,13 +1928,19 @@ mips*-*-linux*) # Linux MIPS, either
|
||||
@@ -1893,13 +1928,19 @@ mips*-*-linux*) # Linux MIPS, either endian.
|
||||
esac
|
||||
tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux"
|
||||
;;
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_config_sparc_openbsd_h,v 1.2 2006/01/13 20:07:53 espie Exp $
|
||||
$OpenBSD: patch-gcc_config_sparc_openbsd_h,v 1.3 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/config/sparc/openbsd.h.orig Mon Oct 21 00:37:13 2002
|
||||
+++ gcc/config/sparc/openbsd.h Fri Jan 13 20:47:27 2006
|
||||
@@ -19,26 +19,49 @@ the Free Software Foundation, 59 Temple
|
||||
+++ gcc/config/sparc/openbsd.h Fri Jul 25 12:34:58 2008
|
||||
@@ -19,26 +19,49 @@ the Free Software Foundation, 59 Temple Place - Suite
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* Get generic OpenBSD definitions. */
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-gcc_cp_g++spec_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
--- gcc/cp/g++spec.c.orig Tue Mar 11 01:59:25 2003
|
||||
+++ gcc/cp/g++spec.c Mon Jan 3 10:54:03 2005
|
||||
$OpenBSD: patch-gcc_cp_g++spec_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/cp/g++spec.c.orig Tue Mar 11 02:59:25 2003
|
||||
+++ gcc/cp/g++spec.c Fri Jul 25 12:34:58 2008
|
||||
@@ -37,11 +37,17 @@ Boston, MA 02111-1307, USA. */
|
||||
#endif
|
||||
|
||||
@ -21,7 +21,7 @@ $OpenBSD: patch-gcc_cp_g++spec_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
|
||||
void
|
||||
lang_specific_driver (in_argc, in_argv, in_added_libraries)
|
||||
@@ -61,6 +67,10 @@ lang_specific_driver (in_argc, in_argv,
|
||||
@@ -61,6 +67,10 @@ lang_specific_driver (in_argc, in_argv, in_added_libra
|
||||
link in libstdc++. */
|
||||
int library = 1;
|
||||
|
||||
@ -32,7 +32,7 @@ $OpenBSD: patch-gcc_cp_g++spec_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
/* The number of arguments being added to what's in argv, other than
|
||||
libraries. We use this to track the number of times we've inserted
|
||||
-xc++/-xnone. */
|
||||
@@ -128,11 +138,18 @@ lang_specific_driver (in_argc, in_argv,
|
||||
@@ -128,11 +138,18 @@ lang_specific_driver (in_argc, in_argv, in_added_libra
|
||||
|
||||
if (argv[i][0] == '-')
|
||||
{
|
||||
@ -52,7 +52,7 @@ $OpenBSD: patch-gcc_cp_g++spec_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
else if (strcmp (argv[i], "-lm") == 0
|
||||
|| strcmp (argv[i], "-lmath") == 0
|
||||
|| strcmp (argv[i], MATH_LIBRARY) == 0
|
||||
@@ -146,6 +163,8 @@ lang_specific_driver (in_argc, in_argv,
|
||||
@@ -146,6 +163,8 @@ lang_specific_driver (in_argc, in_argv, in_added_libra
|
||||
}
|
||||
else if (strcmp (argv[i], "-lc") == 0)
|
||||
args[i] |= WITHLIBC;
|
||||
@ -61,7 +61,7 @@ $OpenBSD: patch-gcc_cp_g++spec_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
else if (strcmp (argv[i], "-pg") == 0 || strcmp (argv[i], "-p") == 0)
|
||||
saw_profile_flag++;
|
||||
else if (strcmp (argv[i], "-v") == 0)
|
||||
@@ -269,6 +288,12 @@ lang_specific_driver (in_argc, in_argv,
|
||||
@@ -269,6 +288,12 @@ lang_specific_driver (in_argc, in_argv, in_added_libra
|
||||
j++;
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_cp_typeck_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
--- gcc/cp/typeck.c.orig Sun Feb 22 17:27:37 2004
|
||||
+++ gcc/cp/typeck.c Mon Jan 3 10:17:44 2005
|
||||
@@ -2739,6 +2739,9 @@ build_function_call_real (function, para
|
||||
$OpenBSD: patch-gcc_cp_typeck_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/cp/typeck.c.orig Sun Feb 22 18:27:37 2004
|
||||
+++ gcc/cp/typeck.c Fri Jul 25 12:34:58 2008
|
||||
@@ -2739,6 +2739,9 @@ build_function_call_real (function, params, flags)
|
||||
if (warn_format)
|
||||
check_function_format (NULL, TYPE_ATTRIBUTES (fntype), coerced_params);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_fold-const_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
--- gcc/fold-const.c.orig Sun Aug 8 20:55:28 2004
|
||||
+++ gcc/fold-const.c Mon Jan 3 10:17:42 2005
|
||||
@@ -1036,7 +1036,11 @@ int_const_binop (code, arg1, arg2, notru
|
||||
$OpenBSD: patch-gcc_fold-const_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/fold-const.c.orig Sun Aug 8 21:55:28 2004
|
||||
+++ gcc/fold-const.c Fri Jul 25 12:34:58 2008
|
||||
@@ -1036,7 +1036,11 @@ int_const_binop (code, arg1, arg2, notrunc)
|
||||
= (TREE_CODE (type) == INTEGER_TYPE && TYPE_IS_SIZETYPE (type));
|
||||
int overflow = 0;
|
||||
int no_overflow = 0;
|
||||
@ -13,7 +13,7 @@ $OpenBSD: patch-gcc_fold-const_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
int1l = TREE_INT_CST_LOW (arg1);
|
||||
int1h = TREE_INT_CST_HIGH (arg1);
|
||||
int2l = TREE_INT_CST_LOW (arg2);
|
||||
@@ -1203,6 +1207,10 @@ int_const_binop (code, arg1, arg2, notru
|
||||
@@ -1203,6 +1207,10 @@ int_const_binop (code, arg1, arg2, notrunc)
|
||||
TREE_CONSTANT_OVERFLOW (t) = (TREE_OVERFLOW (t)
|
||||
| TREE_CONSTANT_OVERFLOW (arg1)
|
||||
| TREE_CONSTANT_OVERFLOW (arg2));
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_mklibgcc_in,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $
|
||||
--- gcc/mklibgcc.in.orig Wed Dec 24 23:42:28 2003
|
||||
+++ gcc/mklibgcc.in Mon Jan 3 10:17:42 2005
|
||||
@@ -63,10 +63,10 @@ make_compile='$(MAKE) GCC_FOR_TARGET="$(
|
||||
$OpenBSD: patch-gcc_mklibgcc_in,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/mklibgcc.in.orig Thu Dec 25 00:42:28 2003
|
||||
+++ gcc/mklibgcc.in Fri Jul 25 12:34:58 2008
|
||||
@@ -63,10 +63,10 @@ make_compile='$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET
|
||||
LANGUAGES="$(LANGUAGES)"'
|
||||
|
||||
# Dependencies for libgcc2.c
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_testsuite_g++_old-deja_old-deja_exp,v 1.1 2005/10/30 19:24:11 espie Exp $
|
||||
--- gcc/testsuite/g++.old-deja/old-deja.exp.orig Sun Oct 30 18:15:19 2005
|
||||
+++ gcc/testsuite/g++.old-deja/old-deja.exp Sun Oct 30 18:15:27 2005
|
||||
@@ -52,7 +52,7 @@ foreach file [lsort [find $srcdir/$subdi
|
||||
$OpenBSD: patch-gcc_testsuite_g++_old-deja_old-deja_exp,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/testsuite/g++.old-deja/old-deja.exp.orig Tue Oct 9 12:16:17 2001
|
||||
+++ gcc/testsuite/g++.old-deja/old-deja.exp Fri Jul 25 12:34:58 2008
|
||||
@@ -52,7 +52,7 @@ foreach file [lsort [find $srcdir/$subdir *.C]] {
|
||||
# We don't want old-dejagnu.exp to have to know about all the global
|
||||
# variables we use. For now we tell it about CXXFLAGS and LIBS and
|
||||
# leave LDFLAGS alone.
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_toplev_c,v 1.3 2005/02/27 15:42:50 espie Exp $
|
||||
--- gcc/toplev.c.orig Fri Mar 5 18:55:51 2004
|
||||
+++ gcc/toplev.c Sun Feb 27 13:50:52 2005
|
||||
@@ -852,7 +852,11 @@ int flag_instrument_function_entry_exit
|
||||
$OpenBSD: patch-gcc_toplev_c,v 1.4 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/toplev.c.orig Fri Mar 5 19:55:51 2004
|
||||
+++ gcc/toplev.c Fri Jul 25 12:34:58 2008
|
||||
@@ -852,7 +852,11 @@ int flag_instrument_function_entry_exit = 0;
|
||||
On SVR4 targets, it also controls whether or not to emit a
|
||||
string identifying the compiler. */
|
||||
|
||||
@ -32,7 +32,7 @@ $OpenBSD: patch-gcc_toplev_c,v 1.3 2005/02/27 15:42:50 espie Exp $
|
||||
/* Table of supported debugging formats. */
|
||||
static const struct
|
||||
{
|
||||
@@ -1188,6 +1204,10 @@ static const lang_independent_options f_
|
||||
@@ -1188,6 +1204,10 @@ static const lang_independent_options f_options[] =
|
||||
N_("Trap for signed overflow in addition / subtraction / multiplication") },
|
||||
{ "new-ra", &flag_new_regalloc, 1,
|
||||
N_("Use graph coloring register allocation.") },
|
||||
@ -53,7 +53,7 @@ $OpenBSD: patch-gcc_toplev_c,v 1.3 2005/02/27 15:42:50 espie Exp $
|
||||
|
||||
#define DEFINE_LANG_NAME(NAME) { NULL, NAME },
|
||||
|
||||
@@ -1547,7 +1570,9 @@ static const lang_independent_options W_
|
||||
@@ -1547,7 +1570,9 @@ static const lang_independent_options W_options[] =
|
||||
{"missing-noreturn", &warn_missing_noreturn, 1,
|
||||
N_("Warn about functions which might be candidates for attribute noreturn") },
|
||||
{"strict-aliasing", &warn_strict_aliasing, 1,
|
||||
@ -64,7 +64,7 @@ $OpenBSD: patch-gcc_toplev_c,v 1.3 2005/02/27 15:42:50 espie Exp $
|
||||
};
|
||||
|
||||
void
|
||||
@@ -4910,14 +4935,19 @@ parse_options_and_default_flags (argc, a
|
||||
@@ -4910,14 +4935,19 @@ parse_options_and_default_flags (argc, argv)
|
||||
flag_schedule_insns_after_reload = 1;
|
||||
#endif
|
||||
flag_regmove = 1;
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-gcc_tree_h,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
|
||||
--- gcc/tree.h.orig Mon Jan 3 12:24:09 2005
|
||||
+++ gcc/tree.h Mon Jan 3 12:24:21 2005
|
||||
@@ -698,6 +698,10 @@ extern void tree_vec_elt_check_failed PA
|
||||
$OpenBSD: patch-gcc_tree_h,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- gcc/tree.h.orig Sat Jan 3 07:14:23 2004
|
||||
+++ gcc/tree.h Fri Jul 25 12:34:58 2008
|
||||
@@ -698,6 +698,10 @@ extern void tree_vec_elt_check_failed PARAMS ((int, in
|
||||
#define TREE_LANG_FLAG_4(NODE) ((NODE)->common.lang_flag_4)
|
||||
#define TREE_LANG_FLAG_5(NODE) ((NODE)->common.lang_flag_5)
|
||||
#define TREE_LANG_FLAG_6(NODE) ((NODE)->common.lang_flag_6)
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- libffi/configure.in.orig 2003-08-09 08:59:00.000000000 +0200
|
||||
+++ libffi/configure.in 2003-11-10 20:33:50.000000000 +0100
|
||||
--- libffi/configure.in.orig Sat Aug 9 09:59:00 2003
|
||||
+++ libffi/configure.in Fri Jul 25 12:34:59 2008
|
||||
@@ -47,11 +47,13 @@ AC_PROG_LIBTOOL
|
||||
TARGETDIR="unknown"
|
||||
case "$host" in
|
||||
@ -14,7 +14,7 @@
|
||||
i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
|
||||
i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
||||
i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
||||
@@ -60,12 +62,17 @@ sparc-sun-4*) TARGET=SPARC; TARGETDIR=sp
|
||||
@@ -60,12 +62,17 @@ sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
|
||||
sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
|
||||
sparc-*-linux* | sparc-*-netbsdelf*) TARGET=SPARC; TARGETDIR=sparc;;
|
||||
sparc64-*-linux* | sparc64-*-netbsd*) TARGET=SPARC; TARGETDIR=sparc;;
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-libjava_java_lang_natRuntime_cc,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $
|
||||
--- libjava/java/lang/natRuntime.cc.orig 2003-11-11 18:17:19.000000000 +0100
|
||||
+++ libjava/java/lang/natRuntime.cc 2003-11-11 18:17:42.000000000 +0100
|
||||
@@ -341,7 +341,7 @@ java::lang::Runtime::traceMethodCalls (j
|
||||
$OpenBSD: patch-libjava_java_lang_natRuntime_cc,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- libjava/java/lang/natRuntime.cc.orig Fri Apr 25 19:02:23 2003
|
||||
+++ libjava/java/lang/natRuntime.cc Fri Jul 25 12:34:59 2008
|
||||
@@ -341,7 +341,7 @@ java::lang::Runtime::traceMethodCalls (jboolean)
|
||||
}
|
||||
|
||||
#if ! defined (DEFAULT_FILE_ENCODING) && defined (HAVE_ICONV) \
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-libobjc_Makefile_in,v 1.1 2006/01/08 21:35:09 espie Exp $
|
||||
--- libobjc/Makefile.in.orig Sun Jan 8 19:03:31 2006
|
||||
+++ libobjc/Makefile.in Sun Jan 8 20:45:30 2006
|
||||
@@ -261,15 +261,18 @@ $(OBJC_THREAD_FILE)_gc.lo: $(OBJC_THREAD
|
||||
$OpenBSD: patch-libobjc_Makefile_in,v 1.2 2008/07/25 20:50:26 martynas Exp $
|
||||
--- libobjc/Makefile.in.orig Sun Jan 26 13:29:56 2003
|
||||
+++ libobjc/Makefile.in Fri Jul 25 12:34:59 2008
|
||||
@@ -261,15 +261,18 @@ $(OBJC_THREAD_FILE)_gc.lo: $(OBJC_THREAD_FILE).c
|
||||
|
||||
doc: info dvi html
|
||||
|
||||
|
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-libstdc++-v3_include_c_std_std_cmath_h,v 1.1 2008/07/25 20:50:26 martynas Exp $
|
||||
--- libstdc++-v3/include/c_std/std_cmath.h.orig Tue Apr 15 12:31:05 2003
|
||||
+++ libstdc++-v3/include/c_std/std_cmath.h Fri Jul 25 12:35:45 2008
|
||||
@@ -647,8 +647,6 @@ namespace __gnu_cxx
|
||||
__capture_isunordered(_Tp __f1, _Tp __f2)
|
||||
{ return isunordered(__f1, __f2); }
|
||||
}
|
||||
-#endif /* _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC */
|
||||
-#endif
|
||||
|
||||
#undef fpclassify
|
||||
#undef isfinite
|
||||
@@ -663,8 +661,6 @@ namespace __gnu_cxx
|
||||
#undef islessgreater
|
||||
#undef isunordered
|
||||
|
||||
-#if _GLIBCPP_USE_C99
|
||||
-#if !_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC
|
||||
namespace __gnu_cxx
|
||||
{
|
||||
template<typename _Tp>
|
Loading…
Reference in New Issue
Block a user