aboutsummaryrefslogtreecommitdiff
path: root/gcc/wide-int.h
AgeCommit message (Collapse)AuthorFilesLines
2015-01-05Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r219188
2014-12-12re PR middle-end/64182 (wide-int rounding division is broken)Richard Sandiford1-6/+6
gcc/ PR middle-end/64182 * wide-int.h (wi::div_round, wi::mod_round): Fix rounding of tied cases. * double-int.c (div_and_round_double): Fix handling of unsigned cases. Use same rounding approach as wide-int.h. gcc/testsuite/ 2014-xx-xx Richard Sandiford <richard.sandiford@arm.com> Joseph Myers <joseph@codesourcery.com> PR middle-end/64182 * gcc.dg/plugin/wide-int-test-1.c, gcc.dg/plugin/wide-int_plugin.c: New test. * gcc.dg/plugin/plugin.exp: Register it. * gnat.dg/round_div.adb: New test. Co-Authored-By: Joseph Myers <joseph@codesourcery.com> From-SVN: r218678
2014-11-11system.h: Include algorithm and utility.Uros Bizjak1-2/+0
* system.h: Include algorithm and utility. * rtl.h: Do not include utility here. * wide-int.h: Ditto. * tree-vect-data-refs.c (swap): Remove template. (vect_prune_runtime_alias_test_list): Use std::swap instead of swap. From-SVN: r217348
2014-11-11re PR bootstrap/63699 (Bootstrap fails in libcc1 on darwin14)Francois-Xavier Coudert1-4/+4
PR bootstrap/63699 PR bootstrap/63750 * system.h: Include <string> before "safe-ctype.h" * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix calls to min/max with wi namespace. * ipa-chkp.c: Don't include <string>. * plugin.cc: Don't include <string>. From-SVN: r217342
2014-08-16* wide-int.h (generic_wide_int): Declare as class instead of struct.Gerald Pfeifer1-1/+1
From-SVN: r214068
2014-07-05wide-int.h (wide_int_storage): Change declaration from struct to class.Gerald Pfeifer1-1/+1
* wide-int.h (wide_int_storage): Change declaration from struct to class. From-SVN: r212305
2014-05-26wide-int.h (wi::int_traits <long>, [...]): Provide specializations.Richard Biener1-4/+14
2014-05-26 Richard Biener <rguenther@suse.de> * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>, wi::int_traits <long long>, wi::int_traits <unsigned long long>): Provide specializations. (wi::int_traits <HOST_WIDE_INT>, wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations. From-SVN: r210933
2014-05-11re PR c/61136 (ice in tree_nop_conversion)Richard Sandiford1-0/+12
gcc/ PR tree-optimization/61136 * wide-int.h (multiple_of_p): Define a version that doesn't return the quotient. * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an integer_zerop/const_binop pair. (multiple_of_p): Likewise, converting both operands to widest_int precision. gcc/testsuite/ * gcc.dg/torture/pr61136.c: New test. From-SVN: r210312
2014-05-06* wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.Mike Stump1-2/+0
From-SVN: r210128
2014-05-06Merge in wide-int.Kenneth Zadeck1-0/+3175
From-SVN: r210113