- 24 May, 2005 17 commits
-
-
include/ 2005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net> * libiberty.h (ACONCAT): Properly cast value of alloca(). * ansidecl.h (ATTRIBUTE_UNUSED_LABEL): Don't define if __cplusplus. libiberty/ 2005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net> * configure.ac: Check declarations for calloc(), getenv(), malloc(), realloc() and sbrk(). * config.in: Regenerate. * configure: Likewise. * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC instead of xmalloc. * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc. * concat.c (liiberty_concat_ptr): Surround definition with an extern "C" block, if __cplusplus. (concat): Use XNEWVEC instead of xmalloc. (reconcat): Likewise. * cp-demangle.c (struct d_print_template): Rename member "template" to "template_decl". Adjust use throughout the file. (d_print_resize): Properly cast return value of realloc(). (cplus_demangle_print): Same for malloc(). (d_demangle): Likewise. * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter "typename" to "type_name". * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc(). (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc(). (demangle_template_value_parm): Likewise. (demangle_template): Likewise. (recursively_demangle): Likewise. (do_hpacc_template_literal): Likewise. (do_arg): Likewise. (remember_type): Likewise. (remember_Ktype): Likewise. (register_Btype): Likewise. (string_need): Use XRESIZEVEC instead of xrealloc(). * dyn-string.c (dyn_string_init): Use XNEWVEC. (dyn_string_new): Use XNEW. (dyn_string_resize): Use XRESIZEVEC. * fnmatch.c (fnmatch): Rename local variable "not" to "negate". * getopt.c (getenv): Declare only if !__cplusplus and !getenv. Otherwise include <stdlib.h>. (exchange): Cast return value of malloc(). * hashtab.c (htab_size): Define as both macro and non-inline function. (htab_elements): Likewise. * getpwd.c (getpwd): Use XNEWVEC. (htab_create_alloc_ex): Use C90 prototype-style. * lrealpath.c (lrealpath): Appropriately cast return value of malloc(). * make-relative-prefix.c (save_string): Likewise. * make-temp-file.c (try_dir): Rename from "try". Adjust use in the file. (choose_tmpdir): Use XNEWVEC. * mkstemps.c (mkstemps): Rename parameter "template" to "pattern". * pex-common.c (pex_init_common): Use XNEW. (pex_add_remove): Use XRESIZEVEC. (pex_run): Likewise. (pex_get_status_and_time): Likewise. * pex-djgpp.c (pex_djgpp_exec_child): Likewise. * pex-msdos.c (pex_init): Use XNEW. (pex_msdos_exec_child): Likewise. (pex_msdos_exec_child): Use XRESIZEVEC. * pex-unix.c (pex_wait): Use XNEW. * pex-win32.c (fix_argv): Use XNEWVEC. * pexecute.c (pwait): Likewise. * setenv.c (setenv): Properly cast return value of malloc(). * sigsetmask.c (sigsetmask): Rename local variables "old" and "new" to "old_sig" and "new_sig". * sort.c (main): Use XNEWVEC. * spaces.c (spaces): Cast return value of malloc(). * strndup.c (strndup): Likewise. * ternary.c (ternary_insert): Use XNEW. * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration with an extern "C" block if __cplusplus. * xstrdup.c (xstrdup): Cast return value of memcpy(). * xstrerror.c (strerror): Enclose declaration in an extern "C" block if __cplusplus. * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy(). From-SVN: r100115
Gabriel Dos Reis committed -
From-SVN: r100114
Peter Wainwright committed -
2005-05-24 Paolo Carlini <pcarlini@suse.de> * config/ia64/ia64intrin.h: Define nothing for C++: overloaded builtins have been ported to C++. From-SVN: r100112
Paolo Carlini committed -
2005-05-24 Benjamin Kosnik <bkoz@redhat.com> * include/bits/allocator.h: Change ___glibcxx_base_allocator to __glibcxx_base_allocator. * config/allocator/bitmap_allocator_base.h: Same. * config/allocator/malloc_allocator_base.h: Same. * config/allocator/mt_allocator_base.h: Same. * config/allocator/new_allocator_base.h: Same. * config/allocator/pool_allocator_base.h: Same. From-SVN: r100111
Benjamin Kosnik committed -
* tree-nested.c (build_addr): New "context" argument. Temporarily set current_function_decl around the call to build the ADDR_EXPR. (get_static_chain): Pass proper context to build_addr. (convert_nl_goto_reference): Likewise. (convert_tramp_reference): Likewise. (final_nesting_tree_1): Likewise. * tree-profile.c (tree_gen_interval_profiler): Likewise. (tree_gen_pow2_profiler): Likewise. (tree_gen_one_value_profiler): Likewise. * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise. * tree.h (build_addr): Update prototype. From-SVN: r100110
Jeff Law committed -
* tree-flow.h (bb_ann_d): Remove has_escape_site. * tree-ssa-alias.c (compute_points_to_addr_escape): Don't write to has_escape_site. From-SVN: r100109
Kazu Hirata committed -
* builtins.c (define_builtin): Don't call make_decl_rtl. * constants.c (build_constant_data_ref): Likewise. * class.c (build_utf8_ref): Likewise. (build_fieldref_cache_entry, build_static_field_ref): Likewise. (get_dispatch_table, layout_class_method): Likewise. (build_class_ref): Likewise. Don't set DECL_SIZE or DECL_SIZE_UNIT by hand. (make_local_function_alias): Don't SET_DECL_ASSEMBLER_NAME. (make_method_value): Use METHOD_ABSTRACT instead of DECL_RTL_SET_P to determine if we need a non-zero address. * decl.c (builtin_function): Don't call make_decl_rtl. (give_name_to_locals): Don't SET_DECL_ASSEMBLER_NAME. * expr.c (build_known_method_ref): Don't call make_decl_rtl. * resource.c (compile_resource_data): Likewise. * parse.y (resolve_field_access): Re-word comment to avoid building DECL_RTL. From-SVN: r100108
Richard Henderson committed -
* class.c (registered_class): Take it out of class_roots; turn into a vec of trees. (register_class): Make static. Don't duplicate decl node. Use VEC_safe_push. (emit_register_classes): Use VEC_iterate. Use output_constant instead of assemble_integer. Don't call mark_decl_referenced directly. * java-tree.h (register_class): Remove decl. From-SVN: r100107
Richard Henderson committed -
2005-05-24 Andrew Pinski <pinskia@physics.uc.edu> PR C++/21645 * g++.dg/init/ctor5.C: New test. 2005-05-24 Andrew Pinski <pinskia@physics.uc.edu> PR C++/21645 * optimize.c (update_cloned_parm): Copy the TYPE also from the original one. From-SVN: r100106
Andrew Pinski committed -
* Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h. * tree-cfg.c: Include tree-ssa-propagate.h. (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as needed. From-SVN: r100103
Jeff Law committed -
* gcc.dg/vect/vect-none.c: Split into vect-106.c, vect-107.c, vect-108.c, vect-109.c, vect-110.c, vect-111.c, vect-112.c, vect-113.c, vect-114.c. From-SVN: r100102
Ira Rosen committed -
2005-05-24 Jonathan Wakely <redi@gcc.gnu.org> * include/debug/string (class basic_string): Add missing default template arguments; provide typedefs for char and wchar_t. (operator[]): Allow s[s.size()] in debug mode, but not pedantic mode. 2005-05-24 Paolo Carlini <pcarlini@suse.de> Port from libstdcxx_so_7-branch: 2005-04-25 Christopher Jefferson <chris@bubblescope.net> * include/bits/stl_algo.h (count): Correct concept checks. (search_n) : Likewise. * testsuite/25_algorithms/search_n/check_type.cc: New. * testsuite/testsuite_iterators.h (random_access_iterator_wrapper::operator+): Move out of class to external function, and add symmetric version. 2005-03-14 Christopher Jefferson <chris@bubblescope.net> * testsuite/testsuite_iterators.h (WritableObject::WritableObject): Add const. 2005-02-01 Christopher Jefferson <chris@bubblescope.net> * testsuite/testsuite_iterators.h (random_access_iterator_wrapper:: operator--): Fix typo. (OutputContainer::OutputContainer): Correct zeroing array. (WritableObject::operator==): Fix typo. (WritableObject::operator=): make operator= templated to allow differing types to be assigned. (WritableObject::operator++): Fix checking if iterator is written to multiple times. (random_access_iterator_wrapper::operator+): Add const. (random_access_iterator_wrapper::operator-): Likewise. (random_access_iterator_wrapper::operator[]): Add dereference. From-SVN: r100101
Paolo Carlini committed -
not be available. From-SVN: r100097
Nick Clifton committed -
* config/m32r/m32r.c (m32r_expand_block_move): Return 0 if nothing was done. * config/m32r/m32r.md (movmemsi): If m32r_expand_block_move did nothing then FAIL. * config/m32r/m32r/m32r-protos.h (m32r_expand_block_move): Update prototype. From-SVN: r100095
Kazuhiro Inaoka committed -
From-SVN: r100093
Adam Nemet committed -
* tree-ssa-dom.c (cprop_into_stmt): Do not call recompute_tree_invariant_for_addr_expr here. (optimize_stmt): Call it here instead and do so if anything at all has changed in the statement and the RHS is an ADDR_EXPR. * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If needed, call recompute_tree_invariant_for_addr_expr. * tree-ssa-propagate.c (substitute_and_fold): Call recompute_tree_invariant_for_addr_expr as needed. * gcc.c-torture/compile/pr21638.c: New test. * gcc.c-torture/compile/20050520-1.c: New test. From-SVN: r100092
Jeff Law committed -
[[Split portion of a mixed commit.]] From-SVN: r100090.2
GCC Administrator committed
-
- 23 May, 2005 9 commits
-
-
From-SVN: r100088
Jason Merrill committed -
* docs/html/debug.html: Explain that _GLIBXX_DEBUG_PEDANTIC had to be defined for pedantic mode in 3.4 and 4.0.0. From-SVN: r100087
Jonathan Wakely committed -
2005-05-23 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/s390.c (s390_optimize_prologue): Don't replace an insn saving less registers than the replacement. From-SVN: r100081
Andreas Krebbel committed -
From-SVN: r100080
Jan Hubicka committed -
* gcc.c-torture/execute/20020720-1.x: Fix m32r target selector to be a proper triple, ie: m32r*-*-*. * g++.old-deja/g++.jason/thunk3.C: Likewise. From-SVN: r100078
Nick Clifton committed -
* config/sparc/sparc-protos.h (sparc_expand_move): New prototype. * config/sparc/sparc.c (sparc_expand_move): New function. (sparc_emit_set_const64): Rewrite assert condition on entry. (legitimate_constant_p) <CONST_VECTOR>: New case. (legitimize_pic_address): Use TARGET_ARCH64 to select the mode. * config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32, movV64, movtf): Use nonimmediate_operand for the first operand. Rewrite. Only invoke sparc_expand_move. * config/sparc/predicates.md (input_operand): Reorder tests. From-SVN: r100077
Eric Botcazou committed -
gcc/ 2005-05-23 Jan Beulich <jbeulich@novell.com> * gthr-posix.h (__gthread_recursive_mutex_init_function): Add missing return statement. From-SVN: r100075
Jan Beulich committed -
From-SVN: r100074
Roger Sayle committed -
[[Split portion of a mixed commit.]] From-SVN: r100072.2
GCC Administrator committed
-
- 22 May, 2005 7 commits
-
-
From-SVN: r100070
Francois-Xavier Coudert committed -
PR libfortran/21376 * io/write.c (output_float): Rework logic to avoid call to log10 with argument equal to zero. From-SVN: r100068
Peter Wainwright committed -
PR target/21683 * fixincl.c: Don't include <sys/wait.h> if SEPARATE_FIX_PROC. From-SVN: r100066
Danny Smith committed -
* config/sparc/sparc.c (sparc_emit_float_lib_cmp): Use emit_move_insn for moves to TFmode stack slots. From-SVN: r100058
Eric Botcazou committed -
* java/lang/mprec.c (mult, lshift, b2d, d2b): Add parenthesis to avoid warnings. From-SVN: r100057
Andreas Jaeger committed -
From-SVN: r100056
Ziemowit Laski committed -
[[Split portion of a mixed commit.]] From-SVN: r100053.2
GCC Administrator committed
-
- 21 May, 2005 6 commits
-
-
* crontab: Spread snapshot building more evenly throughout the week. From-SVN: r100051
Gerald Pfeifer committed -
2004-05-21 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/21331 PR tree-opt/21293 * gcc.c-torture/compile/pr21293.c: New test. * gcc.c-torture/execute/pr21331.c: New test. From-SVN: r100045
Andrew Pinski committed -
From-SVN: r100044
Ranjit Mathew committed -
2005-05-21 Richard Guenther <rguenth@gcc.gnu.org> * tree-stdarg.c (execute_optimize_stdarg): Handle references to va_list of the form &va[0]. From-SVN: r100043
Richard Guenther committed -
* configure.ac: Check for trunc and truncf in libm. * configure: Regenerate. * config.h.in: Likewise. * intrinsics/c99_functions.c (trunc, truncf): New functions. * c99_protos.h (trunc, truncf): Declare them. From-SVN: r100040
Eric Botcazou committed -
[[Split portion of a mixed commit.]] From-SVN: r100038.2
GCC Administrator committed
-
- 20 May, 2005 1 commit
-
-
From-SVN: r100036
Richard Henderson committed
-