This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Some Blackfin updates
- From: Bernd Schmidt <bernds_cb1 at t-online dot de>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 09 Aug 2005 11:48:54 +0200
- Subject: Some Blackfin updates
These are small updates to the Blackfin port by Jie Zhang. I'll also
apply these to the 4.0 branch.
Bernd
* config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
* config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
* config/bfin/bfin.c (bfin_return_in_memory): Update to really match
Visual DSP.
Index: config/bfin/bfin.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/bfin/bfin.c,v
retrieving revision 1.19
diff -c -p -r1.19 bfin.c
*** config/bfin/bfin.c 6 Aug 2005 13:26:03 -0000 1.19
--- config/bfin/bfin.c 9 Aug 2005 09:37:16 -0000
*************** bfin_pass_by_reference (CUMULATIVE_ARGS
*** 1406,1419 ****
int
bfin_return_in_memory (tree type)
{
! int size;
! enum machine_mode mode = TYPE_MODE (type);
!
! if (mode == BLKmode)
! return 1;
! size = int_size_in_bytes (type);
!
! return size > 8;
}
/* Register in which address to store a structure value
--- 1406,1413 ----
int
bfin_return_in_memory (tree type)
{
! int size = int_size_in_bytes (type);
! return size > 2 * UNITS_PER_WORD || size == -1;
}
/* Register in which address to store a structure value
Index: config/bfin/elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/bfin/elf.h,v
retrieving revision 1.1
diff -c -p -r1.1 elf.h
*** config/bfin/elf.h 5 Apr 2005 11:26:48 -0000 1.1
--- config/bfin/elf.h 9 Aug 2005 09:37:16 -0000
***************
*** 14,16 ****
--- 14,18 ----
#undef USER_LABEL_PREFIX
#define USER_LABEL_PREFIX "_"
+
+ #define NO_IMPLICIT_EXTERN_C
Index: config/bfin/uclinux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/bfin/uclinux.h,v
retrieving revision 1.1
diff -c -p -r1.1 uclinux.h
*** config/bfin/uclinux.h 6 Jun 2005 09:46:39 -0000 1.1
--- config/bfin/uclinux.h 9 Aug 2005 09:37:16 -0000
***************
*** 8,10 ****
--- 8,12 ----
#undef LIB_SPEC
#define LIB_SPEC "%{pthread:-lpthread} -lc"
+
+ #define NO_IMPLICIT_EXTERN_C