diff options
author | Bruce Korb <bkorb@gnu.org> | 2015-01-28 20:21:34 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2015-01-28 20:21:34 +0000 |
commit | 11c3a68e359dd7837a5f6b1d763c1b2aeebdd4de (patch) | |
tree | 045391ebc71da413dfec8d0297a183b2e2608bea /fixincludes/README | |
parent | 040968a88a1e9a8e4dd5f760e3fb4cabe5a63979 (diff) | |
download | gcc-11c3a68e359dd7837a5f6b1d763c1b2aeebdd4de.zip gcc-11c3a68e359dd7837a5f6b1d763c1b2aeebdd4de.tar.gz gcc-11c3a68e359dd7837a5f6b1d763c1b2aeebdd4de.tar.bz2 |
checksums and test-text
* fixincl.tpl: add a check sum acceptance test
* fixlib.h: enumerate it
* fixincl.c: handle it
* README: document it and document the handling of test_text
From-SVN: r220215
Diffstat (limited to 'fixincludes/README')
-rw-r--r-- | fixincludes/README | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/fixincludes/README b/fixincludes/README index 3e4e63f..9848016 100644 --- a/fixincludes/README +++ b/fixincludes/README @@ -1,24 +1,4 @@ -FIXINCLUDES OPERATION -===================== - -See also: http://autogen.SourceForge.net/fixinc.html - -The set of fixes required was distilled down to just the data required -to specify what needed to happen for each fix. Those data were edited -into a file named fixincludes/inclhack.def. A program called AutoGen -(http://autogen.SourceForge.net) uses these definitions to instantiate -several different templates that then produces code for a fixinclude -program (fixincl.x) and a shell script to test its functioning. On -certain platforms (viz. those that do not have functional bidirectional -pipes), the fixincl program is split into two. This should only concern -you on DOS and BeOS. - -Regards, - Bruce <bkorb@gnu.org> - - - GCC MAINTAINER INFORMATION ========================== @@ -48,6 +28,15 @@ To make your fix, you will need to do several things: There is no real possibility that these fixes will fail. If they do, you will surely know straight away. + NOTE: "test_text" is interpreted by the shell as it gets + copied into the test header. THEREFORE you must quote + dollar sign characters and back quotes -- unless you mean + for them to be interpreted by the shell. + + e.g. the math_huge_val_from_dbl_max test_text needs to + put text into both float.h and math.h, so it includes a + back-quoted script to add text to float.h. + 5. Go into the fixincludes build directory and type, "make check". You are guaranteed to have issues printed out as a result. Look at the diffs produced. Make sure you have not clobbered @@ -82,7 +71,7 @@ MAKING CHANGES TO INCLHACK.DEF 3. It is relatively expensive to fire off a process to fix a source file, therefore write apply tests to avoid unnecessary fix processes. The preferred apply tests are "select", "bypass", "mach" - and "c-test" because they are performed internally: + "sum", and "c-test" because they are performed internally: * select - Run a regex on the contents of the file being considered. All such regex-es must match. Matching is done with @@ -91,6 +80,19 @@ MAKING CHANGES TO INCLHACK.DEF * bypass - Run a regex on the contents of the file being considered. No such regex may match. + * sum - Select a specific version of a file that has a matching + check sum. The BSD version of checksum ["sum(1BSD)"] + is used. Each "sum" entry should contain exactly three + space separated tokens: the sum, some number and the + basename of the file. The "some number" is ignored. + If there are multiple "sum" entries, only one needs to + match in order to pass. For example: + + sum = '1234 3 foobar.h'; + + specifies that the "foobar.h" header in any directory + will match if it has the checksum 1234. + * c_test - call a function in fixtests.c. See that file. * files - the "fnmatch" pattern of the file(s) to examine for |