aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-03-09re PR c++/14409 (Accepts invalid function signature for explicit instantiation)Giovanni Bajo6-9/+84
PR c++/14409 * pt.c (determine_specialization): For member templates, match also constness. PR c++/14448 * parser.c (cp_parser_initializer_clause): Fold initializer if it is non-dependent. * pt.c (tsubst_copy_and_build): Handle NOP_EXPRs. PR c++/14409 * g++.dg/template/spec12.C: New test. PR c++/14448 * g++.dg/parse/crash14.C: New test. From-SVN: r79172
2004-03-09* config/m32r/m32r.md: Remove all define_peephole's.Kazu Hirata2-58/+4
From-SVN: r79170
2004-03-09* config/rs6000/rs6000.md: Remove trailing whitespace.Alan Modra2-52/+56
From-SVN: r79166
2004-03-09re PR c++/14230 (ICE in cp_expr_size)Mark Mitchell4-0/+34
PR c++/14230 * call.c (initialize_reference): Handle initializers that are class-member access expressions applies to rvalues. PR c++/14230 * g++.dg/init/ref11.C: New test. From-SVN: r79165
2004-03-09rewrap commentJason Merrill1-2/+2
From-SVN: r79163
2004-03-09Fix typoMark Mitchell1-1/+1
From-SVN: r79161
2004-03-09re PR c++/14432 (Built-ins lead to conflict even if no header file included)Mark Mitchell4-7/+30
PR c++/14432 * name-lookup.c (supplement_binding): Ignore functions that are marked DECL_ANTICIPATED. PR c++/14432 * g++.dg/parse/builtin2.C: New test. From-SVN: r79160
2004-03-09re PR c++/14401 (Uninitialized reference error not reported.)Mark Mitchell21-162/+146
PR c++/14401 * class.c (check_field_decls): Complain about non-static data members of reference type in unions. Propagate CLASSTYPE_REF_FIELDS_NEED_INIT and CLASSTYPE_READONLY_FIELDS_NEED_INIT from the types of non-static data members. * init.c (perform_member_init): Complain about mbmers with const type that are not explicitly initialized. PR c++/14401 * g++.dg/init/ctor3.C: New test. * g++.dg/init/union1.C: New test. * g++.dg/ext/anon-struct4.C: New test. From-SVN: r79158
2004-03-09re PR c++/13658 ([testcase] namespace association vs. templates part one)Benjamin Kosnik8-0/+452
2004-03-08 Benjamin Kosnik <bkoz@redhat.com> PR c++/13658 * testsuite/23_containers/deque/modifiers/swap.cc: New. * testsuite/23_containers/list/modifiers/swap.cc: New. * testsuite/23_containers/map/modifiers/swap.cc: New. * testsuite/23_containers/multimap/modifiers/swap.cc: New. * testsuite/23_containers/multiset/modifiers/swap.cc: New. * testsuite/23_containers/set/modifiers/swap.cc: New. * testsuite/23_containers/vector/modifiers/swap.cc: New. From-SVN: r79151
2004-03-09Makefile.in (site.exp): Add libiconv variable definition.Eric Christopher4-17/+32
2004-03-08 Eric Christopher <echristo@redhat.com> * Makefile.in (site.exp): Add libiconv variable definition. 2004-03-08 Eric Christopher <echristo@redhat.com> * * lib/target-supports.exp: Enable libiconv in test compilation. Fix up error checking. From-SVN: r79148
2004-03-09* configure: Regenerate for config/accross.m4 correction.Hans-Peter Nilsson8-728/+1646
From-SVN: r79147
2004-03-09accross.m4 (AC_C_BIGENDIAN_CROSS): Compile endian probe with "-c".Hans-Peter Nilsson2-2/+7
* accross.m4 (AC_C_BIGENDIAN_CROSS): Compile endian probe with "-c". Properly quote parameter for AC_MSG_ERROR. From-SVN: r79145
2004-03-09re PR target/14480 (gcc/config/rs6000/t-rtems is missing)Joel Sherrill2-0/+91
2004-03-08 Joel Sherrill <joel@oarcorp.com> PR target/14480 * config/rs6000/t-rtems: Add missing file on branch. From-SVN: r79140
2004-03-09Daily bump.GCC Administrator2-2/+2
From-SVN: r79137
2004-03-08re PR c++/13170 (ICE in build_base_path)Jason Merrill6-33/+42
PR c++/13170 * decl.c (xref_tag): Remove attribute handling. * cp-tree.h: Adjust prototype. * decl.c, parser.c, rtti.c: Adjust callers. * parser.c (cp_parser_class_head): Pass back attributes in the class head. (cp_parser_class_specifier): Adjust. From-SVN: r79129
2004-03-08re PR libstdc++/12658 (Thread safety problems in locale::global() and ↵Petur Runolfsson2-0/+69
locale::locale()) 2004-03-08 Petur Runolfsson <peturr02@ru.is> PR libstdc++/12658 * testsuite/22_locale/locale/cons/12658_thread.cc: New. From-SVN: r79128
2004-03-08re PR middle-end/14289 (ICE in a register array)Roger Sayle7-5/+62
PR middle-end/14289 * c-typeck.c (c_mark_addressable): A register variable should be considered global if its not automatic, i.e. TREE_PUBLIC, TREE_STATIC or DECL_EXTERNAL. * function.c (put_var_into_stack): Call abort when placing a hard register into the stack, if x_parm_reg_stack_loc is NULL. * gcc.dg/pr14289-1.c: New test case. * gcc.dg/pr14289-2.c: Likewise. * gcc.dg/pr14289-3.c: Likewise. From-SVN: r79127
2004-03-08s390.md ("*extendqidi2_short_displ"): Add CC clobber.Ulrich Weigand2-2/+9
* config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber. ("*extendqisi2_short_displ"): Likewise. From-SVN: r79124
2004-03-08re PR debug/14079 (wrong debug info for extern boolean variable in debug mode)Matt Austern2-2/+12
PR debug/14079 * name-lookup.c (add_decl_to_level): Add extern variables, as well as static, to static_decls array. From-SVN: r79122
2004-03-08pdp11.c (comparison_operator_index): Remove.Kazu Hirata3-51/+7
* config/pdp11/pdp11.c (comparison_operator_index): Remove. (comp_operator): Likewise. * config/pdp11/pdp11-protos.h: Remove corresponding prototypes. From-SVN: r79116
2004-03-08howto.html: Add entry for DR 103 [WP].Paolo Carlini4-0/+21
2004-03-08 Paolo Carlini <pcarlini@suse.de> * docs/html/ext/howto.html: Add entry for DR 103 [WP]. * include/bits/stl_multiset.h: Add comment about DR 103. * include/bits/stl_set.h: Likewise. From-SVN: r79114
2004-03-08locale_facets.tcc (money_get<>::_M_extract): The value _space_ indicates ↵Paolo Carlini6-14/+178
that at least one space is required at that position. 2004-03-08 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.tcc (money_get<>::_M_extract): The value _space_ indicates that at least one space is required at that position. * testsuite/22_locale/money_get/get/char/17.cc: New. * testsuite/22_locale/money_get/get/wchar_t/17.cc: New. * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks. * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise. * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)): Remove redundant conditional on __str.size(). From-SVN: r79111
2004-03-08expr.c (highest_pow2_factor_for_type): Rename into ↵Eric Botcazou4-9/+46
highest_pow2_factor_for_target. * expr.c (highest_pow2_factor_for_type): Rename into highest_pow2_factor_for_target. Use DECL_ALIGN instead of TYPE_ALIGN when the target is a COMPONENT_REF. (expand_assignment): Ajust call to highest_pow2_factor_for_type. From-SVN: r79101
2004-03-08rs6000.c: Formatting fix.Alan Modra2-2/+6
* config/rs6000/rs6000.c: Formatting fix. (legitimate_offset_address_p): Correct offset range check. From-SVN: r79098
2004-03-08rs6000.c (rs6000_override_options): Don't override -msoft-float by -mcpu.Alan Modra2-16/+11
* config/rs6000/rs6000.c (rs6000_override_options): Don't override -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE and MASK_STRING. From-SVN: r79094
2004-03-08rs6000.md (ashrdi3): Do not call ashrdi3_no_power for little endian.Aldy Hernandez2-3/+11
* config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power for little endian. ("ashrdi3_no_power"): Disable for little endian. (ashrdi3): Same. From-SVN: r79092
2004-03-08fold-const.c (tree_expr_nonnegative_p): Reformat checks for builtins.Kaveh R. Ghazi2-53/+29
* fold-const.c (tree_expr_nonnegative_p): Reformat checks for builtins. From-SVN: r79088
2004-03-08re PR target/14471 (Workaround for errata regarding multiplication bug)Hans-Peter Nilsson1-0/+8
PR target/14471 * configure.ac (Target-specific assembler checks) <cris-*-*>: New case, checking for -no-mul-bug-abort option. * configure, config.in: Regenerate. * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround and -mno-mul-bug-workaround. * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart") ("mulsidi3", "umulsidi3"): Prefix output template with "%!". ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"): Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG. * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make sure mulu.d is not last on cache-line. * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION. (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros. (TARGET_SWITCHES): New options -mmul-bug-workaround and -mno-mul-bug-workaround. (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG. (PRINT_OPERAND_PUNCT_VALID_P): Include '!'. * config/cris/cris.c (cris_operand_extend_operator): Clarify relation to MULT in head comment. (cris_op_str): Abort for MULT. (cris_print_operand) <case '!'>: New case. From-SVN: r79086
2004-03-08re PR target/14471 (Workaround for errata regarding multiplication bug)Hans-Peter Nilsson8-498/+1318
PR target/14471 * configure.ac (Target-specific assembler checks) <cris-*-*>: New case, checking for -no-mul-bug-abort option. * configure, config.in: Regenerate. * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround and -mno-mul-bug-workaround. * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart") ("mulsidi3", "umulsidi3"): Prefix output template with "%!". ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"): Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG. * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make sure mulu.d is not last on cache-line. * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION. (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros. (TARGET_SWITCHES): New options -mmul-bug-workaround and -mno-mul-bug-workaround. (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG. (PRINT_OPERAND_PUNCT_VALID_P): Include '!'. * config/cris/cris.c (cris_operand_extend_operator): Clarify relation to MULT in head comment. (cris_op_str): Abort for MULT. (cris_print_operand) <case '!'>: New case. From-SVN: r79085
2004-03-08allocator.h: Switch defaults to mt_alloc.Benjamin Kosnik2-4/+8
2004-03-08 Benjamin Kosnik <bkoz@redhat.com> * include/bits/allocator.h: Switch defaults to mt_alloc. From-SVN: r79084
2004-03-08Daily bump.GCC Administrator2-2/+2
From-SVN: r79081
2004-03-08re PR debug/11983 (ICE in dwarf-2 on code using altivec)Alan Modra2-39/+181
PR debug/11983 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to dw_val_class_vec. Replace use throughout file. (dw_float_const): Delete. (dw_vec_const): New. (dw_val_struct_union): Rename val_float to val_vec. Replace use throughout file. (add_AT_vec): Rename from add_AT_float. Add elt_size param. (same_dw_val_p): Adjust vec comparison. Use memcmp. (size_of_die): Adjust dw_val_class_vec sizing. (output_die): Output dw_val_class_vec. (insert_int, extract_int, insert_float): New functions. (add_const_value_attribute): Use insert_float for CONST_DOUBLE. Handle CONST_VECTOR. (add_location_or_const_value_attribute): Handle CONST_VECTOR. From-SVN: r79077
2004-03-07rs6000.c (rs6000_parse_abi_options): SPE and AltiVec abi cannot co-exist.Aldy Hernandez3-3/+15
2004-03-07 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and AltiVec abi cannot co-exist. * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same. From-SVN: r79074
2004-03-07* except.c (emit_to_new_bb_before): Break fallthru edges.Jan Hubicka2-0/+11
From-SVN: r79071
2004-03-07m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.Stephane Carrez3-17/+55
* config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12. ("*lshrsi3"): Also accept an immediate for 68HC12. ("*ashrsi3_const"): Likewise. ("*ashrsi3"): Likewise. ("*ashlsi3_const"): Likewise. ("*ashlsi3"): Likewise. ("cmphi_1_hc12"): Compare two hard register by pushing them and comparing with a pop; don't use a split for that. ("cmphi split"): Disable compare split for 68HC12. * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate the status operands if they have side effects. From-SVN: r79068
2004-03-07defaults.h (LEGITIMIZE_ADDRESS): Provide a default definition.Kazu Hirata15-133/+18
* defaults.h (LEGITIMIZE_ADDRESS): Provide a default definition. * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h, config/ia64/ia64.h, config/mcore/mcore.h, config/mmix/mmix.h, config/ns32k/ns32k.h, config/pdp11/pdp11.h, config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove. * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default definition. From-SVN: r79066
2004-03-07fold-const.c (fold): Fold x | x as x.Roger Sayle2-0/+12
* fold-const.c (fold) <IOR_EXPR>: Fold x | x as x. <XOR_EXPR>: Fold x ^ x as zero. <AND_EXPR>: Fold x & x as x. From-SVN: r79065
2004-03-07fold-const.c (fold): Rewrite optimization to transform "foo++ == const" into ↵Roger Sayle4-140/+106
"++foo == const+incr". * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform "foo++ == const" into "++foo == const+incr". * gcc.c-torture/execute/20040307-1.c: New test case. From-SVN: r79064
2004-03-07test-demangle.c: Include <string.h> and <stdlib.h> for prototypes.Andreas Jaeger2-1/+13
* testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for prototypes. (main): Initialize style. From-SVN: r79062
2004-03-07mips.c (mips_in_small_data_p): Return false if TARGET_ABICALLS.Richard Sandiford4-1/+15
* config/mips/mips.c (mips_in_small_data_p): Return false if TARGET_ABICALLS. testsuite/ * gcc.dg/torture/mips-sdata-1.c: Restrict to mips*-*-elf*. From-SVN: r79060
2004-03-07m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push the stack register.Stephane Carrez2-4/+18
* config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push the stack register. (expand_prologue): Don't make an interrupt or a trap handler a far symbol. (m68hc11_initial_elimination_offset): Likewise. From-SVN: r79058
2004-03-06* config/alpha/alpha.c (alpha_in_small_data_p): False for functions.Richard Henderson2-0/+8
From-SVN: r79054
2004-03-07ns32k-protos.h: Add a prototype for ns32k_notice_update_cc.Kazu Hirata4-45/+81
* config/ns32k/ns32k-protos.h: Add a prototype for ns32k_notice_update_cc. * config/ns32k/ns32k.c (ns32k_notice_update_cc): New. * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call ns32k_notice_update_cc. From-SVN: r79053
2004-03-07s390.md ("load_multiple", [...]): Allow only if reload_completed.Ulrich Weigand4-6/+42
ChangeLog: * config/s390/s390.md ("load_multiple", "*load_multiple_di", "*load_multiple_si"): Allow only if reload_completed. ("store_multiple", "*store_multiple_di", "*store_multiple_si"): Likewise. testsuite/ChangeLog: * gcc.dg/20040306-1.c: New test. From-SVN: r79045
2004-03-07mt_allocator.h (_S_initialize): If !__GTHREAD_MUTEX_INIT, then initialize ↵Benjamin Kosnik2-2/+11
_S_thread_freelist_mutex. 2004-03-06 Benjamin Kosnik <bkoz@redhat.com> * include/ext/mt_allocator.h (_S_initialize): If !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex. From-SVN: r79044
2004-03-07re PR libstdc++/12658 (Thread safety problems in locale::global() and ↵Benjamin Kosnik9-64/+67
locale::locale()) 2004-03-06 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/12658 * src/locale_init.cc (locale::locale): Lock critical regions with external mutexes. (locale::global): Same. * include/bits/concurrence.h (__glibcxx_mutex_define_initialized): Add in once bits for cases without __GTHREAD_MUTEX_INIT. (__glibcxx_mutex_lock): Same. * config/cpu/generic/atomicity.h: Remove _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h. * src/misc-inst.cc: Move all locking bits out of this file. * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK. * src/misc-inst.cc: Same. * config/cpu/hppa/atomicity.h: Same. * config/linker-map.gnu: Remove types in the signature of atomic exports, as they may vary. From-SVN: r79043
2004-03-07sibcall-3.c (recurser_void1, [...]): Make them static.Kazu Hirata3-8/+14
* gcc.dg/sibcall-3.c (recurser_void1, recurser_void2): Make them static. * gcc.dg/sibcall-4.c (recurser_void1, recurser_void2): Likewise. From-SVN: r79042
2004-03-07re PR c/14465 (insn-output.c:790: error: `asm_out_file' undeclared)Eric Botcazou2-0/+20
PR c/14465 * gcc.dg/decl-6.c: New test. From-SVN: r79038
2004-03-07Daily bump.GCC Administrator2-2/+2
From-SVN: r79035
2004-03-06vax-protos.h: Add a prototype for vax_notice_update_cc.Kazu Hirata4-55/+79
* config/vax/vax-protos.h: Add a prototype for vax_notice_update_cc. * config/vax/vax.c (vax_notice_update_cc): New. * config/vax/vax.h (NOTICE_UPDATE_CC): Call vax_notice_update_cc. From-SVN: r79032