if-div.c: New file.
2007-05-02 Eric Christopher <echristo@apple.com> * gcc.dg/cpp/if-div.c: New file. 2007-05-02 Eric Christopher <echristo@apple.com> * expr.c (num_div_op): Don't overflow if the result is zero. From-SVN: r124358
This commit is contained in:
parent
fca35e1b54
commit
22a8a52d65
|
@ -1,3 +1,7 @@
|
||||||
|
2007-05-02 Eric Christopher <echristo@apple.com>
|
||||||
|
|
||||||
|
* gcc.dg/cpp/if-div.c: New file.
|
||||||
|
|
||||||
2007-05-02 Tom Tromey <tromey@redhat.com>
|
2007-05-02 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR preprocessor/28709:
|
PR preprocessor/28709:
|
||||||
|
@ -47,9 +51,9 @@
|
||||||
2007-05-01 Dorit Nuzman <dorit@il.ibm.com>
|
2007-05-01 Dorit Nuzman <dorit@il.ibm.com>
|
||||||
|
|
||||||
PR testsuite/31589
|
PR testsuite/31589
|
||||||
* gcc.dg/vect/vect-iv-9.c: Added vect_int_mult target keyword to
|
* gcc.dg/vect/vect-iv-9.c: Added vect_int_mult target keyword to
|
||||||
dg-final test.
|
dg-final test.
|
||||||
* gcc.dg/vect/vect-reduc-dot-u16b.c: Added vect_pack_trunc target
|
* gcc.dg/vect/vect-reduc-dot-u16b.c: Added vect_pack_trunc target
|
||||||
keyword to dg-final test.
|
keyword to dg-final test.
|
||||||
* gcc.dg/vect/vect-iv-4.c: Likewise.
|
* gcc.dg/vect/vect-iv-4.c: Likewise.
|
||||||
* gcc.dg/vect/vect-widen-mult-u16.c: Likewise.
|
* gcc.dg/vect/vect-widen-mult-u16.c: Likewise.
|
||||||
|
@ -58,7 +62,7 @@
|
||||||
* gcc.dg/vect/vect-reduc-dot-u16a.c: Change variable type to avoid a
|
* gcc.dg/vect/vect-reduc-dot-u16a.c: Change variable type to avoid a
|
||||||
cast.
|
cast.
|
||||||
* gcc.dg/vect/no-section-anchors-vect-69.c: xfail on is64.
|
* gcc.dg/vect/no-section-anchors-vect-69.c: xfail on is64.
|
||||||
* lib/target-supports.exp
|
* lib/target-supports.exp
|
||||||
(check_effective_target_vect_widen_sum_hi_to_si): Added ia64.
|
(check_effective_target_vect_widen_sum_hi_to_si): Added ia64.
|
||||||
(check_effective_target_vect_widen_sum_qi_to_hi): Added ia64.
|
(check_effective_target_vect_widen_sum_qi_to_hi): Added ia64.
|
||||||
|
|
||||||
|
@ -263,7 +267,7 @@
|
||||||
Olga Golovanevsky <olga@il.ibm.com>
|
Olga Golovanevsky <olga@il.ibm.com>
|
||||||
|
|
||||||
* g++.dg/other/str_empty.C: New test.
|
* g++.dg/other/str_empty.C: New test.
|
||||||
|
|
||||||
2007-04-24 Richard Henderson <rth@redhat.com>
|
2007-04-24 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* gcc.dg/vect/vect.exp: Don't run tests on Alpha.
|
* gcc.dg/vect/vect.exp: Don't run tests on Alpha.
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
/* { dg-do preprocess } */
|
||||||
|
|
||||||
|
/* Test that this preprocesses without error. */
|
||||||
|
|
||||||
|
#if (-1)/2
|
||||||
|
#endif
|
|
@ -1,3 +1,8 @@
|
||||||
|
2007-05-02 Eric Christopher <echristo@apple.com>
|
||||||
|
|
||||||
|
* expr.c (num_div_op): Don't overflow if the result is
|
||||||
|
zero.
|
||||||
|
|
||||||
2007-05-02 Tom Tromey <tromey@redhat.com>
|
2007-05-02 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR preprocessor/28709:
|
PR preprocessor/28709:
|
||||||
|
|
|
@ -91,7 +91,7 @@ interpret_float_suffix (const uchar *s, size_t len)
|
||||||
case 'l': case 'L': l++; break;
|
case 'l': case 'L': l++; break;
|
||||||
case 'i': case 'I':
|
case 'i': case 'I':
|
||||||
case 'j': case 'J': i++; break;
|
case 'j': case 'J': i++; break;
|
||||||
case 'd': case 'D':
|
case 'd': case 'D':
|
||||||
/* Disallow fd, ld suffixes. */
|
/* Disallow fd, ld suffixes. */
|
||||||
if (d && (f || l))
|
if (d && (f || l))
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -441,7 +441,7 @@ append_digit (cpp_num num, int digit, int base, size_t precision)
|
||||||
if (add_low + digit < add_low)
|
if (add_low + digit < add_low)
|
||||||
add_high++;
|
add_high++;
|
||||||
add_low += digit;
|
add_low += digit;
|
||||||
|
|
||||||
if (result.low + add_low < result.low)
|
if (result.low + add_low < result.low)
|
||||||
add_high++;
|
add_high++;
|
||||||
if (result.high + add_high < result.high)
|
if (result.high + add_high < result.high)
|
||||||
|
@ -1527,7 +1527,8 @@ num_div_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, enum cpp_ttype op)
|
||||||
{
|
{
|
||||||
if (negate)
|
if (negate)
|
||||||
result = num_negate (result, precision);
|
result = num_negate (result, precision);
|
||||||
result.overflow = num_positive (result, precision) ^ !negate;
|
result.overflow = (num_positive (result, precision) ^ !negate
|
||||||
|
&& !num_zerop (result));
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue