aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-03-02 19:32:05 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2009-03-02 19:32:05 +0000
commit500a1f851341345c9dda92ea893bf0a98d519c39 (patch)
tree9e16f87ac245cdf0c7cd0fdfafa390c4e4ee8358 /gcc
parent33b4155d1b81433517ceaba879a68bb68a0ba661 (diff)
downloadgcc-500a1f851341345c9dda92ea893bf0a98d519c39.zip
gcc-500a1f851341345c9dda92ea893bf0a98d519c39.tar.gz
gcc-500a1f851341345c9dda92ea893bf0a98d519c39.tar.bz2
spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
* config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define. (spu_section_type_flags): New function. From-SVN: r144550
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/spu/spu.c14
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fdd53c5..5250766 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
+ (spu_section_type_flags): New function.
+
2009-03-02 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c
index a291252..c2fbb331b 100644
--- a/gcc/config/spu/spu.c
+++ b/gcc/config/spu/spu.c
@@ -143,6 +143,7 @@ static bool spu_vector_alignment_reachable (const_tree, bool);
static tree spu_builtin_vec_perm (tree, tree *);
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;
@@ -329,6 +330,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
@@ -6285,3 +6289,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);
+}
+