aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/tree.c
AgeCommit message (Collapse)AuthorFilesLines
2022-10-11sim: Remove self-assignmentsTsukasa OI1-2/+0
Clang generates a warning if there is a redundant self-assignment ("-Wself-assign"). On the default configuration, it causes a build failure (unless "--disable-werror" is specified). This commit removes redundant self-assignments from two files.
2022-01-06sim: ppc: migrate to standard uintXX_t typesMike Frysinger1-2/+2
Drop the sim-specific unsignedXX types and move to the standard uintXX_t types that C11 provides.
2021-10-31sim: ppc: clean up printf format handlingMike Frysinger1-3/+3
Don't blindly cast every possible type to (long). Change to the right printf format specifier whether it be a 64-bit type or a pointer.
2021-05-15sim: ppc: clean up various warningsMike Frysinger1-1/+1
A random grab bag of minor fixes to enable -Werror for this port. Cast address vars to long when the format was using %l. Use %zu with sizeof operations. Add const to a bunch of strings. Trim unused variables. Fix sizeof call to calculate target storage and not the pointer itself.
2021-01-11sim: clean up C11 header includesMike Frysinger1-11/+0
Since we require C11 now, we can assume many headers exist, and clean up all of the conditional includes. It's not like any of this code actually accounted for the headers not existing, just whether we could include them. The strings.h cleanup is a little nuanced: it isn't in C11, but every use of it in the codebase will include strings.h only if string.h doesn't exist. Since we now assume the C11 string.h exists, we'll never include strings.h, so we can delete it.
2012-12-19[sim] Update old contact info in GPL license noticesJoel Brobecker1-2/+1
sim/ChangeLog: Update old contact info in GPL license notices.
2012-12-19Update sim copyright headers from GPLv2-or-later to GPLv3-or-later.Joel Brobecker1-1/+1
gdb/sim/ChangeLog: Update the non-FSF-copyrighted files in sim to GPLv3 or later.
2011-02-14sim: punt zfree()Mike Frysinger1-4/+4
The sim keeps track of which allocations are zero-ed internally (via zalloc) and then calls a helper "zfree" function rather than "free". But this "zfree" function simply calls "free" itself. Since I can see no point in this and it is simply useless overhead, punt it. The only real change is in hw-alloc.c where we remove the zalloc_p tracking, and sim-utils.c where zfree is delete. The rest of the changes are a simple `sed` from "zfree" to "free". Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2006-02-02 * emul_netbsd.c (emul_netbsd_create): Quote file-name property.Mark Mitchell1-0/+45
* emul_unix.c (emul_unix_create): Likewise. * tree.c (libiberty.h): Include it. (tree_quote_property): New function. * tree.h (tree_quote_property): Declare.
2005-03-25Fix memset thinkos.Anthony Green1-1/+1
2004-07-11 * tree.c (parse_integer_property): Comment typo fix.Ben Elliston1-1/+1
2001-11-14when #size-cells is zero, don't expect a size.Andrew Cagney1-5/+10
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1256
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1273/+0
1997-01-27January 23rd mergeMichael Meissner1-0/+1273