updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pic30-gcc / patches.diff
blob93c0560ef45e0e37249da0d50fd71ff10613adb6
1 --- ./gcc/config.gcc.orig 2009-01-31 18:53:24.000000000 +0100
2 +++ ./gcc/config.gcc 2009-01-31 19:19:35.000000000 +0100
3 @@ -1564,6 +1564,7 @@
4 host_can_use_collect2=no
5 host_xm_defines="PROGRAM_PREFIX=\\\"${program_prefix}\\\" ${host_xm_defines}"
6 extra_modes=pic30/pic30-modes.h
7 + tm_file="pic30/defines.h ${tm_file}"
8 LANGUAGES="c"
9 LIBGCCMK=
11 @@ -1573,6 +1574,7 @@
12 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
13 host_xm_defines="PROGRAM_PREFIX=\\\"${program_prefix}\\\" ${host_xm_defines}"
14 extra_modes=pic30/pic30-modes.h
15 + tm_file="pic30/defines.h ${tm_file}"
16 LANGUAGES="c"
17 LIBGCCMK=
19 --- /dev/null 2009-01-31 13:17:10.543334184 +0100
20 +++ ./gcc/config/pic30/defines.h 2009-01-31 19:22:32.000000000 +0100
21 @@ -0,0 +1,23 @@
22 +#define MPLABC30_COMMON_INCLUDE_PATH "/usr/pic30/include"
23 +#define MPLABC30_PIC24F_INCLUDE_PATH "/usr/pic30/include/PIC24F"
24 +#define MPLABC30_PIC24H_INCLUDE_PATH "/usr/pic30/include/PIC24H"
25 +#define MPLABC30_PIC30F_INCLUDE_PATH "/usr/pic30/include/PIC30F"
26 +#define MPLABC30_PIC33F_INCLUDE_PATH "/usr/pic30/include/PIC33F"
27 +#define MPLABC30_COMMON_LIB_PATH "/usr/pic30/lib"
28 +#define MPLABC30_PIC24F_LIB_PATH "/usr/pic30/lib/PIC24F"
29 +#define MPLABC30_PIC24H_LIB_PATH "/usr/pic30/lib/PIC24H"
30 +#define MPLABC30_PIC30F_LIB_PATH "/usr/pic30/lib/PIC30F"
31 +#define MPLABC30_PIC33F_LIB_PATH "/usr/pic30/lib/PIC33F"
32 +/*#define STANDARD_INCLUDE_DIR "/usr/pic30/include"*/
33 +/*
34 + * Major simplification hack.
35 + * I just hope this does the trick....
36 + * /Karro
37 + */
38 +#undef INCLUDE_DEFAULTS
39 +#define INCLUDE_DEFAULTS \
40 + { \
41 + { "/usr/pic30/include", "GCC", 0, 0 }, \
42 + { 0, 0, 0, 0 } \
43 + }