Roger Sayle
97471d8f5f
convert.c (convert_to_integer): Avoid recursive call to convert_to_integer by building the NOP_EXPR directly.
...
* convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
call to convert_to_integer by building the NOP_EXPR directly.
From-SVN: r100184
2005-05-26 04:38:51 +00:00
Mike Stump
883ae7b040
Minor reformatting twaeks.
...
From-SVN: r100183
2005-05-26 02:27:50 +00:00
Ziemowit Laski
25f0f66eb9
basic.mm: New.
...
* obj-c++.dg/basic.mm: New.
Co-Authored-By: Mike Stump <mrs@apple.com>
From-SVN: r100182
2005-05-26 02:00:19 +00:00
Ziemowit Laski
7cb56e5cd4
next_mapping.h: Update for C++.
...
* objc/execute/next_mapping.h: Update for C++.
* obj-c++.dg/selector-1.mm: Move to...
* obj-c++.dg/selector-4.mm: here...
* obj-c++.dg/comp-types-1.mm: New.
* obj-c++.dg/cxx-class-1.mm: New.
* obj-c++.dg/cxx-ivars-1.mm: New.
* obj-c++.dg/cxx-ivars-2.mm: New.
* obj-c++.dg/cxx-ivars-3.mm: New.
* obj-c++.dg/cxx-scope-1.mm: New.
* obj-c++.dg/cxx-scope-2.mm: New.
* obj-c++.dg/defs.mm: New.
* obj-c++.dg/empty-private-1.mm: New.
* obj-c++.dg/encode-1.mm: New.
* obj-c++.dg/encode-2.mm: New.
* obj-c++.dg/encode-3.mm: New.
* obj-c++.dg/extern-c-1.mm: New.
* obj-c++.dg/extra-semi.mm: New.
* obj-c++.dg/fix-and-continue-2.mm: New.
* obj-c++.dg/isa-field-1.mm: New.
* obj-c++.dg/ivar-list-semi.mm: New.
* obj-c++.dg/local-decl-1.mm: New.
* obj-c++.dg/lookup-1.mm: New.
* obj-c++.dg/lookup-2.mm: New.
* obj-c++.dg/method-1.mm: New.
* obj-c++.dg/method-2.mm: New.
* obj-c++.dg/method-3.mm: New.
* obj-c++.dg/method-4.mm: New.
* obj-c++.dg/method-5.mm: New.
* obj-c++.dg/method-6.mm: New.
* obj-c++.dg/method-7.mm: New.
* obj-c++.dg/no-extra-load.mm: New.
* obj-c++.dg/overload-1.mm: New.
* obj-c++.dg/pragma-1.mm: New.
* obj-c++.dg/pragma-2.mm: New.
* obj-c++.dg/private-1.mm: New.
* obj-c++.dg/private-2.mm: New.
* obj-c++.dg/proto-qual-1.mm: New.
* obj-c++.dg/qual-types-1.mm: New.
* obj-c++.dg/stubify-1.mm: New.
* obj-c++.dg/stubify-2.mm: New.
* obj-c++.dg/super-class-1.mm: New.
* obj-c++.dg/super-class-2.mm: New.
* obj-c++.dg/super-dealloc-1.mm: New.
* obj-c++.dg/super-dealloc-2.mm: New.
* obj-c++.dg/template-1.mm: New.
* obj-c++.dg/template-2.mm: New.
* obj-c++.dg/template-3.mm: New.
* obj-c++.dg/template-4.mm: New.
* obj-c++.dg/template-5.mm: New.
* obj-c++.dg/template-6.mm: New.
* obj-c++.dg/try-catch-1.mm: New.
* obj-c++.dg/try-catch-2.mm: New.
* obj-c++.dg/try-catch-3.mm: New.
* obj-c++.dg/try-catch-4.mm: New.
* obj-c++.dg/try-catch-5.mm: New.
* obj-c++.dg/try-catch-6.mm: New.
* obj-c++.dg/try-catch-7.mm: New.
* obj-c++.dg/try-catch-8.mm: New.
* obj-c++.dg/try-catch-9.mm: New.
* obj-c++.dg/va-meth-1.mm: New.
Co-Authored-By: Mike Stump <mrs@apple.com>
From-SVN: r100181
2005-05-26 01:53:56 +00:00
Mike Stump
047c276597
selector-1.mm: Move to...
...
* obj-c++.dg/selector-1.mm: Move to...
* obj-c++.dg/selector-4.mm: here...
From-SVN: r100180
2005-05-26 01:08:04 +00:00
Ziemowit Laski
d1c8c8273f
selector-1.mm: New.
...
[gcc/testsuite/ChangeLog]
2005-05-25 Ziemowit Laski <zlaski@apple.com>
* obj-c++.dg/selector-1.mm: New.
* obj-c++.dg/selector-2.mm: New.
From-SVN: r100179
2005-05-26 00:51:53 +00:00
GCC Administrator
4f490b3e88
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r100177.2
2005-05-26 00:16:17 +00:00
Ziemowit Laski
19537c280a
selector-3.mm: New.
...
[gcc/testsuite/ChangeLog]
2005-05-25 Ziemowit Laski <zlaski@apple.com>
* obj-c++.dg/selector-3.mm: New.
* objc.dg/selector-3.m: New.
From-SVN: r100175
2005-05-26 00:01:02 +00:00
Richard Henderson
15da280693
demangle.h (DEMANGLE_COMPONENT_HIDDEN_ALIAS): New.
...
include/
* demangle.h (DEMANGLE_COMPONENT_HIDDEN_ALIAS): New.
libiberty/
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
(d_make_comp, d_print_comp): Likewise.
(d_special_name): Generate one.
* testsuite/demangle-expected: Add a hidden alias test.
From-SVN: r100174
2005-05-25 16:29:54 -07:00
Richard Henderson
eb2925b676
re PR libgcj/21692 (unexpected java.lang.NoClassDefFoundError)
...
PR libgcj/21692
* sysdep/descriptor-n.h: New file.
* sysdep/descriptor-y.h: New file.
* sysdep/powerpc/descriptor.h: New file.
* configure.host: Set $descriptor_h appropriate for the host.
* configure.ac: Link it.
* configure: Regenerate.
* stacktrace.cc: Include sysdep/descriptor.h.
(_Jv_StackTrace::UpdateNCodeMap): Use UNWRAP_FUNCTION_DESCRIPTOR.
From-SVN: r100173
2005-05-25 16:24:07 -07:00
Richard Sandiford
2f828272d8
* config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
...
From-SVN: r100172
2005-05-25 22:19:22 +00:00
Richard Henderson
6de33afa78
re PR libgcj/21692 (unexpected java.lang.NoClassDefFoundError)
...
PR libgcj/21692
cp/
* cp-tree.h (make_alias_for): Declare.
* decl2.c (build_java_method_aliases): New.
(cp_finish_file): Call it.
* method.c (make_alias_for): Split out from ...
(make_alias_for_thunk): ... here.
java/
* Make-lang.in (java/mangle.o): Depend on LANGHOOKS_DEF_H.
* class.c (build_class_ref): Set DECL_CLASS_FIELD_P and
DECL_CONTEXT; avoid pushdecl_top_level.
(build_dtable_decl): Set DECL_VTABLE_P and DECL_CONTEXT.
(layout_class): Don't SET_DECL_ASSEMBLER_NAME.
(layout_class_method): Likewise.
* decl.c (java_mark_cni_decl_local): New.
(java_mark_class_local): Use it.
* java-tree.h (DECL_LOCAL_CNI_METHOD_P): New.
(DECL_CLASS_FIELD_P, DECL_VTABLE_P): New.
(struct lang_decl_func): Add local_cni;
(struct lang_decl_var): Add class_field, vtable.
(java_mangle_decl): Declare.
* lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
* mangle.c: Remove dup obstack.h; include langhooks-def.h.
(mangle_obstack_1): New.
(java_mangle_decl): Remove obstack argument. Call mangle_class_field,
mangle_vtable, and mangle_local_cni_method_decl. Fall back to
lhd_set_decl_assembler_name for things that don't need mangling.
(mangle_class_field): Rename from java_mangle_class_field, make
static, don't call init_mangling or finish_mangling.
(mangle_vtable): Similarly.
(mangle_local_cni_method_decl): New.
(init_mangling): Remove obstack argument. Use &mangle_obstack_1,
gcc_assert, and MANGLE_RAW_STRING.
(finish_mangling): Use gcc_assert, remove if 0 debugging code.
From-SVN: r100171
2005-05-25 15:08:31 -07:00
Daniel Berlin
81fc305201
tree-cfg.c (verify_expr, [...]): Verify invariant, constant and side_effects of the ADDR_EXPR are consistent.
...
* tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
constant and side_effects of the ADDR_EXPR are consistent.
* tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
appropriately around calls to recompute_tree_invarant_for_addr_expr.
Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r100168
2005-05-25 15:36:24 -06:00
Ziemowit Laski
3d0994b831
selector-2.m: Remove "-fgnu-runtime"; be flexible about where warning appears.
...
[gcc/testsuite/ChangeLog]
2005-05-25 Ziemowit Laski <zlaski@apple.com>
* objc.dg/selector-2.m: Remove "-fgnu-runtime"; be flexible
about where warning appears.
From-SVN: r100167
2005-05-25 21:18:43 +00:00
Ulrich Weigand
29a79fcf4e
s390.c (GP_ARG_NUM_REG, [...]): New defines.
...
ChangeLog:
* config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
(s390_function_arg, s390_gimplify_va_arg): Use them.
(s390_register_info): Save only required subset of argument
registers into save area for va_list.
(s390_va_start): Initialize only required elements of va_list struct.
(s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.
testsuite/ChangeLog:
* gcc.dg/tree-ssa/stdarg-2.c: Add tests for s390*-*-linux* targets.
* gcc.dg/tree-ssa/stdarg-3.c: Likewise.
* gcc.dg/tree-ssa/stdarg-4.c: Likewise.
* gcc.dg/tree-ssa/stdarg-5.c: Likewise.
From-SVN: r100164
2005-05-25 20:39:31 +00:00
Chris Burdess
24597146d4
SAXEventSink.java: Ignore XML entities in start/ end entity callbacks.
...
2005-05-25 Chris Burdess <dog@gnu.org>
* gnu/xml/dom/ls/SAXEventSink.java: Ignore XML entities in start/
end entity callbacks.
From-SVN: r100163
2005-05-25 20:23:01 +00:00
Ulrich Weigand
9f938de17c
reload1.c (verify_initial_elim_offsets): Return boolean status instead of aborting.
...
ChangeLog:
* reload1.c (verify_initial_elim_offsets): Return boolean status
instead of aborting.
(reload): Adapt verify_initial_elim_offsets call site. Restart
main loop if some initial elimination offsets changed.
testsuite/ChangeLog:
* gcc.dg/20050524-1.c: New test.
From-SVN: r100159
2005-05-25 20:19:26 +00:00
Adam Nemet
0fd7e0f84b
lynx.h (CC1_SPEC): Use -maix-struct-return instead of -mno-svr4-struct-return.
...
* config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
of -mno-svr4-struct-return.
From-SVN: r100158
2005-05-25 20:06:33 +00:00
Paolo Carlini
3ff13f48e6
re PR libstdc++/21726 (baseline_symbols.txt for powerpc64 missing)
...
2005-05-25 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/21726
* configure.host (abi_baseline_pair switch): Add an entry
for powerpc64-linux.
* config/abi/powerpc64-linux-gnu/baseline_symbols.txt: New.
* config/abi/powerpc64-linux-gnu/32/baseline_symbols.txt: New.
* config/abi/powerpc64-linux-gnu/32/nof/baseline_symbols.txt: New.
From-SVN: r100157
2005-05-25 19:33:35 +00:00
Daniel Berlin
81def1b74b
re PR tree-optimization/21705 (FRE does not eliminate a redundant pure call.)
...
2005-05-25 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/21705
* tree-ssa-pre.c (in_fre): New static variable.
(create_value_expr_from): Recursively value number reference ops
in argument lists.
(can_value_number_call): Temporary restrict only exists for
PRE, not FRE.
From-SVN: r100156
2005-05-25 18:53:25 +00:00
Mike Stump
14d63fb68e
objc-act.c (volatilized_hash): Avoid warnings on 64-bit machines.
...
* objc-act.c (volatilized_hash): Avoid warnings on 64-bit
machines.
From-SVN: r100155
2005-05-25 15:48:44 +00:00
Gary Benson
81043a94e9
re PR libgcj/21736 (MessageFormat("{0,time,medium}") fails)
...
2005-05-24 Gary Benson <gbenson@redhat.com>
PR libgcj/21736:
* java/text/MessageFormat.java (MessageFormatElement.setLocale):
Handle DateFormat.DEFAULT case correctly.
From-SVN: r100154
2005-05-25 15:25:38 +00:00
Tom Tromey
93f8e21b71
re PR libgcj/21703 (hang when rapidly calling String.intern())
...
PR libgcj/21703:
* java/lang/ref/natReference.cc (find_slot): Handle case where
table has no NULL entries.
* java/lang/natString.cc (_Jv_StringFindSlot): Handle case where
table has no NULL entries.
From-SVN: r100153
2005-05-25 15:23:56 +00:00
Kazu Hirata
56c0cf75a0
tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace sizeof (bitmap *) with sizeof (bitmap).
...
* tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
sizeof (bitmap *) with sizeof (bitmap).
From-SVN: r100152
2005-05-25 15:17:12 +00:00
Paolo Bonzini
2dfbef6d47
Makefile.tpl (stage[+id+]-start): Iterate over target module as well.
...
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
* Makefile.tpl (stage[+id+]-start): Iterate over target module as well.
(Dependencies): Consider target modules for bootstrap dependencies.
Make target bootstrap modules depend on each stage's gcc.
* Makefile.in: Regenerate.
From-SVN: r100151
2005-05-25 14:18:54 +00:00
Daniel Berlin
14ac4d9143
lambda-code.c (perfect_nestify): Call update_stmt on the exit condition.
...
2005-05-25 Daniel Berlin <dberlin@dberlin.org>
* lambda-code.c (perfect_nestify): Call update_stmt on the exit
condition.
From-SVN: r100150
2005-05-25 14:05:22 +00:00
Ian Lance Taylor
5c0d254da6
Correct use of year 999 to 1999.
...
This change does not itself get a ChangeLog entry.
From-SVN: r100149
2005-05-25 13:22:27 +00:00
Adrian Straetling
c08b81aa28
s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to hook_bool_rtx_true.
...
2005-05-25 Adrian Straetling <straetling@de.ibm.com>
* config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
hook_bool_rtx_true.
From-SVN: r100146
2005-05-25 13:12:05 +00:00
Andrew Haley
5fa579d377
gcconfig.h (HBLKSIZE): Define to 4096 on powerpc64-linux.
...
2005-05-25 Andrew Haley <aph@redhat.com>
* include/private/gcconfig.h (HBLKSIZE): Define to 4096 on
powerpc64-linux.
From-SVN: r100145
2005-05-25 15:10:00 +02:00
Jan Hubicka
670cd5c514
Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
...
* Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
* cgraph.c (cgraph_create_node): Reset estimated_growth.
* cgraph.h (cgraph_global_info): Add estimated_growth.
* ipa-inline.c: Include coverage.h
(max_insns, max_count): New static variables.
(cgraph_estimate_size_after_inlining): Cache the result.
(cgraph_estimate_growth):
* passes.c (rest_of_clean_state): Kill coverage_end_function.
* timevar.def (TV_INLINE_HEURISTICS): New timevar.
* tree-optimize.c (init_tree_optimization_passes): Move profiling before
inlining.
(ipa_passes): Initialize bitmaps.
* gcc.dg/tree-prof/inliner-1.c: New.
2005-05-25 Janis Johnson <janis187@us.ibm.com>
* gcc.dg/tree-prof: New directory.
* gcc.dg/tree-prof/tree-prof.exp: New.
From-SVN: r100144
2005-05-25 12:34:01 +00:00
Adrian Straetling
a71a498df0
loop-doloop.c: Include "target.h".
...
2005-05-25 Adrian Straetling <straetling@de.ibm.com>
* loop-doloop.c: Include "target.h".
(doloop_valid_p): Move tests to function in targhooks.c.
* target.h (struct gcc_target): New target hook
"insn_valid_within_doloop".
* target-def.h: Define default value for "insn_valid_within_doloop".
(TARGET_INITIALIZER): Insert new target hook into initializer.
* targhooks.c (default_insn_valid_within_doloop): New function.
* targhooks.h (default_insn_valid_within_doloop): Declare.
* hooks.c (hook_bool_rtx_true): New function.
* hooks.h (hook_bool_rtx_true): Declare.
* doc/tm.texi: Add documentation for new target hook.
From-SVN: r100143
2005-05-25 11:52:13 +00:00
Paolo Carlini
be62afb4d5
basic_string.h (_Rep::_M_set_length_and_sharable): Use, consistently, traits_type::assign.
...
2005-05-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_Rep::_M_set_length_and_sharable):
Use, consistently, traits_type::assign.
From-SVN: r100142
2005-05-25 11:33:43 +00:00
Volker Reichelt
910dc5cc95
re PR c++/21686 (weird quoting in an error message)
...
PR c++/21686
* semantics.c (finish_id_expression): Fix quoting in error message.
From-SVN: r100140
2005-05-25 09:47:18 +00:00
Paolo Carlini
5bf6892e61
atomicity.h: Use the builtins for atomic memory operations.
...
2005-05-25 Paolo Carlini <pcarlini@suse.de>
* config/cpu/alpha/atomicity.h: Use the builtins for
atomic memory operations.
* config/cpu/powerpc/atomicity.h: Likewise.
* config/cpu/ia64/atomicity.h: Do not include ia64intrin.h.
From-SVN: r100139
2005-05-25 09:25:25 +00:00
Eric Botcazou
38fc66bac7
re PR target/21412 (ICE loading TLS address)
...
PR target/21412
* config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
* config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
(sparc_tls_referenced_p): New prototype.
* config/sparc/sparc.c (tls_symbolic_operand): Delete.
(sparc_expand_move): Look for TLS addresses with constant offsets.
(legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
tls_symbolic_operand.
(legitimate_pic_operand_p): Likewise.
(legitimate_address_p): Likewise.
(legitimize_address): Likewise.
(sparc_tls_symbol_ref_1): New function.
(sparc_tls_referenced_p): New function.
* config/sparc/predicates.md (tgd_symbolic_operand): Use
SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
(tld_symbolic_operand): Likewise.
(tie_symbolic_operand): Likewise.
(tle_symbolic_operand): Likewise.
From-SVN: r100137
2005-05-25 07:04:04 +00:00
DJ Delorie
5c498b10af
common.opt (-Wattributes): New.
...
* common.opt (-Wattributes): New. Default true.
* doc/invoke.texi (-Wno-attributes): Document.
* attribs.c (decl_attributes): Move warning control from if() to
warning(OPT_*).
* c-common.c (handle_packed_attribute): Likewise.
(handle_nocommon_attribute): Likewise.
(handle_common_attribute): Likewise.
(handle_noreturn_attribute): Likewise.
(handle_noinline_attribute): Likewise.
(handle_always_inline_attribute): Likewise.
(handle_used_attribute): Likewise.
(handle_unused_attribute): Likewise.
(handle_const_attribute): Likewise.
(handle_transparent_union_attribute): Likewise.
(handle_constructor_attribute): Likewise.
(handle_destructor_attribute): Likewise.
(handle_mode_attribute): Likewise.
(handle_alias_attribute): Likewise.
(handle_visibility_attribute): Likewise.
(handle_tls_model_attribute): Likewise.
(handle_malloc_attribute): Likewise.
(handle_returns_twice_attribute): Likewise.
(handle_pure_attribute): Likewise.
(handle_deprecated_attribute): Likewise.
(handle_vector_size_attribute): Likewise.
(handle_nothrow_attribute): Likewise.
(handle_cleanup_attribute): Likewise.
(handle_warn_unused_result_attribute): Likewise.
(handle_sentinel_attribute): Likewise.
* c-decl.c (diagnose_mismatched_decls): Likewise.
(start_decl): Likewise.
(grokdeclarator): Likewise.
(start_function): Likewise.
* c-format.c (check_function_format): Likewise.
* stor-layout.c (place_field): Likewise.
(finalize_record_size): Likewise.
* tree.c (handle_dll_attribute)): Likewise.
* varasm.c (default_assemble_visibility): Likewise.
* config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
(darwin_assemble_visibility): Likewise.
* config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
* config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
(arm_handle_isr_attribute): Likewise.
* config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
(avr_handle_fndecl_attribute): Likewise.
* config/bfin/bfin.c (handle_int_attribute): Likewise.
* config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
* config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
(h8300_handle_eightbit_data_attribute): Likewise.
(h8300_handle_tiny_data_attribute): Likewise.
* config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
(ix86_handle_regparm_attribute): Likewise.
(ix86_handle_struct_attribute): Likewise.
* config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
(i386_pe_encode_section_info): Likewise.
* config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
* config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
(ip2k_handle_fndecl_attribute): Likewise.
* config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
* config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
(m68hc11_handle_fntype_attribute): Likewise.
(m68hc11_encode_section_info): Likewise.
* config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
* config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
* config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
* config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
* config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
(sh_handle_sp_switch_attribute): Likewise.
(sh_handle_trap_exit_attribute): Likewise.
* config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
(sh_symbian_handle_dll_attribute): Likewise.
* config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
(xstormy16_handle_below100_attribute): Likewise.
* config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
[testsuite]
* gcc.dg/Wattributes-1.c: New.
* gcc.dg/Wattributes-2.c: New.
* gcc.dg/Wattributes-3.c: New.
[cp]
* decl.c (duplicate_decls): Move warning control from if() to
warning(OPT_*).
* name-lookup.c (parse_using_directive): Likewise.
* parser.c (cp_parser_elaborated_type_specifier): Likewise.
(cp_parser_init_declarator): Likewise.
* tree.c (handle_com_interface_attribute): Likewise.
[java]
* class.c (set_constant_value): Move warning control from if() to
warning(OPT_*).
From-SVN: r100136
2005-05-25 00:18:19 -04:00
DJ Delorie
44c21c7f03
c-common.c (unsigned_conversion_warning): Move warning control from if() to warning(OPT_*).
...
* c-common.c (unsigned_conversion_warning): Move warning control
from if() to warning(OPT_*).
(c_common_truthvalue_conversion): Likewise.
(c_do_switch_warnings): Likewise.
* c-decl.c (diagnose_mismatched_decls): Likewise.
(diagnose_mismatched_decls): Likewise.
(define_label): Likewise.
(grokdeclarator): Likewise.
* c-format.c (check_format_info): Likewise.
* c-lex.c (interpret_integer): Likwise.
(lex_string): Likewise.
* c-opts.c (c_common_post_options): Likewise.
* c-parser.c (c_parser_unary_expression): Likewise.
* c-pragma.c (handle_pragma_redefine_extname): Likewise.
(handle_pragma_extern_prefix): Likewise.
* c-typeck.c (build_binary_op): Likewise.
* gcse.c (is_too_expensive): Likewise.
* opts.c (decode_options): Likewise.
* stor-layout.c (place_field): Likewise.
* tree-cfg.c (remove_bb): Likewise.
* c.opt (-Wreturn-type): Add Var(warn_return_type).
* flags.h (warn_return_type): Remove.
* toplev.c (warn_return_type): Likewise.
From-SVN: r100135
2005-05-24 23:59:00 -04:00
GCC Administrator
32a5d31dea
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r100133.2
2005-05-25 00:16:28 +00:00
Kelley Cook
5ec1c5e69b
configure.ac: Don't use gcc_AC_C_LONG_LONG.
...
2005-05-24 Kelley Cook <kcook@gcc.gnu.org>
* configure.ac: Don't use gcc_AC_C_LONG_LONG. Check for
existence of long long and __int64 before determining their size.
* aclocal.m4: Delete gcc_AC_C_LONG_LONG.
* configure, config.h.in: Regenerate.
From-SVN: r100131
2005-05-25 00:15:21 +00:00
Janis Johnson
150de50631
20005-05-24 Janis Johnson <janis187@us.ibm.com>
...
PR tree-optimization/19833
gcc.dg/uninit-4.c: Remove xfail.
gcc.dg/uninit-9.c: Ditto.
From-SVN: r100130
2005-05-24 23:41:44 +00:00
Ian Lance Taylor
befe7c8246
Move entries for 1998 and 1999 out of ChangeLog-2000 and into new
...
files ChangeLog-1998 and ChangeLog-1999.
This change does not itself get a ChangeLog entry.
From-SVN: r100129
2005-05-24 23:20:39 +00:00
Kelley Cook
d7974fe65b
configure: Regenerate.
...
2005-05-24 Kelley Cook <kcook@gcc.gnu.org>
* configure: Regenerate.
From-SVN: r100128
2005-05-24 23:18:46 +00:00
Paolo Carlini
0e994557d3
[multiple changes]
...
2005-05-24 Paolo Carlini <pcarlini@suse.de>
* testsuite/25_algorithms/equal.cc: Move to...
* testsuite/25_algorithms/equal: ... here.
* testsuite/25_algorithms/lower_bound.cc: Move to...
* testsuite/25_algorithms/lower_bound: ... here.
2005-05-24 Paolo Carlini <pcarlini@suse.de>
Port from libstdcxx_so_7-branch:
2005-20-05 Chris Jefferson <chris@bubblescope.net>
* testsuite/25_algorithms/heap.cc: Move to...
* testsuite/25_algorithms/heap/heap.cc: ...here.
* testsuite/25_algorithms/partition.cc: Move to...
* testsuite/25_algorithms/partition/partition.cc: ...here.
2005-03-29 Christopher Jefferson <chris@bubblescope.net>
* testsuite/25_algorithms/includes/1.cc: Add tests.
* testsuite/25_algorithms/search/1.cc: Likewise.
* testsuite/25_algorithms/unique_copy/1.cc: Likewise.
* testsuite/25_algorithms/swap_ranges/1.cc: New.
* testsuite/25_algorithms/swap_ranges/check_type.cc: New.
* testsuite/25_algorithms/rotate.cc: Move to...
* testsuite/25_algorithms/rotate/rotate.cc: ... here.
* testsuite/25_algorithms/rotate/1.cc: New.
* testsuite/25_algorithms/rotate/check_type.cc: New.
* testsuite/25_algorithms/search_n/iterator.cc: Fix typo.
2005-03-14 Christopher Jefferson <chris@bubblescope.net>
* include/bits/stl_algo.h (replace_copy, replace_copy_if):
Don't assume that __new_value and *__first are convertible to
each other.
* testsuite/25_algorithms/find/1.cc: New.
* testsuite/25_algorithms/find/check_type.cc: New.
* testsuite/25_algorithms/find_if/1.cc: New.
* testsuite/25_algorithms/find_if/check_type.cc: New.
* testsuite/25_algorithms/replace/1.cc: New.
* testsuite/25_algorithms/replace/check_type.cc: New.
* testsuite/25_algorithms/replace_if/1.cc: New.
* testsuite/25_algorithms/replace_if/check_type.cc: New.
* testsuite/25_algorithms/replace_copy/1.cc: New.
* testsuite/25_algorithms/replace_copy/check_type.cc: New.
* testsuite/25_algorithms/replace_copy_if/1.cc: New.
* testsuite/25_algorithms/replace_copy_if/check_type.cc: New.
* testsuite/25_algorithms/remove/1.cc: New.
* testsuite/25_algorithms/remove/check_type.cc: New.
* testsuite/25_algorithms/remove_if/1.cc: New.
* testsuite/25_algorithms/remove_if/check_type.cc: New.
* testsuite/25_algorithms/count/1.cc: New.
* testsuite/25_algorithms/count/check_type.cc: New.
* testsuite/25_algorithms/count_if/1.cc: New.
* testsuite/25_algorithms/count_if/check_type.cc: New.
2005-02-27 Christopher Jefferson <chris@bubblescope.net>
Paolo Carlini <pcarlini@suse.de>
* testsuite/ext/is_heap/check_type.cc: New.
2005-02-27 Paolo Carlini <pcarlini@suse.de>
* testsuite/ext/is_heap/1.cc: New.
2005-02-01 Christopher Jefferson <chris@bubblescope.net>
* testsuite/ext/median.cc: New.
* testsuite/25_algorithms/adjacent_find/1.cc: New.
* testsuite/25_algorithms/adjacent_find/check_type.cc: New.
* testsuite/25_algorithms/search/1.cc: New.
* testsuite/25_algorithms/search/check_type.cc: New.
* testsuite/25_algorithms/unique_copy/1.cc: New.
* testsuite/25_algorithms/unique_copy/check_type.cc: New.
* testsuite/25_algorithms/partial_sort/1.cc: New.
* testsuite/25_algorithms/partial_sort/check_type.cc: New.
* testsuite/25_algorithms/partial_sort_copy/1.cc: New.
* testsuite/25_algorithms/partial_sort_copy/check_type.cc: New.
* testsuite/25_algorithms/lower_bound/1.cc: New.
* testsuite/25_algorithms/lower_bound/check_type.cc: New.
* testsuite/25_algorithms/upper_bound/1.cc: New.
* testsuite/25_algorithms/upper_bound/check_type.cc: New.
* testsuite/25_algorithms/merge/1.cc: New.
* testsuite/25_algorithms/merge/check_type.cc: New.
* testsuite/25_algorithms/inplace_merge/1.cc: New.
* testsuite/25_algorithms/inplace_merge/check_type.cc: New.
* testsuite/25_algorithms/stable_sort/1.cc: New.
* testsuite/25_algorithms/stable_sort/check_type.cc: New.
* testsuite/25_algorithms/nth_element/1.cc: New.
* testsuite/25_algorithms/nth_element/check_type.cc: New.
* testsuite/25_algorithms/equal_range/1.cc: New.
* testsuite/25_algorithms/equal_range/check_type.cc: New.
* testsuite/25_algorithms/binary_search/1.cc: New.
* testsuite/25_algorithms/binary_search/check_type.cc: New.
* testsuite/25_algorithms/includes/1.cc: New.
* testsuite/25_algorithms/includes/check_type.cc: New.
* testsuite/25_algorithms/set_union/1.cc: New.
* testsuite/25_algorithms/set_union/check_type.cc: New.
* testsuite/25_algorithms/set_intersection/1.cc: New.
* testsuite/25_algorithms/set_intersection/check_type.cc: New.
* testsuite/25_algorithms/set_difference/1.cc: New.
* testsuite/25_algorithms/set_difference/check_type.cc: New.
* testsuite/25_algorithms/set_symmetric_difference/1.cc: New.
* testsuite/25_algorithms/set_symmetric_difference/check_type.cc: New.
* testsuite/25_algorithms/min_element/1.cc: New.
* testsuite/25_algorithms/min_element/check_type.cc: New.
* testsuite/25_algorithms/max_element/1.cc: New.
* testsuite/25_algorithms/max_element/check_type.cc: New.
* testsuite/25_algorithms/prev_permutation/1.cc: New.
* testsuite/25_algorithms/prev_permutation/check_type.cc: New.
* testsuite/25_algorithms/next_permutation/1.cc: New.
* testsuite/25_algorithms/next_permutation/check_type.cc: New.
* testsuite/25_algorithms/find_first_of/1.cc: New.
* testsuite/25_algorithms/find_first_of/check_type.cc: New.
* testsuite/25_algorithms/find_end/1.cc: New.
* testsuite/25_algorithms/find_end/check_type.cc: New.
* testsuite/25_algorithms/equal/check_type.cc: Insert iterator type.
* testsuite/25_algorithms/lexicographical_compare/check_type.cc:
Likewise.
2005-01-10 Christopher Jefferson <chris@bubblescope.net>
* testsuite/25_algorithms/lexicographical_compare/check_type.cc: New.
* testsuite/25_algorithms/lexicographical_compare/1.cc: Likewise.
* testsuite/25_algorithms/mismatch/check_type.cc: Likewise.
* testsuite/25_algorithms/mismatch/1.cc: Likewise.
* testsuite/25_algorithms/equal/check_type.cc: New.
* testsuite/25_algorithms/equal/1.cc: New.
From-SVN: r100127
2005-05-24 22:53:43 +00:00
Ziemowit Laski
58393038d7
c-common.h (objc_comptypes): Remove prototype.
...
* c-common.h (objc_comptypes): Remove prototype.
(objc_compare_types): New prototype.
(objc_volatilized_decl): Likewise.
(objc_type_quals_match): Likewise.
* c-decl.c (objc_mark_locals_volatile): Streamline by calling
objc_volatilize_decl().
* c-typeck.c (comp_target_types): Remove third parameter; do
not call objc_comptypes().
(comptypes): Remove calls to objc_comptypes().
(build_function_call): Extend compatible prototype check to ObjC.
(build_conditional_expr): Adjust call to comp_target_types().
(convert_for_assignment): Call objc_compare_types() instead of
objc_comptypes(); adjust calls to comp_target_types(); call
objc_type_quals_match() before issuing qualifier mismatch
warnings.
(build_binary_op): Call objc_compare_types() before issuing
pointer mismatch warnings; adjust calls to
comp_target_types().
* stub-objc.c (objc_comptypes): Remove stub.
(objc_compare_types): New stub.
(objc_volatilized_decl): Likewise.
(objc_type_quals_match): Likewise.
From-SVN: r100126
2005-05-24 22:24:38 +00:00
Ziemowit Laski
660845bf3a
class.c (layout_class_type): Do not issue C++ ABI warnings for ObjC structs.
...
* class.c (layout_class_type): Do not issue C++ ABI warnings
for ObjC structs.
* decl.c (objc_mark_locals_volatile): Streamline by calling
objc_volatilize_decl().
* parser.c (cp_parser_objc_message_expression): Allow simple
type specifiers (instead of merely type names) as message
receivers.
* pt.c (template_args_equal): Do not call objc_comptypes().
* typeck.c (composite_pointer_type): If both pointers are
ObjC-esque, arbitrarily choose the first; do not call
objc_comptypes().
(comptypes): Do not call objc_comptypes().
(convert_for_assignment): Call objc_compare_types().
(comp_ptr_ttypes_real): Call objc_type_quals_match() before
concluding that types do not match.
From-SVN: r100125
2005-05-24 22:22:33 +00:00
Ziemowit Laski
d11dd68408
objc-act.c (objc_build_struct): New function.
...
* objc-act.c (objc_build_struct): New function.
(objc_derived_from_p): Likewise.
(objc_build_component_ref): Likewise.
(objc_copy_binfo): Likewise.
(objc_xref_basetypes): Likewise.
(objc_lookup_protocol): Likewise.
(objc_compare_protocols): Likewise.
(objc_volatilize_decl): Likewise.
(encode_aggregate_fields): Likewise.
(volatilized_hash): Likewise.
(volatilized_eq): Likewise.
(objc_compare_types): Likewise.
(objc_type_quals_match): Likewise.
(DERIVED_FROM_P): New ObjC macro, corresponding to C++ macro
of same name.
(get_class_ivars): Add second parameter indicating if entire
hierarchy is desired.
(struct volatilized_type): New type.
(volatilized_htab): New hash table.
(objc_types_compatible_p, objc_comptypes): Remove functions.
(synth_module_prologue): Do not initialize 'unused_list'.
(objc_get_class_reference): Fix ObjC++ impedance mismatches.
(objc_declare_alias): Implement as a typedef.
(objc_substitute_decl, objc_gimplify_expr): Reformat.
(objc_get_class_ivars): Adjust call to get_class_ivars().
(next_sjlj_build_enter_and_setjmp, synth_forward_declarations,
build_ivar_reference, get_super_receiver): Call
objc_build_component_ref() instead of build_component_ref().
(objc_begin_catch_clause): Use DERIVED_FROM_P() instead of
objc_comptypes().
(build_private_template): Call objc_build_struct() instead of
start_struct() and finish_struct().
(hash_init): Initialize volatilized_htab.
(objc_is_public): Adjust calls to objc_get_ivars(); adjust
ObjC++ impedance mismatches.
(encode_aggregate_within): Streamline by calling
encode_aggregate_fields().
* objc-act.h (objc_types_compatible_p): Remove prototype.
(OCTI_UNUSED_LIST, unused_list): Remove slot.
* objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
From-SVN: r100123
2005-05-24 22:21:01 +00:00
Ziemowit Laski
18d311d8d8
objcp-decl.c (objcp_start_struct, [...]): Adjust call to xref_tag().
...
* objcp-decl.c (objcp_start_struct, objcp_xref_tag): Adjust
call to xref_tag().
(objcp_build_component_ref): Remove function.
* objcp-decl.h (objcp_build_component_ref): Remove prototype.
(build_component_ref): Remove macro.
* objcp-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
From-SVN: r100122
2005-05-24 22:20:10 +00:00
Ziemowit Laski
d1e270fe6e
bitfield-[1-5].mm: New.
...
* obj-c++.dg/bitfield-[1-5].mm: New.
* obj-c++.dg/class-protocol-1.mm: New.
* obj-c++.dg/comp-types-1[0-1].mm: New.
* obj-c++.dg/comp-types-[2-9].mm: New.
* obj-c++.dg/encode-[4-8].mm: New.
* obj-c++.dg/layout-1.mm: New.
* obj-c++.dg/method-1[0-9].mm: New.
* obj-c++.dg/method-2[0-1].mm: New.
* obj-c++.dg/method-[8-9].mm: New.
* obj-c++.dg/objc-gc-3.mm: New.
* obj-c++.dg/try-catch-10.mm: New.
* objc.dg/bitfield-5.m: New.
* objc.dg/comp-types-10.m: New.
* objc.dg/comp-types-9.m: New.
* objc.dg/layout-1.m: New.
* objc.dg/objc-gc-4.m: New.
* objc.dg/try-catch-9.m: New.
* objc.dg/class-protocol-1.m: Tweak diagnostics.
* objc.dg/comp-types-1.m: Likewise.
* objc.dg/comp-types-[5-6].m: Likewise.
* objc.dg/method-9.m: Likewise.
From-SVN: r100121
2005-05-24 22:18:43 +00:00
Janis Johnson
37e0a9e890
altivec-vec-merge.c: Make test usable on GNU/Linux targets and on hardware without VMX support.
...
* gcc.dg/altivec-vec-merge.c: Make test usable on GNU/Linux targets
and on hardware without VMX support.
From-SVN: r100120
2005-05-24 21:50:00 +00:00
Janis Johnson
22a905129e
* gcc.dg/altivec-vec-merge.c: Renamed from ppc-vec-merge.c.
...
From-SVN: r100119
2005-05-24 21:48:15 +00:00