]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/infra/v2_0/ChangeLog
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / infra / v2_0 / ChangeLog
1 2008-07-10  Grant Edwards <grant.b.edwards@gmail.com>
2
3         * src/diag.cxx: allow ASCII escape character in printf
4         format strings.
5
6 2007-12-28  Oyvind Harboe <oyvind.harboe@zylin.com>
7         
8         * src/memcpy.cxx: added assert when memory areas for memcpy()
9         overlaps => result is undefined. It is important to catch *all*
10         cases of this if adding an optimisation for unaligned copy.
11         
12 2007-06-28  Gary Thomas  <gary@mlbassoc.com>
13
14         * src/tcdiag.cxx: 
15         * src/diag.cxx: Add (char *) casts to make GCC 4.2.x happy.
16
17 2007-05-31  Rutger Hofman <rutger@cs.vu.nl>
18
19         * src/diag.cxx: when printing a long long, should not truncate
20         its value to a long or int size
21
22 2006-10-26  Stefan Sommerfeld <sommerfeld@mikrom.com>
23
24         * include/cyg_types.h: fixed typo, __GNU_PATCHLEVEL__ was checked,
25         should be __GNUC_PATCHLEVEL__ (which is already used later)
26         * include/cyg_types.h: fixed comment for CYGBLD_ATTRIB_USED, wrong
27         GCC version was referenced
28
29 2006-08-25  Gary Thomas  <gary@mlbassoc.com>
30
31         * cdl/infra.cdl: 
32         CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD must be 'data', not 'boolean'
33
34 2006-05-17  David Vrabel <dvrabel@arcom.com>
35  
36         * include/cyg_type.h: #define CYG_NELEM to calculate the
37         number of elements in a (statically allocated) array.
38  
39 2006-05-08  Sergei Gavrikov <sg@belvok.com>
40         
41         * src/buffer.cxx: Fix the compiler warnings.
42
43 2005-11-04  Bart Veer <bartv@ecoscentric.com>
44         
45         * tests/cxxsupp.cxx: Fix the compiler warnings.
46
47 2005-10-16  Andrew Lunn  <andrew.lunn@ascom.ch>
48
49         * src/delete.cxx: 
50         * cdl/infra.cdl: Count the number of calls to delete when
51         INFRA_DEBUG is enabled. If the threshold is exceeded it probably
52         means the user expects a real delete function, not the empty one.
53         
54 2005-10-12  Laurent Gonzalez  <laurent.gonzalez@trango-systems.com>
55
56         * src/simple.cxx (cyg_check_func_ptr): match the implementation to
57         the prototype. This got forgotten in the last patch.
58         
59 2005-07-29  Andrew Lunn  <andrew.lunn@ascom.ch>
60
61         * include/cyg_ass.h: Fixed a function prototype so that
62         gcc4 does not give warnings. A const void makes no sense.
63         * src/*.cxx (cyg_check_func_ptr): match the implementation to the
64         prototype.
65
66 2005-06-27  Andrew Lunn  <andrew.lunn@ascom.ch>
67
68         * include/cyg_type.h: Added CYGBLD_ATTRIB_USED so that we can
69         indicate to gcc 3.4.4 or above not to throw away a variable or
70         function even when it appears to be not references.
71         
72 2005-03-27  Andrew Lunn  <andrew.lunn@ascom.ch>
73
74         * include/diag.h: Added CYGBLD_ATTRIB_PRINTF_FORMAT where
75         appropriate to get the compiler to do more checking.
76         * src/diag.cxx (diag_dump_buf_with_offset_16bit): Fix compiler warning
77         caused by above change.
78
79 2005-02-08  Andrew Lunn  <andrew.lunn@ascom.ch>
80
81         * tests/diag_sprintf1.c 
82         * tests/diag_sprintf2.c
83         * cdl/infra.cdl: Used the sprintf test from libc to test 
84           diag_sprintf.
85
86 2005-02-08  Christoph Csebits <Christoph.CSEBITS@frequentis.com>
87
88         * src/diag.cxx (diag_snprintf): Off by one error could cause the
89         end of the buffer to be overrun.
90
91 2004-07-12  Gary Thomas  <gary@mlbassoc.com>
92
93         * src/diag.cxx (_vprintf): Fix return length for %%
94
95 2004-06-30  Gary Thomas  <gary@mlbassoc.com>
96
97         * src/diag.cxx (_vprintf): Returned [length] was wrong for %p
98
99 2004-04-16  Jonathan Larmour  <jifl@eCosCentric.com>
100
101         * tests/cxxsupp.cxx: Allow inline function to be correctly inlined.
102
103 2004-04-15  Jonathan Larmour  <jifl@eCosCentric.com>
104
105         * include/cyg_type.h: added CYG_ATTRIB_ALIGN_MAX and
106         CYGBLD_ATTRIB_ALIGNOFTYPE. Inspired by Robert Larice.
107         
108 2004-01-08  Jani Monoses <jani@iv.ro>
109
110         * src/diag.cxx (diag_check_string): Allow '\t' in format strings.
111         
112 2004-01-05  Gary Thomas  <gary@mlbassoc.com>
113
114         * tests/fc_test.c: 
115         * src/tcdiag.cxx (cyg_assert_msg): 'fconfig' API changed again.
116
117 2003-12-21  Gary Thomas  <gary@mlbassoc.com>
118
119         * tests/fc_test.c: New test/demonstration of 'fconfig' access.
120
121         * src/tcdiag.cxx (cyg_assert_msg): Interface to 'fconfig' data
122         has changed.
123
124 2003-10-11  Gary Thomas  <gary@mlbassoc.com>
125
126         * src/tcdiag.cxx (cyg_test_exit): 
127         * cdl/infra.cdl: New option CYGSEM_INFRA_RESET_ON_TEST_EXIT which
128         [if defined] indicates that "cyg_test_exit()" should reset the 
129         platform instead of the default hang.
130
131 2003-10-03  Nick Garnett  <nickg@balti.calivar.com>
132
133         * tests/cxxsupp.cxx: Added ifdef to disable this test on H8/300
134         targets. The H8/300 toolchain does not currently have C++ support.
135
136 2003-07-01  Michael Checky  <Michael_Checky@ThermoKing.com>
137
138         * src/diag.cxx: Added support for the 'z' qualifier in format strings.
139
140 2003-05-05  Gary Thomas  <gary@mlbassoc.com>
141
142         * cdl/infra.cdl: Add option to control number of times tests run.
143
144 2003-04-25  Jonathan Larmour  <jifl@eCosCentric.com>
145
146         * tests/cxxsupp.cxx: don't include <pkgconf/kernel.h> as it's not
147         needed.
148         (cyg_start): CYGINT_ISO_MALLOC needs a #if test.
149
150 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
151
152         * tests/cxxsupp.cxx: Added this test program to check that basic
153         C++ support is present. It checks that pure virtual functions can
154         be defined, that new and delete are present and functional, and
155         that calls to as-yet undefined inline functions work. Most of
156         these are linker and runtime system issues, so the actual run of
157         the program is almost a non-event.
158
159         * cdl/infra.cdl:
160         Added CYGFUN_INFRA_DUMMY_ABORT and CYGFUN_INFRA_DUMMY_STRLEN
161         options to control inclusion of dummy abort() and strlen()
162         functions. These are needed to be present by the compiler's C++
163         runtime system, although they should never be called.
164         Added CYGPKG_INFRA_TESTS to define test programs.
165         Added CYGPKG_INFRA_LDFLAGS_REMOVE and CYGPKG_INFRA_LDFLAGS_ADD to
166         modify the linkage options for the infra package
167         tests. Specifically they remove the --gc-sections option and make
168         all linker warning fatal. This is necessary if cxxsupp.cxx is to
169         test what it needs correctly.
170         
171         * src/abort.cxx: Added this dummy implementation of abort() to
172         satisfy references in the C++ runtime system.
173
174         * src/strlen.cxx: Added this dummy implementation of strlen() to
175         satisfy references in the C++ runtime system.
176
177 2003-03-27  Bart Veer  <bartv@ecoscentric.com>
178
179         * src/pure.cxx, cdl/infra.cdl: new function __cxa_pure_virtual(),
180         needed when building with g++ v3.x if the code uses pure
181         virtual functions.
182
183 2003-01-18  Jonathan Larmour  <jifl@eCosCentric.com>
184
185         * include/cyg_ass.h (CYG_CHECK_FUNC_PTRC): Define with const pointer
186         arguments.
187         (CYG_CHECK_DATA_PTRC): Ditto. 
188         (CYG_CHECK_FUNC_PTR): Ditto. 
189         (CYG_CHECK_DATA_PTR): Ditto. 
190         * src/null.cxx: Define cyg_check_data/func_ptr() with const args.
191         * src/buffer.cxx: Ditto.
192         * src/fancy.cxx: Ditto.
193         * src/simple.cxx: Ditto.
194
195 2002-07-18  Gary Thomas  <gary@chez-thomas.org>
196
197         * include/diag.h: 
198         * src/diag.cxx (diag_vdump_buf_with_offset): New function.
199
200 2002-05-22  Jesper Skov  <jskov@redhat.com>
201
202         * cdl/infra.cdl: Added two options to control CFLAGS.
203
204 2002-05-17  Martin Buck <martin.buck@ascom.ch>
205  
206         * include/cyg_type.h (CYGBLD_ATTRIB_PRINTF_FORMAT): Add.
207  
208 2002-05-23  Gary Thomas  <gthomas@redhat.com>
209
210         * src/diag.cxx (_vprintf): Mapping of '\n'=>'\r\n' must be done
211         at the _putc() level.
212
213 2002-04-17  Gary Thomas  <gthomas@redhat.com>
214
215         * src/diag.cxx (diag_dump_buf_with_offset): Fix pad for short lines.
216
217 2002-04-16  Gary Thomas  <gthomas@redhat.com>
218
219         * src/diag.cxx: Return proper length result for sprintf() functions.
220
221 2002-04-09  Jonathan Larmour  <jlarmour@redhat.com>
222
223         * include/cyg_type.h: Allow HALs to override certain attrib macros.
224
225 2002-02-19  Gary Thomas  <gthomas@redhat.com>
226
227         * src/diag.cxx (diag_snprintf): 
228         * include/diag.h: Change function signature on diag_snprintf()
229         to match snprintf() found in stdio.
230
231 2002-02-13  Jonathan Larmour  <jlarmour@redhat.com>
232
233         * include/cyg_trac.h: Make message type of trace functions be
234         const char * to help avoid warnings with callers.
235         * src/null.cxx: Reflect that in actual functions.
236         * src/fancy.cxx: Ditto.
237         * src/simple.cxx: Ditto.
238         * src/buffer.cxx: Ditto.
239
240 2002-01-31  Hugo Tyson  <hmt@redhat.com>
241
242         * src/tcdiag.cxx (cyg_assert_msg): Enable this function
243         universally; given the extra usefulness it now has (see below)
244         it's worth always having around by default in asserted builds.
245         It can be disabled with CYGDBG_INFRA_DEBUG_ASSERT_MESSAGE = 0.
246
247 2002-01-30  Hugo Tyson  <hmt@redhat.com>
248
249         * src/tcdiag.cxx (cyg_assert_msg): Collect from RedBoot flash
250         config, whether or not to dump to a specific console.
251
252 2002-01-28  Gary Thomas  <gthomas@redhat.com>
253
254         * src/diag.cxx (diag_snprintf): 
255         * include/diag.h: New function diag_snprintf().
256
257 2002-01-23  Jonathan Larmour  <jlarmour@redhat.com>
258
259         * include/cyg_type.h: Define CYG_INIT_IO_FS used by filesystems
260         so that they init *after* the devices they depend on.
261
262 2002-01-21  Jonathan Larmour  <jlarmour@redhat.com>
263
264         * src/tcdiag.cxx (cyg_test_exit): Work around problem with recent
265         SH tools that isn't likely to get fixed soon.
266
267 2002-01-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
268
269         * src/diag.cxx (diag_check_string): enlarge valid string length to 2048
270
271 2001-12-06  Jesper Skov  <jskov@redhat.com>
272
273         * src/diag.cxx: Added functions to do memory dump in 16 and 32 bit
274         units. Based on changes from Warren Jasper <warrenj@bops.com>.
275         * include/diag.h: Function declarations.
276         
277 2001-09-12  Jonathan Larmour  <jlarmour@redhat.com>
278
279         * src/eprintf.c (__eprintf): Tolerate absence of standard ISO C
280         functions better.
281
282 2001-09-11  Jesper Skov  <jskov@redhat.com>
283
284         * src/diag.cxx (diag_check_string): Also accept \b.
285
286 2001-08-25  Gary Thomas  <gthomas@redhat.com>
287
288         * src/diag.cxx (_vprintf): Fix confusion between signed and unsigned
289         descriptors (only %d is signed).
290
291 2001-08-24  Gary Thomas  <gthomas@redhat.com>
292
293         * include/diag.h: Export diag_dump_buf_with_offset.
294
295         * src/diag.cxx (_vprintf): Fix problems with signed/unsigned prints.
296         (diag_dump_buf_with_offset): Export.
297
298 2001-08-23  Gary Thomas  <gthomas@redhat.com>
299
300         * src/diag.cxx (_vprintf): Restore functionality of %D,%U,%X,%B,%S,%C
301         which were present in old code.
302
303 2001-08-22  Gary Thomas  <gthomas@redhat.com>
304
305         * src/diag.cxx: 
306         * include/diag.h: 
307         * cdl/infra.cdl: Restructuring to support more flexible versions
308         of diag_printf() and related functions.  Remove old cruft which
309         was workaround for possibly failing compilers [K&R support].
310         These versions of printf(), etc, were part of the RedBoot package
311         and have been moved here (and renamed) to reduce code duplication.
312
313 2001-08-22  Jonathan Larmour  <jlarmour@redhat.com>
314
315         * src/eprintf.c: New file to implement __eprintf called from libgcc.
316         * cdl/infra.cdl: Build it.
317         * include/cyg_type.h: Provide __THROW default empty throw specifier.
318         * include/cyg_ass.h (cyg_assert_fail): Add __THROW.
319         (cyg_assert_msg): Ditto.
320         * src/buffer.cxx (cyg_assert_fail): Ditto.
321         * src/fancy.cxx (cyg_assert_fail): Ditto.
322         * src/null.cxx (cyg_assert_fail): Ditto (twice).
323         * src/simple.cxx (cyg_assert_fail): Ditto.
324         * src/tcdiag.cxx (cyg_assert_msg): Ditto.
325
326 2001-08-03  Nick Garnett  <nickg@cygnus.co.uk>
327
328         Imported from a development branch:
329         
330         2001-06-27  Nick Garnett  <nickg@cygnus.co.uk>
331
332                 * src/diag.cxx: 
333                 * src/tcdiag.cxx:
334                 Added use of CYG_HAL_DIAG_LOCK() and CYG_HAL_DIAG_UNLOCK() to
335                 diag_printf(), cyg_assert_msg() and cyg_test_output() to prevent
336                 messages from different CPUs being mingled.
337
338         2001-05-22  Nick Garnett  <nickg@cygnus.co.uk>
339
340                 * include/cyg_type.h (CYGBLD_ANNOTATE_VARIABLE_*):
341                 Added better way of supplying default definitions for these.
342
343         2001-04-27  Nick Garnett  <nickg@cygnus.co.uk>
344
345                 * include/cyg_type.h:
346                 Added default variable annotation macros.
347
348 2001-07-18  Jonathan Larmour  <jlarmour@redhat.com>
349
350         * include/cyg_type.h (CYG_INIT_MEMALLOC): Add.
351
352 2001-07-13  Jonathan Larmour  <jlarmour@redhat.com>
353
354         * src/diag.cxx (diag_vprintf): Fix long longs (patch from
355         Motoya Kurotsu <kurotsu [at] allied-telesis.co.jp>
356
357         * cdl/debug.cdl: Make tracing styles be mutually exclusive properly
358         using an interface.
359
360 2001-06-14  Jonathan Larmour  <jlarmour@redhat.com>
361
362         * include/clist.hxx (Cyg_DNode_T): Don't qualify constructor or
363         destructor with <T>.
364         (Cyg_CList_T): Ditto.
365
366 2001-02-23  Robin Farine  <acnrf@dial.eunet.ch>
367
368         * include/cyg_type.h: Do alignment consistency check.
369
370 2001-01-05  Nick Garnett  <nickg@cygnus.co.uk>
371
372         * include/clist.hxx: Many changes to make these classes usable in
373         the MLQ scheduler and alarm objects.
374
375 2000-12-15  Nick Garnett  <nickg@cygnus.co.uk>
376
377         * include/clist.hxx: Added this implementation of simple circular
378         list classes. This is not immediately useful, except to the
379         dynamic loader, but it is intended to simplify the MLQ scheduler
380         with these classes eventually.
381
382 2000-12-13  Jesper Skov  <jskov@redhat.com>
383
384         * include/cyg_type.h (CYGBLD_ATTRIB_ASM_ALIAS): Mangle assembler
385         symbols properly.
386
387 2000-09-08  Jonathan Larmour  <jlarmour@redhat.com>
388
389         * include/cyg_type.h (CYGBLD_ATTRIB_SECTION): Don't stringify arg.
390
391 2000-09-04  Jonathan Larmour  <jlarmour@redhat.com>
392
393         * include/cyg_type.h (CYGARC_ALIGNMENT): Add default of 8
394         (CYGARC_P2ALIGNMENT): Add corresponding default of 3
395         (CYGBLD_ATTRIB_ALIGN): Define to allow alignment
396         * include/cyg_type.inc: As above for CYGARC_ALIGNMENT and
397         CYGARC_P2ALIGNMENT
398
399 2000-07-25  Jonathan Larmour  <jlarmour@redhat.co.uk>
400
401         * include/cyg_type.inc: Create. Used for the equivalent stuff of
402         cyg_type.h in assembler and linker scripts
403
404 2000-07-19  Jonathan Larmour  <jlarmour@redhat.co.uk>
405
406         * src/pkgstart.cxx (cyg_package_start): Remove POSIX startup option
407         * cdl/startup.cdl: Likewise
408
409 2000-07-18  Jonathan Larmour  <jlarmour@redhat.co.uk>
410
411         * src/buffer.cxx (increment_buffer_pos): Reset buffer pos *before*
412         we try to print the buffer
413         Thanks to Chris Morrow (cmorrow at YottaYotta.com ) for spotting
414         the problem.
415
416 2000-07-04  Jonathan Larmour  <jlarmour@redhat.co.uk>
417
418         * cdl/infra.cdl: Add CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS option
419         to control presence of empty C++ delete functions
420
421         * src/delete.cxx: Move comments into above option, and simplify
422         the configuration now that it's more straightforward
423
424 2000-06-21  Nick Garnett  <nickg@cygnus.co.uk>
425
426         * src/simple.cxx: 
427         * src/null.cxx: 
428         * src/fancy.cxx: 
429         * src/buffer.cxx:
430         Removed use of CYG_LABEL_NAME() and added extra underscores to
431         _stext and _etext.
432
433         * include/cyg_type.h: Changed default for CYG_LABEL_DEFN() to
434         define labels without an extra underscore. This reflects the
435         practice of most of the targets we support.
436
437 2000-06-19  Nick Garnett  <nickg@cygnus.co.uk>
438
439         * include/cyg_type.h:
440         Added CYGBLD_ATTRIB_SECTION to assign variables to a named
441         section.
442         Added CYG_LABEL_DEFN() macro for defining labels in asm and linker
443         scripts. This is particularly useful for generating labels in
444         inline assembler fragments.
445
446 2000-05-02  Jonathan Larmour  <jlarmour@redhat.co.uk>
447
448         * cdl/startup.cdl:
449         * src/pkgstart.cxx:
450         Remove CYGSEM_START_ISO_C_COMPATIBILITY: startup is now handled
451         via extras.o
452         * include/cyg_type.h: Define __externC alternative to externC
453
454 2000-04-12  Jesper Skov  <jskov@redhat.com>
455
456         * cdl/infra.cdl: Allow build flags to be tweaked.
457
458 2000-03-31  Nick Garnett  <nickg@cygnus.co.uk>
459
460         * cdl/startup.cdl: 
461         * src/pkgstart.cxx:
462         Added POSIX startup option.
463
464 2000-03-28  Jonathan Larmour  <jlarmour@redhat.co.uk>
465
466         * include/cyg_trac.h: Also update internal documentation for below
467         const char * changes (2000-03-27)
468
469 2000-03-28  John Dallaway  <jld@cygnus.co.uk>
470
471         * cdl/infra.cdl:
472
473         Adjust documentation URLs.
474
475 2000-03-27  Gary Thomas  <gthomas@redhat.com>
476
477         * src/tcdiag.cxx: HAL architecture ports may override default
478         behavior for 'cyg_test_exit()'.
479
480         * src/diag.cxx (diag_vprintf): Add support for %llX modifier, which
481         allows for printing of (long long) operands.
482
483 2000-03-27  Jonathan Larmour  <jlarmour@redhat.co.uk>
484
485         * include/cyg_trac.h: Use const qualifier on function and file name
486         strings to be compatible with the C++ standard
487         * src/buffer.cxx: likewise
488         * src/fancy.cxx: likewise
489         * src/null.cxx: likewise
490
491 2000-03-27  Jesper Skov  <jskov@redhat.com>
492
493         * include/cyg_type.h: Make cyg_halbool the same for C and C++
494         code.
495
496         * include/cyg_ass.h (CYGDBG_DEFINE_CHECK_THIS): Use cyg_bool
497         instead of bool.
498
499 2000-03-07  Jesper Skov  <jskov@redhat.com>
500
501         * src/buffer.cxx: Fix some compiler warnings.
502
503 2000-03-03  Jesper Skov  <jskov@redhat.com>
504
505         * include/cyg_type.h (CYGBLD_ATTRIB_WEAK): disarm bomb for !GCC.
506
507 2000-03-01  Jesper Skov  <jskov@redhat.com>
508         103290
509         * include/cyg_ass.h: Make cyg_assert_fail a weak symbol.
510
511 2000-02-28  Gary Thomas  <gthomas@cygnus.co.uk>
512
513         * include/diag.h: 
514         * src/diag.cxx (diag_dump_buf): Add diagnostic "dump buffer" function.
515
516 2000-02-21  Hugo Tyson  <hmt@cygnus.co.uk>
517
518         * src/tcdiag.cxx (cyg_test_is_simulator): set this true if ugly
519         new cdl_option CYGHWR_TARGET_SIMULATOR_NO_GDB_WORKING is set.
520         This means we cannot diddle the variable using GDB.
521
522 2000-02-18  Hugo Tyson  <hmt@cygnus.co.uk>
523
524         * src/tcdiag.cxx (cyg_test_exit): Add the facility for a platform
525         HAL to define an action to take at CYG_TEST_EXIT time; this is
526         useful for some simulators that are not (yet) Gdb integrated.
527         The action is CYGHWR_TEST_PROGRAM_EXIT() if defined.
528
529         * src/simple.cxx (cyg_assert_fail): Add the facility for a
530         platform HAL to define an action to take when an assertion failure
531         occurs.  Ditto.
532
533         * src/fancy.cxx (cyg_assert_fail): Ditto.
534
535         * src/buffer.cxx (cyg_assert_fail): Ditto.
536
537         [no change to null.cxx because, well, it's null isn't it]
538
539 2000-02-08  Jonathan Larmour  <jlarmour@redhat.co.uk>
540
541         * include/cyg_trac.h: Define and document CYG_TRACE_PRINT() and
542         CYG_TRACE_DUMP() macros for outputting buffered trace output, and
543         kernel state dump respectively
544
545         * cdl/debug.cdl (CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER): 
546         replace (incorrect) mention of cyg_trace_output() with CYG_TRACE_PRINT()
547         macro.
548
549         * src/fancy.cxx (cyg_trace_dump): Add (from buffer.cxx)
550         * src/simple.cxx (cyg_trace_dump): Add (from buffer.cxx)
551         * src/null.cxx (cyg_trace_dump): Add as empty function
552
553 2000-01-31 Simon FitzMaurice  <sdf@cygnus.co.uk>
554   * cdl\infra.cdl:
555
556   Adjust help URLs in line with new doc layout.
557
558 2000-01-28 Simon FitzMaurice  <sdf@cygnus.co.uk>
559   * cdl\infra.cdl:
560
561   Adjust help URLs in line with new doc layout.
562
563 1999-11-26  Gary Thomas  <gthomas@cygnus.co.uk>
564
565         * include/cyg_type.h: Add MLT symbols CYGMEM_REGION_ATTR_R/W.
566
567 1999-11-23  Hugo Tyson  <hmt@cygnus.co.uk>
568
569         * cdl/debug.cdl: Add "active_if CYGDBG_USE_TRACING" to all tracing
570         only options in the buffered flavour of assert'n'trace.  Otherwise
571         enabling asserts but no tracing does not build; oldCDL dealt with
572         this by a string of ifdefs in the header.  Active_if is my friend.
573         This also prevents the confusion of having active options that
574         have no effect whatsoever.
575         Aside: the default is buffered assert'n'trace so that the test
576         farm can enable tracing and not get swamped by output.
577
578 1999-05-14  Hugo Tyson  <hmt@cygnus.co.uk>
579
580         * include/cyg_type.h (CYG_INIT_COMPAT): add a new init priority
581         level for compatibility layers (for uITRON that is, but
582         potentially POSIX also perhaps, after libc anyway).
583
584 1999-04-14  John Dallaway  <jld@cygnus.co.uk>
585
586         * include/pkgconf/infra.h: Add cdl_package doc attribute.
587
588 1999-04-12  Jesper Skov  <jskov@cygnus.co.uk>
589
590         * include/cyg_type.h: Added new init priority for IO devices.
591
592         * include/diag.h: 
593         * src/diag.cxx: 
594         Use device for diag if configured so.
595
596 1999-03-19  Gary Thomas  <gthomas@cygnus.co.uk>
597
598         * src/diag.cxx (diag_vprintf): Support '%%' printf modifier.
599
600 1999-03-05  Jonathan Larmour  <jlarmour@cygnus.co.uk>
601
602         * include/cyg_type.h:
603         Add CYGBLD_ATTRIB_CONST and tidy define indentation
604
605 1999-03-04  Bart Veer  <bartv@cygnus.co.uk>
606
607         * include/diag.h:
608         Added a #include for <pkgconf/infra.h> so that the header file
609         can correctly check for CYGDBG_INFRA_DIAG_PRINTF_USE_VARARG
610
611 1999-02-25  Nick Garnett  <nickg@cygnus.co.uk>
612
613         * include/cyg_type.h:
614         Added CYGBLD_ATTRIB_ASM_ALIAS() macro to supply an alias for a
615         variable while it is being defined.
616
617 1999-02-24  Jonathan Larmour  <jlarmour@cygnus.co.uk>
618
619         * include/cyg_type.h (CYG_INIT_APPLICATION): Add CYG_INIT_DRIVERS
620         priority
621
622         * src/tcdiag.cxx (cyg_test_output): Re-include angle brackets
623         for CYG_TEST_GDBCMD command
624
625 1999-02-23  Jonathan Larmour  <jlarmour@cygnus.co.uk>
626
627         * include/testcase.h (CYG_TEST_NA): 
628         Add call to cyg_test_exit()
629
630 1999-02-22  Jonathan Larmour  <jlarmour@cygnus.co.uk>
631
632         * include/cyg_type.h: 
633         Add CYGBLD_ATTRIB_INIT_PRI/BEFORE/AFTER macros.
634         Remove CYG_INIT_BEFORE/AFTER as they were unusable
635
636         * include/testcase.h:
637         * src/tcdiag.cxx:
638         Add CYGNUM_TEST_NA() macro for not applicable state
639         Don't need to call diag_init() any more from cyg_test_init()
640
641         * src/diag.c:
642         * src/diag.cxx: 
643         Rename diag.c to diag.cxx
644         Add dummy constructor object to do initialization right after the
645         HAL has started. Needed to get asserts working correctly at
646         constructor time, and for CYGNUM_TEST_GDBCMD to work as intended
647         (i.e. before calling CYG_TEST_INIT())
648
649 1999-02-17  Jonathan Larmour  <jlarmour@cygnus.co.uk>
650
651         * src/tcdiag.cxx (cyg_test_output): Remove angle brackets round
652         GDBCMD output
653
654 1999-02-16  Jonathan Larmour  <jlarmour@cygnus.co.uk>
655
656         * src/fancy.cxx (trim_func): 
657         * src/simple.cxx (trim_func):
658         * src/buffer.cxx (trim_func):
659         Don't delete bits before a space as it may not always be a
660         type, if using CYG_FUNCNAME rather than relying on
661         __PRETTY_FUNCTION__
662
663         * src/tcdiag.cxx (cyg_test_output): 
664         Add new GDBCMD output and do some tidying vis a vis coding standards
665         etc.
666
667         * include/testcase.h:
668         Do some tidying vis a vis coding standards etc.
669
670 1999-02-16  Gary Thomas  <gthomas@cygnus.co.uk>
671
672         * include/cyg_type.h (CYGBLD_ATTRIB_CONSTRUCTOR): 
673         New macro, used to define a 'C' routine to be run with 'C++'
674         constructors.
675
676 1999-01-26  Bart Veer  <bartv@cygnus.co.uk>
677
678         * include/cyg_type.h (CYGBLD_ATTRIB_NORET):
679         Updated the non-GNUC version of the macro
680
681 1999-01-21  Jonathan Larmour  <jlarmour@cygnus.co.uk>
682
683         * include/cyg_type.h:
684         Remove all traces of CYG_KERNEL_USE_INIT_PRIORITY option - now
685         compulsory. Consequently can remove include of pkgconf/infra.h.
686         Add CYG_INIT_PREDEFAULT priority for
687         CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG implementation.
688         Change CYGBLD_NORET to CYGBLD_ATTRIB_NORET
689         Add CYGBLD_ATTRIB_ALIAS and CYGBLD_ATTRIB_WEAK_ALIAS macros
690
691         * include/cyg_ass.h: 
692         * include/testcase.h
693         Change CYGBLD_NORET to CYGBLD_ATTRIB_NORET
694
695         * src/startup.cxx:
696         Split up into smaller files to make GDB happier when debuggin
697
698         * src/pkgstart.cxx:
699         * src/prestart.cxx:
700         * src/userstart.cxx:
701         New files with contents originally from startup.cxx
702
703 1999-01-19  Jonathan Larmour  <jlarmour@cygnus.co.uk>
704
705         * include/cyg_type.h (CYG_REFERENCE_OBJECT): 
706         Make this work with no overhead, although it doesn't work with
707         anything other than objects with constructors. I _believe_ this
708         is the only relevant situation though. Bite me.
709         Fix for PR 18782
710
711 1999-01-14  Jesper Skov  <jskov@cygnus.co.uk>
712
713         * include/cyg_type.h (CYG_REFERENCE_SYMBOL): Added.
714
715 1999-01-13  Gary Thomas  <gthomas@cygnus.co.uk>
716
717         * include/cyg_type.h: Default handling of 'CYG_DOUBLE_BYTEORDER'
718
719 1999-01-13  Jesper Skov  <jskov@cygnus.co.uk>
720
721         * include/cyg_type.h (CYG_UNUSED_PARAM): Don't assign to the
722         unused parameter; it might be a macro constant.
723
724 1999-01-11  Bart Veer  <bartv@cygnus.co.uk>
725
726         * src/tcdiag.cxx (cyg_test_output): 
727         * include/testcase.h:
728         Use const where appropriate in cyg_test_output()
729
730 1999-01-06  Bart Veer  <bartv@cygnus.co.uk>
731
732         * include/cyg_trac.h (CYG_REPORT_FUNCARG8):
733         Removed spurious comma so that the macro actually compiles.
734
735 1998-12-24  Bart Veer  <bartv@cygnus.co.uk>
736
737         * src/simple.cxx: 
738         * src/null.cxx: 
739         * src/fancy.cxx: 
740         * src/diag.c: 
741         * src/buffer.cxx: 
742         * include/diag.h:
743         In the assertion support, use const where appropriate.
744         
745 1998-12-24  Bart Veer  <bartv@cygnus.co.uk>
746
747         * include/cyg_ass.h:
748         The prototype for cyg_assert_fail() is now always present.
749         const is used wherever appropriate.
750         A number of additional assertion macros are now defined.
751         Host-specific assertion support has been added.
752         Some minor tweaks for greater consistency in macro usage.
753
754 1998-12-21  Bart Veer  <bartv@cygnus.co.uk>
755
756         * include/cyg_type.h:
757         Allow for platforms where pointers are not 32 bits wide.
758         
759 1998-12-16  Hugo Tyson  <hmt@cygnus.co.uk>
760
761         * include/testcase.h (cyg_test_is_simulator): 
762         * src/tcdiag.cxx (cyg_test_is_simulator): 
763         Change the type to int so that all gdb's understand it.
764         (it was impossible to assign to from the prompt as a bool)
765
766 1998-12-09  Bart Veer  <bartv@cygnus.co.uk>
767
768         * include/testcase.h:
769         Hide a __noreturn__ attribute inside a macro so that the
770         header file can be used for host-side code.
771
772 1998-11-02  Jesper Skov  <jskov@cygnus.co.uk>
773
774         * src/memset.c (_memset): Use type casted pointer to avoid
775         compiler warning.
776
777 Mon Oct 26 21:20:13 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
778
779         * src/buffer.cxx: 
780         Make write_thread_id() conditional on CYGDBG_USE_ASSERTS as that's
781         the only time it is used. This silences a compiler warning
782
783 Mon Oct 26 19:40:48 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
784
785         * src/memset.c, src/memcpy.c:
786         Conditionalise out all tracing for now
787         Fix for PR 17996
788
789 Fri Oct 23 05:42:36 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
790
791         * include/cyg_ass.h (CYGASSERT_docall): 
792         Make a dummy reference to _msg_ argument when
793         CYGDBG_INFRA_DEBUG_ASSERT_MESSAGE is disabled, otherwise we may get
794         "unused variable" warnings
795         Fix for PR 17889
796
797 1998-10-22  Hugo Tyson  <hmt@cygnus.co.uk>
798
799         * src/buffer.cxx (increment_buffer_pos): 
800         Use the correctly named print_trace_buffer() rather than some
801         typo/globaleditto.
802         (cyg_trace_dump): only refer to thread->get_saved_context() if
803         CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT is defined.
804
805 1998-10-22  Hugo Tyson  <hmt@cygnus.co.uk>
806
807         * src/buffer.cxx (write_thread_id): 
808         Make get_tid() be there when used.
809
810         * include/pkgconf/infra.h: 
811         Only enable all the buffered tracing stuff if USE_TRACING is
812         selected; otherwise link errors ensue if only USE_ASSERTS is
813         enabled.
814
815 1998-10-22  Jesper Skov  <jskov@cygnus.co.uk>
816         PR 17914
817
818         * src/simple.cxx (CYG_NO_THREADID): Set if there is no Kernel
819         support.
820
821 1998-10-20  Nick Garnett  <nickg@cygnus.co.uk>
822
823         * src/null.cxx:
824         Removed fix for PR 17471 since the required macros have been moved
825         to cyg_type.h.
826
827         * include/diag.h (diag_printf):
828         * src/diag.c (diag_printf):
829         Made use of variadic arguments optional in this function.
830
831         * include/pkgconf/infra.h:
832         Added configury to support buffered tracing.
833
834         * src/fancy.cxx (trim_func):
835         Fixed fencepost bug.
836
837         * src/PKGconf.mak:
838         * src/buffer.cxx:
839         Added buffer.cxx to implement buffered trace log.
840
841 Thu Oct 15 21:27:23 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
842
843         * src/delete.cxx, src/memcpy.c, src/memset.c:
844         Moved here from ecc/kernel/current/src/common, as they should
845         be present even if the kernel is disabled
846
847         * include/pkgconf/infra.h:
848         Add new config options CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMCPY
849         and CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMSET to support the
850         functionality available in memcpy.c and memset.c
851
852         * src/PKGconf.mak:
853         build above new files
854
855         Above changes are required for PR 17229
856
857 1998-10-14  Nick Garnett  <nickg@cygnus.co.uk>
858
859         * include/cyg_type.h:
860         Moved CYG_LABEL_NAME() macro here from ktypes.h.
861
862 Wed Oct 14 17:10:12 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
863
864         * src/diag.c: 
865         Change warning message from previous change to match compiler
866         output exactly
867
868 Tue Oct 13 17:23:37 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
869         
870         * src/diag.c: 
871         Output another warning so that people know that diag.c produces
872         a warning
873         Reformat to 76 columns
874         Change args of diag_printf to be ANSI-style, not K&R to
875         silence warning
876
877 1998-09-25  Bart Veer  <bartv@cygnus.co.uk>
878
879         * src/null.cxx:
880         PR 17471: null.cxx relies on the macro CYG_LABEL_NAME(), which on
881         the mn10300 is defined only if <cyg/kernel/ktypes.h> is included.
882         As a temporary fix this header file is now always included. In the
883         medium term there will have to be proper fixes to ktypes.h and to
884         cyg_type.h 
885
886 Wed Sep 16 03:42:16 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
887
888         * src/startup.cxx, src/dummyxxmain.cxx: 
889         Move __main() to a separate dummyxxmain.cxx source file to resolve
890         linking bogosities on some targets
891         Fix for PR 17279 - kudos to Tim Goodwin really
892
893         * src/PKGconf.mak:
894         Build src/dummyxxmain.cxx
895
896 Tue Sep 15 19:14:33 1998  David Moore  <dsm@keema.cygnus.co.uk>
897
898         * include/pkgconf/infra.h: Cleaned up comments.
899
900 Tue Sep 15 14:34:34 1998  David Moore  <dsm@cygnus.co.uk>
901
902         * src/startup.cxx: 
903         * include/cyg_type.h: 
904         CYGBLD_ATTRIB_WEAK moved from src/startup.cxx to
905         include/cyg_type.h
906
907 Tue Sep 15 12:26:36 1998  Jonathan Larmour  <jlarmour@peshwari.cygnus.co.uk>
908
909         * src/null.cxx, src/simple.cxx, src/fancy.cxx:
910         Change cyg_check_data_ptr() to not compare with _end symbol from
911         linker scripts as this is a bogus thing to do when starting in
912         ROM. Some better magic can be done later with the memory layout
913         tool.
914
915         * src/simple.cxx (cyg_assert_fail),
916           src/fancy.cxx (cyg_assert_fail): 
917         If an assert is thrown, loop forever no matter what the platform
918         rather than resetting the jmr board.
919
920 Fri Sep 11 12:52:59 1998  Hugo Tyson  <hmt@cygnus.co.uk>
921
922         * src/tcdiag.cxx: 
923         * src/diag.c: 
924         Remove dependencies on the kernel:
925          o types are available from here, infra.
926          o Diag and its mates are here and the HAL.
927         
928 Thu Sep 10 21:59:09 1998  Hugo Tyson  <hmt@cygnus.co.uk>
929
930         * src/fancy.cxx: 
931         * src/simple.cxx: 
932         * src/null.cxx: 
933         Remove dependencies on the kernel:
934          o interrupt stuff is available from the HAL.
935          o types are available from here, infra.
936          o Diag and its mates are here and the HAL.
937          o Only consider printing thread information if there is a kernel.
938         
939 Thu Sep 10 21:29:55 1998  Hugo Tyson  <hmt@cygnus.co.uk>
940
941         * include/pkgconf/infra.h: 
942         Fix CDL descriptions (mainly) resulting from review of
943         configury here.
944
945 Thu Sep 10 17:38:00 1998  Hugo Tyson  <hmt@cygnus.co.uk>
946
947         * src/null.cxx: 
948         Add an empty cyg_assert_fail() if not CYGDBG_USE_ASSERTS, so that
949         clib's assert() can use it, in common with but regardless of the
950         internal assert setup.  Of course if internal asserts are used,
951         the same routine is used.
952
953 Thu Sep  3 19:05:29 1998  Hugo Tyson  <hmt@cygnus.co.uk>
954
955         * src/startup.cxx (__main): 
956         ...and its mates.  Correct the bad usage of the tracing macros - a
957         type was implied when the type was void, so an assert fires.
958
959         * include/diag.h (diag_printf): 
960         Remove 'useful' prototype; this function deliberately has a K&R
961         prototype to avoid having to use varargs, or pad arglists or
962         anything grody like that.  Comment to that effect added too.
963         
964         * src/fancy.cxx: 
965         Condition out routines which are only used by tracing system;
966         prevent warnings.  Also changed the default widths setup to
967         something more suitable to our long function names; viewing on
968         about a 200 column screen recommended - or use 'simple' instead.
969
970 Tue Sep  1 19:09:39 1998  Hugo Tyson  <hmt@masala.cygnus.co.uk>
971
972         * include/pkgconf/infra.h: 
973         Fancy tracing by default, as I've been requested.
974         Move definition (or not) of CYGDBG_INFRA_DIAG_USE_DEVICE from the
975         kernel, correcting the symbol construction as we go.
976
977         * include/cyg_type.h: 
978         Correct multiple-inclusion protection, remove
979         <dollar>Version<Dollar> nonsense, correct Usage: field, put in
980         definition of CYGBLD_NORET.
981
982         * include/cyg_ass.h: 
983         Correct Usage: field, remove definition of CYGDBG_NORET, correct
984         definition of cyg_assert_fail to use CYGBLD_NORET as intended.
985
986         * include/cyg_trac.h: 
987         Tidy up comments.
988
989         * src/PKGconf.mak (COMPILE): 
990         Added all the new units below.
991
992         * src/fancy.cxx: 
993         * src/simple.cxx: 
994         * src/null.cxx: 
995         Moved here from the kernel; comments changed accordingly.
996
997         * src/tcdiag.cxx: 
998         * include/diag.h: 
999         * src/diag.c: 
1000         Moved here from the kernel; comments changed accordingly.
1001         Also use config symbol CYGDBG_INFRA_DIAG_USE_DEVICE rather than
1002         (badly named) CYG_DIAG_USE_DEVICE.
1003
1004 Fri Aug 28 15:22:16 1998  Hugo Tyson  <hmt@cygnus.co.uk>
1005
1006         * include/pkgconf/infra.h: 
1007         Add lots of lovely cdl comments and new, correct, names for the
1008         config options themselves.
1009         * include/cyg_trac.h: 
1010         * include/cyg_ass.h: 
1011         Use the newly named options.
1012
1013         [KERNEL] see also changes to src/trace/{fancy,null,simple}.cxx
1014         which should soon move into this package instead.
1015
1016 Fri Aug 28 09:57:21 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
1017
1018         * include/pkgconf/infra.h:
1019         Add CYGSEM_START_ISO_C_COMPATIBILITY and
1020         CYGSEM_START_UITRON_COMPATIBILITY options, along with some comment.
1021
1022         * src/PKGconf.mak, src/startup.cxx:
1023         Add these two files for the new file startup.cxx that provides the
1024         generic startup mechanism, using new cyg_start() functions. This
1025         is to remove the dependency on main(), which is defined in ISO and
1026         POSIX as having certain properties we wouldn't be able to give it
1027         otherwise.
1028
1029 Tue Aug 25 11:47:58 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
1030
1031         * src/startup.cxx: 
1032         Add this to provide new startup method
1033
1034 1998-08-20  Nick Garnett  <nickg@cygnus.co.uk>
1035
1036         * include/cyg_type.h:
1037         Moved constructor priority ordering stuff here from
1038         kernel/ktypes.h.
1039
1040 //===========================================================================
1041 //####ECOSGPLCOPYRIGHTBEGIN####
1042 // -------------------------------------------
1043 // This file is part of eCos, the Embedded Configurable Operating System.
1044 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
1045 //
1046 // eCos is free software; you can redistribute it and/or modify it under
1047 // the terms of the GNU General Public License as published by the Free
1048 // Software Foundation; either version 2 or (at your option) any later version.
1049 //
1050 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
1051 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
1052 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1053 // for more details.
1054 //
1055 // You should have received a copy of the GNU General Public License along
1056 // with eCos; if not, write to the Free Software Foundation, Inc.,
1057 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
1058 //
1059 // As a special exception, if other files instantiate templates or use macros
1060 // or inline functions from this file, or you compile this file and link it
1061 // with other works to produce a work based on this file, this file does not
1062 // by itself cause the resulting work to be covered by the GNU General Public
1063 // License. However the source code for this file must still be made available
1064 // in accordance with section (3) of the GNU General Public License.
1065 //
1066 // This exception does not invalidate any other reasons why a work based on
1067 // this file might be covered by the GNU General Public License.
1068 //
1069 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
1070 // at http://sources.redhat.com/ecos/ecos-license/
1071 // -------------------------------------------
1072 //####ECOSGPLCOPYRIGHTEND####
1073 //===========================================================================
1074         
1075         
1076