Inspired on Dave Korn's comments : fix libgcc DLL support.
[cegcc.git] / cegcc / src / gcc-4.4.0 / ChangeLog.ce
blob6ecb0ce645f337db2b9d26a04ce37643fb37e42e
1 2009-06-02  Danny Backx  <dannybackx@users.sourceforge.net>
3         * gcc/config/i386/mingw32ce.h, gcc/config/arm/wince-cegcc.h,
4         gcc/config/arm/mingw32.h (LIBGCC_SPEC) : Remove, replace by
5         * gcc/config/i386/mingw32ce.h, gcc/config/arm/wince-cegcc.h,
6         gcc/config/arm/mingw32.h (SHARED_LIBGCC_SPEC, REAL_LIBGCC_SPEC) : New
7         macros that support the shared libgcc.
9 2009-05-30  Danny Backx  <dannybackx@users.sourceforge.net>
11         * gcc/config/i386/mingw32ce.h : Use _DllMainCRTStartup with underscore.
12         * gcc/config/i386/mingw32ce.h (_WIN32,WIN32,WINNT) : Define in
13         CPP_SPEC instead of EXTRA_OS_CPP_BUILTINS.
15 2009-05-21  Danny Backx  <dannybackx@users.sourceforge.net>
17         * libgcc/config.host, gcc/config.gcc : Define i?86*-mingw32ce as a
18         separate target, with extra files crtbegin.o and crtend.o . Apparently
19         both places must have an identical list here.
20         * gcc/config/i386/t-wince : Add include files from the source tree to
21         get libgcc2 and crtbegin.c and crtend.c to compile.
23 2009-05-19  Danny Backx  <dannybackx@users.sourceforge.net>
24         * gcc/config/arm/cygming.opt, mingw32.h, pe-cxx.h, pe-stubs.c : Copy
25         from older mingw32ce gcc port. Mostly Pedro's work.
26         * gcc/config/i386/mingw32ce.h, t-wince.h : Likewise, but now in the
27         i386 directory for better integration.
28         * gcc/config/arm/cegcc.opt, wince-cegcc.h, cegcc1.c, t-wince-cegcc :
29         Copy from older cegcc/gcc port.
30         * gcc/config.gcc : Change arm*-wince-cegcc* to arm*-*-cegcc*.
31         * libgcc/config.host : Add arm*-*-cegcc*, arm*-*-mingw32ce* targets.
32         * libgcc/config/arm/t-wince-pe : New file, part of Pedro's work for
33         gcc-trunk.
34         * libstdc++-v3/configure.host : Add cegcc*, mingw32ce*.
35         * libstdc++-v3/crossconfig.m4 : Add *-cegcc*.
36         * libstdc++-v3/config/os/mingw/runtimeopts.h : New file, part of
37         Pedro's work for gcc-trunk.
38         * libstdc++-v3/config/os/mingw/runtimeopts.h(force_new_p) : Remove
39         getenv() call.
40         * libstdc++-v3/config/os/mingw/runtimeopts.h(debug_message_length) :
41         Add.
42         * libstdc++-v3/configure.ac: Add some checks, part of Pedro's work.
43         * libstdc++-v3/acinclude.m4 : Likewise.
44         * libstdc++-v3/linkage.m4(GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_1) :
45         Add checks, part of Pedro's work.
46         * libstdc++-v3/src/debug.cc(_M_get_max_length) : Replace a getenv
47         based implementation by use of runtimeopts, part of Pedro's work.
48         * libstdc++-v3/include/ext/pool_allocator.h : Likewise.
49         * libstdc++-v3/include/ext/mt_allocator.h : Likewise.
50         * libstdc++-v3/include/ext/stdio_filebuf.h : Add some conditional
51         compilation, part of Pedro's work.
52         * libstdc++-v3/include/ext/stdio_sync_filebuf.h : Likewise.
53         * libstdc++-v3/include/c_global/cstdlib : Likewise.
54         * libstdc++-v3/include/c_global/cstdio : Likewise.
55         * libstdc++-v3/include/c_global/ctime : Likewise.
56         * libstdc++-v3/include/c_global/cwchar : Likewise.
57         * libstdc++-v3/include/c_global/cstring : Likewise.
58         * libstdc++-v3/include/precompiled/stdc++.h : Likewise.
59         * libstdc++-v3/config/locale/generic/collate_members.cc : Likewise.
60         * libstdc++-v3/config/locale/generic/c_locale.cc : Likewise.
61         * libstdc++-v3/config/locale/generic/c_locale.h : Likewise.
62         * libstdc++-v3/config/locale/generic/time_members.cc : Likewise.
63         * libstdc++-v3/config/os/newlib/os_defines.h : Likewise.
64         * libstdc++-v3/config/io/basic_file_stdio.cc : Likewise.
65         * libssp/ssp.c : Likewise.
66         * libstdc++-v3/config/os/mingw32/error_constants.h : Add POSIX error
67         code macros, part of Pedro's work.
68         * libstdc++-v3/config/os/mingw32ce/ctype_noninline.h : New file, part
69         of Pedro's work.
70         * libstdc++-v3/config/os/mingw32ce/os_defines.h : Likewise.
71         * libstdc++-v3/config/os/mingw32ce/ctype_inline.h : Likewise.
72         * libstdc++-v3/config/os/mingw32ce/ctype_base.h : Likewise.
73         * libstdc++-v3/config/os/mingw32ce/error_constants.h : Likewise.
74         * libstdc++-v3/config/os/generic/runtimeopts.h : Likewise.
75         * libstdc++-v3/config.h.in (HAVE_ERRNO_H, HAVE_FCNTL_H, HAVE_GETENV,
76         HAVE_SIGNAL_H) : Add.
79 2009-05-19  Danny Backx  <dannybackx@users.sourceforge.net>
81         * gcc-4.4.0/ChangeLog.ce : New file.
82         * gcc-4.4.0 : Fresh import from gcc-core-4.4.0 and gcc-g++-4.4.0 .
84 2006-12-03  Pedro Alves  <pedro_alves@portugalmail.pt>
86         * gcc/config/arm/arm.c (arm_major_arch, arm_thumb_arch_p): New
87         functions.
88         * gcc/config/arm/arm-protos.h (arm_major_arch, arm_thumb_arch_p):
89         Declare.
90         * gcc/config/arm/wince-pe.h (TARGET_OS_CPP_BUILTINS): Add _M_ARM,
91         _M_ARMT and ARM.
93 2006-11-27  Pedro Alves  <pedro_alves@portugalmail.pt>
95         * gcc/config/arm/mingw32.h (STARTFILE_SPEC): Add crt3.o and dllcrt3.o
96         instead of crt2.o and dllcrt2.o.
98 2006-11-12  Pedro Alves  <pedro_alves@portugalmail.pt>
100         * gcc/config/arm/wince-pe.h (TARGET_OS_CPP_BUILTINS): Delete _M_ARM
101         and ARM.
103 2006-11-08  Pedro Alves  <pedro_alves@portugalmail.pt>
105         * gcc/config/arm/wince-pe.h (DEFAULT_SIGNED_CHAR): Define to 1.
107 2006-11-04  Danny Backx  <dannybackx@users.sourceforge.net>
109         * gcc/config/arm/pe.h (PROFILE_HOOK): Remove, it looks like we don't need
110         it to get profiling to work.
112 2006-10-30  Pedro Alves  <pedro_alves@portugalmail.pt>
114         * gcc/target-def.h (TARGET_ATTRIBUTE_TABLE): Only define if not
115         defined before.
116         * gcc/config/arm/arm.c (arm_file_end): Give it external linkage.
117         (arm_handle_struct_attribute): New.
118         (arm_ms_bitfield_layout_p): New.
119         (TARGET_ATTRIBUTE_TABLE, TARGET_ASM_FILE_END,
120         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING): Move
121         declarations to config/arm/arm.h.
122         (TARGET_MS_BITFIELD_LAYOUT_P): Define to
123         arm_ms_bitfield_layout_p.
124         (arm_return_in_memory): Replace #ifdef'ing on ARM_WINCE with
125         TARGET_RETURN_AGGREGATES_IN_MEMORY.
126         (arm_attribute_table): Add shared, ms_struct, gcc_struct
127         attributes.
128         Allow subtarget to add attributes using
129         SUBTARGET_ATTRIBUTE_TABLE.
130         (arm_elf_asm_constructor): Only compile on OBJECT_FORMAT_ELF.
131         (thumb_output_function_prologue): Call arm_pe_strip_name_encoding
132         instead of arm_strip_name_encoding.
133         (arm_handle_struct_attribute): New function.
134         (arm_ms_bitfield_layout_p): New function.
135         * gcc/config/arm/arm.h (TARGET_ASM_FILE_END, TARGET_ATTRIBUTE_TABLE,
136         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING): Define.
137         * gcc/config/arm/t-wince-cegcc: Add cegcc1.o rule.
138         (TARGET_LIBGCC2_CFLAGS): Add -mwin32.
139         * gcc/config/arm/t-mingw32 (SYSTEM_INCLUDE_DIR): Delete.
140         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
141         * gcc/config/arm/arm-protos.h (arm_file_end,
142         arm_pe_asm_named_section, arm_pe_section_type_flags,
143         arm_pe_strip_name_encoding, arm_pe_output_labelref,
144         arm_pe_handle_shared_attribute): Declare.
145         * gcc/config/arm/wince-pe.h:
146         (TARGET_VERSION): Set to "(arm Windows CE/Native SDK)".
147         (MULTILIB_DEFAULTS): Remove -mfpu=vfp.
148         (SUBTARGET_CPU_DEFAULT): Default to TARGET_CPU_arm8 (armv4).
149         (CPP_SPEC): Remove cegcc specifics.
150         (ASM_SPEC): Don't pass -cpu=iwmmxt to assembler when -mcpu=xscale
151         is used.
152         (SUBTARGET_EXTRA_SPECS, SUBTARGET_ASM_FLOAT_SPEC): Remove.
153         (TARGET_OS_CPP_BUILTINS): Add _stdcall, _fastcall and _cdecl.
154         (SUBTARGET_CPP_SPEC, HANDLE_SYSV_PRAGMA,
155         HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
156         (STARTFILE_SPEC): Remove cegcc specifics.
157         (LIBGCC_SPEC): Likewise.
158         (LIB_SPEC): Likewise.
159         (COMMON_ASM_OP, ASM_OUTPUT_COMMON, ASM_DECLARE_OBJECT_NAME,
160         ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_EXTERNAL,
161         ASM_OUTPUT_EXTERNAL_LIBCALL, ASM_OUTPUT_ALIGNED_BSS,
162         TARGET_ASM_FILE_END, SUPPORTS_ONE_ONLY, MULTIPLE_SYMBOL_SPACES):
163         Delete.
164         (ARM_MCOUNT_NAME): Define to _mcount to avoid conflicts.
165         (CHECK_STACK_LIMIT): Delete.
166         (TARGET_DEFAULT): Match Windows CE ABI with
167         MASK_MS_BITFIELD_LAYOUT and MASK_RETURN_AGGREGATES_IN_MEMORY.
168         (TARGET_SUBTARGET_DEFAULT): Delete.
169         (BIGGEST_FIELD_ALIGNMENT): Delete.
170         (SET_ASM_OP): Delete.
171         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define to 8 as WinCE's ABI
172         requires.
173         (ASM_OUTPUT_DEF_FROM_DECLS, TARGET_USE_JCR_SECTION,
174         TARGET_USE_LOCAL_THUNK_ALIAS_P, SUBTARGET_ATTRIBUTE_TABLE):
175         Delete.
176         * gcc/config/arm/mingw32.h (STANDARD_INCLUDE_DIR,
177         STANDARD_INCLUDE_COMPONENT): Delete.
178         * gcc/config/arm/arm.opt: New option -mreturn-aggregates-in-memory.
179         * gcc/config/arm/pe.opt: New option -mms-bitfields.
180         * gcc/config/arm/pe.c (arm_pe_handle_shared_attribute): New.
181         (arm_pe_strip_name_encoding): New.
182         (arm_pe_output_labelref): Call arm_pe_strip_name_encoding instead
183         of arm_strip_name_encoding.
184         (arm_pe_unique_section): Likewise.
185         (arm_pe_section_type_flags): New.
186         (arm_pe_asm_named_section ): New.
187         (arm_pe_file_end): Call arm_file_end.
188         * gcc/config/arm/pe.h (HANDLE_SYSV_PRAGMA): New.
189         (HANDLE_PRAGMA_PACK_PUSH_POP): New.
190         (SUBTARGET_OVERRIDE_OPTIONS): New.
191         (TARGET_ASM_NAMED_SECTION): Set to arm_pe_asm_named_section
192         specialized version.
193         (TARGET_SECTION_TYPE_FLAGS): New.
194         (ASM_DECLARE_FUNCTION_NAME): Don't output -export to .drectve
195         directly.
196         Use arm_pe_record_exported_symbol instead.
197         (TARGET_ASM_FILE_END): Set to arm_pe_file_end.
198         (TARGET_ENCODE_SECTION_INFO): Set to arm_pe_encode_section_info.
199         (TARGET_STRIP_NAME_ENCODING): Set to arm_pe_strip_name_encoding.
200         (COMMON_ASM_OP): New.
201         (ASM_OUTPUT_COMMON): Don't output -export to .drectve directly.
202         Use arm_pe_record_exported_symbol instead.
203         (ASM_DECLARE_OBJECT_NAME): Likewise.
204         (ASM_OUTPUT_EXTERNAL): New.
205         (ASM_OUTPUT_EXTERNAL_LIBCALL): New.
206         (PROFILE_HOOK): New.
207         (ASM_OUTPUT_DEF_FROM_DECLS): New.
208         (SUPPORTS_ONE_ONLY).
209         (SUBTARGET_ATTRIBUTE_TABLE): New.
210         (TARGET_USE_LOCAL_THUNK_ALIAS_P): New.
211         (TARGET_USE_JCR_SECTION): New.
212         (SUBTARGET_ENCODE_SECTION_INFO): New.
213         (TARGET_STRIP_NAME_ENCODING): New.
214         * gcc/config/arm/wince-cegcc.h (SUBTARGET_EXTRA_SPECS,
215         EXTRA_OS_CPP_BUILTINS, TARGET_OS_CPP_BUILTINS,
216         SUBTARGET_CPP_SPEC): Delete.
217         * gcc/config/arm/t-wince-pe (pe.o): Add expr.h to dependencies.
218         (cegcc1.o): Delete build rule.
219         (MULTILIB_OPTIONS): Remove -mfpu=vfp.
220         (TARGET_LIBGCC2_CFLAGS): Remove unneeded options.
222 2006-10-30  Pedro Alves  <pedro_alves@portugalmail.pt>
224         * gcc/config/arm/pe-cxx.c: Fix indenting to match the original
225         config/i386/winnt-cxx.c.
227 2006-10-17  Pedro Alves  <pedro_alves@portugalmail.pt>
229         * gcc/config/arm/wince-cegcc.h (STARTFILE_SPEC) : Add gcrt3.o instead
230         of gcrt2.o.
231         * gcc/config/arm/mingw32.h: Likewise.
233 2006-10-16  Danny Backx  <dannybackx@users.sourceforge.net>
235         * gcc/config/arm/wince-cegcc.h (LIB_SPEC) : Link -lgmon when called
236         with -pg.
237         (STARTFILE_SPEC): Add gcrt2.o when called with -pg.
239 2006-10-12  Danny Backx <dannybackx@users.sourceforge.net>
241         * gcc/config/arm/wince-cegcc.h (mno-cegcc): Remove option.
242         Use the arm-wince-mingw32ce target instead.
244 2006-10-10  Pedro Alves  <pedro_alves@portugalmail.pt>
246         * gcc/config/arm/cegcc.c: Delete. We use the originals instead.
247         This code is generic PE code, and will hopefully get
248         pushed down to a more general place in GCC 4.3 stage1.
249         * gcc/cegcc-cxx.c: Likewise.
250         * gcc/cegcc-stubs.c: Likewise.
251         * gcc/config.gcc: Use the originals instead of the new copies for the
252         arm*-wince-cegcc case.
253         * gcc/config/arm/t-wince-cegcc: Make it empty, we now inherit the
254         generic t-wince-pe.
255         * gcc/ChangeLog.ce: New file.
256 Index: libstdc++-v3/ChangeLog.ce
257 ===================================================================
258 --- libstdc++-v3/ChangeLog.ce   (revisão 0)
259 ++ libstdc++-v3/ChangeLog.ce    (revisão 0)
260 @@ -0,0 +1,118 @@
261 2007-02-04  Pedro Alves  <pedro_alves@portugalmail.pt>
263         * libstdc++-v3/acinclude.m4 (GLIBCXX_ENABLE_C99]): Remove wcscoll and wcsxfrm.
264         Check for wcscoll, wcsxfrm, strcoll and strxfrm.
265         * libstdc++-v3/configure: Regenerate.
266         * libstdc++-v3/include/c_std/std_cwchar.h: Use _GLIBCXX_HAVE_WCSCOLL, and
267         _GLIBCXX_HAVE_WCSXFRM.
268         * libstdc++-v3/config/locale/generic/collate_members.cc
269         (collate<char>::_M_compare): Use _GLIBCXX_HAVE_STRCOLL.
270         Use strcmp as alternative.
271         (collate<char>::_M_transform): Use _GLIBCXX_HAVE_STRXFRM.
272         Use strncpy as alternative.
273         (collate<wchar_t>::_M_compare): Use _GLIBCXX_HAVE_WCSCOLL.
274         Use wcscmp as alternative.
275         (collate<wchar_t>::_M_transform): Use _GLIBCXX_HAVE_WCSXFRM.
276         Use wcsncpy as alternative.
278 2006-11-12  Pedro Alves  <pedro_alves@portugalmail.pt>
280         * libstdc++-v3/config/io/basic_file_stdio.cc (__gnu_internal::read,
281         __gnu_internal::write, __gnu_internal::lseek,
282         __gnu_internal::fdopen): Delete.
283         (__basic_file<char>::sys_open): Fix typo.
285 2006-10-22  Pedro Alves  <pedro_alves@portugalmail.pt>
287         * libstdc++-v3/config/locale/generic/time_members.cc :
288         (__timepunct<char>::_M_put): Enable on __MINGW32CE__.
289         (__timepunct<char>::_M_initialize_timepunct) : Likewise.
290         (__timepunct<wchar_t>::_M_put) : Likewise.
291         (__timepunct<wchar_t>::_M_initialize_timepunct) : Likewise.
293 2006-10-18  Pedro Alves  <pedro_alves@portugalmail.pt>
295         * libstdc++-v3/config/io/basic_file_stdio.cc : Include <windows.h> on mingw32ce.
296         (__gnu_internal::read) : New.
297         (__gnu_internal::write) : New.
298         (__gnu_internal::lseek) : New.
299         (__gnu_internal::fdopen) : New.
300         (__gnu_internal::xwrite): Revert to always using file
301         descriptors (handles on CE).
302         (__basic_file<char>::sys_open) : Enable on mingw32ce too. Don't
303         special case __fd == 0.
304         (__basic_file<char>::fd) : Enable on mingw32ce too.
305         (__basic_file<char>::xsgetn) : Use file descriptors on mingw32ce too.
306         (__basic_file<char>::xsputn) : Likewise.
307         (__basic_file<char>::xsputn_2) : Likewise.
308         (__basic_file<char>::seekoff) : Likewise, using __gnu_internal::lseek.
309         (__basic_file<char>::showmanyc) : Implement for mingw32ce using Win32 api.
311 2006-10-17  Pedro Alves  <pedro_alves@portugalmail.pt>
313         * libstdc++-v3/crossconfig.m4 (cegcc*, mingw32*): Add fnctl.h to AC_CHECK_HEADERS.
314         * libstdc++-v3/configure : Regenerate.
315         * libstdc++-v3/config.h.in : Regenerate.
316         * libstdc++-v3/config/io/basic_file_stdio.cc : Wrap fnctl.h inclusion
317         on _GLIBCXX_HAVE_FCNTL_H.
319 2006-10-16  Pedro Alves  <pedro_alves@portugalmail.pt>
321         * libstdc++-v3/include/ext/pool_allocator.h : Include runtimeopts.h.
322         (allocate) : Use runtimeopts::force_new_p.
323         * libstdc++-v3/include/ext/stdio_filebuf.h (stdio_filebuf) : Don't build
324         fildes constructor version on mingw32ce.
325         (fd) : Don't build on mingw32ce.
326         * libstdc++-v3/include/ext/stdio_sync_filebuf.h : Wrap unistd.h inclusion
327         on _GLIBCXX_HAVE_UNISTD_H.
328         * libstdc++-v3/include/ext/mt_allocator.h : Include runtimeopts.h.
329         (_Tune) : Use runtimeopts::force_new_p.
330         (_S_tune) : Likewise.
331         * libstdc++-v3/include/Makefile.am (host_headers) : Add runtimeopts.h
332         * libstdc++-v3/include/Makefile.in : Regenerate.
333         * libstdc++-v3/include/stdc++.h : Include <bits/c++config.h>.
334         Wrap errno.h inclusion with _GLIBCXX_HAVE_ERRNO_H.
335         Wrap clocale.h inclusion with _GLIBCXX_HAVE_LOCALE_H.
336         Wrap csignal.h inclusion with _GLIBCXX_HAVE_SIGNAL_H.
337         * libstdc++-v3/include/c_std/std_cstdlib.h (bsearch, calloc, getenv,
338         mblen, mbstowcs, mbtowc, system, freopen, perror,
339         remove, rename, rewind, setbuf, tmpfile, tmpnam,
340         clock, mktime, time, asctime, ctime, gmtime,
341         localtime, strftime) : These function on exist on coredll. Wrap with
342         ifndef __MINGW32CE__.
343         * libstdc++-v3/include/c_std/std_cstring.h (strcoll, strxfrm, strerror): Likewise.
344         * libstdc++-v3/src/localename.cc : Wrap clocale.h inclusion with
345         _GLIBCXX_HAVE_LOCALE_H.
346         (locale) : No locale support on coredll, Always use _S_classic.
347         * libstdc++-v3/src/locale_init.cc : Wrap clocale.h inclusion with
348         _GLIBCXX_HAVE_LOCALE_H.
349         (global) : No setlocale on coredll. Wrap with ifndef __MINGW32CE__.
350         * libstdc++-v3/src/locale.cc : Wrap clocale.h inclusion with
351         _GLIBCXX_HAVE_LOCALE_H.
352         (_S_normalize_category) : Always return __cat on mingw32ce.
353         * libstdc++-v3/crossconfig.m4 (cegcc): Add errno.h, signal.h and unistd.h
354         to AC_CHECK_HEADERS. Call GLIBCXX_CHECK_STDLIB_SUPPORT.
355         * libstdc++-v3/config/locale/generic/collate_members.cc (_M_compare) :
356         No strcoll on coredll. Call strcmp instead.
357         (_M_transform) : No strxfrm on coredll. Call strncpy + strlen instead.
358         * libstdc++-v3/config/locale/generic/c_locale.cc: Include <bits/c++config.h>.
359         Wrap errno.h inclusion with _GLIBCXX_HAVE_ERRNO_H.
360         Provice a default ERANGE for mingw32ce.
361         (__convert_to_v) Adapt to lack of errno and setlocale.
362         * libstdc++-v3/config/locale/generic/c_locale.h :
363         Wrap clocale.h inclusion with _GLIBCXX_HAVE_LOCALE_H.
364         (__convert_from_v) : Don't handle locale on mingw32ce.
365         * libstdc++-v3/config/locale/generic/time_members.cc (_M_put) : Don't build on
366         mingw32ce.
367         * libstdc++-v3/config/io/basic_file_stdio.cc :
368         Wrap errno.h inclusion with _GLIBCXX_HAVE_ERRNO_H.
369         Use FILE* instead of file descriptors on mingw32ce throughout.
370         Adapt to lack of errno.
371         * libstdc++-v3/configure: Regenerate.
372         * libstdc++-v3/config.h.in : Regenerate.
374 2006-10-10  Pedro Alves  <pedro_alves@portugalmail.pt>
376         * libstdc++-v3/config/os/generic/runtimeopts.h : New file.
377         * libstdc++-v3/configure: Regenerate with autoconf 2.59.
378         * libstdc++-v3/ChangeLog.ce : New file.