- 12 Nov, 2007 3 commits
-
-
gcc/cp PR c++/17577: * lex.c (handle_pragma_implementation): Use cpp_included_before. gcc/testsuite PR c++/17577: * g++.dg/ext/pr17577.h: New file. * g++.dg/ext/pr17577.C: New file. libcpp PR c++/17557: * include/cpplib.h (cpp_included_before): Declare. * files.c (struct file_hash_entry) <location>: New field. (_cpp_find_file): Initialize new field. (make_cpp_dir): Likewise. (cpp_included_before): New function. From-SVN: r130093
Tom Tromey committed -
re PR c++/8570 (line number in error message is badly placed with illegal template friend declaration) 2007-11-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR c++/8570 cp/ * pt.c (redeclare_class_template): Update error message. Use a note to show the previous declaration. (tsubst_friend_class): Use the location of the friend template as the input location before calling redeclare_class_template. testsuite/ * g++.old-deja/g++.ns/template13.C: Update expected output. * g++.old-deja/g++.pt/friend23.C: Likewise. * g++.dg/warn/pr8570.C: New. From-SVN: r130092
Manuel López-Ibáñez committed -
From-SVN: r130090
GCC Administrator committed
-
- 11 Nov, 2007 6 commits
-
-
PR c++/34068 * semantics.c (finish_pseudo_destructor_expr): Handle object == error_mark_node. * g++.dg/template/pseudodtor4.C: New test. From-SVN: r130087
Jakub Jelinek committed -
2007-11-11 Howard Hinnant <hhinnant@apple.com> * include/bits/stl_pair.h (pair<>::pair<>(_U1&&, _Arg0&&, _Args&&...)): Add. From-SVN: r130085
Howard Hinnant committed -
From-SVN: r130084
Joseph Myers committed -
2007-11-08 Paolo Carlini <pcarlini@suse.de> * docs/html/ext/lwg-active.html: Update to Revision R52. * docs/html/ext/lwg-closed.html: Likewise. * docs/html/ext/lwg-defects.html: Likewise. * docs/html/ext/howto.html: Adjust. From-SVN: r130083
Paolo Carlini committed -
2007-11-11 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_list.h (list<>::_M_create_node<>(_Args&&...), _M_insert<>(iterator, _Args&&...), push_front<>(_Args&&...), push_back<>(_Args&&...)): Add. (list<>::emplace<>(iterator, _Args&&...), insert(iterator, value_type&&)): Declare. (splice(iterator, list&&), splice(iterator, list&&, iterator), splice(iterator, list&&, iterator, iterator), merge(list&&), merge(list&&, _StrictWeakOrdering)): Add C++0x signatures. * include/bits/list.tcc (list<>::emplace<>(iterator, _Args&&...), insert(iterator, value_type&&)): Define. * include/debug/list (list<>::emplace<>(iterator, _Args&&...), insert(iterator, value_type&&)): Add. (splice(iterator, list&&), splice(iterator, list&&, iterator), splice(iterator, list&&, iterator, iterator), merge(list&&), merge(list&&, _StrictWeakOrdering)): Add C++0x signatures, use _GLIBCXX_MOVE. From-SVN: r130082
Paolo Carlini committed -
From-SVN: r130080
GCC Administrator committed
-
- 10 Nov, 2007 12 commits
-
-
gcc/ada/ * a-tasatt.adb: Revert previous change for this file as it will generate an error when this package is instantiated from a local context. From-SVN: r130076
Samuel Tardieu committed -
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po, sv.po, tr.po, uk,po, vi.po, zh_CN.po, zh_TW.po: Update. From-SVN: r130075
Joseph Myers committed -
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po, ru.po, sr.po, sv.po, tr.po, zh_CN.po, zh_TW.po: Update. From-SVN: r130074
Joseph Myers committed -
From-SVN: r130073
Francois-Xavier Coudert committed -
PR fortran/33592 * trans.c (gfc_call_realloc): Fix the logic and rename variables. From-SVN: r130072
Francois-Xavier Coudert committed -
2007-11-10 Steven Bosscher <stevenb.gcc@gmail.com> * gcse.c (CUID_INSN): Remove. (cuid_insn): Ditto. (alloc_gcse_mem): Don't allocate cuid_insn. (free_gcse_mem): Don't free cuid_insn. From-SVN: r130071
Steven Bosscher committed -
PR fortran/34020 * gimplify.c (goa_lhs_expr_p): Inside INDIRECT_REF handle unshared nops. * testsuite/libgomp.fortran/pr34020.f90: New test. From-SVN: r130069
Jakub Jelinek committed -
PR middle-end/34018 * tree-inline.h (copy_body_data): Add regimplify field. * tree-inline.c (copy_body_r): Set id->regimplify to true if an TREE_INVARIANT ADDR_EXPR is no longer invariant after substitutions. (copy_bb): Clear id->regimplify before walk_tree, if it is set afterwards, regimplify the whole statement. * g++.dg/opt/inline14.C: New test. From-SVN: r130068
Jakub Jelinek committed -
PR tree-optimization/33680 * tree-data-ref.c (split_constant_offset) <case ADDR_EXPR>: Punt if the added cast involves variable length types. * gcc.c-torture/compile/20071108-1.c: New test. From-SVN: r130067
Jakub Jelinek committed -
PR c++/32241 * pt.c (tsubst_copy_and_build) <case COMPONENT_REF>: If object_type is not scalar type, let finish_class_member_access_expr handle diagnostics. Pass BIT_NOT_EXPR argument to finish_pseudo_destructor_expr. Handle SCOPE_REF properly. * g++.dg/template/pseudodtor3.C: New test. From-SVN: r130066
Jakub Jelinek committed -
2007-11-09 Douglas Gregor <doug.gregor@gmail.com> PR c++/33510 * decl.c (cp_complete_array_type): If any of the initializer elements are pack expansions, don't compute the array size yet. 2007-11-09 Douglas Gregor <doug.gregor@gmail.com> PR c++/33510 * g++.dg/cpp0x/variadic-init.C: New. From-SVN: r130065
Douglas Gregor committed -
From-SVN: r130063
GCC Administrator committed
-
- 09 Nov, 2007 11 commits
-
-
* gcc/sched-deps.c (sched_analyze_insn): Use MOVE_BARRIER instead of TRUE_BARRIER for jumps. Add register dependencies even when reg_pending_barrier is set. Co-Authored-By: Maxim Kuvyrkov <maxim@codesourcery.com> From-SVN: r130052
Alexander Monakov committed -
2007-11-09 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_deque.h (deque<>::operator=(deque&&)): Implement resolution of DR 675, call clear first. * include/bits/stl_list.h (list<>::operator=(list&&)): Likewise. * include/bits/stl_bvector.h (vector<bool>::operator=(vector&&)): Likewise. * include/bits/stl_vector.h (vector<>::operator=(vector&&)): Likewise. * include/bits/stl_map.h (map<>::operator=(map&&)): Likewise. * include/bits/stl_multimap.h (multimap<>::operator=(multimap&&)): Likewise. * include/bits/stl_multiset.h (multiset<>::operator=(multiset&&)): Likewise. * include/bits/stl_set.h (set<>::operator=(set&&)): Likewise. * include/debug/map.h (map<>::operator=(map&&)): Likewise. * include/debug/set.h (set<>::operator=(set&&)): Likewise. * include/debug/multimap.h (multimap<>::operator=(multimap&&)): Likewise. * include/debug/multiset.h (multiset<>::operator=(multiset&&)): Likewise. * include/debug/deque (deque<>::operator=(deque&&)): Likewise. * include/debug/list (list<>::operator=(list&&)): Likewise. * include/debug/vector (vector<>::operator=(vector&&)): Likewise. * testsuite/23_containers/multimap/moveable.cc: Adjust. * testsuite/23_containers/multiset/moveable.cc: Likewise. * testsuite/23_containers/set/moveable.cc: Likewise. * testsuite/23_containers/map/moveable.cc: Likewise. * testsuite/20_util/pair/moveable.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. From-SVN: r130051
Paolo Carlini committed -
* gcc/haifa-sched.c (haifa_classify_insn): Rename to ... (haifa_classify_rtx): ... this. Improve handling of COND_EXECs, handle PARALLELs by recursing. Use it ... (haifa_classify_insn): ... here. Reimplement. From-SVN: r130050
Alexander Monakov committed -
2007-11-09 Paolo Carlini <pcarlini@suse.de> PR libstdc++/34032 * acinclude.m4 ([GLIBCXX_ENABLE_C99], [GLIBCXX_CHECK_C99_TR1]): Use -std=c++98 instead of the default -std=gnu++98. * configure: Regenerate. From-SVN: r130047
Paolo Carlini committed -
2007-11-09 Richard Guenther <rguenther@suse.de> * bitmap.h (bitmap_single_bit_set_p): Declare. * bitmap.c (bitmap_single_bit_set_p): New function. * tree-ssa-alias.c (add_may_alias_for_new_tag): Use it. (maybe_create_global_var): Use bitmap_empty_p. From-SVN: r130045
Richard Guenther committed -
PR rtl-optimization/34012 * fwprop.c (try_fwprop_subst): Do not replace if the new SET_SRC has a higher cost than the old one. * gcc.target/i386/pr34012.c: New test. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r130043
Paolo Bonzini committed -
PR rtl-optimization/33732 * reload.c (push_reload): Check that the REG_DEAD note was referring to a hardreg or to a pseudo that has been assigned exactly one hardreg before considering it in order to select the reload register. (combine_reloads): Likewise. (find_dummy_reload): Likewise. From-SVN: r130042
Eric Botcazou committed -
2007-11-09 Richard Guenther <rguenther@suse.de> * tree-flow.h (struct ptr_info_def): Make escape_mask a ENUM_BITFIELD. (struct ptr_info_def): Likewise. (enum escape_type): Also use bit zero. From-SVN: r130041
Richard Guenther committed -
re PR target/33604 (Revision 119502 causes significantly slower results with 4.3/4.4 compared to 4.2) 2007-11-09 Richard Guenther <rguenther@suse.de> PR tree-optimization/33604 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars): Disregard changes in CV qualifiers of pointed to types for forward propagating ADDR_EXPRs. * tree-ssa-ccp.c (fold_stmt_r): Preserve volatileness of the original expression. * g++.dg/tree-ssa/pr33604.C: New testcase. * gcc.dg/pr32721.c: Adjust pattern. From-SVN: r130040
Richard Guenther committed -
gcc/ * dse.c (find_shift_sequence): Always choose an integer mode for new_mode. (replace_read): Require both the read and store mode to be integer ones. Remove a then-redundant FLOAT_P check. gcc/testsuite/ * gcc.target/mips/dse-1.c: Disable. From-SVN: r130039
Richard Sandiford committed -
From-SVN: r130033
GCC Administrator committed
-
- 08 Nov, 2007 8 commits
-
-
2007-11-08 Richard Guenther <rguenther@suse.de> * tree-dfa.c (remove_referenced_var): If removing a variable which has subvars, also remove those from the referenced vars. Do not create a variable annotation. From-SVN: r130030
Richard Guenther committed -
* config/xtensa/xtensa.c (xtensa_expand_prologue): Remove first argument for gen_entry calls. * config/xtensa/xtensa.md: Add new "entry" value to "type" attribute. (entry): Use the new attribute value. Remove unused first operand. From-SVN: r130029
Bob Wilson committed -
From-SVN: r130027
Joseph Myers committed -
From-SVN: r130026
Joseph Myers committed -
gcc * c-parser.c (c_parser_translation_unit): Use location in error. (c_parser_external_declaration): Likewise. (c_parser_declaration_or_fndef): Likewise. (c_parser_enum_specifier): Likewise. (c_parser_struct_or_union_specifier): Likewise. (c_parser_struct_declaration): Likewise. (c_parser_typeof_specifier): Likewise. (c_parser_parms_list_declarator): Likewise. (c_parser_asm_string_literal): Likewise. (c_parser_braced_init): Likewise. (c_parser_initelt): Likewise. (c_parser_compound_statement_nostart): Likewise. (c_parser_statement_after_labels): Likewise. (c_parser_do_statement): Likewise. (c_parser_asm_statement): Likewise. (c_parser_conditional_expression): Likewise. (c_parser_unary_expression): Likewise. (c_parser_sizeof_expression): Likewise. (c_parser_postfix_expression): Likewise. (c_parser_postfix_expression_after_paren_type): Likewise. (c_parser_objc_class_instance_variables): Likewise. (c_parser_objc_method_definition): Likewise. (c_parser_objc_methodprotolist): Likewise. (c_parser_pragma): Likewise. (c_parser_omp_clause_num_threads): Likewise. (c_parser_omp_clause_schedule): Likewise. (c_parser_omp_all_clauses): Likewise. (c_parser_omp_sections_scope): Likewise. (c_parser_label): Use location of label, not colon. gcc/testsuite * gcc.dg/empty-source-3.c: Update warning location. * gcc.dg/gomp/barrier-2.c: Likewise. * gcc.dg/label-decl-3.c: Likewise. * gcc.dg/label-decl-2.c: Likewise. * gcc.dg/empty-source-2.c: Likewise. From-SVN: r130025
Tom Tromey committed -
PR target/33774 * config/i386/cygming.h (BIGGEST_FIELD_ALIGNMENT): Define only if IN_TARGET_LIBS. From-SVN: r130024
Danny Smith committed -
gcc/cp 2007-11-08 Andrew Pinski <pinskia@gmail.com> PR c++/30297: * tree.c (decl_linkage): Fields have no linkage. gcc/testsuite PR c++/30297: * g++.dg/inherit/pr30297.C: New file. From-SVN: r130018
Tom Tromey committed -
-fno-common for cygwin and mingw32. From-SVN: r130017
Danny Smith committed
-