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 testsuite/39830] gcc.dg/torture/pr39678.c fails if char type is unsigned



------- Comment #5 from hjl dot tools at gmail dot com  2009-04-21 02:39 -------
(In reply to comment #4)
> Created an attachment (id=17661)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17661&action=view) [edit]
> Patch to fix the issue
> 
> 2009-04-20  Jing Yu  <jingyu@google.com>
> 
>        PR testsuite/39830
>        * gcc.dg/torture/pr39678.c: Change the assignment to the char variable
>        from a negative number to a positive number.
> 
> Attach the patch. Both GCC trunk and GCC-4.4 needs update.
> Thanks!

Patch should be sent to gcc-patches mailing list. BTW, you can also use

struct X {
  signed char c;
  __complex__ float val;
};


-- 


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


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