This is the mail archive of the gcc-bugs@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]

[Bug target/30406] ICE in LOGICAL(8) functions



------- Comment #22 from pinskia at gcc dot gnu dot org  2007-01-10 23:20 -------
It should be rewritten as:
  if ((INTEGRAL_TYPE_P (valtype)
       && GET_MODE_BITSIZE (TYPE_MODE (valtype)) < BITS_PER_WORD)
      || POINTER_TYPE_P (valtype))
    mode = TARGET_32BIT ? SImode : DImode;
  else
    mode = TYPE_MODE (valtype);

TYPE_PRECISION is incorrect as it says the numbers of bits used and not the
number of bits for the type itself.


-- 


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


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