diff options
author | Bob Wilson <bob.wilson@acm.org> | 2007-12-20 17:21:07 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2007-12-20 17:21:07 +0000 |
commit | 1f7efbae406ff9f2e8967d508bfae665501dc8ae (patch) | |
tree | 6b5853975ffa4265a57a337d7e15471f71df8ae7 /gas/config/tc-xtensa.c | |
parent | 213e4dc22e5075dce6c0254ec4f4b6a34a2b77a1 (diff) | |
download | gdb-1f7efbae406ff9f2e8967d508bfae665501dc8ae.zip gdb-1f7efbae406ff9f2e8967d508bfae665501dc8ae.tar.gz gdb-1f7efbae406ff9f2e8967d508bfae665501dc8ae.tar.bz2 |
* config/tc-xtensa.c (xtensa_elf_cons): Set frag flags for
expressions without suffixes.
(get_frag_property_flags): Preserve is_no_transform flag for frags
not marked as either instructions or literals.
Diffstat (limited to 'gas/config/tc-xtensa.c')
-rw-r--r-- | gas/config/tc-xtensa.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index e632ef3..ab4578b 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c @@ -1558,7 +1558,10 @@ xtensa_elf_cons (int nbytes) } } else - emit_expr (&exp, (unsigned int) nbytes); + { + xtensa_set_frag_assembly_state (frag_now); + emit_expr (&exp, (unsigned int) nbytes); + } } while (*input_line_pointer++ == ','); @@ -10670,7 +10673,11 @@ get_frag_property_flags (const fragS *fragP, frag_flags *prop_flags) prop_flags->is_literal = TRUE; if (fragP->tc_frag_data.is_specific_opcode || fragP->tc_frag_data.is_no_transform) - prop_flags->is_no_transform = TRUE; + { + prop_flags->is_no_transform = TRUE; + if (xtensa_frag_flags_is_empty (prop_flags)) + prop_flags->is_data = TRUE; + } if (fragP->tc_frag_data.is_unreachable) prop_flags->is_unreachable = TRUE; else if (fragP->tc_frag_data.is_insn) |