------- Comment #2 from rguenth at gcc dot gnu dot org  2007-04-01 18:15 -------
Created an attachment (id=13316)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13316&action=view)
other patch

And an inlined variant producing

static inline size_t
insn_constraint_len_s (char fc, const char *str ATTRIBUTE_UNUSED)
{
  switch (fc)
    {
    case 'Y':
        return 2;
      break;
    default: break;
    }
  return 1;
}

for i?86.  Looking at other ports the worst case is s390 which has A* and
B* two-letter constraints.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31420

Reply via email to