• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

Revision15c5f3f502ed01d2ba361e466a520b252979a75f (tree)
Zeit2018-04-17 02:23:40
AutorAldy Hernandez <aldyh@gcc....>
CommiterAldy Hernandez

Log Message

One last tweak before we move onto the new world/branch.

From-SVN: r259404

Ändern Zusammenfassung

Diff

--- a/gcc/gimple-ssa-warn-restrict.c
+++ b/gcc/gimple-ssa-warn-restrict.c
@@ -308,11 +308,17 @@ builtin_memref::extend_offset_range (tree offset)
308308 if (TREE_CODE (offset) == SSA_NAME)
309309 {
310310 wide_int min, max;
311- if (get_range_info (offset, &min, &max))
311+ value_range_type rng = get_range_info_as_value_range (offset, &min, &max);
312+ if (rng == VR_RANGE)
312313 {
313314 offrange[0] += offset_int::from (min, SIGNED);
314315 offrange[1] += offset_int::from (max, SIGNED);
315316 }
317+ else if (rng == VR_ANTI_RANGE)
318+ {
319+ offrange[0] += offset_int::from (max + 1, SIGNED);
320+ offrange[1] += offset_int::from (min - 1, SIGNED);
321+ }
316322 else
317323 {
318324 gimple *stmt = SSA_NAME_DEF_STMT (offset);