This is an archive of the discontinued LLVM Phabricator instance.

Haiku: Pick up a few more codegen parametres from downstream
ClosedPublic

Authored by brad on Sep 2 2023, 11:48 PM.

Details

Summary

Pick up a few more codegen parametres from downstream. The DWARF version matches the GCC config.

DWARF version 4, Math Errno handling, ObjC ABI handling, and debug handling.

Diff Detail

Event Timeline

brad created this revision.Sep 2 2023, 11:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2023, 11:48 PM
brad requested review of this revision.Sep 2 2023, 11:48 PM
brad updated this revision to Diff 555621.Sep 3 2023, 12:47 AM

Add a test for the debug handling.

brad updated this revision to Diff 555622.Sep 3 2023, 1:02 AM

More context

nielx added a comment.Sep 3 2023, 1:09 AM

Have you been able to test the changes?

clang/lib/Driver/ToolChains/Haiku.h
39

I propose pushing this to version 4. Haiku's GCC also defaults to version 4 now.

brad added a comment.Sep 3 2023, 1:30 AM
clang/lib/Driver/ToolChains/Haiku.h
39

I was using the version utilized by the patchset from the LLVM pacakge in HaikuPorts.

+  if (!global_options_set.x_dwarf_version)
+    dwarf_version = 4;

It seems you're right. I think it should be bumped up as well.

brad updated this revision to Diff 555623.Sep 3 2023, 1:38 AM

Bump DWARF version to 4.

brad edited the summary of this revision. (Show Details)Sep 3 2023, 1:39 AM
brad edited the summary of this revision. (Show Details)
brad marked an inline comment as done.Sep 3 2023, 1:43 AM
brad updated this revision to Diff 555626.Sep 3 2023, 2:30 AM
brad marked an inline comment as not done.

Use --target= for all additions.

brad added a subscriber: waddlesplash.
nielx accepted this revision.Sep 3 2023, 11:50 PM

Patch looks good to me and in line with previous work that was done on LLVM to run it on Haiku.

This revision is now accepted and ready to land.Sep 3 2023, 11:50 PM
This revision was landed with ongoing or failed builds.Sep 4 2023, 12:06 AM
This revision was automatically updated to reflect the committed changes.