summaryrefslogtreecommitdiff
path: root/cross/nios2-gcc41/patches/patch-gcc_config_nios2_nios2-proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'cross/nios2-gcc41/patches/patch-gcc_config_nios2_nios2-proto.h')
-rw-r--r--cross/nios2-gcc41/patches/patch-gcc_config_nios2_nios2-proto.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/cross/nios2-gcc41/patches/patch-gcc_config_nios2_nios2-proto.h b/cross/nios2-gcc41/patches/patch-gcc_config_nios2_nios2-proto.h
new file mode 100644
index 00000000000..c9e7c4196d0
--- /dev/null
+++ b/cross/nios2-gcc41/patches/patch-gcc_config_nios2_nios2-proto.h
@@ -0,0 +1,22 @@
+$NetBSD: patch-gcc_config_nios2_nios2-proto.h,v 1.1 2013/11/16 07:41:00 mef Exp $
+
+Correction of prototype declaration.
+This was origin of segmentation fault at compiling crtstuff.c
+on 64bit machine, thanks nisimura@
+
+diff --git a/gcc-4.1/gcc/config/nios2/nios2-protos.h b/gcc-4.1/gcc/config/nios2/nios2-protos.h
+index 7f72eaa..2b7db5d 100644
+--- a/gcc-4.1/gcc/config/nios2/nios2-protos.h
++++ gcc/config/nios2/nios2-protos.h
+@@ -35,8 +35,10 @@ extern enum reg_class reg_class_from_constraint (char, const char *);
+ extern void nios2_register_target_pragmas (void);
+
+ #ifdef RTX_CODE
+-extern int nios2_legitimate_address (rtx, enum machine_mode, int);
++extern bool nios2_legitimate_pic_operand_p (rtx x);
++extern bool nios2_legitimate_address (rtx, enum machine_mode, int);
+ extern int nios2_legitimate_constant (rtx);
++extern rtx nios2_legitimize_address (rtx, rtx, enum machine_mode);
+ extern void nios2_print_operand (FILE *, rtx, int);
+ extern void nios2_print_operand_address (FILE *, rtx);
+