This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto] Do not write out char_type_node with -funsigned-char


+  if (flag_signed_char == 0 && expr == char_type_node)
+    expr = unsigned_char_type_node;

Why not just generalize this?


  if (expr == char_type_node)
    expr = (TREE_UNSIGNED (expr) ? unsigned_char_type_node
            : signed_char_type_node);

Weren't you having problems with the char/schar/uchar thing
earlier?  I assume that name mangling has already been done
and the char_type_node distinction isn't relevant anymore...


r~



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]