From: Ulrich Weigand Date: Mon, 2 Mar 2009 19:38:26 +0000 (+0000) Subject: spu.c (TARGET_SECTION_TYPE_FLAGS): Define. X-Git-Tag: releases/gcc-4.3.4~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae2acd0e722825e3cbbf956a934330417060945;p=thirdparty%2Fgcc.git spu.c (TARGET_SECTION_TYPE_FLAGS): Define. * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define. (spu_section_type_flags): New function. From-SVN: r144551 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 04bfd8f95d3a..f6c5d16ec408 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-03-02 Ulrich Weigand + + * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define. + (spu_section_type_flags): New function. + 2009-02-28 Martin Jambor Backport from mainline: diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index ad4e2ec7adec..b6e47533401f 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -142,6 +142,7 @@ static int spu_builtin_vectorization_cost (bool); static bool spu_vector_alignment_reachable (const_tree, bool); static int spu_sms_res_mii (struct ddg *g); static void asm_file_start (void); +static unsigned int spu_section_type_flags (tree, const char *, int); extern const char *reg_names[]; rtx spu_compare_op0, spu_compare_op1; @@ -325,6 +326,9 @@ const struct attribute_spec spu_attribute_table[]; #undef TARGET_ASM_FILE_START #define TARGET_ASM_FILE_START asm_file_start +#undef TARGET_SECTION_TYPE_FLAGS +#define TARGET_SECTION_TYPE_FLAGS spu_section_type_flags + struct gcc_target targetm = TARGET_INITIALIZER; void @@ -6220,3 +6224,13 @@ asm_file_start (void) default_file_start (); } +/* Implement targetm.section_type_flags. */ +static unsigned int +spu_section_type_flags (tree decl, const char *name, int reloc) +{ + /* .toe needs to have type @nobits. */ + if (strcmp (name, ".toe") == 0) + return SECTION_BSS; + return default_section_type_flags (decl, name, reloc); +} +