This is an archive of the discontinued LLVM Phabricator instance.

[mips] Correct size_t and ptrdiff_t for N32.
ClosedPublic

Authored by dsanders on Apr 23 2014, 7:04 AM.

Details

Summary

Correct size_t to be unsigned int and ptrdiff_t to be signed long. The types were the correct size before this change but
the exact type matters for name mangling and exception handling in C++.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 8774.Apr 23 2014, 7:04 AM
dsanders retitled this revision from to [mips] Correct size_t and ptrdiff_t for N32..
dsanders updated this object.
dsanders edited the test plan for this revision. (Show Details)
dsanders updated this revision to Diff 8776.Apr 23 2014, 9:19 AM

Added tests for size_t and ptrdiff_t in addition to the implicit test of size_t

Could you review this for me?

atanasyan accepted this revision.Apr 23 2014, 9:47 AM
atanasyan edited edge metadata.

LGTM

lib/Basic/Targets.cpp
5757–5758

I suggest to cleanup the code a bit and remove both else-after-return here.

http://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return

This revision is now accepted and ready to land.Apr 23 2014, 9:47 AM
dsanders updated this object.Apr 24 2014, 3:04 AM
dsanders edited edge metadata.
dsanders closed this revision.Apr 24 2014, 3:05 AM

Committed with the else-after-return fixed