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