1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00
Commit graph

49 commits

Author SHA1 Message Date
Gareth Rees
c968255f1e Ensure that code of the form if (condition) statement; is split over two lines, so that it is possible to set a breakpoint on the statement in a debugger.
This change was agreed in 1997 (see <https://info.ravenbrook.com/project/mps/mail/1997/08/19/13-44/0.txt>), so it's about time it was implemented.

Copied from Perforce
 Change: 187071
 ServerID: perforce.ravenbrook.com
2014-09-27 22:57:02 +01:00
Gareth Rees
9c8713f51b Fix problems found by coverity. see <https://info.ravenbrook.com/mail/2014/04/10/23-23-42/0/> for full analysis.
Copied from Perforce
 Change: 185445
 ServerID: perforce.ravenbrook.com
2014-04-11 00:26:48 +01:00
Gareth Rees
94e3fff083 Turn on -wswitch-default for gcc.
Add missing default: cases to switch statements.

Copied from Perforce
 Change: 185226
 ServerID: perforce.ravenbrook.com
2014-04-04 12:16:59 +01:00
Gareth Rees
d934afafc5 Catch-up merge from master sources to branch/2014-03-21/pellesc.
Copied from Perforce
 Change: 185074
 ServerID: perforce.ravenbrook.com
2014-03-28 13:54:30 +00:00
Gareth Rees
68edf84c3b Remove #pragma warning(disable: ...) for microsoft visual c/c++ warnings that are no longer generated by the code, so that we get the maximum checking from this compiler.
Copied from Perforce
 Change: 185072
 ServerID: perforce.ravenbrook.com
2014-03-28 13:09:14 +00:00
Gareth Rees
9aef4157fd Fix review comments from dl <https://info.ravenbrook.com/mail/2014/03/25/17-44-56/0/>.
Add __attribute__((__format__(printf))) to functions that take a printf-compatible format string (when building using GCC or Clang), so that format string mistakes can be detected statically.

Copied from Perforce
 Change: 185021
 ServerID: perforce.ravenbrook.com
2014-03-26 12:27:35 +00:00
Gareth Rees
9d5266c0cc Improved support for pelles c:
* Refactor nmake files so that a compiler-specific makefile is included; move Microsoft Visual C-specific options to mv.nmk.
* Add nmake files for Pelles (w3i3pc.nmk and pc.nmk).
* Rename spw3i3mv.c to spw3i3.c and spw3i6mv.c to spw3i6.c since these are also used by Pelles C.
* Make reasonable changes to the source code to avoid warnings from Pelles C:
** check results of function calls;
** avoid useless return values;
** undef max before defining it;
** ensure printf formats are checkable;
** move notreached() assertions to the end of blocks;
** suppress warnings in cases where the code shouldn't be changed ("Unreachable code", "Inline assembly code is not portable", "Structured Exception Handling is not portable").

Copied from Perforce
 Change: 184977
 ServerID: perforce.ravenbrook.com
2014-03-24 18:23:29 +00:00
Gareth Rees
a3c7ed0cab Turn on -wextra -wwrite-strings when compiling with gcc or clang.
Add missing initializer to mps_args_none.
Change "char *" to "const char *" where necessary.

Copied from Perforce
 Change: 183494
 ServerID: perforce.ravenbrook.com
2013-09-30 17:18:52 +01:00
Richard Brooksby
14dfc3b298 Suppress warnings about uninitialized use of eof.
Copied from Perforce
 Change: 182750
 ServerID: perforce.ravenbrook.com
2013-06-15 14:38:00 +01:00
Richard Brooksby
195ffba67b Eliminating eventpro.c and simplifying event reading in eventcnv.
Copied from Perforce
 Change: 182748
 ServerID: perforce.ravenbrook.com
2013-06-15 14:24:52 +01:00
Richard Brooksby
c4d6a2de1f Merging spelling corrections contributed by bruce mitchener.
See <1c80ccb634>.

Copied from Perforce
 Change: 180956
 ServerID: perforce.ravenbrook.com
2013-02-18 15:46:39 +00:00
Nick Barnes
686ee38101 Tidy up the event pipeline.
Copied from Perforce
 Change: 180460
 ServerID: perforce.ravenbrook.com
2012-11-13 12:51:58 +00:00
Nick Barnes
ecd77595bb Add mps_clocks_per_sec to the eventinit header, and put some header-checking code into eventcnv, so now we have at least a rudimentary check that a binary event log is readable.
Copied from Perforce
 Change: 180160
 ServerID: perforce.ravenbrook.com
2012-10-30 14:15:27 +00:00
Nick Barnes
750d515233 Further simplify the eventcnv text output format.
Copied from Perforce
 Change: 180054
 ServerID: perforce.ravenbrook.com
2012-10-24 16:10:46 +01:00
Nick Barnes
ec8692c49c Integrate gdr's somewhat cut-down eventcnv code.
Copied from Perforce
 Change: 180046
 ServerID: perforce.ravenbrook.com
2012-10-24 11:12:17 +01:00
Gareth Rees
07d0aaf113 Remove reporting features from eventcnv, as discussed with rb. eventcnv was always intended to be a simple tool that just translates events, not a report generator. in particular:
* Remove -e option and associated event specification parsing.
* Remove -b option and bucket statistics.
* Don't intern labels (always print addresses).
* Remove -v option (events are always output).
* If -h or -? is specified, exit after printing help message.
* Help text refer to the "Telemetry" section of reference manual.

Copied from Perforce
 Change: 180028
 ServerID: perforce.ravenbrook.com
2012-10-23 14:28:22 +01:00
Nick Barnes
efdc6b4018 Re-jigged eventsql so it uses plain-text intermediate files and handles stdin ok.
Copied from Perforce
 Change: 179947
 ServerID: perforce.ravenbrook.com
2012-10-18 17:00:31 +01:00
Richard Brooksby
13da97d0f2 Removing dependency on microsoft c run-time __aullshr by treating the event clock as a struct in some circumstances.
Copied from Perforce
 Change: 179444
 ServerID: perforce.ravenbrook.com
2012-09-12 14:21:35 +01:00
Richard Brooksby
22b0358048 Responding to nb's review comments.
Copied from Perforce
 Change: 179335
 ServerID: perforce.ravenbrook.com
2012-09-07 15:46:18 +01:00
Richard Brooksby
e64cb01f87 Responding to dl's review comments. mostly clarifications.
Copied from Perforce
 Change: 179280
 ServerID: perforce.ravenbrook.com
2012-09-05 19:02:44 +01:00
Richard Brooksby
986d55351a Removing unnecessary "event" override.
Adding some instructions to the leader comment of eventcnv.c.

Copied from Perforce
 Change: 179151
 ServerID: perforce.ravenbrook.com
2012-08-31 21:54:43 +01:00
Richard Brooksby
e06c189c25 Fixing remaining fixmes.
Eliminating the flag for partial log, since this only affects the assumption that the log is in order, which it isn't any more.

Copied from Perforce
 Change: 179150
 ServerID: perforce.ravenbrook.com
2012-08-31 21:39:56 +01:00
Richard Brooksby
fbe4595319 Fixing warnings found by lii6gc build.
Copied from Perforce
 Change: 179149
 ServerID: perforce.ravenbrook.com
2012-08-31 21:27:55 +01:00
Richard Brooksby
51efd85c4d Fixing event clock width assumptions found by microsoft c.
Copied from Perforce
 Change: 179146
 ServerID: perforce.ravenbrook.com
2012-08-31 20:50:47 +01:00
Richard Brooksby
880d79ba0e Missing changes from changelist 179142. oops.
Copied from Perforce
 Change: 179144
 ServerID: perforce.ravenbrook.com
2012-08-31 20:17:16 +01:00
Richard Brooksby
a7a9ed15ff Recording events downwards from the top of the buffer so that they can be recovered by a backtrace.
Copied from Perforce
 Change: 179131
 ServerID: perforce.ravenbrook.com
2012-08-31 13:18:19 +01:00
Richard Brooksby
4e8ff21a10 Adding packed boolean event parameter type, partly to suppress warnings.
Copied from Perforce
 Change: 179124
 ServerID: perforce.ravenbrook.com
2012-08-31 05:17:20 +01:00
Richard Brooksby
71d487d995 Fixing further pedantic compilation issues on xci3gc.
Copied from Perforce
 Change: 179057
 ServerID: perforce.ravenbrook.com
2012-08-26 17:07:32 +01:00
Richard Brooksby
0506bc8cbf Using fast clock to timestamp events, making event logging much quicker.
Copied from Perforce
 Change: 179055
 ServerID: perforce.ravenbrook.com
2012-08-26 15:31:40 +01:00
Richard Brooksby
3208f37aef Moving event emitting macros from eventcom.h to event.h, as they aren't used except in the mps.
Tidying up the way event field addresses are fetched to do all the work during compilation and not emit scads of branches.

Copied from Perforce
 Change: 179053
 ServerID: perforce.ravenbrook.com
2012-08-26 14:43:35 +01:00
Richard Brooksby
d3a49735dc Switching eventtypes (large hex constants) to codes (16-bit ids).
Copied from Perforce
 Change: 179018
 ServerID: perforce.ravenbrook.com
2012-08-22 09:03:25 +01:00
Richard Brooksby
f6d71a6ee9 Removing unnecessary warning suppression for gcc on freebsd.
Copied from Perforce
 Change: 179013
 ServerID: perforce.ravenbrook.com
2012-08-22 08:03:05 +01:00
Richard Brooksby
4009b8a559 Abolishing eventgen.pl. event structures are now expanded by the preprocessor.
Abolishing event formats.  Each event now has its own structure.
Event parameters are now written directly into the event buffer, rather than being copied twice.

Copied from Perforce
 Change: 179010
 ServerID: perforce.ravenbrook.com
2012-08-21 22:48:11 +01:00
Richard Brooksby
ab85e6ff32 Replacing "relation" style event definition header with single higher-order macro that can be applied more flexibly.
Copied from Perforce
 Change: 178997
 ServerID: perforce.ravenbrook.com
2012-08-21 16:29:19 +01:00
Richard Brooksby
215ef086cb Removed support for old or dead platforms: osf/1, irix, mac system 7, sunos, windows nt on alpha, windows nt on powerpc.
See <https://github.com/datafueled/memory-pool-system/pull/3> for the origin of this change.

Copied from Perforce
 Change: 178872
 ServerID: perforce.ravenbrook.com
2012-08-08 19:02:57 +01:00
David Lovemore
c1d31f8fdb Renamed priwlongest to priwword.
Copied from Perforce
 Change: 178285
 ServerID: perforce.ravenbrook.com
2012-05-22 17:47:04 +01:00
Richard Brooksby
63f5c2a9cf Fixing incorrect assumption that ulong was as big as size_t.
Copied from Perforce
 Change: 178199
 ServerID: perforce.ravenbrook.com
2012-05-17 15:33:10 +01:00
Richard Brooksby
dd4cefe555 Fixing unsigned longs in eventcnv but not column widths.
Copied from Perforce
 Change: 178026
 ServerID: perforce.ravenbrook.com
2012-04-23 17:13:41 +01:00
Richard Kistruck
f1b0725278 Mps br/vc9: under ifdef mps_builder_mv, disable warning 4996 where
necessary for VC9 builds.

Copied from Perforce
 Change: 166497
 ServerID: perforce.ravenbrook.com
2008-10-20 15:12:15 +01:00
Richard Brooksby
78ef580722 Eliminating "impl" type tags and replacing them with uri-style file references.
Copied from Perforce
 Change: 29900
 ServerID: perforce.ravenbrook.com
2002-06-07 17:34:59 +01:00
Richard Brooksby
a0f676c8e1 Adding forward reference to licenses from copyright notices.
Adding licenses to a couple of files I missed.

Copied from Perforce
 Change: 29837
 ServerID: perforce.ravenbrook.com
2002-06-06 11:56:19 +01:00
Richard Brooksby
4301a6db0a Adding licenses to source code files.
Copied from Perforce
 Change: 29836
 ServerID: perforce.ravenbrook.com
2002-06-06 11:44:23 +01:00
Richard Brooksby
c0bb4cd3cd Removing hopenames from the master sources.
This change will be integrated but ignored (-ay) to the gg-epcore/union sources, so that they retain HopeNames.

Copied from Perforce
 Change: 24911
 ServerID: perforce.ravenbrook.com
2001-12-07 13:19:25 +00:00
Richard Brooksby
3d5e2ca85f Adding hopenames back into the master sources, so that they can be included in the union sources along with the id keywords.
This was achieved by partially undoing changelist 24817, including an accidental corruption of eventgen.pl.

Copied from Perforce
 Change: 24877
 ServerID: perforce.ravenbrook.com
2001-12-06 18:14:02 +00:00
Richard Brooksby
b824e1c406 Updating copyright messages to say copyright 2001 ravenbrook throughout.
Adding some missing copyright messages.

Copied from Perforce
 Change: 24818
 ServerID: perforce.ravenbrook.com
2001-12-05 16:18:43 +00:00
Richard Brooksby
2589307099 Changing hopename keywords to id keywords throughout, to work with perforce.
Copied from Perforce
 Change: 24817
 ServerID: perforce.ravenbrook.com
2001-12-05 16:05:52 +00:00
Richard Brooksby
492dd3c684 Merging changes from union to masters. this incorporates pekka's updates: tuning and a type in amcsshe.c and some adding some missing checks in arenavm.c. it also brings our cope of their hopenames up to date.
Copied from Perforce
 Change: 24815
 ServerID: perforce.ravenbrook.com
2001-12-05 15:48:24 +00:00
Nick Barnes
8213d018d2 Freebsd support.
Copied from Perforce
 Change: 23681
 ServerID: perforce.ravenbrook.com
2001-10-31 15:01:00 +00:00
Nick Barnes
7acfca905d Branch imports for masters.
Copied from Perforce
 Change: 23678
 ServerID: perforce.ravenbrook.com
2001-10-31 14:40:56 +00:00
Renamed from mps/src/eventcnv.c (Browse further)