[Bug testsuite/39830] gcc.dg/torture/pr39678.c fails if char type is unsigned

2009-04-21 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2009-04-21 08:39 --- I've fixed this: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146470 http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146471 (4.4) and only afterwards Andrew Pinski pointed me at this PR. Sorry for not checking bu

[Bug testsuite/39830] gcc.dg/torture/pr39678.c fails if char type is unsigned

2009-04-20 Thread hjl dot tools at gmail dot com
--- 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 > >PR testsuite/3

[Bug testsuite/39830] gcc.dg/torture/pr39678.c fails if char type is unsigned

2009-04-20 Thread jingyu at google dot com
--- Comment #4 from jingyu at google dot com 2009-04-21 01:29 --- Created an attachment (id=17661) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17661&action=view) Patch to fix the issue 2009-04-20 Jing Yu PR testsuite/39830 * gcc.dg/torture/pr39678.c: Change the

[Bug testsuite/39830] gcc.dg/torture/pr39678.c fails if char type is unsigned

2009-04-20 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2009-04-21 00:55 --- (In reply to comment #2) > Subject: Re: gcc.dg/torture/pr39678.c fails if char type > is unsigned > > Thanks H.J. for your quick response! > Do you want me to prepare a patch? Please do. Thanks. --

[Bug testsuite/39830] gcc.dg/torture/pr39678.c fails if char type is unsigned

2009-04-20 Thread jingyu at google dot com
--- Comment #2 from jingyu at google dot com 2009-04-21 00:54 --- Subject: Re: gcc.dg/torture/pr39678.c fails if char type is unsigned Thanks H.J. for your quick response! Do you want me to prepare a patch? I don't have write permission though. Thanks, Jing On Mon, Apr 20, 2

[Bug testsuite/39830] gcc.dg/torture/pr39678.c fails if char type is unsigned

2009-04-20 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2009-04-21 00:49 --- (In reply to comment #0) > On gcc.dg/torture/pr39678.c, it assigns -3 to a char variable ("x.c = -3") and > later checks if the char variable equals to -3 ("if (x.c != 3)"). > > This check would fail if the char typ