diff options
author | Robin Barker <RMBarker@cpan.org> | 2005-01-05 11:55:09 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-04-04 21:13:55 +0000 |
commit | 9982c48313c5503dc25c241adb0e1c43b489ef8a (patch) | |
tree | 91ff5f63ee01869dab5c62a17cc506652c9e260b /Porting | |
parent | 9cdb596a210f44e23f4e6ff23036b133ccdcd768 (diff) | |
download | perl-9982c48313c5503dc25c241adb0e1c43b489ef8a.tar.gz |
Integrate:
[ 23767]
Subject: [PATCH] to improve -DCHECK_FORMAT
Date: Wed, 5 Jan 2005 11:55:09 -0000
Message-ID: <533D273D4014D411AB1D00062938C4D90849C55A@hotel.npl.co.uk>
[ 23781]
Subject: [PATCH] follow-up to 23767
From: Robin Barker <Robin.Barker@npl.co.uk>
Date: Tue, 11 Jan 2005 15:48:49 -0000
Message-ID: <533D273D4014D411AB1D00062938C4D90849C56A@hotel.npl.co.uk>
[ 23824]
Subject: [PATCH] Further follow-up to 23767
From: Robin Barker <Robin.Barker@npl.co.uk>
Date: Wed, 19 Jan 2005 18:30:31 -0000
Message-ID: <533D273D4014D411AB1D00062938C4D90849C57D@hotel.npl.co.uk>
[ 24151]
Make -DFORMAT_CHECK compile with threads.
p4raw-link: @24151 on //depot/perl: 3358ade6797003037fdb5badd4a2c7712ad05b56
p4raw-link: @23824 on //depot/perl: 014ead4bccac5462b3a10654493980250e84b1d4
p4raw-link: @23781 on //depot/perl: 57f5baf2d376469520fedfc328fdf51d005eafe3
p4raw-link: @23767 on //depot/perl: 5df617be18e4372550725f3369e8e3fd641cce19
p4raw-id: //depot/maint-5.8/perl@24153
p4raw-integrated: from //depot/perl@24150 'merge in'
Porting/pumpkin.pod (@22304..)
p4raw-edited: from //depot/perl@23824 'edit in' perl.h (@23780..)
p4raw-integrated: from //depot/perl@23824 'edit in' XSUB.h (@23323..)
gv.c (@23766..) perl.c (@23786..) pp_ctl.c sv.c (@23803..)
'merge in' utf8.c (@23801..)
p4raw-integrated: from //depot/perl@23767 'merge in' pp.h (@23680..)
mg.c pp_sys.c (@23766..)
Diffstat (limited to 'Porting')
-rw-r--r-- | Porting/pumpkin.pod | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod index 9de84348c5..e59feef2e5 100644 --- a/Porting/pumpkin.pod +++ b/Porting/pumpkin.pod @@ -748,37 +748,32 @@ If you have gcc, you can test the correct use of printf-style arguments. Run C<Configure> with S<-Dccflags='-DCHECK_FORMAT -Wformat'> (and S<-Dcc=gcc>, if you are not on a system where C<cc> is C<gcc>) and run C<make>. The compiler will produce warnings of -incorrect use of format arguments. CHECK_FORMAT changes perl-defined -formats to common formats, so DO NOT USE the executable produced by -this process. +incorrect use of format arguments. -A more accurate approach is the following commands: +As of change 23767, CHECK_FORMAT changes perl-defined formats +to obscure (but standard) formats, and then traps the obscure +format. The resulting perl executable operates properly but +you should not use the executable produced by this process. =over 4 =item * - -build miniperl with -DCHECK_FORMAT - - make clean - make miniperl OPTIMIZE=-DCHECK_FORMAT >& mini.log - -=item * - -build a clean miniperl, -and build everything else from that with -DCHECK_FORMAT + +A more accurate approach is the following commands: make clean - make miniperl make all OPTIMIZE='-DCHECK_FORMAT -Wformat' >& make.log - + perl -nwe 'print if /^\S+:/ and not /^make\b/' make.log + =item * -clean up, and print warnings from the log files +A more thorough approach to compiler warnings is make clean - perl -nwe 'print if /^\S+:/ and not /^make\b/' \ - mini.log make.log + make miniperl OPTIMIZE=-O\ -DCHECK_FORMAT >& make.log + make all OPTIMIZE=-O\ -DCHECK_FORMAT\ -Wall\ -Wno-unused\ + -Wno-uninitialized >>& make.log + perl -nwe 'print if /^\S+:/ and not /^make\b/' make.log =back |