glisse
689a1abf0d
2013-10-29 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/58689
include/
* ansidecl.h (ATTRIBUTE_RETURNS_NONNULL): New macro.
* libiberty.h (basename, lbasename, dos_lbasename, unix_lbasename,
concat_copy): Mark with attributes nonnull(1) and returns_nonnull.
(concat, reconcat, concat_copy2, choose_temp_base, xstrerror,
xmalloc, xrealloc, xcalloc, xstrdup, xstrndup, xmemdup, pex_init):
Mark with attribute returns_nonnull.
libiberty/
* concat.c: Remove note about xmalloc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204159 138bc75d-0d04-0410-961f-82ee72b054a4
13 years ago
gerald
eec6550343
* testsuite/test-demangle.c: Include unistd.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204107 138bc75d-0d04-0410-961f-82ee72b054a4
13 years ago
gary
9548bbede5
libiberty/ 2013-10-25 Gary Benson <gbenson@redhat.com>
* cp-demangle.c (struct d_saved_scope): New structure.
(struct d_print_info): New fields saved_scopes and
num_saved_scopes.
(d_print_init): Initialize the above.
(d_print_free): New function.
(cplus_demangle_print_callback): Call the above.
(d_copy_templates): New function.
(d_print_comp): New variables saved_templates and
need_template_restore.
[DEMANGLE_COMPONENT_REFERENCE,
DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
time the component is traversed, and use the captured scope for
subsequent traversals.
* testsuite/demangle-expected: Add regression test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204068 138bc75d-0d04-0410-961f-82ee72b054a4
13 years ago
gerald
ae6da67e35
* testsuite/test-expandargv.c: Include unistd.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203993 138bc75d-0d04-0410-961f-82ee72b054a4
13 years ago
gerald
a903d6ac5a
Fix up ChangeLog entries (name, e-mail, formatting, otherwise).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203992 138bc75d-0d04-0410-961f-82ee72b054a4
13 years ago
DJ Delorie
26505cc0c4
merge from gcc
13 years ago
DJ Delorie
46dd523316
merge from gcc
13 years ago
DJ Delorie
53f94b92ee
merge from gcc
13 years ago
DJ Delorie
eabdca0f8d
merge from gcc
13 years ago
DJ Delorie
21290977cb
merge from gcc
13 years ago
DJ Delorie
632a40b341
merge from gcc
13 years ago
DJ Delorie
44b6b9d4f9
merge from gcc
13 years ago
Tristan Gingold
bc771b3b8d
2013-07-09 Tristan Gingold <gingold@adacore.com>
* makefile.vms (OBJS): Add dwarfnames.obj
13 years ago
DJ Delorie
a4818a052e
merge from gcc
13 years ago
DJ Delorie
3ecb733811
merge from gcc
13 years ago
DJ Delorie
29f045bb48
merge from gcc
14 years ago
DJ Delorie
dcd7e9d6a5
merge from gcc
14 years ago
DJ Delorie
3a4d23392f
merge from gcc
14 years ago
DJ Delorie
3afd2652d4
merge from gcc
14 years ago
DJ Delorie
eea302037a
merge from gcc
14 years ago
Eli Zaretskii
72edb7c28f
Fix compilation warning by MinGW GCC.
setenv.c [!HAVE_ENVIRON_DECL]: Avoid declaring environ if it is
a macro, as this causes compiler warnings with MinGW.
14 years ago
DJ Delorie
2fd2526edd
merge from gcc
14 years ago
DJ Delorie
a9c3ecea79
merge from gcc
14 years ago
DJ Delorie
389d9b6c50
merge from gcc
14 years ago
DJ Delorie
0f5f799a26
merge from gcc
14 years ago
Kai Tietz
fe4b0b4632
PR other/543413
* md5.c (md5_process_block): Handle case that size_t is
a wider-integer-scalar a 32-bit unsigned integer.
14 years ago
DJ Delorie
07a8e9f036
merge from gcc
14 years ago
DJ Delorie
1f3de044c6
merge from gcc
14 years ago
DJ Delorie
995b61fe5b
merge from gcc
14 years ago
H.J. Lu
b9b64803f6
Replace malloc with xmalloc
* argv.c (dupargv): Replace malloc with xmalloc. Don't check
xmalloc return.
(buildargv): Likewise. Also replace strdup with xstrdup.
(expandargv): Don't check dupargv return.
14 years ago
H.J. Lu
bf8247ff45
Replace alloca with xmalloc/free
PR binutils/14526
* argv.c (buildargv): Replace alloca with xmalloc/free.
14 years ago
Andreas Schwab
e372c21ce5
* floatformat.c (floatformat_to_double): Correctly handle numbers
between 1 and 2. Simplify handling of denormal number.
(main): Test with 1.1.
14 years ago
Mike Frysinger
902e433550
libiberty/md5: fix strict alias warnings
Current libiberty md5 code triggers these warnings with gcc-4.7.1 for me:
libiberty/md5.c: In function âmd5_finish_ctxâ:
libiberty/md5.c:117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
libiberty/md5.c:118:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
The change below fixes things for me. The optimized output (-O2) is the same
before/after my change on x86_64-linux. I imagine it'll be the same for most
targets. It seems simpler than using a union on the md5_ctx buffer since these
are the only two locations in the code where this occurs.
14 years ago
DJ Delorie
9974286ed1
merge from gcc
14 years ago
DJ Delorie
7c32896367
merge from gcc
14 years ago
Doug Evans
0429544a87
include/
* filenames.h: #include "hashtab.h".
(filename_hash, filename_eq): Declare.
libiberty/
* filename_cmp.c (filename_hash, filename_eq): New functions.
14 years ago
DJ Delorie
5afcec7379
merge from gcc
14 years ago
DJ Delorie
67bf71fede
merge from gcc
14 years ago
DJ Delorie
fa66ec5377
merge from gcc
15 years ago
DJ Delorie
b3641a6eb9
merge from gcc
15 years ago
DJ Delorie
24e829d007
merge from gcc
15 years ago
DJ Delorie
4e3aa40890
merge from gcc
15 years ago
Jakub Jelinek
1712e1d4f7
* make-relative-prefix.c (make_relative_prefix_1): Avoid warning
about using preprocessor directives inside of macro arguments.
15 years ago
DJ Delorie
d12c31dfa7
merge from gcc
15 years ago
DJ Delorie
fbfd63c0a6
merge from gcc
15 years ago
DJ Delorie
eb7b5ddb8b
merge from gcc
15 years ago
DJ Delorie
dd28faae1a
merge from gcc
15 years ago
DJ Delorie
3fee530e50
merge from gcc
15 years ago
Andreas Schwab
604fcd6577
config/:
* warnings.m4 (ACX_PROG_CC_WARNING_OPTS): Avoid leading dash in
expr call.
libdecnumber/:
* configure: Regenerate.
libiberty/:
* configure: Regenerate.
15 years ago
Andreas Schwab
a53e62cf56
Check for warning flags without no- prefix
config/:
* warnings.m4 (ACX_PROG_CC_WARNING_OPTS)
(ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Run the test without the
no- prefix.
libdecnumber/:
* configure: Regenerate.
libiberty/:
* configure: Regenerate.
15 years ago