Commit 07da68fd by Jie Zhang Committed by Bernd Schmidt

uclinux.h (NO_IMPLICIT_EXTERN_C): Define.

	* 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.

From-SVN: r102906
parent 1e39a151
2005-08-09 Jie Zhang <jie.zhang@analog.com>
* 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.
2005-08-09 James A. Morrison <phython@gcc.gnu.org> 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
* tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
......
...@@ -1406,14 +1406,8 @@ bfin_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED, ...@@ -1406,14 +1406,8 @@ bfin_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED,
int int
bfin_return_in_memory (tree type) bfin_return_in_memory (tree type)
{ {
int size; int size = int_size_in_bytes (type);
enum machine_mode mode = TYPE_MODE (type); return size > 2 * UNITS_PER_WORD || size == -1;
if (mode == BLKmode)
return 1;
size = int_size_in_bytes (type);
return size > 8;
} }
/* Register in which address to store a structure value /* Register in which address to store a structure value
......
...@@ -14,3 +14,5 @@ ...@@ -14,3 +14,5 @@
#undef USER_LABEL_PREFIX #undef USER_LABEL_PREFIX
#define USER_LABEL_PREFIX "_" #define USER_LABEL_PREFIX "_"
#define NO_IMPLICIT_EXTERN_C
...@@ -8,3 +8,5 @@ ...@@ -8,3 +8,5 @@
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC "%{pthread:-lpthread} -lc" #define LIB_SPEC "%{pthread:-lpthread} -lc"
#define NO_IMPLICIT_EXTERN_C
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment