Creating a patch ready for gcc-patches list

Jan-Benedict Glaw jbglaw@lug-owl.de
Wed Jun 6 09:36:00 GMT 2007


On Wed, 2007-06-06 10:15:41 -0700, Brian Sidebotham <micros@valvers.com> wrote:
> --- ./gcc/value-prof.c	Mon Jun  4 17:27:14 2007
> +++ ./gcc/value-prof.c	Wed Jun  6 10:13:20 2007
> 
> @@ -883,15 +883,19 @@ tree_mod_subtract (tree stmt, tree opera
>    e12 = split_block (bb, bb1end);
>    bb2 = e12->dest;
>    bb2->count = all - count1;
> -
> +
>    if (ncounts)	/* Assumed to be 0 or 1.  */
>      {
>        e23 = split_block (bb2, bb2end);
>        bb3 = e23->dest;
>        bb3->count = all - count1 - count2;
> +      e34 = split_block (bb3 : bb2, bb3end);
                           `---------'

First of all, you should compile GCC with your patch applied, and then
run the testsuite. No new regressions should occur (or you should have
a good reason for them!)

> +    }
> +  else
> +    {
> +      e34 = split_block (bb2, bb3end);
>      }
> 
> -  e34 = split_block (ncounts ? bb3 : bb2, bb3end);
>    bb4 = e34->dest;
>    bb4->count = all;

However, this won't even compile, so please redo it, compile it, test
it with the regression suite and submit it with a ChangeLog entry.
(Just plain text, don't prepare it as a patch to the ChangeLog file!)

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:                 Gib Dein Bestes. Dann übertriff Dich selbst!
the second  :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20070606/37bd7833/attachment.sig>


More information about the Gcc mailing list