[PATCH] D131533: [Flang][Driver] Enable PIC in the frontend

Usman Nadeem via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 9 17:12:20 PDT 2022


mnadeem created this revision.
mnadeem added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a reviewer: awarzynski.
Herald added a project: All.
mnadeem requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.

This patch does the following:

  Allow consumption of PIC flags (flags similar to clang) in flang-new and fc1.
  Set relocation model in the target machine.
  Set LLVM module flags for the respective PIC/PIE type.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131533

Files:
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Driver/ToolChains/CommonArgs.cpp
  clang/lib/Driver/ToolChains/CommonArgs.h
  clang/lib/Driver/ToolChains/Flang.cpp
  clang/lib/Driver/ToolChains/Linux.cpp
  flang/include/flang/Frontend/FrontendOptions.h
  flang/lib/Frontend/CompilerInvocation.cpp
  flang/lib/Frontend/FrontendActions.cpp
  flang/test/Driver/driver-help.f90
  flang/test/Driver/pic-flags.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131533.451302.patch
Type: text/x-patch
Size: 15080 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220810/0c63e270/attachment-0001.bin>


More information about the cfe-commits mailing list