1. 29 May, 2008 20 commits
  2. 28 May, 2008 20 commits
    • value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC for printing gcov_type. · 68bb68ca
      2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
      	
      	* value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
      	for printing gcov_type.
      
      From-SVN: r136131
      Seongbae Park committed
    • re PR fortran/36325 (specific or generic INTERFACE implies the EXTERNAL attribute) · e6895430
      2008-05-28  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/36325
      	PR fortran/35830
      	* interface.c (gfc_procedure_use): Enable argument checking for
      	external procedures with explicit interface.
      	* symbol.c (check_conflict): Fix conflict checking for externals.
      	(copy_formal_args): Fix handling of arrays.
      	* resolve.c (resolve_specific_f0, resolve_specific_s0): Fix handling
      	of intrinsics.
      	* parse.c (parse_interface): Non-abstract INTERFACE statement implies
      	EXTERNAL attribute.
      
      
      2008-05-28  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/36325
      	PR fortran/35830
      	* gfortran.dg/interface_23.f90: New.
      	* gfortran.dg/gomp/reduction3.f90: Fixed invalid code.
      	* gfortran.dg/proc_decl_12.f90: New:
      	* gfortran.dg/external_procedures_1.f90: Fixed error message.
      
      From-SVN: r136130
      Janus Weil committed
    • re PR fortran/36319 (Segfault with wide characters in DATA) · 691da334
      	PR fortran/36319
      
      	* intrinsic.c (gfc_convert_chartype): Don't mark conversion
      	function as pure.
      	* trans-array.c (gfc_trans_array_ctor_element): Divide element
      	size by the size of one character to obtain length.
      	* iresolve.c (gfc_resolve_cshift): Call the _char4 variant when
      	appropriate.
      	(gfc_resolve_eoshift): Likewise.
      	* trans-intrinsic.c (gfc_conv_intrinsic_ctime): Minor beautification.
      	(gfc_conv_intrinsic_fdate): Minor beautification.
      	(gfc_conv_intrinsic_ttynam): Minor beautification.
      	(gfc_conv_intrinsic_minmax_char): Allow all character kinds.
      	(size_of_string_in_bytes): New function.
      	(gfc_conv_intrinsic_size): Call size_of_string_in_bytes for
      	character expressions.
      	(gfc_conv_intrinsic_sizeof): Likewise.
      	(gfc_conv_intrinsic_array_transfer): Likewise.
      	(gfc_conv_intrinsic_trim): Allow all character kinds. Minor
      	beautification.
      	(gfc_conv_intrinsic_repeat): Fix comment typo.
      	* simplify.c (gfc_convert_char_constant): Take care of conversion
      	of array constructors.
      
      	* intrinsics/string_intrinsics_inc.c (string_index): Return
      	correct value for zero-length substring.
      	* intrinsics/cshift0.c: Add _char4 variant.
      	* intrinsics/eoshift0.c (eoshift0): Allow filler to be a pattern
      	wider than a single byte. Add _char4 variant and use above
      	functionality.
      	* intrinsics/eoshift2.c (eoshift2): Likewise.
      	* m4/eoshift1.m4: Likewise.
      	* m4/eoshift3.m4: Likewise.
      	* m4/cshift1.m4: Add _char4 variants.
      	* gfortran.map (GFORTRAN_1.1): Add _gfortran_cshift0_1_char4,
      	_gfortran_cshift0_2_char4, _gfortran_cshift0_4_char4,
      	_gfortran_cshift0_8_char4, _gfortran_cshift1_16_char4,
      	_gfortran_cshift1_4_char4, _gfortran_cshift1_8_char4,
      	_gfortran_eoshift0_1_char4, _gfortran_eoshift0_2_char4,
      	_gfortran_eoshift0_4_char4, _gfortran_eoshift0_8_char4,
      	_gfortran_eoshift1_16_char4, _gfortran_eoshift1_4_char4,
      	_gfortran_eoshift1_8_char4, _gfortran_eoshift2_1_char4,
      	_gfortran_eoshift2_2_char4, _gfortran_eoshift2_4_char4,
      	_gfortran_eoshift2_8_char4, _gfortran_eoshift3_16_char4,
      	_gfortran_eoshift3_4_char4 and _gfortran_eoshift3_8_char4.
      	* generated/eoshift3_4.c: Regenerate.
      	* generated/eoshift1_8.c: Regenerate.
      	* generated/eoshift1_16.c: Regenerate.
      	* generated/cshift1_4.c: Regenerate.
      	* generated/eoshift1_4.c: Regenerate.
      	* generated/eoshift3_8.c: Regenerate.
      	* generated/eoshift3_16.c: Regenerate.
      	* generated/cshift1_8.c: Regenerate.
      	* generated/cshift1_16.c: Regenerate.
      
      	* gfortran.dg/widechar_5.f90: New file.
      	* gfortran.dg/widechar_6.f90: New file.
      	* gfortran.dg/widechar_7.f90: New file.
      	* gfortran.dg/widechar_intrinsics_5.f90: Uncomment the lines
      	testing the SPREAD intrinsic.
      	* gfortran.dg/widechar_intrinsics_6.f90: New file.
      	* gfortran.dg/widechar_intrinsics_7.f90: New file.
      	* gfortran.dg/widechar_intrinsics_8.f90: New file.
      	* gfortran.dg/widechar_intrinsics_9.f90: New file.
      	* gfortran.dg/widechar_intrinsics_10.f90: New file.
      
      From-SVN: r136129
      Francois-Xavier Coudert committed
    • tree-ssa-propagate.c (set_rhs): Preserve the histogram and the eh region information. · b608a1bc
      2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
      
      	* tree-ssa-propagate.c (set_rhs): Preserve the histogram
      	and the eh region information.
      	* value-prof.c (gimple_move_stmt_histograms): New function.
      	* value-prof.h (gimple_move_stmt_histograms): New function declaration.
      
      From-SVN: r136124
      Seongbae Park committed
    • pa.md: Remove extern frame_pointer_needed declaration. · 77da4248
      2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
      
      	* config/pa/pa.md: Remove extern frame_pointer_needed declaration.
      
      From-SVN: r136121
      Andreas Tobler committed
    • value-prof.c (tree_ic_transform): Print counts. · 3dfb6f59
      gcc/ChangeLog:
      2008-05-28  Seongbae Park <seongbae.park@gmail.com>
      
      	* value-prof.c (tree_ic_transform): Print counts.
      	* tree-profile.c (tree_gen_ic_func_profiler):
      	Clear __gcov_indreict_call_callee variable
      	to avoid misattribution of the profile.
      
      gcc/testsuite/ChangeLog:
      2008-05-28  Seongbae Park <seongbae.park@gmail.com>
      
      	* gcc.dg/tree-prof/ic-misattribution-1.c: New test.
      	* gcc.dg/tree-prof/ic-misattribution-1a.c: New test.
      	* lib/profopt.exp (profopt-get-options): Support
      	dg-additional-sources.
      	(profopt-execute): Handle additional sources.
      
      From-SVN: r136118
      Seongbae Park committed
    • see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid invalid sharing. · 5a976da0
      2008-05-28  Rafael Espindola  <espindola@google.com>
      
      	* see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
      	invalid sharing.
      
      2008-05-28  Rafael Espindola  <espindola@google.com>
      
      	* gcc.dg/20080528-1.c: New test.
      
      From-SVN: r136115
      Rafael Avila de Espindola committed
    • Resync. · acca98c0
      From-SVN: r136114
      Arnaud Charlet committed
    • sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram type has a… · c147ac26
      sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram type has a deeper level than any master only...
      
      2008-05-28  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
      	type has a deeper level than any master only when it is the type of an
      	access parameter.
      
      From-SVN: r136113
      Ed Schonberg committed
    • sinput-p.adb (Source_File_Is_Subunit): Allow special character used for preprocessing · 2b672e35
      2008-05-28  Vincent Celier  <celier@adacore.com>
      
      	* sinput-p.adb (Source_File_Is_Subunit): Allow special character used
      	for preprocessing
      	
      	* sinput-p.ads: Minor comment update and reformatting
      
      From-SVN: r136112
      Vincent Celier committed
    • re PR ada/34446 (gnatprep evaluating "not" operator at incorrect precidence) · 3fdd06e1
      2008-05-28  Vincent Celier  <celier@adacore.com>
      
      	PR ada/34446
      	* gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
      	preprocessing expressions
      
      From-SVN: r136111
      Vincent Celier committed
    • system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False. · c79f3417
      2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
      	* system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
      
      From-SVN: r136110
      Eric Botcazou committed
    • sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous access type... · 33477fb7
      2008-05-28  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
      	access type, wrap the expression in a conversion to force an
      	accessibility check.
      
      	* sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
      	accessibility checks even when expansion is disabled in order to
      	generate messages in the presence of previous errors or in
      	semantics-only mode.
      
      From-SVN: r136108
      Ed Schonberg committed
    • Resync. · 8250171b
      From-SVN: r136107
      Arnaud Charlet committed
    • sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set Entity… · bf8b6bfc
      sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
      
      2008-05-28  Sergey Rybin  <rybin@adacore.com>
      
      	* sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
      	Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
      
      From-SVN: r136106
      Sergey Rybin committed
    • sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed. · 8aa15e3b
      2008-05-28  Javier Miranda  <miranda@adacore.com>
      
      	* sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
      	* sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
      	* sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
      	Add code that was previously located in
      	Find_Overridden_Synchronized_Primitive because it is only used here.
      
      From-SVN: r136105
      Javier Miranda committed
    • sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation. · 9800ef59
      2008-05-28  Javier Miranda  <miranda@adacore.com>
      
      	* sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
      
      From-SVN: r136104
      Javier Miranda committed
    • re PR libgcj/35020 (Class.getSimpleName() differs from Sun Java) · 71292a05
      2008-05-28  Andrew Haley  <aph@redhat.com>
      
      	* java/lang/Class.java (getSimpleName): Use getEnclosingClass().	
      	* testsuite/libjava.lang/PR35020.java: New cases.
      	* testsuite/libjava.lang/PR35020.out: New cases.
      
      From-SVN: r136103
      Andrew Haley committed
    • re PR tree-optimization/36339 (not call clobbering variable for non common offset) · 38154e4f
      2008-05-28  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/36339
      	* tree-ssa-alias.c (set_initial_properties): Move pt_anything
      	and clobbering code out of the loop.
      
      From-SVN: r136100
      Richard Guenther committed
    • constraints.md ('b', [...]): New constraint letters defined. · 963fc8d0
      2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
      	letters defined.
      
      	* config/s390/s390.c (s390_compare_and_branch_condition_mask,
      	s390_contiguous_bitmask_p, s390_symref_operand_p,
      	s390_check_symref_alignment, s390_reload_larl_operand,
      	s390_reload_symref_address): New functions.
      	(s390_branch_condition_mnemonic): Support compare and branch
      	instructions.
      	(s390_mem_constraint): Avoid symrefs to accepted by the 'T'
      	and 'W' constraints.
      	(s390_secondary_reload): Add secondary reloads for unaligned
      	symbol refs or symbol refs to floating point or QI/TI mode
      	integer values.
      	(legitimate_address_p): Accept symbol references as addresses.
      	(s390_expand_insv): Use rotate and insert selected bits
      	instruction for insv when building for z10.
      	(print_operand_address): Handle symbol ref addresses.
      	(print_operand): Output modifier 'c' added for signed byte
      	values.
      	(s390_encode_section_info): Mark symbol refs with
      	SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
      
      	* config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
      	(length attribute): RRF, RRR have 4 byte length.
      	(FPALL, INTALL): New mode iterators added.
      	(*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
      	*cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
      	*movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
      	*extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
      	*zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
      	*add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
      	*add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
      	*mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
      	instructions.
      	(*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
      	*cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
      	*cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
      	reload<INTALL:mode><P:mode>_toreg_z10,
      	reload<FPALL:mode><P:mode>_tomem_z10,
      	reload<FPALL:mode><P:mode>_toreg_z10,
      	reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
      	*insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
      	*zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
      	*cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
      	definition.
      	(movmem, clrmem, cmpmem): New splitters added.
      
      	* config/s390/predicates.md (larl_operand): Use
      	SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
      	SYMBOL_REF_ALIGN1_P.
      	(s390_signed_integer_comparison,
      	s390_unsigned_integer_comparison): New predicates.
      
      	* config/s390/s390-protos.h (s390_check_symref_alignment,
      	s390_contiguous_bitmask_p, s390_reload_larl_operand,
      	s390_reload_symref_address,
      	s390_compare_and_branch_condition_mask): Prototypes added.
      
      	* config/s390/s390.h (TARGET_MEM_CONSTRAINT,
      	SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
      	SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
      
      From-SVN: r136098
      Andreas Krebbel committed