* [PATCH][RFC] Minuscule patch to remove apparently accidental break from switch
@ 2007-06-05 18:03 Simon Baldwin
2007-06-05 18:05 ` Andrew Pinski
0 siblings, 1 reply; 7+ messages in thread
From: Simon Baldwin @ 2007-06-05 18:03 UTC (permalink / raw)
To: gcc-patches
An apparently misplaced break statement within simplify_binary_operation_1()
causes calls to simplify_associative_operation() for xor operations to
potentially be missed.
This patch removes the break, enabling simplify_associative_operation().
Regression tested on i386 against the full g++ testsuite.
gcc/ChangeLog
2007-06-05 Simon Baldwin <simonb@google.com>
* simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
break that was preventing simplify_associative_operation() for xor.
diff -Nrcp3 orig/gcc/gcc/simplify-rtx.c gcc/gcc/simplify-rtx.c
*** orig/gcc/gcc/simplify-rtx.c Mon Jun 4 09:49:07 2007
--- gcc/gcc/simplify-rtx.c Tue Jun 5 10:52:40 2007
*************** simplify_binary_operation_1 (enum rtx_co
*** 2292,2299 ****
&& (reversed = reversed_comparison (op0, mode)))
return reversed;
- break;
-
tem = simplify_associative_operation (code, mode, op0, op1);
if (tem)
return tem;
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][RFC] Minuscule patch to remove apparently accidental break from switch
2007-06-05 18:03 [PATCH][RFC] Minuscule patch to remove apparently accidental break from switch Simon Baldwin
@ 2007-06-05 18:05 ` Andrew Pinski
2007-06-05 19:41 ` Simon Baldwin
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Pinski @ 2007-06-05 18:05 UTC (permalink / raw)
To: Simon Baldwin; +Cc: gcc-patches
On 6/5/07, Simon Baldwin <simonb@google.com> wrote:
> An apparently misplaced break statement within simplify_binary_operation_1()
> causes calls to simplify_associative_operation() for xor operations to
> potentially be missed.
>
> This patch removes the break, enabling simplify_associative_operation().
>
> Regression tested on i386 against the full g++ testsuite.
Can you run against the whole testsuite instead of just the g++? This
patch really needs a full bootstrap with all languages enabled as it
changes the middle-end.
Thanks,
Andrew Pinski
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][RFC] Minuscule patch to remove apparently accidental break from switch
2007-06-05 18:05 ` Andrew Pinski
@ 2007-06-05 19:41 ` Simon Baldwin
2007-06-05 19:56 ` David Daney
0 siblings, 1 reply; 7+ messages in thread
From: Simon Baldwin @ 2007-06-05 19:41 UTC (permalink / raw)
To: Andrew Pinski; +Cc: gcc-patches
Andrew Pinski wrote:
> On 6/5/07, Simon Baldwin <simonb@google.com> wrote:
>
>> An apparently misplaced break statement within
>> simplify_binary_operation_1()
>> causes calls to simplify_associative_operation() for xor operations to
>> potentially be missed.
>>
>> This patch removes the break, enabling simplify_associative_operation().
>>
>> Regression tested on i386 against the full g++ testsuite.
>
>
> Can you run against the whole testsuite instead of just the g++? This
> patch really needs a full bootstrap with all languages enabled as it
> changes the middle-end.
>
Thanks for the note. That's actually my typo in the patch description;
I've actually run both C and C++ testsuites. That is, all tests enabled
by "configure --enable-languages=c,c++".
Will those cover it, or should I plough through Fortran, ADA, and so on
as well?
Thanks,
--S
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][RFC] Minuscule patch to remove apparently accidental break from switch
2007-06-05 19:41 ` Simon Baldwin
@ 2007-06-05 19:56 ` David Daney
2007-06-06 8:00 ` Arnaud Charlet
0 siblings, 1 reply; 7+ messages in thread
From: David Daney @ 2007-06-05 19:56 UTC (permalink / raw)
To: Simon Baldwin; +Cc: Andrew Pinski, gcc-patches
Simon Baldwin wrote:
> Andrew Pinski wrote:
>
>> On 6/5/07, Simon Baldwin <simonb@google.com> wrote:
>>
>>> An apparently misplaced break statement within
>>> simplify_binary_operation_1()
>>> causes calls to simplify_associative_operation() for xor operations to
>>> potentially be missed.
>>>
>>> This patch removes the break, enabling simplify_associative_operation().
>>>
>>> Regression tested on i386 against the full g++ testsuite.
>>
>>
>> Can you run against the whole testsuite instead of just the g++? This
>> patch really needs a full bootstrap with all languages enabled as it
>> changes the middle-end.
>>
>
> Thanks for the note. That's actually my typo in the patch description;
> I've actually run both C and C++ testsuites. That is, all tests enabled
> by "configure --enable-languages=c,c++".
>
> Will those cover it, or should I plough through Fortran, ADA, and so on
> as well?
Just remove the --enable-languages and test all default languages.
David Daney
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][RFC] Minuscule patch to remove apparently accidental break from switch
2007-06-05 19:56 ` David Daney
@ 2007-06-06 8:00 ` Arnaud Charlet
2007-08-01 23:41 ` Simon Baldwin
0 siblings, 1 reply; 7+ messages in thread
From: Arnaud Charlet @ 2007-06-06 8:00 UTC (permalink / raw)
To: David Daney; +Cc: Simon Baldwin, Andrew Pinski, gcc-patches
> >Will those cover it, or should I plough through Fortran, ADA, and so on
> >as well?
>
> Just remove the --enable-languages and test all default languages.
To answer the question about Ada, to enable all languages, including Ada,
you can do: --enable-languages=all,ada
You do not have to, but you are encouraged to, so thanks in advance if
you do.
Arno
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][RFC] Minuscule patch to remove apparently accidental break from switch
2007-06-06 8:00 ` Arnaud Charlet
@ 2007-08-01 23:41 ` Simon Baldwin
2007-08-02 14:16 ` Diego Novillo
0 siblings, 1 reply; 7+ messages in thread
From: Simon Baldwin @ 2007-08-01 23:41 UTC (permalink / raw)
To: Andrew Pinski; +Cc: Arnaud Charlet, David Daney, gcc-patches
Arnaud Charlet wrote:
>>>Will those cover it, or should I plough through Fortran, ADA, and so on
>>>as well?
>>>
>>>
>>Just remove the --enable-languages and test all default languages.
>>
>>
>
>To answer the question about Ada, to enable all languages, including Ada,
>you can do: --enable-languages=all,ada
>
>You do not have to, but you are encouraged to, so thanks in advance if
>you do.
>
>
I've finally got around to rebuilding and retesting for all languages,
including Ada, objective C, and Fortran, with this patch. There is no
difference in test results between the two.
Okay for trunk, then?
BTW, as a refresher, since it's been a while, here's the totality of the
patch:
$ svn diff simplify-rtx.c
Index: simplify-rtx.c
===================================================================
--- simplify-rtx.c (revision 127106)
+++ simplify-rtx.c (working copy)
@@ -2293,8 +2293,6 @@
&& (reversed = reversed_comparison (op0, mode)))
return reversed;
- break;
-
tem = simplify_associative_operation (code, mode, op0, op1);
if (tem)
return tem;
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][RFC] Minuscule patch to remove apparently accidental break from switch
2007-08-01 23:41 ` Simon Baldwin
@ 2007-08-02 14:16 ` Diego Novillo
0 siblings, 0 replies; 7+ messages in thread
From: Diego Novillo @ 2007-08-02 14:16 UTC (permalink / raw)
To: Simon Baldwin; +Cc: Andrew Pinski, Arnaud Charlet, David Daney, gcc-patches
On 8/1/07 7:40 PM, Simon Baldwin wrote:
> Okay for trunk, then?
OK with ChangeLog.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-08-02 14:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-05 18:03 [PATCH][RFC] Minuscule patch to remove apparently accidental break from switch Simon Baldwin
2007-06-05 18:05 ` Andrew Pinski
2007-06-05 19:41 ` Simon Baldwin
2007-06-05 19:56 ` David Daney
2007-06-06 8:00 ` Arnaud Charlet
2007-08-01 23:41 ` Simon Baldwin
2007-08-02 14:16 ` Diego Novillo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).