Commit Graph

16 Commits

Author SHA1 Message Date
Nicholas Nethercote
db7b95c5d4 Remove WERROR. It's not much use because getting Valgrind to build without
errors on all platforms is very difficult.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9267
2009-02-25 23:19:46 +00:00
Nicholas Nethercote
0b2d785793 Makefile.flags.am
Remove mentions of empty variables.

Makefile.am
    Only install default.supp;  other .supp files aren't necessary to
    install.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9123
2009-02-09 01:52:55 +00:00
Nicholas Nethercote
009cd24326 Removed Makefile.core.am with some judicious refactoring.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9114
2009-02-06 04:49:14 +00:00
Nicholas Nethercote
ed322feb84 Rename all the arch/OS/platform-related variables in configure.in to make it
clearer what they mean:
- They all have VGCONF_ prefixes now, to indicate they come out of
  configure.in (and are clearly distinguished from the VGA_/VGO_/VGP_
  #defines passed in to C files).
- The ones that refer to the primary *or* secondary platform have _INCLUDES_
  in them.
- The ones that are in all-caps have a _CAPS suffix.

So, for example, what was VGP_X86_LINUX is now
VGCONF_PLATFORMS_INCLUDE_X86_LINUX, which is more verbose but also a lot
clearer.  The names of the #defines used in the C files (VGA_x86, VGO_linux,
etc) are unchanged.

cputest.c: changed to reflect the Valgrind installation's capabilities,
rather than the machine's capabilities.  In particular, if
--enable-only32bit is used on a 64-bit machine, then this program will claim
to only support 32-bits.  Also use the VGA/VGO/VGP macros which are clearer
than the __i386__ ones.  (This is partially merged from the DARWIN branch.)

configure.in: clean up the comments, distinguish different sections more
clearly, and generally make it more readable.

valgrind.pc.in: try to make this more accurate.  I doubt anyone's using it.
It doesn't appear to be set up to handle dual-architecture builds.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9031
2009-01-22 21:56:32 +00:00
Bart Van Assche
8cf513b069 Pass the flag -Wno-format-zero-length to gcc (if supported by gcc) while compiling tools. This flag only affects those tools for which -Wformat is enabled (at this time only exp-drd).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8270
2008-06-23 12:11:49 +00:00
Bart Van Assche
76f817a0c5 Replaced -nostdlib by -nodefaultlibs such that constructors are executed at shared library load time. Replaced _init() function in drd_pthread_intercepts.c by a function with a constructor attribute in order to increase portability.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7883
2008-04-16 18:19:45 +00:00
Julian Seward
9bf9f81786 Avoid hundreds of warnings from -Winline on gcc-4.3:
In dump.c, gcc complains that 'param max-stack-frame-growth' would be
exceeded, so remove 'inline' spec.

All other warnings are of the form 'call is unlikely and code size
would grow'.  These aren't interesting.  Remove -Winline.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7164
2007-11-16 12:31:27 +00:00
Julian Seward
9fd225ac18 Back out bogus strict-aliasing hacks and use -fno-strict-aliasing by
default.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7163
2007-11-16 12:02:43 +00:00
Julian Seward
40eb3fba0f Change the baseline optimisation level from -O to -O2.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7162
2007-11-16 10:05:47 +00:00
Julian Seward
713b2d46c0 Merge r6086:
Makefile.am changes for AIX5.  Almost all boilerplate stuff fitting in
with the existing factorisation scheme.  The only change of interest
is that configure.in now generates automake symbols of name
VGP_platform and VGO_os, whereas previously it just made VG_platform
which was a bit inconsistent with the VGP/VGO/VGA scheme used in C
code.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6242
2006-10-17 00:56:43 +00:00
Julian Seward
32f134b8c1 Somewhat rehash the biarch-build machinery so as to (1) formalise the
distinction between primary and secondary build targets, and (2) make
it independent of the default behaviour of gcc (iow, what gcc does
when you specify neither -m32 nor -m64).

As a result, an out-of-the-box build on ppc64-linux now builds a
system which is basically for 64-bit PowerPC, but also has the ability
to run 32-bit ppc-linux binaries (exactly the same arrangement as you
get when building on amd64-linux).

There are various twists and turns.  multiple-architectures.txt is
updated all the gory details.

This will break amd64 builds until such time as
<tool>/tests/{amd64,x86}/Makefile.am are fixed up (shortly).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5493
2006-01-04 01:20:28 +00:00
Julian Seward
8ba9a34088 Add framework for ppc64 support. Apologies in advance for the
inevitable breakage to other platforms.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5250
2005-11-29 13:05:56 +00:00
Tom Hughes
cb0456aa31 Turn on some extra warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5082
2005-11-11 12:30:12 +00:00
Tom Hughes
aa4a74f1a4 Reworked to avoid depending on $(eval) in the make files as only fairly
new GNU make versions seem to have it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5037
2005-11-08 12:28:35 +00:00
Julian Seward
8667e07a43 ppc32 build fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5031
2005-11-07 16:56:27 +00:00
Tom Hughes
b5c033e906 Dual architecture support - this commit is a major rework of the build
system that allows multiple copies of valgrind to be built so that we
can build both x86 and amd64 versions of the tools on amd64 machines.

The launcher is then modified to look at the program being run and
decide which tool to use to run it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5027
2005-11-07 15:24:38 +00:00