]> git.pld-linux.org Git - packages/crossavr32-gcc.git/blame - crossavr32-gcc.patch
- pl for -libstdc++, ~cosmetics
[packages/crossavr32-gcc.git] / crossavr32-gcc.patch
CommitLineData
e8b35273 1diff -uNdrwB --strip-trailing-cr gcc-4.1.2/configure.in gcc-atmel/configure.in
2--- gcc-4.1.2/configure.in 2006-11-21 18:48:36.000000000 +0100
3+++ gcc-atmel/configure.in 2007-03-12 09:19:06.000000000 +0100
4@@ -497,6 +497,9 @@
5 arm-*-riscix*)
6 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
7 ;;
8+ avr32-*-*)
9+ noconfigdirs="$noconfigdirs target-libiberty target-libmudflap target-libffi ${libgcj}"
10+ ;;
11 avr-*-*)
12 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
13 ;;
14diff -uNdrwB --strip-trailing-cr gcc-4.1.2/gcc/builtins.c gcc-atmel/gcc/builtins.c
15--- gcc-4.1.2/gcc/builtins.c 2006-10-06 19:06:52.000000000 +0200
16+++ gcc-atmel/gcc/builtins.c 2007-03-12 09:19:06.000000000 +0100
17@@ -9228,7 +9228,7 @@
18
19 do
20 {
21- code = va_arg (ap, enum tree_code);
22+ code = va_arg (ap, int);
23 switch (code)
24 {
25 case 0:
26diff -uNdrwB --strip-trailing-cr gcc-4.1.2/gcc/calls.c gcc-atmel/gcc/calls.c
27--- gcc-4.1.2/gcc/calls.c 2007-01-29 18:08:31.000000000 +0100
28+++ gcc-atmel/gcc/calls.c 2007-03-12 09:19:06.000000000 +0100
29@@ -3434,7 +3434,7 @@
30 for (; count < nargs; count++)
31 {
32 rtx val = va_arg (p, rtx);
33- enum machine_mode mode = va_arg (p, enum machine_mode);
34+ enum machine_mode mode = va_arg (p, int);
35
36 /* We cannot convert the arg value to the mode the library wants here;
37 must do it earlier where we know the signedness of the arg. */
38diff -uNdrwB --strip-trailing-cr gcc-4.1.2/gcc/config/avr32/avr32-elf.h gcc-atmel/gcc/config/avr32/avr32-elf.h
39--- gcc-4.1.2/gcc/config/avr32/avr32-elf.h 1970-01-01 01:00:00.000000000 +0100
40+++ gcc-atmel/gcc/config/avr32/avr32-elf.h 2006-11-17 10:38:10.000000000 +0100
41@@ -0,0 +1,82 @@
42+/*
43+ Elf specific definitions.
44+ Copyright 2003-2006 Atmel Corporation.
45+
46+ Written by Ronny Pedersen, Atmel Norway, <rpedersen@atmel.com>
47+
48+ This file is part of GCC.
49+
50+ This program is free software; you can redistribute it and/or modify
51+ it under the terms of the GNU General Public License as published by
52+ the Free Software Foundation; either version 2 of the License, or
53+ (at your option) any later version.
54+
55+ This program is distributed in the hope that it will be useful,
56+ but WITHOUT ANY WARRANTY; without even the implied warranty of
57+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
58+ GNU General Public License for more details.
59+
60+ You should have received a copy of the GNU General Public License
61+ along with this program; if not, write to the Free Software
62+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
63+
64+
65+/*****************************************************************************
66+ * Controlling the Compilator Driver, 'gcc'
67+ *****************************************************************************/
68+
69+/* Run-time Target Specification. */
70+#undef TARGET_VERSION
71+#define TARGET_VERSION fputs (" (AVR32 GNU with ELF)", stderr);
72+
73+/*
74+Another C string constant used much like LINK_SPEC. The
75+difference between the two is that STARTFILE_SPEC is used at
76+the very beginning of the command given to the linker.
77+
78+If this macro is not defined, a default is provided that loads the
79+standard C startup file from the usual place. See gcc.c.
80+*/
81+#undef STARTFILE_SPEC
82+#define STARTFILE_SPEC "crt0%O%s crti%O%s crtbegin%O%s"
83+
84+#undef LINK_SPEC
85+#define LINK_SPEC "%{muse-oscall:--defsym __do_not_use_oscall_coproc__=0} %{mrelax|O*:%{mno-relax|O0|O1: ;:--relax}} %{mpart=*:-mavr32elf_%*} %{mcpu=*:-mavr32elf_%*}"
86+
87+
88+/*
89+Another C string constant used much like LINK_SPEC. The
90+difference between the two is that ENDFILE_SPEC is used at
91+the very end of the command given to the linker.
92+
93+Do not define this macro if it does not need to do anything.
94+*/
95+#undef ENDFILE_SPEC
96+#define ENDFILE_SPEC "crtend%O%s crtn%O%s"
97+
98+
99+/* Target CPU builtins. */
100+#define TARGET_CPU_CPP_BUILTINS() \
101+ do \
102+ { \
103+ builtin_define ("__avr32__"); \
104+ builtin_define ("__AVR32__"); \
105+ builtin_define ("__AVR32_ELF__"); \
106+ builtin_define (avr32_part->macro); \
107+ builtin_define (avr32_arch->macro); \
108+ if (avr32_arch->uarch_type == UARCH_TYPE_AVR32A) \
109+ builtin_define ("__AVR32_AVR32A__"); \
110+ else \
111+ builtin_define ("__AVR32_AVR32B__"); \
112+ if (TARGET_UNALIGNED_WORD) \
113+ builtin_define ("__AVR32_HAS_UNALIGNED_WORD__"); \
114+ if (TARGET_SIMD) \
115+ builtin_define ("__AVR32_HAS_SIMD__"); \
116+ if (TARGET_DSP) \
117+ builtin_define ("__AVR32_HAS_DSP__"); \
118+ if (TARGET_RMW) \
119+ builtin_define ("__AVR32_HAS_RMW__"); \
120+ if (TARGET_BRANCH_PRED) \
121+ builtin_define ("__AVR32_HAS_BRANCH_PRED__"); \
122+ } \
123+ while (0)
124diff -uNdrwB --strip-trailing-cr gcc-4.1.2/gcc/config/avr32/avr32-modes.def gcc-atmel/gcc/config/avr32/avr32-modes.def
125--- gcc-4.1.2/gcc/config/avr32/avr32-modes.def 1970-01-01 01:00:00.000000000 +0100
126+++ gcc-atmel/gcc/config/avr32/avr32-modes.def 2005-08-19 14:17:15.000000000 +0200
127@@ -0,0 +1 @@
128+VECTOR_MODES (INT, 4); /* V4QI V2HI */
129diff -uNdrwB --strip-trailing-cr gcc-4.1.2/gcc/config/avr32/avr32-protos.h gcc-atmel/gcc/config/avr32/avr32-protos.h
130--- gcc-4.1.2/gcc/config/avr32/avr32-protos.h 1970-01-01 01:00:00.000000000 +0100
131+++ gcc-atmel/gcc/config/avr32/avr32-protos.h 2006-10-10 13:03:42.000000000 +0200
132@@ -0,0 +1,175 @@
133+/*
134+ Prototypes for exported functions defined in avr32.c
135+ Copyright 2003-2006 Atmel Corporation.
136+
137+ Written by Ronny Pedersen, Atmel Norway, <rpedersen@atmel.com>
138