This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Upstreaming small changes from the Rust project.
ClosedPublic

Authored by vadimcn on Dec 4 2014, 7:19 PM.

Details

Summary
  • Created a macro for const section declarations.

Diff Detail

Event Timeline

vadimcn updated this revision to Diff 16978.Dec 4 2014, 7:19 PM
vadimcn retitled this revision from to [compiler-rt] Upstreaming small changes from the Rust project..
vadimcn updated this object.
vadimcn edited the test plan for this revision. (Show Details)
vadimcn updated this object.Dec 4 2014, 7:25 PM
vadimcn set the repository for this revision to rL LLVM.
vadimcn added a subscriber: Unknown Object (MLST).

Hi,
You guys seem to be the most active in compiler-rt repo. Can you please review and commit? (or suggest somebody more appropriate). Thanks!

abdulras edited reviewers, added: compnerd; removed: abdulras.Dec 8 2014, 12:47 PM
samsonov added a subscriber: samsonov.

I've submitted permission change to sanitizer_common_interceptors_ioctl.inc in r223715.

Looks like changes to make/platform should also include clang_macho_embedded.mk.

compnerd added inline comments.Dec 8 2014, 8:12 PM
lib/builtins/assembly.h
45

I'd rather leave this part of the change out. We don't have a good way to test if the target is COFF, which these directives target, not specifically Windows.

make/config.mk
47 ↗(On Diff #16978)

Whats the reason for sinking the -fPIC into the individual makefiles rather than keeping it here?

vadimcn added inline comments.Dec 9 2014, 2:20 AM
lib/builtins/assembly.h
45

ok

make/config.mk
47 ↗(On Diff #16978)

mingw gcc issues a warning for each compiled file: "-fPIC ignored for target (all code is position independent)", which doesn't go well together with -Werror.

On second thought, -fno-PIC seems to override it, so perhaps I'll drop this change and instead add a special case when building for Windows.

vadimcn updated this revision to Diff 17077.Dec 9 2014, 2:22 AM
vadimcn updated this object.

Dropped "-fPIC" part of the change, dropped #ifdef WIN32_ check.

compnerd accepted this revision.Dec 9 2014, 6:35 PM
compnerd edited edge metadata.
This revision is now accepted and ready to land.Dec 9 2014, 6:35 PM
compnerd closed this revision.Dec 9 2014, 6:37 PM

Committed as SVN r223910.

Thanks for the patch!