This is the mail archive of the gcc-patches@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]

Re: Bad choices by expand_mult_highpart


On Sun, 21 Mar 2004, James Morrison wrote:
> The test case for this problem is:
>
> /* { dg-do run } */
> /* Divide a signed number by something that isn't a power of two */
> int main (int argc, char *argv[])
> {
>   volatile int i = 1;
>   return i / 10;
> }

Nit: should be "if (i / 10 != 0) abort ();"
No, I don't remember if the abort-on-error rule for test-cases
is documented.  I would've moved "i" to top-level; local
volatile variables confuse me.

brgds, H-P
PS. Thanks.


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