Dmitriy Kuminov
170484a3cf
Update ChangeLog for 9.2.0 OS/2 Beta 3.
gcc-9_2_0-release-os2-b3
2020-07-23 04:15:36 +04:00
Dmitriy Kuminov
e9edfe37d6
gcc: Avoid nested response file usage on EMX.
...
This commit improves ccbcbf0696 .
Closes #14 .
2020-06-19 15:42:44 +04:00
Dmitriy Kuminov
7d9b429416
Update ChangeLog for 9.2.0 OS/2 Beta 2.
gcc-9_2_0-release-os2-b2
2020-03-27 14:34:20 +03:00
Dmitriy Kuminov
cf3ddd69a7
libstdc++v3: Fix OS/2 build breaks with enabled wchar_t specialisations.
...
Regression of 2eafb76 .
Closes #16 .
2020-03-17 23:24:21 +03:00
Dmitriy Kuminov
2c58f6b97e
OS/2: Remove dead code.
...
This code is a leftover from older ports and not really used any more.
This commit also fixes a few compiler warnings.
2020-02-07 22:00:48 +03:00
Dmitriy Kuminov
16a351da1e
OS/2: Define wint_t to be signed int.
...
This is for compatibility with LIBCn.
Needed for #16 .
2020-02-07 21:14:07 +03:00
Dmitriy Kuminov
ccbcbf0696
OS/2: Fix upstream regression in response file processing.
...
This is a regression of e7208389c8 .
Closes #14 .
2020-02-07 21:10:20 +03:00
Dmitriy Kuminov
fee94d14ba
README: Add gcc-wlink and gcc-wrc to install instructions.
...
W/o them, gcc will default to ILINK which is not supported (and most likely, is absent from PATH anyway).
2020-01-15 21:30:48 +03:00
Dmitriy Kuminov
ee72211e30
Update README and ChangeLog for 9.2.0 OS/2 Beta 1.
...
Note that this commit also converts these files to Markdown and
adds a few missing ChangeLog entries for previous OS/2 releases.
gcc-9_2_0-release-os2-b1
2020-01-14 03:27:15 +03:00
Dmitriy Kuminov
4202248449
libstdc++: Force OS/2 DLL name base to be stdcpp instead of stdc++.
...
This is both for backward compatibility with previous builds and
to avoid "dangerous" symbols (+) in the DLL name.
Needed for #7 .
2019-12-28 15:00:48 +03:00
Dmitriy Kuminov
c4a0e5e733
Rename autoconf.sh to autogen.sh to avoid potential clash with Autotools.
2019-12-26 17:47:17 +03:00
Dmitriy Kuminov
79d1856968
Revert "OS/2: Enable C99 stuffs in C++11"
...
This reverts commit 08fda42141 .
These hacks are not necessary any longer since the respective fixes have been applied to LIBC, see
7f3d308fd6 and
ac12fd8873 .
2019-12-26 02:44:10 +03:00
Dmitriy Kuminov
e76e0e5f37
Remove all configure scripts and other generated Autotools files.
...
On platforms that are not officially supported by GNU Autotools (like OS/2)
it is necessary to generate configure and other related stuff using platform-specific
Autoconf and Automake to make the build succeed. A script autoconf.sh added
by this commit does that.
Note that it's necessary to remove pre-generated upstream versions of these files
from Git completely in order to avoid seeing multiple differences resulting from
different versions of Autotools (and also to save some space - configure files
are huge).
This commit also adds a few minor bits to configure.ac/Makefile.am of a few
projects to help autoconf.sh do its job properly.
Needed for #2 .
2019-12-14 18:12:52 +03:00
Dmitriy Kuminov
87466ca6d6
OS/2: Add ctype_base::blank required by newer libstdc++.
...
Borrowed #ifdef from other platform's headers.
2019-12-14 18:11:45 +03:00
Dmitriy Kuminov
58809f9c36
OS/2: Better align optlink/system cconv to new GCC code.
...
This preserves the current vendor (9.2.0) order of things in init_cumulative_args.
It also fixes a couple of build breaks.
2019-12-13 22:11:17 +03:00
Dmitriy Kuminov
59bb434c6e
OS/2: libquadmath: Fake missing putwc.
...
LIBC lacks putwc, see https://github.com/bitwiseworks/libc/issues/8 .
https://github.com/bitwiseworks/libc/issues/8
2019-12-11 17:16:57 +03:00
Dmitriy Kuminov
a2e789db1c
Use which to find fixincl extension.
...
This is necessary on platforms where it is .exe (OS/2 or Windows).
Note that it didn't affect Windows because fixincl is not run there at all.
2019-12-11 17:15:46 +03:00
Dmitriy Kuminov
bbde29b9c9
OS/2: Fix small build breaks.
2019-12-11 17:14:35 +03:00
Paul Smedley
b833c1e35a
OS/2: Synchronize EMX code with recent Windows NT (Cygwin) changes.
...
This commit contains a lot of changes in many EMX-related sources for several years.
Unfortunately, there are not many notes on the changes from the author so it's really
too much of work to split them in smaller pieces.
Also note that this patchset was brushed up by the committer (several questionable changes
and leftovers removed, several minor issues are fixed).
2019-12-11 17:07:16 +03:00
Paul Smedley
4c1b7b3a1a
OS/2: Make -mstackrealign effect default on SSE targets.
...
This change is copied from Windows which has the same problem.
2019-12-10 23:25:57 +03:00
Paul Smedley
d43272449c
OS/2: Enable mmap in fixincludes.
2019-12-10 22:56:58 +03:00
Paul Smedley
40783daa73
OS/2: configure: Make --enable-decimal-float default on EMX.
2019-12-10 22:53:51 +03:00
KO Myung-Hun
08fda42141
OS/2: Enable C99 stuffs in C++11
...
C++11 supports some C99 features. However OS/2 kLIBC headers do not
support them well.
To workaround, define some feature test macros as built-in. They are
__STDC_CONSTANT_MACROS
__STDC_LIMIT_MACROS
__LONG_LONG_SUPPORTED
Especially, __LONG_LONG_SUPPORTED enables _GLIBCXX_USE_C99 feature in
libstdc++-v3, which use -std=c++98 to test C99 features in C++.
modified: gcc/config/i386/emx.h
modified: libstdc++-v3/config/os/os2/os_defines.h
(cherry picked from commit fef1630c35955e6352f9734b43d20758ce7508be)
2019-11-28 00:12:36 +03:00
KO Myung-Hun
2eafb765c8
OS/2: Implement OS/2-specific locale(ctype) support
...
new file: config/os/os2/ctype_base.h
new file: config/os/os2/ctype_configure_char.cc
new file: config/os/os2/ctype_inline.h
new file: config/os/os2/os_defines.h
modified: configure.host
(cherry picked from commit abbd4b1a7087fd066353eff2646d1d5a0c30c5a4)
2019-11-28 00:11:32 +03:00
KO Myung-Hun
203e99b908
OS/2: Add C++11 thread support
...
modified: libgcc/config.host
modified: libgcc/config/i386/libgcc-emx.ver
new file: libgcc/config/i386/t-gthr-os2
new file: libgcc/gthr-os2.c
modified: libgcc/gthr-os2.h
(cherry picked from commit e012188309ff098911c960c2b44472aa99239cb1)
2019-11-28 00:10:27 +03:00
KO Myung-Hun
8798a932e9
OS/2: Do not pass write_fd to the child
...
This causes the server shell to be frozen even if kill()ed on OS/2.
modified: fixincludes/procopen.c
(cherry picked from commit 553acd1d2637ad02732236c3db99c03c5645fe65)
2019-11-28 00:09:23 +03:00
KO Myung-Hun
7a40698734
OS/2: Install missing headers, especially C11 headers
...
modified: gcc/config/i386/t-emx
(cherry picked from commit 3a2ba97bb4ce723fab383253443c8b545fac2d67)
2019-11-28 00:08:19 +03:00
KO Myung-Hun
ed42c6ffd1
OS/2: Add missing built-in integer macros
...
modified: gcc/config.gcc
new file: gcc/config/i386/emx-stdint.h
(cherry picked from commit ff0cf594424d7a5e23ccd178a2f8ee87f84d40d4)
2019-11-28 00:07:15 +03:00
KO Myung-Hun
1f14fad8d8
OS/2: Append $(exeext) to fixincl target
...
This fixes the problem that build process stops due to trying to generate
fixincl even though fixincl.exe was already made.
modified: gcc/Makefile.in
(cherry picked from commit 284c93ce585dfc4314e8b6763af979a3efd1856f)
2019-11-28 00:06:10 +03:00
Yuri Dario
95c3496237
Add a custom list of exports for emx/klibc, __chkstk_ms is the first one.
...
(cherry picked from commit b3e878e3513cb2e8040bbf0d3ff9f8aee281c08f)
2019-11-28 00:05:06 +03:00
Yuri Dario
87b3dbeb8f
Use default compiler for building libgcc, fix def file name.
...
(cherry picked from commit cb18b623a643051af19324136d5afacfceea7ec3)
2019-11-28 00:04:02 +03:00
Dmitriy Kuminov
6f2181b02f
OS/2: Enable frame pointer by default in source due to configure bug.
...
See #8 for details.
(cherry picked from commit 8ae923657e8d45965eeb26a77a7bef530cdbe174)
2019-11-28 00:02:57 +03:00
Yuri Dario
14b657b657
Use standard toolchain to build gcc runtime also under OS/2.
...
(cherry picked from commit 29412a18f82fba2611c481258088721fe61b65a0)
2019-11-28 00:01:53 +03:00
Yuri Dario
0cf65992ee
Allow sorting of symbols and add a description to .def file.
...
(cherry picked from commit eac89e2b95512a354d20b852a8cd6ca421b577ca)
2019-11-28 00:00:45 +03:00
Dmitriy Kuminov
9c65d3bfc3
OS/2: Don't emit DWARF2 unwind tables on OS/2 by default.
...
See #8 for more info.
(cherry picked from commit 4712cb74ba517ad855791481a1c143629a36c49a)
2019-11-27 23:59:38 +03:00
Yuri Dario
8f6c3ebca4
Change gccXXX version name to gcc1 as in gcc abi specifications.
...
(cherry picked from commit 6622f7f8ee666440e2aa0be3d7c165114ee88cd6)
2019-11-27 23:58:30 +03:00
Yuri Dario
b44820ecbd
Added two minor patches from gcc 4.7.3 lost in merge.
...
(cherry picked from commit 9f11779a6499aa0d7bd227786e35510031c651cd)
2019-11-27 23:57:22 +03:00
Paul Smedley
5fcaeb2edd
Fix misapplied diff
...
(cherry picked from commit 0d318da7947dc690bf09689783344215c1fc3931)
2019-11-27 23:56:15 +03:00
Paul Smedley
e24a04b6fc
Remove comments from ASM_OUTPUT_LABELREF which broke the macro expansion
...
(cherry picked from commit de3ef1ce149762c5d78eeeca33c39b74d01bdb3f)
2019-11-27 23:55:08 +03:00
Paul Smedley
be9361fe35
Fix build break
...
(cherry picked from commit 3b9acf6afdb2fc6aec96a0d3816332cdb060bd39)
2019-11-27 23:54:00 +03:00
Paul Smedley
0456c1ba9a
add map file for gccxxx.dll; make it build with newer gcc
...
(cherry picked from commit f0fc648730e125550e4d16ae3423cc3f1df5c63b)
2019-11-27 23:52:53 +03:00
Paul Smedley
745f521bcc
Add changes from http://trac.netlabs.org/libc/changeset/3856
...
(cherry picked from commit 75bc6fef452066f218b06640176dbc0fe614da65)
2019-11-27 23:51:45 +03:00
Paul Smedley
227720ee1f
t-emx tweaks to make it build
...
(cherry picked from commit bc36c7521b2be62b4604d91e657d4aeee8b361e1)
2019-11-27 23:50:38 +03:00
Paul Smedley
ab64c14059
Add some headers to make it build
...
(cherry picked from commit c12a08068a4584873ec187f02e9624121f809b7d)
2019-11-27 23:49:30 +03:00
Paul Smedley
1ae8c665c4
Rename gen_system_suffix to gen_system_or_optlink_prefix and use it for optlink too
...
(cherry picked from commit f8736712c69b719c852bae9f47b47eb7b83c5b73)
2019-11-27 23:48:23 +03:00
Paul Smedley
e3f21253b8
Tidy up function definitions in emx.c
...
(cherry picked from commit b92897484e566125d08794a701d6287b7c9f8ad4)
2019-11-27 23:47:16 +03:00
Paul Smedley
7ba04e554b
Fix screwed up commits/tidyups to i386.c
...
(cherry picked from commit fb1d629b774fb8d54db4c11d80be4bbe536e0648)
2019-11-27 23:46:08 +03:00
Paul Smedley
79f176ed32
housekeeping in emx.h, remove PARAMS() in function definitions
...
(cherry picked from commit 444fa56422f67a39cbad6cd22ff2f551083896a2)
2019-11-27 23:45:01 +03:00
Paul Smedley
2e21bbd626
add definition of STACK_CHECK_STATIC_BUILTIN to emx.
...
(cherry picked from commit b76ec6e38b92cea632b8c71fd2318d7250ef6c44)
2019-11-27 23:43:53 +03:00
Paul Smedley
265b1557bf
rename TARGET_MANGLE_DECL_ASSEMBLER_NAME to SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME
...
(cherry picked from commit 13e09cfdea4a8c7ff9f9b5d1f32f6a0f7fbec450)
2019-11-27 23:42:46 +03:00