Skip to content

Commit c5c9d2b

Browse files
author
jianxin.lai
committed
initial support of clang based front end clang2whirl. Refer osprey/clang2whirl/README.md for instructions to build and use clang front end.
1 parent 9e58af7 commit c5c9d2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+30433
-1551
lines changed

HOWTO-INSTALL-OPEN64

+15-13
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ In order to compile Open64 successfully, you should meet the following
2929
requirements:
3030

3131
* Linux based OS
32-
Currently, Open64 is intensively tested on Linux on IA64/X86_64/IA32.
32+
Currently, Open64 is intensively tested on Linux on IA64/X86_64/IA32. The
33+
recommended OS is Ubuntu 16.04 LTS.
3334

3435
* IA32/x86_64/IA64 based machine
3536
In this release, Open64 is supported and tested for the Itanium 2 and
@@ -42,10 +43,8 @@ requirements:
4243
Makefile.
4344

4445
* GCC (GNU Compiler Collection)
45-
In order to compile the Open64 source code, you need GCC 3.3.x - 4.2.x.
46-
Support for GCC 2.x has been dropped since release 1.0. If you don't have
47-
any of the suggested GCC versions above, we recommend that you to install
48-
GCC 4.1.x.
46+
In order to compile the Open64 source code, you need GCC 5.x - 7.x. The
47+
recommended GCC version is GCC 5.4.0 available on Ubuntu 16.04 LTS.
4948

5049

5150
Obtaining the Source Code
@@ -56,25 +55,25 @@ To compile Open64 you need to obtain the source code first.
5655
There are two ways:
5756

5857
* Obtain the Source Code as Archive
59-
You can download the source code from Sourceforge.net
60-
You will find the links to the different versions in our download section.
61-
(http://www.open64.net/download.html)
58+
You can download the source code from github.com. You can download
59+
different versions from github.com. The master zip file is available
60+
at:
61+
https://github.com/open64-compiler/open64/archive/master.zip
6262

63-
Extract the source code and the prebuild binaries/libraries
63+
Extract the source code:
6464

65-
tar xzf open64-4.2.tar.gz
65+
unzip master.zip
6666

6767
* Obtain the Source Code from our Subversion Repository
6868
You can also obtain the latest version of our source code from the sub-
6969
version repository.
7070
To get the latest version issue the following command:
7171

72-
svn export https://svn.open64.net/svnroot/open64/trunk open64
72+
git clone https://github.com/open64-compiler/open64.git open64
7373

7474
This will copy the latest code to the directory open64.
7575

76-
You can also surf through our subversion repository online.
77-
(http://svn.open64.net)
76+
You can also surf through the git repository online on github.com.
7877

7978
Compiling
8079
---------
@@ -85,6 +84,9 @@ necessary to set variables on the make command to control the build;
8584
MACHINE_TYPE, BUILD_OPTIMIZE, and TOOLROOT arguments were passed to the
8685
make command to control what type of open64 compiler to build.
8786

87+
To build open64 with CLANG front end, please check and follow the instructions
88+
available in osprey/clang2whirl/README.md.
89+
8890
In the new build process, these arguments are passed to the configure
8991
script (using a different syntax) and then the 'make all' and 'make
9092
install' commands are run without any arguments.

Makefile.in

+5
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ endif
130130

131131
GNU4_FE_COMPONENTS = \
132132
$(NATIVE_BUILD_DIR)/wgen/wgen42 \
133+
$(NATIVE_BUILD_DIR)/clang2whirl/clangfe \
133134
$(GNUFE_BUILD_SUBDIR)/gcc/cc1 \
134135
$(GNUFE_BUILD_SUBDIR)/gcc/cc1plus
135136

@@ -236,6 +237,9 @@ $(NATIVE_BUILD_DIR)/g++fe/gfecc gfecc: libiberty libcomutil libcmplrs
236237
$(NATIVE_BUILD_DIR)/wgen/wgen42 wgen42: libiberty libcomutil libcmplrs $(NATIVE_BUILD_DIR)/libspin_4_2_0/libgspin42.a
237238
$(MAKE) -C $(NATIVE_BUILD_DIR)/wgen
238239

240+
$(NATIVE_BUILD_DIR)/clang2whirl/clangfe clangfe: include libiberty libcomutil libcmplrs
241+
$(MAKE) -C $(NATIVE_BUILD_DIR)/clang2whirl
242+
239243
ifeq ($(BUILD_TYPE), SHARED)
240244

241245
$(NATIVE_BUILD_DIR)/be/be be: be.so
@@ -436,6 +440,7 @@ clobber: clean
436440
clean: $(CLEAN_LIB)
437441
$(MAKE) -C $(NATIVE_BUILD_DIR)/driver clobber
438442
$(MAKE) -C $(NATIVE_BUILD_DIR)/wgen clobber
443+
$(MAKE) -C $(NATIVE_BUILD_DIR)/clang2whirl clobber
439444
ifeq ($(BUILD_GNU3), YES)
440445
$(MAKE) -C $(NATIVE_BUILD_DIR)/gccfe clobber
441446
$(MAKE) -C $(NATIVE_BUILD_DIR)/g++fe clobber

README

+4-5
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ that objects produced by the Open64 compilers can link with objects
99
produced by other ABI compliant compilers.
1010

1111
The latest information and updates for the Open64 compilers will
12-
eventually be found at http://www.open64.net. The latest code in
13-
development can be obtained via SVN at http://svn.open64.net.
14-
The downloadable packages of sources or binaries can be found at
15-
http://www.sf.net/projects/open64.
12+
eventually be found at https://github.com/open64-compiler/open64. The
13+
latest code in development can be obtained via GIT at:
14+
https://github.com/open64-compiler/open64
1615

1716
Please send problem reports to the mailing list described to the
18-
BugZilla system at https://bugs.open64.net
17+
BugZilla system at https://github.com/open64-compiler/open64
1918

2019
Language highlights:
2120

0 commit comments

Comments
 (0)