- 26 Oct, 2004 22 commits
-
-
2004-10-26 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.h (erase(size_type, size_type), erase(iterator), erase(iterator, iterator)): Call _M_mutate instead of _M_replace_safe, equivalent when the fourth argument is zero and simpler. From-SVN: r89608
Paolo Carlini committed -
* c-parse.in (datadef): Use pedwarn rather than error and warning for diagnostic in case of no declaration specifiers. testsuite: * gcc.dg/decl-nospec-1.c, gcc.dg/decl-nospec-2.c, gcc.dg/decl-nospec-3.c: New tests. From-SVN: r89605
Joseph Myers committed -
* configure.in (case ${target}): Do not build fixincludes on platforms where it is not used. * configure: Regenerated. From-SVN: r89603
Paolo Bonzini committed -
objc-act.c (finish_class): Do not synthesize bogus 'extern objc_object *_Foo;' declarations for @interface Foo. [gcc/objc/ChangeLog] 2004-10-26 Ziemowit Laski <zlaski@apple.com> * objc-act.c (finish_class): Do not synthesize bogus 'extern objc_object *_Foo;' declarations for @interface Foo. [gcc/testsuite/ChangeLog] 2004-10-26 Ziemowit Laski <zlaski@apple.com> * objc.dg/super-class-3.m: New test. From-SVN: r89601
Ziemowit Laski committed -
PR bootstrap/15747 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh can be used to work around this. From-SVN: r89599
Richard Sandiford committed -
* config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500 doubles. [[Split portion of a mixed commit.]] From-SVN: r89592.2
Aldy Hernandez committed -
From-SVN: r89591
Kazu Hirata committed -
* stmt.c (expand_case): Put an assertion that index_expr is never INTEGER_CST. Don't special case for constant index_expr. From-SVN: r89590
Kazu Hirata committed -
2004-10-26 Andrew Pinski <pinskia@physics.uc.edu> PR 18162 * c-parse.in (designator): Finish with a semi-colon. From-SVN: r89589
Andrew Pinski committed -
OKed by Alan Modra. From-SVN: r89587
Fariborz Jahanian committed -
* stmt.c (expand_case): Remove code to handle SWITCH_EXPR with a default case only. From-SVN: r89585
Kazu Hirata committed -
* config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for e500 doubles. (spe_build_register_parallel): New. (rs6000_spe_function_arg): Handle e500 doubles. (function_arg): Same. (spe_func_has_64bit_regs_p): Same. (rs6000_function_value): Same. (rs6000_libcall_value): Same. (legitimate_lo_sum_address_p): Return false for e500 doubles. * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500 doubles. (DATA_ALIGNMENT): Same. (CANNOT_CHANGE_MODE_CLASS): Same. From-SVN: r89582
Aldy Hernandez committed -
* gnu/java/net/protocol/http/Connection.java (getOutputStream): Implicitely switch to POST method. From-SVN: r89581
Michael Koch committed -
* expr.c (emit_group_load): Handle floats. (emit_group_store): Same. From-SVN: r89579
Aldy Hernandez committed -
(java::lang::Class): Correct friend class declaration. From-SVN: r89578
Kriang Lerdsuwanakij committed -
* c-lex.c (get_nonpadding_token): Remove. (c_lex_with_flags): Push timevar and eat padding here. Improve stray token diagnostic. (lex_string): Replace logic with switch statement, eat padding token here. * cp/parser.c (cp_lexer_get_preprocessor_token): Remove unneeded padding token checking. testsuite: * gcc.dg/cpp/direct2.c: Adjust expected errors, robustify parser resyncing. * gcc.dg/cpp/direct2s.c: Likewise. From-SVN: r89577
Nathan Sidwell committed -
* btest-gcc.sh (TESTLOGS): Examine regressions in libstdc++, libffi, and libjava. From-SVN: r89576
Geoffrey Keating committed -
PR 18149 * config/i386/darwin.h (ASM_SPEC): Undef it before defining. From-SVN: r89574
Geoffrey Keating committed -
array_allocator.h (array::allocate): Check for valid array object, use its size member function directly. 2004-10-26 Benjamin Kosnik <bkoz@redhat.com> * include/ext/array_allocator.h (array::allocate): Check for valid array object, use its size member function directly. * testsuite/ext/array_allocator/3.cc: New. * docs/html/20_util/allocator.html: Add docs. From-SVN: r89573
Benjamin Kosnik committed -
2004-10-25 Geoffrey Keating <geoffk@apple.com> * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches to 'non-weak'. (MAKE_DECL_ONE_ONLY): Set DECL_WEAK. (ASM_MAKE_LABEL_LINKONCE): Delete. (ASM_WEAKEN_DECL): New. (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY. (ASM_DECLARE_FUNCTION_NAME): Likewise. (TEXT_SECTION_ASM_OP): Add a tab. (DATA_SECTION_ASM_OP): Likewise. (SECTION_FUNCTION): Add a tab. Use fputs. Don't call data_section on every section change. (EXTRA_SECTIONS): Add a bunch of new extra sections. (EXTRA_SECTION_FUNCTIONS): Likewise. (USE_SELECT_SECTION_FOR_FUNCTIONS): Define. (JCR_SECTION_NAME): Define. (TARGET_SECTION_TYPE_FLAGS): Don't define. * config/darwin.c (darwin_encode_section_info): A symbol is defined in this file if it is not weak. (textcoal_section): Delete. (datacoal_section): Delete. (darwin_make_decl_one_only): Delete. (machopic_select_section): Handle functions. (darwin_asm_named_section): Add a tab. (darwin_section_type_flags): Delete. (darwin_unique_section): Delete contents. (darwin_emit_unwind_label): Add a tab. Make decls weak if DECL_WEAK is set. * config/darwin-protos.h (darwin_section_type_flags): Delete. (darwin_make_decl_one_only): Delete. (text_coal_section): New. (text_unlikely_section): New. (text_unlikely_coal_section): New. (const_coal_section): New. (data_coal_section): New. (const_data_coal_section): New. * varasm.c (function_section): Honour USE_SELECT_SECTION_FOR_FUNCTIONS. * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when TARGET_USES_WEAK_UNWIND_INFO is in effect. * dbxout.c (dbxout_source_file): Don't change sections while a function is being output. Index: gcc/testsuite/ChangeLog 2004-10-25 Geoffrey Keating <geoffk@apple.com> * objc.dg/image-info.m: Update for changes to section selection. Index: libjava/ChangeLog 2004-10-25 Geoffrey Keating <geoffk@apple.com> * Makefile.am (DARWIN_CRT_SRC): New. (libgcj_la_SOURCES): Use it. * configure.ac: Define USING_DARWIN_CRT when on Darwin. * darwin.cc: New file. * include/jvm.h (_Jv_RegisterClasses): Constify. (_Jv_RegisterClasses_Counted): New prototype. * java/lang/Class.h: Include stddef.h. (_Jv_RegisterClasses): Constify. (_Jv_RegisterClasses_Counted): New prototype. (Object): Make '_Jv_RegisterClasses_Counted' a friend. * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Constify. (_Jv_RegisterClasses_Counted): New function. * configure: Regenerate. * Makefile.in: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. Index: libstdc++-v3/ChangeLog 2004-10-25 Geoffrey Keating <geoffk@apple.com> * libsupc++/new_op.cc (new): Make weak. * libsupc++/new_opnt.cc (new): Make weak. * libsupc++/new_opv.cc (new): Make weak. * libsupc++/new_opvnt.cc (new): Make weak. * libsupc++/delete_op.cc (delete): Make weak. * libsupc++/delete_opnt.cc (delete): Make weak. * libsupc++/delete_opv.cc (delete): Make weak. * libsupc++/delete_opvnt.cc (delete): Make weak. From-SVN: r89572
Geoffrey Keating committed -
[[Split portion of a mixed commit.]] From-SVN: r89567.2
GCC Administrator committed -
[[Split portion of a mixed commit.]] From-SVN: r89566.2
GCC Administrator committed
-
- 25 Oct, 2004 18 commits
-
-
[gcc/ChangeLog] 2004-10-25 David Ayers <d.ayers@inode.at> * c-common.h: Remove RID_ID. * c-parse.in: Remove OBJECTNAME and references to RID_ID. (typespec_reserved_attr): Add rule for TYPENAME non_empty_protocolrefs. (yylexname): Remove special handling of RID_ID. [gcc/objc/ChangeLog] 2004-10-25 Ziemowit Laski <zlaski@apple.com> David Ayers <d.ayers@inode.at> * objc-act.c (objc_comptypes): Use IS_PROTOCOL_QUALIFIED_UNTYPED instead of IS_PROTOCOL_QUALIFIED_ID; add comparisons for: 'Class <Protocol> != id <Protocol>'; 'Class <Protocol> != <class> *'; 'Class <Protocol> == id' and 'Class <Protocol> == Class'. (objc_is_id): Add test for 'super'. (objc_finish_message_expr): Allow for messaging of 'Class <Proto>' receivers; if class methods are not found in protocol lists, search for instance methods therein and warn if one is found. Look in global hash tables for suitable method as a last resort when messaging 'id <Proto>', 'Class <Proto>' and invalid receiver types. (objc_add_method): Insert instance methods listed in protocols into the global class method hash table. * objc-act.h (IS_PROTOCOL_QUALIFIED_ID): Rename to IS_PROTOCOL_QUALIFIED_UNTYPED and allow for 'Class <Proto>' in addition to 'id <Proto>'. [gcc/testsuite/ChangeLog] 2004-10-25 David Ayers <d.ayers@inode.at> Ziemowit Laski <zlaski@apple.com> * objc.dg/call-super-2.m: Add messages to 'Class <Proto>'; update diagnostics when messaging 'id <Proto>'. * objc.dg/class-protocol-1.m: New test. * objc.dg/desig-init-1.m: Add message to an invalid receiver using a non-existent method signature. * objc.dg/method-5.m, objc.dg/method-6.m, objc.dg/proto-hier-1.m: Update diagnostics when messaging with non-existent method signature. * objc.dg/proto-hier-2.m: Adjust wording of diagnostic. * objc.dg/proto-lossage-1.m, objc.dg/proto-lossage-4.m: Messages to invalid receivers are now resolved as if messaging 'id'; remove extraneous diagnostics. From-SVN: r89562
Ziemowit Laski committed -
* doc/invoke.texi (-fcrossjumping): Not enabled at -O. From-SVN: r89561
James E Wilson committed -
PR c/16667 * c-parse.in (array_designator): New. (designator): Use it. (initelt): Only permit array_designator without '=', not ".foo". testsuite: * gcc.dg/init-desig-obs-1.c, gcc.dg/init-desig-obs-2.c, gcc.dg/init-desig-obs-3.c: New tests. From-SVN: r89560
Joseph Myers committed -
From-SVN: r89559
Kenneth Zadeck committed -
* cfg.c (unchecked_make_edge, redirect_edge_succ, redirect_edge_pred): Use VEC_safe_push instead of VEC_safe_insert. * cfgrtl.c (force_nonfallthru_and_redirect): Likewise. From-SVN: r89558
Kazu Hirata committed -
* cfgloopmanip.c (loopify): Take two more arguments true_edge and false_edge. * cfgloop.h: Adjust the corresponding prototype. * loop-unswitch.c (unswitch_loop): Adjust a call to loopify. * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise. From-SVN: r89555
Kazu Hirata committed -
* dwarf2out.c (rtl_for_decl_location): Avoid segfault if DECL_INCOMING_RTL is NULL. * gcc.dg/debug/20041023-1.c: New test. From-SVN: r89554
Jakub Jelinek committed -
* timevar.def (TV_FIND_REFERENCED_VARS): New. * tree-dfa.c (pass_referenced_var): Use it. From-SVN: r89552
Steven Bosscher committed -
2004-10-25 Benjamin Kosnik <bkoz@redhat.com> * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add. (AUTOMAKE_OPTIONS): Add nostdinc. * testsuite/Makefile.in: Regenerate. * scripts/testsuite_flags.in (build-includes): Remove redundant search for libsupc++. * fragment.am: Clean. From-SVN: r89550
Benjamin Kosnik committed -
2004-10-25 Benjamin Kosnik <bkoz@redhat.com> * include/Makefile.am (tr1_headers): Add tuple. * include/Makefile.in: Regenerate. 2004-10-25 Chris Jefferson <chris@bubblescope.net> * include/tr1/tuple: Implementation of tuple from library TR. * testsuite/tr1/6_containers/tuple/tuple_element.cc: New. * testsuite/tr1/6_containers/tuple/tuple_size.cc: New. * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc: New. * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New. * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New. * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New. * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: New. * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New. * testsuite/tr1/6_containers/tuple/element_access/get.cc: New. From-SVN: r89548
Benjamin Kosnik committed -
* cse.c: Change encoding of quantity numbers to avoid undefined pointer arithmetic on qty_table. (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative. (get_cse_reg_info): Initialize reg_qty to a unique negative value. (new_basic_block): Assign "real" quantity numbers from zero. (delete_reg_equiv): Do nothing if quantity is invalid. Reset the REG_QTY to its unique negative value. (merge_equiv_classes): Calculate need_rehash if quantity is valid. (cse_main): Don't include max_reg when determining max_qty. (cse_basic_block): Avoid subtracting a large offset from qty_table, which causes undefined C99 behaviour. Only allocate needed memory. Co-Authored-By: John David Anglin <dave.anglin@nrc-cnrc.gc.ca> From-SVN: r89543
Roger Sayle committed -
ResourceBundle.java (tryBundle): Use Class.isAssignableFrom rather than catching ClassCastException. * java/util/ResourceBundle.java (tryBundle): Use Class.isAssignableFrom rather than catching ClassCastException. From-SVN: r89542
Tom Tromey committed -
* gnu/java/text/WordBreakIterator.java (WordBreakIterator): Don't initialize `iter'. * gnu/java/text/SentenceBreakIterator.java (SentenceBreakIterator): Don't initialize `iter'. * gnu/java/text/LineBreakIterator.java (LineBreakIterator): Don't initialize `iter'. * gnu/java/text/CharacterBreakIterator.java (CharacterBreakIterator): Don't initialize `iter'. * gnu/java/text/BaseBreakIterator.java (BaseBreakIterator): New constructor. * java/text/BreakIterator.java: Updated documentation. From-SVN: r89539
Tom Tromey committed -
From-SVN: r89537
Kazu Hirata committed -
2004-10-25 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.h (_Rep::_M_is_safe): Move to basic_string as _M_disjunct, adjust to take only __s. * include/bits/basic_string.tcc: Adjust consistently callers. From-SVN: r89534
Paolo Carlini committed -
2004-10-25 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/17407 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call layout_type as it is already done by build_array_type. * tree.c (build_array_type): Layout the type even 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu> PR c++/18121 * decl.c (grokdeclarator) <case cdk_array>: Remove the call layout_type as it is already done by create_array_type_for_decl. 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/17407 * gcc.c-torture/compile/pr17407.c: New test. PR c++/18121 * g++.dg/template/array8.C: New test. From-SVN: r89533
Andrew Pinski committed -
2004-10-25 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.tcc (assign(const _CharT*, size_type)): Adjust bit missing from the previous commit. From-SVN: r89532
Paolo Carlini committed -
gcc/testsuite: PR other/18138 * lib/g++.exp: Accept more than one multilib libgcc. * lib/gcc-dg.exp: Likewise. * lib/objc.exp: Likewise. * lib/treelang.exp: Likewise. * lib/gfortran.exp: Likewise. libffi: PR other/18138 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc. libjava: PR other/18138 * testsuite/lib/libjava.exp: Accept more than one multilib libgcc. libmudflap!: PR other/18138 * testsuite/lib/libmudflap.exp: Accept more than one multilib libgcc. libstdc++-v3: PR other/18138 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc. From-SVN: r89528
Eric Botcazou committed
-