1. 09 Aug, 2008 16 commits
    • jsm28's avatar
      * sv.po: Update. · 0e9813cf
      jsm28 authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138917 138bc75d-0d04-0410-961f-82ee72b054a4
    • hjl's avatar
      2008-08-09 Jan Hubicka <jh@suse.cz> · c73ea1cc
      hjl authored
      	PR target/37055
      	* optabs.c (maybe_emit_unop_insn): Remove produced code if
      	expansion failed.
      	(expand_fix): Be prepared for expansion to fail.
      	(expand_sfix_optab): Remove instructions if expansion failed.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138916 138bc75d-0d04-0410-961f-82ee72b054a4
    • aesok's avatar
      * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to · d0ea4a6b
      aesok authored
      	avr31 architecture.
      	* config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
      	* config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138915 138bc75d-0d04-0410-961f-82ee72b054a4
    • jvdelisle's avatar
      2008-07-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> · 186b76dc
      jvdelisle authored
      	PR fortran/36582
      	* io/list_read.c: If variable rank is zero, do not adjust the found
      	namelist object pointer. Fix ChangeLog.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138914 138bc75d-0d04-0410-961f-82ee72b054a4
    • rsandifo's avatar
      * configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu. · 559b0712
      rsandifo authored
      	* configure: Regenerate.
      	* mt-mips16-compat: New file, taken from mt-mips-elfoabi.
      	* mt-mips-elfoabi: Include mt-mips16-compat.
      	* mt-mips-gnu: New file.
      	* config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
      	mips/t-libgcc-mips16 to tmake_file.
      	* config/mips/mips-protos.h (mips_call_type): New enum.
      	(mips_pic_base_register, mips_got_load): Declare.
      	(mips_restore_gp): Take an rtx argument.
      	(mips_use_pic_fn_addr_reg_p): Declare.
      	(mips_expand_call): Replace the sibcall_p argument with
      	a mips_call_type argument.  Add a lazy_p parameter.
      	(mips_split_call): Declare.
      	* config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
      	(MIPS16_PIC_TEMP): Likewise.
      	(reg_class): Delete M16_NA_REGS.
      	(REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
      	(mips_split_hi_p): Declare.
      	* config/mips/mips.c (mips_split_hi_p): New array.
      	(mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
      	(mips_got_symbol_type_p): New function.
      	(mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
      	(mips16_stub_function_p): New function.
      	(mips16_local_function_p): Likewise.
      	(mips_use_pic_fn_addr_reg_p): Likewise.
      	(mips_cannot_force_const_mem): Return false for HIGHs.
      	Extend CONST_INT and symbolic handling to MIPS16, using
      	mips_symbol_insns to check that the base symbol type is a
      	legitimate constant.  Reject GOT-based constants if
      	(mips_const_insns): Check targetm.cannot_force_const_mem when
      	decomposing a symbolic base and a large offset.
      	(mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
      	When calling a function that needs $25 from MIPS16 code,
      	move the target address into $25 separately and add a USE
      	to the call insn.
      	(mips16_gp_pseudo_reg): Insert the initializer immediately
      	before the first real insn.
      	(mips_pic_base_register, mips_got_load): New functions.
      	(mips_split_symbol): Generalize the name of the LO_SUM_OUT
      	parameter to LOW_OUT.  Say that it can be any valid SET_SRC
      	when splitting a load-address operation.  Split SYMBOL_GOT_DISP
      	constants and highs of SYMBOL_GOT_PAGE_OFST constants.
      	(mips_call_tls_get_addr): Update the call to mips_expand_call,
      	also passing NULL_RTX rather than const0_rtx as the aux argument.
      	(mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
      	instead of TARGET_EXPLICIT_RELOCS.
      	(mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
      	(mips_load_call_address): Replace the sibcall_p argument with
      	a mips_call_type argument.  Use mips_got_load.
      	(mips16_local_alias): New structure.
      	(mips16_local_aliases): New variable.
      	(mips16_local_aliases_hash): New function.
      	(mips16_local_aliases_eq): Likewise.
      	(mips16_local_alias): Likewise.
      	(mips16_stub_function): Likewise.
      	(mips16_build_function_stub): Create a local alias for the target
      	function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
      	.cpload directive and an R_MIPS_NONE relocation for the target
      	function, then load the alias rather than the function itself.
      	Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
      	(mips16_copy_fpr_return_value): Use mips16_stub_function and
      	mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
      	(mips16_build_call_stub): Replace the FN parameter with an
      	FN_PTR parameter.  Force the address into a register if it
      	isn't a call_insn_operand; don't rely on the caller to do this.
      	If a call to a locally-defined and locally-binding MIPS16
      	function must be made indirectly, redirect the call to the
      	function's local alias.  Use mips16_stub_function_p,
      	mips16_stub_function, mips_expand_call and use_reg.
      	Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
      	Use explicit %hi and %lo accesses where possible.
      	Use MIPS_CALL to generate the correct code form of a
      	jal instruction.  Add clobbers of $18 instead of uses.
      	Update the call to mips_emit_call_insn.
      	(mips_expand_call): Replace the SIBCALL_P argument with a
      	mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
      	Take a LAZY_P parameter.  Call mips16_build_call_stub first,
      	allowing it to modify the call address.  Update the calls to
      	mips_load_call_address and mips_emit_call_insn.
      	(mips_split_call): New function.
      	(mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
      	!TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
      	SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
      	(mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
      	(mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
      	if TARGET_MIPS16.
      	(mips_cprestore_slot): New function.
      	(mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
      	and use mips_cprestore_slot.
      	(mips_output_function_prologue): Handle TARGET_MIPS16 for
      	(mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
      	then use a copygp_mips16 instruction to set up $28.
      	(mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
      	(mips16_lay_out_constants): Call split_all_insns_noflow.
      	(mips_reorg_process_insns): Explicitly set all_noreorder_p to
      	false if TARGET_MIPS16.
      	(mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
      	(mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
      	mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
      	(mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
      	MIPS16 code.  Allow MIPS16 o32 PIC.
      	(mips_override_options): Allow MIPS16 o32 PIC.
      	* config/mips/mips.md: Lower CONST_GP_P moves into register moves
      	after reload if TARGET_USE_GOT.
      	(UNSPEC_COPYGP): New constant.
      	(length): Use a default length of 8 for MIPS16 GOT loads.
      	(*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
      	(*got_page<mode>): Check mips_split_hi_p.
      	(*got_disp<mode>, *got_page<mode>): Use mips_got_load.
      	(unspec_got<mode>, unspec_call<mode>): New expanders.
      	(load_got<mode>, load_call<mode>): Remove the length attributes.
      	Use a got attribute instead of a type attribute.
      	(copygp_mips16): New insn.
      	(restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
      	(load_call<mode>): Use a "d" constraint instead of an "r" constraint.
      	(sibcall, sibcall_value, call, call_value): Update the calls
      	to mips_expand_call.
      	(call_internal, call_value_internal): Use mips_split_call.
      	(call_value_multiple_internal): Likewise.
      	(call_split): Move after call_internal (the insn it is split from).
      	(call_internal_direct, call_value_internal_direct): Turn into
      	define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
      	(call_direct_split, call_value_direct_split): New patterns.
      	* config/mips/constraints.md (c): Handle TARGET_MIPS16 first
      	and use M16_REGS instead of M16_NA_REGS.
      	* config/mips/predicates.md (const_call_insn_operand): Replace
      	the TARGET_ABSOLUTE_ABICALLS-based check with a more general
      	mips_use_pic_fn_addr_reg_p check.
      	(move_operand): Reject HIGHs if mips_split_hi_p.
      	* config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
      	(__mips16_floatunsisf): Inline __mips16_floatsisf.
      	(CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
      	* config/mips/libgcc-mips16.ver: New file.
      	* config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
      	* lib/target-supports.exp (check_profiling_available): Return false
      	for -p and -pg on MIPS16 targets.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138912 138bc75d-0d04-0410-961f-82ee72b054a4
    • rsandifo's avatar
      gcc/ · 1d64dcb5
      rsandifo authored
      	* config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
      	(mips_unspec_address, mips_unspec_offset_high): Likewise.
      	(mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
      	(mips16_cfun_returns_in_fpr_p): Likewise.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138911 138bc75d-0d04-0410-961f-82ee72b054a4
    • rsandifo's avatar
      gcc/ · 036b8c98
      rsandifo authored
      	* config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
      	* config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
      	rather than 4 to PC.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138910 138bc75d-0d04-0410-961f-82ee72b054a4
    • rsandifo's avatar
      gcc/ · d0d816ec
      rsandifo authored
      	* config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
      	(FUNCTION_PROFILER): Save the static chain pointer into $2
      	beforehand and restore it aftewards.
      	(TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
      	address directly into $25 and call the function through $25;
      	do not clobber $3.  Pad the DImode version to cover the space
      	left by the deleted $25 <- $3 move.
      	(TRAMPOLINE_SIZE): Adjust the size of the SImode version after
      	the removal of the $25 <- $3 move.
      	(INITIALIZE_TRAMPOLINE): Update offsets accordingly.
      	* config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138909 138bc75d-0d04-0410-961f-82ee72b054a4
    • rsandifo's avatar
      gcc/ · a8cceccd
      rsandifo authored
      2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
      	    Daniel Jacobowitz  <dan@codesourcery.com>
      	* config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
      	* config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
      	* config/mips/mips.c (mips_start_function_definition): New function.
      	(mips_end_function_definition): Likewise.
      	(mips_output_function_prologue): Use mips_start_function_definition.
      	(mips_output_function_epilogue): Use mips_end_function_definition.
      	(build_mips16_function_stub): Use mips_start_function_definition
      	and mips_end_function_definition.
      	(build_mips16_call_stub): Likewise.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138908 138bc75d-0d04-0410-961f-82ee72b054a4
    • rguenth's avatar
      2008-08-09 Richard Guenther <rguenther@suse.de> · 0acacf9e
      rguenth authored
      	* gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
      	* gimple.h (gimple_call_fn): Adjust comment.
      	(gimple_call_set_fndecl): New function.
      	(gimple_call_fndecl): Adjust for GIMPLE_CALL no
      	longer having bare FUNCTION_DECL operand.
      	(gimple_call_return_type): Likewise.
      	* tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
      	* value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
      	(gimple_mod_pow2): Likewise.
      	(gimple_mod_subtract): Likewise.
      	(gimple_ic): Likewise.
      	(gimple_stringop_fixed_value): Likewise.
      	(gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
      	longer having bare FUNCTION_DECL operand.
      	* ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
      	* omp-low.c (optimize_omp_library_calls): Likewise.
      	* cgraphunit.c (update_call_expr): Likewise.
      	* tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
      	(execute_convert_to_rsqrt): Likewise.
      	* cfgexpand.c (gimple_to_tree): Simplify.
      	(release_stmt_tree): Fix for GIMPLE_CALL no longer having
      	bare FUNCTION_DECL operand.
      	* tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
      	(convert_gimple_call): Use gimple_call_fndecl.
      	* c-common.c (c_warn_unused_result): Likewise.
      	* gcc.dg/tree-ssa/inline-2.c: New testcase.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138907 138bc75d-0d04-0410-961f-82ee72b054a4
    • paolo's avatar
      2008-08-09 Paolo Carlini <paolo.carlini@oracle.com> · 149fead9
      paolo authored
      	Revert fix for libstdc++/35637, thanks to other/36901.
      	* include/tr1_impl/type_traits (__is_function_helper): New, uses
      	variadic templates.
      	(is_function): Forward to the latter.
      	(__in_array): Remove.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138906 138bc75d-0d04-0410-961f-82ee72b054a4
    • paolo's avatar
      2008-08-09 Paolo Carlini <paolo.carlini@oracle.com> · dea36a42
      paolo authored
      	* config/locale/darwin/ctype_members.cc: Include <cstdio>.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138905 138bc75d-0d04-0410-961f-82ee72b054a4
    • manu's avatar
      2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org> · 6513b50d
      manu authored
      	PR c/17880
      	* c-typeck.c (digest_init): Call verify_sequence_points from here.
      	(c_finish_return): Likewise.
      	(c_start_case): Likewise.
      	* c-common.c (warn_for_collisions_1): Use explicit location in
      	* c-parser.c (c_parser_condition): New. Call
      	(c_parser_paren_condition): Call c_parser_condition.
      	(c_parser_for_statement): Call c_parser_condition.
      	* gcc.dg/sequence-pt-pr17880.c: New.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138904 138bc75d-0d04-0410-961f-82ee72b054a4
    • manu's avatar
      2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org> · 1896de12
      manu authored
      	* gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
      	by warn_unused.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138903 138bc75d-0d04-0410-961f-82ee72b054a4
    • manu's avatar
      2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org> · 384590d4
      manu authored
      	PR c++/12242
      	* cvt.c (ocp_convert): Warn for out-of-range conversions to enum.
      	* g++.dg/warn/pr12242.C: New.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138898 138bc75d-0d04-0410-961f-82ee72b054a4
    • gccadmin's avatar
      Daily bump. · 30adc3bb
      gccadmin authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138896 138bc75d-0d04-0410-961f-82ee72b054a4
  2. 08 Aug, 2008 24 commits
    • manu's avatar
      2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org> · a52d5726
      manu authored
      	PR 36901
      	* diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.  
      	* diagnostic.c (pedantic_warning_kind, permissive_error_kind):
      	Moved from diagnostic.h
      	(diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
      	(emit_diagnostic): New.
      	(warning0, pedwarn0): Delete.
      	(warning, warning_at, pedwarn, permerror): Return bool.  
      	* diagnostic.h (pedantic_warning_kind, permissive_error_kind):
      	Moved to diagnostic.c.
      	(struct diagnostic_context): Use correct type for
      	(diagnostic_report_diagnostic): Update declaration.
      	(emit_diagnostic): Declare.
      	* errors.c (warning): Return bool.  
      	* errors.h (warning): Update declaration.
      	* toplev.h (warning0, pedwarn0): Delete.
      	(warning, warning_at, pedwarn, permerror): Return bool.
      	* c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
      	* c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
      	inform. Update all calls.
      	(diagnose_mismatched_decls): Check return value of warning/pedwarn
      	before giving informative note.
      	(implicit_decl_warning): Likewise.  
      	* c-typeck.c (build_function_call): Likewise.  
      	* tree-sssa.c (warn_uninit): Likewise.  
      	* builtins.c (gimplify_va_arg_expr): Likewise.
      	* f95-lang.c (gfc_mark_addressable): Use "pedwarn (0," instead of
      	* cp-tree.h (struct diagnostic_context, struct diagnostic_info):
      	Delete forward declarations. Check that toplev.h has not been
      	included before this file. Include toplev.h and diagnostic.h.
      	* error.c (cp_cpp_error): Use DK_PEDWARN.
      	(cxx_incomplete_type_diagnostic): Update declaration.
      	(cxx_incomplete_type_error): Use DK_ERROR.
      	* typeck2.c (cxx_incomplete_type_diagnostic): Take a diagnostic_t
      	as argument. Use emit_diagnostic.
      	(cxx_incomplete_type_error): Use DK_ERROR.
      	(add_exception_specifier): Use diagnostic_t instead of custom
      	* typeck.c (complete_type_or_else): Update call to
      	* init.c (build_delete): Likewise.  
      	* call.c (diagnostic_fn_t): Remove unused typedef.
      	(build_temp): Pass a pointer to diagnostic_t.
      	(convert_like_real): Use emit_diagnostic.
      	(joust): Check return value of warning before giving informative
      	* friend.c (do_friend): Check return value of warning
      	before giving informative note.
      	* parser.c (cp_parser_template_id): Likewise.
      	* gcc.dg/pr36901-1.c: New.
      	* gcc.dg/pr36901-3.c: New.
      	* gcc.dg/pr36901-2.c: New.
      	* gcc.dg/pr36901-4.c: New.
      	* gcc.dg/pr36901-system.h: New.
      	* gcc.dg/pr36901.h: New.
      	* gcc.target/powerpc/altivec-macros.c: Update.
      	* gcc.target/i386/regparm.c: Update.
      	* gcc.dg/funcdef-var-1.c: Update.
      	* gcc.dg/parm-mismatch-1.c: Update.
      	* gcc.dg/attr-noinline.c: Update.
      	* gcc.dg/wtr-static-1.c: Update.
      	* gcc.dg/redecl-11.c: Update.
      	* gcc.dg/pr27953.c: Update.
      	* gcc.dg/proto-1.c: Update.
      	* gcc.dg/decl-3.c: Update.
      	* gcc.dg/redecl-13.c: Update.
      	* gcc.dg/pr15360-1.c: Update.
      	* gcc.dg/redecl-15.c: Update.
      	* gcc.dg/enum-compat-1.c: Update.
      	* gcc.dg/dll-3.c: Update.
      	* gcc.dg/array-5.c: Update.
      	* gcc.dg/Wredundant-decls-2.c: Update.
      	* gcc.dg/inline4.c: Update.
      	* gcc.dg/redecl-2.c: Update.
      	* gcc.dg/inline-14.c: Update.
      	* gcc.dg/tls/diag-3.c: Update.
      	* gcc.dg/funcdef-var-2.c: Update.
      	* gcc.dg/20041213-1.c: Update.
      	* gcc.dg/old-style-then-proto-1.c: Update.
      	* gcc.dg/decl-2.c: Update.
      	* gcc.dg/redecl-12.c: Update.
      	* gcc.dg/decl-4.c: Update.
      	* gcc.dg/Wshadow-1.c: Update.
      	* gcc.dg/transparent-union-2.c: Update.
      	* gcc.dg/visibility-7.c: Update.
      	* gcc.dg/dll-2.c: Update.
      	* gcc.dg/redecl-16.c: Update.
      	* gcc.dg/inline1.c: Update.
      	* gcc.dg/decl-8.c: Update.
      	* gcc.dg/nested-redef-1.c: Update.
      	* gcc.dg/inline3.c: Update.
      	* gcc.dg/redecl-1.c: Update.
      	* gcc.dg/inline5.c: Update.
      	* gcc.dg/pr35899.c: Update.
      	* gcc.dg/noncompile/label-lineno-1.c: Update.
      	* gcc.dg/noncompile/label-1.c: Update.
      	* gcc.dg/noncompile/20020220-1.c: Update.
      	* gcc.dg/noncompile/redecl-1.c: Update.
      	* gcc.dg/redecl-5.c: Update.
      	* gcc.dg/qual-return-3.c: Update.
      	* gcc.dg/label-decl-4.c: Update.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138893 138bc75d-0d04-0410-961f-82ee72b054a4
    • manu's avatar
      2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org> · 6d8415df
      manu authored
      	PR 7651
      	* doc/invoke.texi (-Wextra): Move warning from here...
      	(-Wuninitialized): ... to here.
      	* class.c (check_bases_and_members): Warn with -Wuninitialized
      	instead of -Wextra.
      	* g++.dg/warn/Wuninitializable-member.C: New.
      	* g++.dg/warn/Wuninitializable-member-no.C: New.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138892 138bc75d-0d04-0410-961f-82ee72b054a4
    • pault's avatar
      2008-08-09 Paul Thomas <pault@gcc.gnu.org> · e485ad6b
      pault authored
      	PR fortran/37011
      	* symbol.c (gfc_add_extension): New function.
      	* decl.c (gfc_get_type_attr_spec): Call it.
      	(gfc_match_derived_decl): Set symbol extension attribute from
      	* gfortran.h : Add prototype for gfc_add_extension.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138891 138bc75d-0d04-0410-961f-82ee72b054a4
    • manu's avatar
      2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org> · 278e3a1f
      manu authored
      	PR 28875
      	* flags.h (set_Wunused): Delete
      	* toplev.c (process_options): Handle Wunused flags here.
      	* opts.c (maybe_warn_unused_parameter): Delete.
      	(common_handle_option): Replace set_Wunused by warn_unused.
      	(set_Wextra): Do not handle Wunused-parameter here.
      	(set_Wunused): Delete.
      	* c-opts.c (c_common_handle_option): Replace set_Wunused by
      	* common.opt (Wunused): Add Var and Init.
      	(Wunused-function): Likewise.
      	(Wunused-label): Likewise.
      	(Wunused-parameter): Likewise.
      	(Wunused-value): Likewise.
      	(Wunused-variable): Likewise.
      	* options.c (set_Wall): Replace set_Wunused by warn_unused.
      	* lang.c (java_handle_option): Replace set_Wunused with
      	* gcc.dg/unused-6-no.c: New.
      	* gcc.dg/unused-6-WallWextra.c: New.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138890 138bc75d-0d04-0410-961f-82ee72b054a4
    • manu's avatar
      Property changes on: libcpp · 4d41da0b
      manu authored
      Name: svn:ignore
         - autom4te.cache
         + TAGS
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138889 138bc75d-0d04-0410-961f-82ee72b054a4
    • pthaugen's avatar
      2008-08-08 Peter Bergner <bergner@vnet.ibm.com> · 94f7a54b
      pthaugen authored
              * doc/invoke.texi: Add cpu_type power7.
              * config.in (HAVE_AS_VSX): New.
              * config.gcc: Add cpu_type power7.
              * configure.ac (HAVE_AS_VSX): Check for assembler support of the
              VSX instructions.
              * configure: Regenerate.
              * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
              * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
              (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
              (EXTRA_SPECS): Add asm_cpu_power7 spec string.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138887 138bc75d-0d04-0410-961f-82ee72b054a4
    • reichelt's avatar
      PR c++/35985 · 60538280
      reichelt authored
      	* decl.c (xref_basetypes): Check base for MAYBE_CLASS_TYPE_P,
      	and make sure it is not a union.
      	* g++.dg/inherit/base3.C: New.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138886 138bc75d-0d04-0410-961f-82ee72b054a4
    • dorit's avatar
      2008-08-08 Dorit Nuzman <dorit@il.ibm.com> · 8e0587db
      dorit authored
              * tree-vect-transform.c (vectorizable_conversion): Pass the integral
              type to vectorize.builtin_conversion.
              (vectorizable_conversion): Likewise.
              * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
              integral type as input.
              * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
              (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
              and ALTIVEC_BUILTIN_VCTSXS.
              (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138885 138bc75d-0d04-0410-961f-82ee72b054a4
    • domob's avatar
      2008-08-08 Daniel Kraft <d@domob.eu> · e449e4dd
      domob authored
      	* gfortran.h (gfc_finalizer):  Replaced member `procedure' by two
      	new members `proc_sym' and `proc_tree' to store the symtree after
      	(gfc_find_sym_in_symtree):  Made public.
      	* decl.c (gfc_match_final_decl):  Adapted for new member name.
      	* interface.c (gfc_find_sym_in_symtree):  Made public.
      	(gfc_extend_expr), (gfc_extend_assign):  Changed call accordingly.
      	* module.c (mio_finalizer), (mio_f2k_derived), (mio_full_f2k_derived):
      	New methods for module-file IO of f2k_derived.
      	(mio_symbol):  Do IO of f2k_derived namespace.
      	* resolve.c (gfc_resolve_finalizers):  Adapted for new member name and
      	finding the symtree for the symbol here.
      	* symbol.c (gfc_free_finalizer):  Adapted for new members.
      2008-08-08  Daniel Kraft  <d@domob.eu>
      	* gfortran.dg/finalize_9.f03:  New test.
      	* gfortran.dg/module_md5_1.f90:  Adapted MD5-sum for changed module
      	file format.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138884 138bc75d-0d04-0410-961f-82ee72b054a4
    • rguenth's avatar
      2008-08-08 Richard Guenther <rguenther@suse.de> · f257af64
      rguenth authored
      	* tree-ssa-ccp.c (likely_value): Calls are not all varying.
      	(surely_varying_stmt_p): Calls are varying only if they are
      	non-builtin and not indirect or have no result.
      	(ccp_fold): Re-instantiate code before the tuples merge.
      	* gcc.dg/tree-ssa/ssa-ccp-20.c: New testcase.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138882 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Ed Schonberg <schonberg@adacore.com> · 1bd37fcf
      charlet authored
      	* freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
      	from Freeze_Entity. Used to generate cross-reference information for
      	types declared in generic packages.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138881 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Thomas Quinot <quinot@adacore.com> · e0749079
      charlet authored
      	* gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
      	compatibility shim.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138880 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Bob Duff <duff@adacore.com> · dc028b88
      charlet authored
      	* gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
      	checking for integer operations (including division by zero)", which
      	is wrong -- divide by zero is not part of overflow checking.
      	Also added misc clarification about what check-suppression means.
      	* gnat_rm.texi: Clarify the meaning of pragma Suppress.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138879 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Robert Dewar <dewar@adacore.com> · c5233e64
      charlet authored
      	* s-strxdr.adb: Minor reformatting
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138878 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Thomas Quinot <quinot@adacore.com> · e5772b53
      charlet authored
      	* g-soccon.ads: New file.
      	* g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
      	g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
      	g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
      	g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
      	unit, to allow building software that depends on this internal unit
      	with both older and newer compilers.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138877 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Thomas Quinot <quinot@adacore.com> · 9b48614b
      charlet authored
      	* s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138876 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Thomas Quinot <quinot@adacore.com> · a4514e05
      charlet authored
      	* s-osinte-freebsd.ads: Minor reformatting
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138875 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Thomas Quinot <quinot@adacore.com> · dce6640d
      charlet authored
      	* gsocket.h:
      	On Windows, include <errno.h> and redefine only selected errno values
      	from their <winsock2.h> definitions.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138874 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Thomas Quinot <quinot@adacore.com> · a2c03710
      charlet authored
      	* g-sercom.ads:
      	(Name): Document application scope (only legacy PC serial ports on
      	Linux and Windows).
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138873 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-06 Thomas Quinot <quinot@adacore.com> · 55947387
      charlet authored
      	* Makefile.in: generate s-oscons.ads again, previous change was
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138872 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Thomas Quinot <quinot@adacore.com> · db3b8d9f
      charlet authored
      	* gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
      	previous change, not needed after all.
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138871 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Ed Schonberg <schonberg@adacore.com> · 9cba1736
      charlet authored
      	* exp_ch4.adb (Expand_Allocator_Expression): add check if null
      	exclusion indicator is present
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138870 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Robert Dewar <dewar@adacore.com> · 9bbb9597
      charlet authored
      	* sem_attr.adb: Minor code reorganization (use Nkind_In)
      	Minor reformatting
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138869 138bc75d-0d04-0410-961f-82ee72b054a4
    • charlet's avatar
      2008-08-08 Robert Dewar <dewar@adacore.com> · 3cb2213b
      charlet authored
      	* s-fileio.adb: Minor reformatting
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138868 138bc75d-0d04-0410-961f-82ee72b054a4