]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/gcc/gcc-3.3.3/arm-common.dpatch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / gcc / gcc-3.3.3 / arm-common.dpatch
1 #! /bin/sh -e
2
3 src=gcc
4 if [ $# -eq 3 -a "$2" = '-d' ]; then
5     pdir="-d $3"
6     src=$3/gcc
7 elif [ $# -ne 1 ]; then
8     echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
9     exit 1
10 fi
11 case "$1" in
12     -patch)
13         patch $pdir -f --no-backup-if-mismatch -p0 --fuzz 10 < $0
14         ;;
15     -unpatch)
16         patch $pdir -f --no-backup-if-mismatch -R -p0 --fuzz 10 < $0
17         ;;
18     *)
19         echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
20         exit 1
21 esac
22 exit 0
23
24 # DP: delete ASM_OUTPUT_ALIGNED_COMMON from arm/elf.h, since it outputs
25 # DP: the alignment in bits not bytes.
26
27 Index: gcc/config/arm/elf.h
28 ===================================================================
29 RCS file: /cvs/gcc/gcc/gcc/config/arm/elf.h,v
30 retrieving revision 1.39
31 diff -u -r1.39 elf.h
32 --- gcc/config/arm/elf.h        21 Nov 2002 21:29:24 -0000      1.39
33 +++ gcc/config/arm/elf.h        20 Sep 2003 14:22:46 -0000
34 @@ -152,16 +152,6 @@
35  #undef  TARGET_ASM_NAMED_SECTION
36  #define TARGET_ASM_NAMED_SECTION  arm_elf_asm_named_section
37  \f
38 -#undef  ASM_OUTPUT_ALIGNED_COMMON
39 -#define ASM_OUTPUT_ALIGNED_COMMON(STREAM, NAME, SIZE, ALIGN)   \
40 -  do                                                           \
41 -    {                                                          \
42 -      fprintf (STREAM, "\t.comm\t");                           \
43 -      assemble_name (STREAM, NAME);                            \
44 -      fprintf (STREAM, ", %d, %d\n", SIZE, ALIGN);             \
45 -    }                                                          \
46 -  while (0)
47 -
48  /* For PIC code we need to explicitly specify (PLT) and (GOT) relocs.  */
49  #define NEED_PLT_RELOC flag_pic
50  #define NEED_GOT_RELOC flag_pic