Dan Albert
f781e14912
Merge "Mark new/delete as weak in the NDK stubs."
...
am: aa8f766bf0
Change-Id: I1033bc0a963dd03476a77c0a54915b9c4353a5aa
2017-08-01 23:19:17 +00:00
George Burgess IV
a28402b431
Merge "libc fortify: make unistd.h use diagnose_if"
...
am: 0ec52ce15b
Change-Id: I1361011fc3f466f681d651f85e8e828228c77b41
2017-08-01 23:18:59 +00:00
Treehugger Robot
aa8f766bf0
Merge "Mark new/delete as weak in the NDK stubs."
2017-08-01 23:11:12 +00:00
Treehugger Robot
0ec52ce15b
Merge "libc fortify: make unistd.h use diagnose_if"
2017-08-01 23:06:09 +00:00
Elliott Hughes
0fa654aef5
Merge "Remove nullability specifications."
...
am: fe3d58f49f
Change-Id: Id4fff7a1ba3f1ed76ae77ec42fdd0ca664dceeff
2017-08-01 22:57:26 +00:00
Elliott Hughes
fe3d58f49f
Merge "Remove nullability specifications."
2017-08-01 22:46:40 +00:00
Elliott Hughes
5ba2c21159
Finish <stdio_ext.h>.
...
Implement __freading and __fwriting, and clarify the documentation that was
the cause of these not being implemented for years.
Bug: http://b/17157253
Test: ran tests
Change-Id: I89542c8131b13889e2585417a024050ecf2abcb7
2017-08-01 15:27:27 -07:00
Elliott Hughes
f54872e5bf
Merge "Clean up linker fatals slightly."
...
am: 1bac61f09f
Change-Id: Icf7d5b5b0def92ddb60c5c8a5c15e8867e76b2ad
2017-08-01 20:57:43 +00:00
George Burgess IV
16c173935f
libc fortify: make unistd.h use diagnose_if
...
Also:
- remove a NULL check. The bug that's been working around has been
fixed since clang r298431, and our compiler is built from r300080, and
- unwrap some function prototypes, per b/36984245.
If you're interested, here's what a new error versus an old one looks
like: https://drive.google.com/file/d/0B-8OBPboNJ_4MVdlYXdJbUFBYUk/view
Bug: 12231437
Test: m checkbuild on bullhead internal master; CtsBionicTestCases show
no new failures.
Change-Id: Ibafe61198988b4c8bee8391bcdf01bcbc04233de
2017-08-01 20:55:30 +00:00
Treehugger Robot
1bac61f09f
Merge "Clean up linker fatals slightly."
2017-08-01 20:48:56 +00:00
Elliott Hughes
3f66e74b90
Remove nullability specifications.
...
Bug: http://b/64251432
Test: builds
Change-Id: I5b1613484783f7478d30b5e694007f77fa626659
2017-08-01 13:24:40 -07:00
Elliott Hughes
d02c95a2ca
Merge "Consistently say va_arg rather than __va_arg."
...
am: 3e523a6562
Change-Id: I3a01c16fdf736a5df9b9be4a6ba58706aadb9f6d
2017-08-01 20:01:13 +00:00
Treehugger Robot
3e523a6562
Merge "Consistently say va_arg rather than __va_arg."
2017-08-01 19:51:32 +00:00
Christopher Ferris
89d6c321f8
Revert "Move back to the previous version of ion.h."
...
This reverts commit 1a0344d65d
.
Reason for revert: Fixed the original problem.
Change-Id: Ibf4ba05160048a3216e0cc49cc88519f73d00fa4
2017-08-01 19:32:14 +00:00
Elliott Hughes
84136f4be7
Merge "Clean up some <stdio.h> constants."
...
am: 7f86f1dd15
Change-Id: I917e76ed6786ce08fac63f887e84c04b20cd02b8
2017-08-01 18:14:00 +00:00
Elliott Hughes
7f86f1dd15
Merge "Clean up some <stdio.h> constants."
2017-08-01 18:09:02 +00:00
Elliott Hughes
b3f1343098
Merge "Remove restrict/__restrict."
...
am: 6616056f0f
Change-Id: I5343c191c3f424343d1c7617e054b2347d0dc6b5
2017-08-01 17:52:30 +00:00
Elliott Hughes
4a8de0d7ca
Consistently say va_arg rather than __va_arg.
...
Bug: http://b/64250392
Test: builds
Change-Id: I435242f620245d825b8a68365c71c99a60aba625
2017-08-01 10:48:08 -07:00
Elliott Hughes
6616056f0f
Merge "Remove restrict/__restrict."
2017-08-01 17:44:19 +00:00
Elliott Hughes
ad2d0380a6
Clean up linker fatals slightly.
...
Use __linker_cannot_link more consistently, and fix a comment.
Bug: http://b/22798163
Test: ran tests
Change-Id: Id6d868f459997eaa67b8cbbf85b0b0f2749bf43d
2017-08-01 10:06:10 -07:00
Elliott Hughes
ec6850d849
Remove restrict/__restrict.
...
We've never really used __restrict: only <string.h> and <stdio.h> (which
are still very similar to upstream BSD headers) consistently have these
annotations. Neither clang nor GCC warns for trivial cases, and there's
little obvious documentation benefit.
Bug: http://b/30833514
Test: builds
Change-Id: I3e4384281865475d0c55d764b546d8166419ee31
2017-08-01 08:28:46 -07:00
George Burgess IV
8bfe9f81ba
Merge "libc: Add diagnose_if macros to cdefs."
...
am: c2a10f7f1b
Change-Id: If9203f290902beb68cdc8d4986f74ba30dabd088
2017-08-01 02:44:01 +00:00
Treehugger Robot
c2a10f7f1b
Merge "libc: Add diagnose_if macros to cdefs."
2017-08-01 02:32:33 +00:00
George Burgess IV
f51724ab6b
Merge "libc: Split FORTIFY into its own headers"
...
am: 1db06faa38
Change-Id: I387fb3d28c9d3f827f0e0011718e72efb0949db7
2017-08-01 02:07:58 +00:00
Treehugger Robot
1db06faa38
Merge "libc: Split FORTIFY into its own headers"
2017-08-01 02:03:52 +00:00
Elliott Hughes
b15feb7024
Clean up some <stdio.h> constants.
...
And actually test an assertion rather than just state it in a comment.
Bug: N/A
Test: ran tests
Change-Id: I07699483aca4aac4e089d8b99123cb5bde9b3c63
2017-07-31 17:20:18 -07:00
George Burgess IV
b97d7dd5a1
libc: Add diagnose_if macros to cdefs.
...
I plan on having one review per file for the enable_if->diagnose_if
FORTIFY migration. Having this in means that no one review is dependent
on another.
Bug: 12231437
Test: m.
Change-Id: Ic0b07d7f7f6782e371c8792eb1e40cdfa32d3e35
2017-07-31 16:58:43 -07:00
Dan Albert
b4bf27218b
Merge "Allow calling v?dprintf for any target API level."
...
am: 4dd33f92d8
Change-Id: I740b3424c4e440350d63c3b7056c6e21acd77e60
2017-07-31 16:01:14 +00:00
Treehugger Robot
4dd33f92d8
Merge "Allow calling v?dprintf for any target API level."
2017-07-31 15:57:00 +00:00
Christopher Ferris
c0bafec3d8
Merge "Move back to the previous version of ion.h."
...
am: f94ddd7a0e
Change-Id: I7a782bf91587547dfd4e2137dbdb529d1cd80040
2017-07-29 21:07:39 +00:00
Christopher Ferris
f94ddd7a0e
Merge "Move back to the previous version of ion.h."
2017-07-29 21:04:00 +00:00
Christopher Ferris
1a0344d65d
Move back to the previous version of ion.h.
...
The new kernel headers changed this and lots of parts of the tree
want the old definition, so restore the previous version.
Test: Builds.
Change-Id: I725e56bb7c51c9fcd23ebc4b67eac33d66e196e7
2017-07-29 13:45:07 -07:00
Christopher Ferris
578763f75b
Merge "Remove workaround in <sys/epoll.h>."
...
am: 6c26e9ec6f
Change-Id: Ib77bb0a43f800061638e71bd572445820f4369b1
2017-07-29 19:06:47 +00:00
Christopher Ferris
ff5803059e
Merge "Update to kernel headers v4.12.3."
...
am: c478c32d2f
Change-Id: If521c86d7895959f49e6933be0a8e9959105ad0c
2017-07-29 19:06:41 +00:00
Christopher Ferris
6c26e9ec6f
Merge "Remove workaround in <sys/epoll.h>."
2017-07-29 19:03:09 +00:00
Christopher Ferris
c478c32d2f
Merge "Update to kernel headers v4.12.3."
2017-07-29 19:03:09 +00:00
Josh Gao
336f2b105e
Merge "versioner: compile with clang -include foo.h -
."
...
am: b1bbf2bb24
Change-Id: Ia5cd7d937435a147b152b82433e483ab0bea3b57
2017-07-29 16:44:23 +00:00
Treehugger Robot
b1bbf2bb24
Merge "versioner: compile with clang -include foo.h -
."
2017-07-29 16:36:33 +00:00
Elliott Hughes
b82a2d0bd5
Merge "POSIX getlogin_r/LOGIN_NAME_MAX/TTY_NAME_MAX."
...
am: 8aa4bc7c55
Change-Id: I578d3e5c096401b0447f9ed7223d3e20ffb5b19e
2017-07-29 14:59:15 +00:00
Elliott Hughes
8aa4bc7c55
Merge "POSIX getlogin_r/LOGIN_NAME_MAX/TTY_NAME_MAX."
2017-07-29 14:56:02 +00:00
Elliott Hughes
105e768638
Merge "Fix the sysconf _SC_2_VERSION test."
...
am: 3e183a5d30
Change-Id: I384fc20676715a1385a182428e5bbd17d4e3d8e8
2017-07-29 07:07:47 +00:00
Treehugger Robot
3e183a5d30
Merge "Fix the sysconf _SC_2_VERSION test."
2017-07-29 07:01:32 +00:00
Elliott Hughes
6c135f4c41
Fix the sysconf _SC_2_VERSION test.
...
Not sure how this ended up broken. Too many branches!
Bug: N/A
Test: ran tests
Change-Id: Ieef1e8170c9aaf139d9e0664475ccb08b8fcdeba
2017-07-28 16:53:32 -07:00
Elliott Hughes
06bd5862b1
POSIX getlogin_r/LOGIN_NAME_MAX/TTY_NAME_MAX.
...
Bug: N/A
Test: ran tests
Change-Id: I97c8ecc82fb09c3fa4bb5e6f000d46f04f3d1702
2017-07-28 16:34:38 -07:00
Elliott Hughes
a97079d94e
Merge "Implement wcwidth(3) in terms of icu4c."
...
am: bafa1985ec
Change-Id: Ia7e74b6124206fe5f2c5bf372c03ee5246045462
2017-07-28 21:50:26 +00:00
Elliott Hughes
bafa1985ec
Merge "Implement wcwidth(3) in terms of icu4c."
2017-07-28 21:42:13 +00:00
Elliott Hughes
249792a561
Merge "Actually turn on -Werror for crtbegin."
...
am: 07d2d327bf
Change-Id: Ia9be400c31c9815e2753bdbd30ef3f224dfda58f
2017-07-28 20:25:46 +00:00
Treehugger Robot
07d2d327bf
Merge "Actually turn on -Werror for crtbegin."
2017-07-28 20:14:57 +00:00
Josh Gao
d2ab9ffcb6
versioner: compile with clang -include foo.h -
.
...
At least one warning only triggers in files that are included, instead
of being passed directly. Switch to compiling with -include, and fix
the resulting warnings.
Bug: https://github.com/android-ndk/ndk/issues/474
Test: mma -j && versioner
Test: python tools/versioner/run_tests.py
Change-Id: I784698c18540c9cc30f372f279a1cec1d75721ea
2017-07-28 12:57:16 -07:00
Dan Albert
a1bc57f84c
Mark new/delete as weak in the NDK stubs.
...
Test: make ndk
Bug: None
Change-Id: I76eef4f0265e87ddbad84ac8c5d56225aa240239
2017-07-28 11:01:33 -07:00