This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/39830] gcc.dg/torture/pr39678.c fails if char type is unsigned
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Apr 2009 02:39:15 -0000
- Subject: [Bug testsuite/39830] gcc.dg/torture/pr39678.c fails if char type is unsigned
- References: <bug-39830-17567@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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