- 02 Aug, 2004 23 commits
-
-
re PR java/16701 (Error when constant initializer depends on another constant with restricted access) 2004-08-02 Bryce McKinlay <mckinlay@redhat.com> PR java/16701 * parse.y (fold_constant_for_init): Call resolve_field_access with correct current_class context. 2004-08-02 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.compile/PR16701.java: New test. From-SVN: r85453
Bryce McKinlay committed -
* Makefile.am (hosted_source): Add libmath and testsuite. (SUBDIRS): Remove them. * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding on arm*-*-symbianelf*. * crossconfig.m4: Add arm*-*-symbianelf* support. * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it when freestanding. Do not bring names into std:: namespace with "using" when freestanding. Declare required functions and macros when freestanding. * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c when freestanding. * libsupc++/del_op.cc: Declare "free" only when freestanding. * libsupc++/eh_alloc.cc (cstring): Include it only when hosted. (malloc): Declare when freestanding. (free): Likewise. (memset): Likewise. (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise for memset. (__cxa_free_exception): Likewise for free. * libsupc++/new_op.cc: Declare "malloc" when freestanding. * libsupc++/pure.cc (writestr): Define to nothing when freestanding. * libsupc++/vterminate.cc: Do not define anything when freestanding. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * include/Makefile.in: Likewise. * libmath/Makefile.in: Likewise. * libsupc++/Makefile.in: Likewise. * po/Makefile.in: Likewise. * src/Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. From-SVN: r85452
Mark Mitchell committed -
From-SVN: r85449
Gabriel Dos Reis committed -
PR c++/16707 * name-lookup.c (validate_nonmember_using_decl): Robustify. PR c++/16707 * g++.dg/lookup/using12.C: New test. From-SVN: r85446
Mark Mitchell committed -
* g++.dg/init/null1.C: Fix PR number. * g++.dg/parse/namespace10.C: Likewise. From-SVN: r85444
Mark Mitchell committed -
* fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y" -> "X % Y" is only valid for TRUNC_MOD_EXPR. From-SVN: r85443
Roger Sayle committed -
From-SVN: r85442
Paolo Bonzini committed -
include/ * libiberty.h (XDELETE, XDELETEVEC, XRESIZEVEC): Remove any const-qualification before disposal. gcc/ * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and vec_p_reserve. * langhooks.h (lang_hooks::builtin_function): Rename parameter from "class" to "bt_class". From-SVN: r85441
Gabriel Dos Reis committed -
PR rtl-optimization/15068 * flow.c (init_propagate_block_info): Check condition is reversible. From-SVN: r85439
Paul Brook committed -
* gengtype.h (options::info): Change type to const char *. (enum gc_used_enum): Move out of struct type scope. * gengtype.c (create_option): Convert initializer for option::info to appropiate type. (adjust_field_type, walk_type, write_func_for_structure, write_root, write_roots): Remove pointless cast. From-SVN: r85436
Gabriel Dos Reis committed -
From-SVN: r85435
J"orn Rennecke committed -
* rtl.h (union rtunion_def): Have all members start with the prefix "rt_". (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL, X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE, X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP, XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members access. * gengtype.c (adjust_field_rtx_def): Likewise. * rtlanal.c (loc_mentioned_in_p): Likewise. From-SVN: r85434
Gabriel Dos Reis committed -
PR c++/16224 * name-lookup.c (decl_namespace): Remove. (current_decl_namespace): Use decl_namespace_context instead of decl_namespace. (push_decl_namespace): Likewise. (arg_assoc_class): Likewise. (arg_assoc_type): Likewise. * pt.c (check_specialization_namespace): New function. (maybe_process_partial_specialization): Use it. (register_specialization): Likewise. PR c++/16224 * g++.dg/template/spec17.C: New test. * g++.old-deja/g++.ns/template13.C: Remove XFAIL. * g++.old-deja/g++.pt/lookup10.C: Add dg-error marker. From-SVN: r85431
Mark Mitchell committed -
* config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file. Replace uses of mips/elf64.h with mips/elf.h * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION) (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP) (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS) (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP) (HANDLE_SYSV_PRAGMA): Delete. (ASM_OUTPUT_DEF): Fix formatting. * config/mips/elf64.h: Delete. From-SVN: r85430
Richard Sandiford committed -
PR fortran/16292 * gfortran.dg/g77/cabs.f: xfail on mips-sgi-irix6* From-SVN: r85429
David Billinghurst committed -
PR libstdc++/16844 * include/bits/stl_list.h (_M_create_node): Remove unused zero-argument version. * include/ext/slist (_M_create_node): Pass two arguments to allocator's construct() member function. * testsuite/23_containers/deque/explicit_instantiation.cc: New. * testsuite/23_containers/list/explicit_instantiation.cc: New. * testsuite/23_containers/vector/explicit_instantiation.cc: New. * testsuite/23_containers/map/explicit_instantiation.cc: New. * testsuite/23_containers/set/explicit_instantiation.cc: New. * testsuite/23_containers/multimap/explicit_instantiation.cc: New. * testsuite/23_containers/multiset/explicit_instantiation.cc: New. * testsuite/ext/hash_set_explicit_instantiation.cc: New. * testsuite/ext/slist_explicit_instantiation.cc: New. From-SVN: r85428
Matt Austern committed -
ia64.c (got_symbolic_operand): Do require a symbol+offset operand to have its offset be zero mod 0x3fff when... * config/ia64/ia64.c (got_symbolic_operand): Do require a symbol+offset operand to have its offset be zero mod 0x3fff when GOT entries are in use. Clarify logic in SYMBOL_REF case. Clarify comments. (ia64_expand_load_address): Split a symbol+offset load when the offset is nonzero mod 0x3fff, not 0x1fff. testsuite: * gcc.dg/ia64-got-1.c: New test case. From-SVN: r85426
Zack Weinberg committed -
From-SVN: r85425
Mark Mitchell committed -
From-SVN: r85422
Mark Mitchell committed -
PR c++/16338 * cp-tree.h (DECL_INTEGRAL_CONSTANT_VAR_P): New macro. * call.c (null_ptr_cst_p): Handle variables with constant initializers. * pt.c (convert_nontype_argument): Use DECL_INTEGRAL_CONSTANT_VAR_P. * semantics.c (finish_id_expression): Likewise. PR c++~/16489 * decl.c (duplicate_decls): Reject duplicate namespace declarations. PR c++/16810 * typeck.c (build_ptrmemfunc): Loosen assertion. PR c++/16338 * g++.dg/init/null1.C: New test. * g++.dg/tc1/dr76.C: Adjust error marker. PR c++/16489 * g++.dg/parse/namespace10.C: New test. PR c++/16810 * g++.dg/inherit/ptrmem2.C: New test. From-SVN: r85421
Mark Mitchell committed -
rs6000.c (rs6000_split_multireg_move): Just abort if trying to *store* to a non-offsettable address. * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort if trying to *store* to a non-offsettable address. * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to a nonoffsettable address. (movdi_internal32): Don't move GPRs to a nonoffsettable address. Clean up. (movti_string): Don't move GPRs to a nonoffsettable address. (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up. From-SVN: r85419
Geoffrey Keating committed -
2004-08-02 Ben Elliston <bje@au.ibm.com> PR target/16155 * config/rs6000/altivec.h: Replace typeof with __typeof__. [testsuite] 2004-08-02 Ben Elliston <bje@au.ibm.com> * gcc.dg/pr16155.c: New test. From-SVN: r85418
Ben Elliston committed -
From-SVN: r85416
GCC Administrator committed
-
- 01 Aug, 2004 12 commits
-
-
* options.c (gfc_init_options): Don't warn about the use GNU extensions by default. (gfc_post_options): Warn about GNU extensions with -pedantic. (gfc_handle_option): Don't warn about GNU extensions with -std=gnu. From-SVN: r85413
Roger Sayle committed -
* expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with variable sized types. From-SVN: r85412
Richard Henderson committed -
* call.c (z_candidate::template_decl): Rename from template. (add_template_candidate_real): Adjust member reference. (joust): Likewise. From-SVN: r85411
Gabriel Dos Reis committed -
* decl.c (update_aliases, initialize_local_variable): Replace calls to build with calls to buildN. * java-gimplify.c (java_gimplify_modify_expr): Likewise. * java-tree.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT): Likewise. * parse.h (BUILD_THROW): Likewise. * parse.y (switch_expression, synchronized_statement, catch_clause_parameter, array_creation_expression, conditional_expression, make_qualified_name, resolve_qualified_expression_name, patch_method_invocation, patch_invoke, build_method_invocation, build_new_invocation, build_assignment, patch_assignment, build_binop, patch_binop, build_string_concatenation, build_incdec, patch_unaryop, patch_cast, build_array_ref, build_newarray_node, patch_newarray, patch_return, build_if_else_statement, build_labeled_block, build_new_loop, build_loop_body, build_bc_statement, build_assertion, encapsulate_with_try_catch, build_try_statement, build_try_finally_statement, patch_synchronized_statement, emit_test_initialization): Likewise, replace build with buildN. From-SVN: r85410
Roger Sayle committed -
* io/write.c (write_float): Use the slightly more portable isnan in preference to isinf. From-SVN: r85407
Roger Sayle committed -
* doc/invoke.texi: In the MIPS options section, remove the passage saying that -mexplicit-relocs is usually disabled for -mabicalls -fno-unit-at-a-time. * config/mips/mips.c (override_options): Remove the code that enforced this rule. From-SVN: r85406
Richard Sandiford committed -
* config/mips/mips.md (cprestore): Provide two alternatives, one for an in-range offset and one for an out-of-range offset. Wrap the latter in .set macro/.set nomacro if it's inside a .set nomacro block. From-SVN: r85405
Richard Sandiford committed -
* config/mips/mips-protos.h (mips_gp_save_slot): Remove. (mips_restore_gp): Declare. * config/mips/mips.c (mips_add_offset): Add a scratch register argument. Reimplement in rtl only, reusing MIPS16 logic from mips_output_mi_thunk. (mips_legitimize_address, mips_legitimize_const_move): Adjust calls to mips_add_offset. (mips_gp_save_slot): Delete. (mips_restore_gp): New function. (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset. * config/mips/mips.md (exception_receiver): Turn into a define_insn_and_split. Use mips_restore_gp to do the split. (call_internal, call_value_internal, call_value_multiple_internal): Use mips_restore_gp to restore $gp. From-SVN: r85404
Richard Sandiford committed -
2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/Collection.java, java/util/List.java, java/util/Map.java, java/util/Set.java, java/util/SortedMap.java, java/util/SortedSet.java: Added additional exceptions to documentation. From-SVN: r85403
Andrew John Hughes committed -
* configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32. * configure. Regenerate. * include/win32.h: Explicitly include winsock2.h * win32.cc (_Jv_platform_initialize): Require version 2.2 of Winsock api. From-SVN: r85401
Danny Smith committed -
2004-07-31 Andrew Pinski <apinski@apple.com> PR other/16842 * mkheaders.in (libsubdir): s/gcc-lib/gcc/. From-SVN: r85399
Andrew Pinski committed -
From-SVN: r85397
GCC Administrator committed
-
- 31 Jul, 2004 5 commits
-
-
c-decl.c (diagnose_mismatched_decls): Give error for external redeclaration of identifier declared with no linkage... * c-decl.c (diagnose_mismatched_decls): Give error for external redeclaration of identifier declared with no linkage, not just warning with -Wtraditional. Do not check DECL_CONTEXT to give error for redeclaration with no linkage. testsuite: * gcc.dg/redecl-2.c: New test. From-SVN: r85386
Joseph Myers committed -
locale_facets.tcc (num_get<>::_M_extract_float, [...]): In the main parsing loop delay the life of __q to the actual use point. 2004-07-30 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.tcc (num_get<>::_M_extract_float, num_get<>::_M_extract_int): In the main parsing loop delay the life of __q to the actual use point. From-SVN: r85380
Paolo Carlini committed -
From-SVN: r85372
Geoffrey Keating committed -
2004-07-30 Geoffrey Keating <geoffk@apple.com> * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit non-offsettable addresses even for DImode. (rs6000_split_multireg_move): Cope with non-offsettable addresses being moved into multiple GPRs. * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default to 64. (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE. * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128. * config/rs6000/darwin-ldouble.c (isless): New macro. (inf): New macro. (nonfinite): New macro. (FPKINF): Delete. (_xlqadd): Completely rewrite. (_xlqmul): Correct overflow handling. (_xlqdiv): Correct overflow handling. * config/rs6000/darwin-ldouble-format: New file. Index: testsuite/ChangeLog 2004-07-30 Geoffrey Keating <geoffk@apple.com> * gcc.dg/darwin-longdouble.c: New file. From-SVN: r85371
Geoffrey Keating committed -
From-SVN: r85369
GCC Administrator committed
-