llvm-project/flang/lib/Frontend
Peter Steinfeld 1cfae76ed9 [Flang] Adjust preprocessing to build modules correctly
Several module files in .../llvm-project/flang/module check for the
existence of the macro "__x86_64__" to conditionally compile Fortran
code.  Unfortunately, this macro was not being defined anywhere.  This
patch fixes that for compilations targeting 64 bit x86 machines.

I made the following changes --
  -- Removed the test for 32 bit X86 targets.  The rest of the compiler and
  runtime do not support X86 32 bits.
  -- Added predefined macros to define "__x86_64__"  and "__x86__64" to
  be 1 when the target architecture is 64 bit x86 and the "-cpp" option
  is on the command line.
  -- Changed the cmake file for creating the Fortran module files to use the
  "-cpp" option so that the macro "__x86_64__" will be defined when building
  the module files.
  -- Added a test.

Differential Revision: https://reviews.llvm.org/D135810
2022-10-14 12:27:48 -07:00
..
.clang-format [flang][driver] Switch to the MLIR coding style in the driver (nfc) 2022-05-14 10:27:06 +00:00
.clang-tidy [flang][driver] Switch to the MLIR coding style in the driver (nfc) 2022-05-14 10:27:06 +00:00
CMakeLists.txt [flang][driver] Add support for `-O{0|1|2|3}` 2022-06-27 10:06:14 +00:00
CodeGenOptions.cpp [Flang][Driver] Add support for PIC 2022-08-22 11:10:42 -07:00
CompilerInstance.cpp [flang] Propagate lowering options from driver. 2022-08-05 11:29:45 -07:00
CompilerInvocation.cpp [Flang] Adjust preprocessing to build modules correctly 2022-10-14 12:27:48 -07:00
FrontendAction.cpp [flang][driver] Switch to the MLIR coding style in the driver (nfc) 2022-05-14 10:27:06 +00:00
FrontendActions.cpp [Flang] Add -fconvert option to swap endianness for unformatted files. 2022-10-12 16:57:37 -07:00
FrontendOptions.cpp [flang][driver] Make `flang-new -fc1` accept MLIR files 2022-06-10 10:58:54 +00:00
TextDiagnostic.cpp [flang][driver] Switch to the MLIR coding style in the driver (nfc) 2022-05-14 10:27:06 +00:00
TextDiagnosticBuffer.cpp [flang][driver] Switch to the MLIR coding style in the driver (nfc) 2022-05-14 10:27:06 +00:00
TextDiagnosticPrinter.cpp Remove redundant return statements (NFC) 2022-07-17 15:37:46 -07:00