1. 16 Dec, 2005 31 commits
    • re PR objc/25360 (Complex types are not encoded) · 06b11455
      2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR objc/25360
              * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed
              by the inner type.
      
      2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR objc/25360
              * objc/objc-api.c (_C_COMPLEX): New define.
              * encoding.c (objc_sizeof_type): Handle _C_Complex.
              (objc_alignof_type): Likewise.
              (objc_skip_typespec): Likewise.
      
      From-SVN: r108675
      Andrew Pinski committed
    • re PR fortran/25264 (write to internal unit from the string itself gives wrong result ?) · 184210e8
      2005-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/25264
      	PR libgfortran/25349
      	* gfortran.dg/tl_editing.f90: Added additional checks.
      	* gfortran.dg/t_editing.f: New test.
      	* gfortran.dg/write_padding.f90: New test
      
      From-SVN: r108673
      Jerry DeLisle committed
    • re PR middle-end/25457 (reorg.c:966: warning: unused variable 'insn') · 5535b63f
      	PR middle-end/25457
      	* reorg.c (mostly_true_jump): Remove unused variable 'insn'.
      
      From-SVN: r108672
      John David Anglin committed
    • re PR fortran/25264 (write to internal unit from the string itself gives wrong result ?) · 494ef4c2
      2005-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/25264
      	PR libgfortran/25349
      	* io/unit.c (get_unit): Delete code that cleared the string when the
      	unit was opened, which is too soon.
      	* io/transfer.c (next_record_w): Pass done flag in.  Change logic for
      	setting max_pos.  Add code to position unit and pad record as needed.
      
      From-SVN: r108671
      Jerry DeLisle committed
    • re PR testsuite/25215 (-fpic/-fPIC failure in gcc.dg/20050503-1.c) · 282b7663
      	PR testsuite/25215
      	* gcc.dg/20050503-1.c: Skip on x86 ilp32 with -fpic/-fPIC.
      
      From-SVN: r108668
      Kaveh R. Ghazi committed
    • re PR target/25447 (<built-in>:0: ICE: in pa_scalar_mode_supported_p, at config/pa/pa.c:5932) · 70c1d012
      	PR target/25447
      	* config/pa/pa.c (pa_scalar_mode_supported_p): Handle
      	MODE_DECIMAL_FLOAT.
      
      From-SVN: r108665
      John David Anglin committed
    • jcf-parse.c (set_source_filename): Set the decl source location even when returning early. · 2eefc773
      * jcf-parse.c (set_source_filename): Set the decl source location
      even when returning early.
      
      From-SVN: r108662
      Alexandre Oliva committed
    • * testsuite/libjava.jacks/jacks.xfail · cb178395
      	(8.5.2-accessible-static-member-usage-3): Removed.
      
      From-SVN: r108656
      Tom Tromey committed
    • loop-invariant.c (move_loop_invariants): Add missing hunk from the previous patch, to nullify df. · d7712dda
              * loop-invariant.c (move_loop_invariants): Add missing hunk from
              the previous patch, to nullify df.
      
      From-SVN: r108655
      Steven Bosscher committed
    • reorg.c (mostly_true_jump): Clean up code depending on LABEL_OUTSIDE_LOOP_P and loop notes. · 52ba2f6d
      	* reorg.c (mostly_true_jump): Clean up code depending on
      	LABEL_OUTSIDE_LOOP_P and loop notes.  Remove code doing
      	poor man's branch prediction, instead rely on REG_BR_PROB
      	notes to be available.
      
      From-SVN: r108653
      Steven Bosscher committed
    • ChangeLog: Fix missing file names. · 5adb25cf
      2005-12-16  Richard Guenther  <rguenther@suse.de>
      
              * ChangeLog: Fix missing file names.
      
      From-SVN: r108652
      Richard Biener committed
    • re PR rtl-optimization/24899 (loop.c miscompiles libgnomecanvas) · a1615718
      	PR rtl-optimization/24899
      	* loop.c (strength_reduce): Don't reduce giv that is not always
      	computable and where add_val or mult_val can trap.
      
      	* gcc.c-torture/execute/20051215-1.c: New test.
      
      From-SVN: r108642
      Jakub Jelinek committed
    • mt.h (LIB_SPEC, [...]): Correct names of ms1-16-002 files. · c047d4fc
      	* config/mt/mt.h (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Correct
      	names of ms1-16-002 files.
      
      From-SVN: r108638
      Nathan Sidwell committed
    • configure.in: Replace ms1 with mt. · ab34901f
      	* configure.in: Replace ms1 with mt.
      	* configure: Rebuilt.
      
      From-SVN: r108637
      Nathan Sidwell committed
    • Checkin missing parts of my 2005-12-12 patch · a3fafcb0
      From-SVN: r108636
      Nathan Sidwell committed
    • re PR driver/20425 (-print-search-dirs doesn't honor mutil-os/multilib settings) · 00dcee0c
      	PR driver/20425
      	* gcc.c (for_each_path): New function.
      	(add_to_obstack, file_at_path): New functions.
      	(struct file_at_path_info, struct add_to_obstack_info): New.
      	(build_search_list): Rewrite using for_each_path.  Constify struct
      	path_prefix pointer.  Add do_multi param.  Adjust all callers.
      	(find_a_file): Similarly, but just change existing param to bool.
      	(putenv_from_prefixes): Add do_multi param, make "paths" const.
      	(do_spec_path): Delete.
      	(struct spec_path_info): New.
      	(spec_path): New function.
      	(do_spec_1): Use for_each_path for %D and %I.
      	(find_file): Adjust for find_a_file changes.
      	(main): Search multilibs for specs.  Print multilib lib path for
      	-print-search-dirs.  Likewise add multilibs to LIBRARY_PATH_ENV.
      	(read_specs): Search multilibs for %include and %include_noerr.
      	(is_directory): Remove second string param.  Change last param
      	to a bool.  Don't use concat.  Remove SMALL_ARG_MAX test, always
      	check path is a dir.  Update all callers.
      	* doc/hostconfig.texi (SMALL_ARG_MAX): Remove mention.
      	* system.h (SMALL_ARG_MAX): Poison.
      	* config.gcc: Don't define SMALL_ARG_MAX.
      	* config.host: Likewise.
      	* config.build: Likewise.
      
      From-SVN: r108635
      Alan Modra committed
    • combine.c (combine_simplify_rtx <case NOT, [...]): Move simplifications that do… · bd1ef757
      combine.c (combine_simplify_rtx <case NOT, [...]): Move simplifications that do not require additional infrastructure...
      
      2005-12-16  Paolo Bonzini  <bonzini@gnu.org>
      
      	* combine.c (combine_simplify_rtx <case NOT, NEG, TRUNCATE,
      	FLOAT_TRUNCATE, FLOAT_EXTEND, PLUS, MINUS, AND, IOR, XOR,
      	ABS, VEC_SELECT, POPCOUNT, PARITY, FFS, FLOAT>,
      	simplify_logical): Move simplifications that do not require
      	additional infrastructure...
      	* simplify-rtx.c (simplify_unary_operation_1,
      	simplify_binary_operation_1): ... here.
      
      From-SVN: r108634
      Paolo Bonzini committed
    • (gfc_conv_descriptor_data_addr): Use build_fold_addr_expr where appropriate. · 488ce07b
      2005-12-16  Richard Guenther  <rguenther@suse.de>
      
      	(gfc_conv_descriptor_data_addr): Use build_fold_addr_expr where
      	appropriate.
      	(gfc_trans_allocate_array_storage): Likewise.
      	(gfc_trans_array_constructor_value): Likewise.
      	(gfc_conv_array_data): Likewise.
      	(gfc_conv_expr_descriptor): Likewise.
      	(gfc_conv_array_parameter): Likewise.
      	(gfc_conv_variable): Likewise.
      	(gfc_conv_function_val): Likewise.
      	(gfc_conv_function_call): Likewise.
      	(gfc_conv_expr_reference): Likewise.
      	(gfc_conv_intrinsic_ctime): Likewise.
      	(gfc_conv_intrinsic_fdate): Likewise.
      	(gfc_conv_intrinsic_ttynam): Likewise.
      	(gfc_conv_intrinsic_si_kind): Likewise.
      	(gfc_conv_intrinsic_trim): Likewise.
      	(set_parameter_ref): Likewise.
      	(gfc_convert_array_to_string): Likewise.
      	(gfc_trans_open): Likewise.
      	(gfc_trans_close): Likewise.
      	(build_filepos): Likewise.
      	(gfc_trans_inquire): Likewise.
      	(nml_get_addr_expr): Likewise.
      	(transfer_namelist_element): Likewise.
      	(build_dt): Likewise.
      	(gfc_trans_dt_end): Likewise.
      	(transfer_array_component): Likewise.
      	(transfer_expr): Likewise.
      	(transfer_array_desc): Likewise.
      	(gfc_trans_transfer): Likewise.
      	(gfc_trans_allocate): Likewise.
      	(gfc_trans_deallocate): Likewise.
      
      From-SVN: r108633
      Richard Guenther committed
    • re PR rtl-optimization/24823 (ICE in insert_save, at caller-save.c:719) · 52c6b0b7
      2005-12-16  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	PR 24823
      	* flow.c (mark_used_dest_regs): New function.
      	(mark_used_regs): Call mark_used_dest_regs.
      
      2005-12-16  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	PR 24823
      	* gfortran.dg/pr24823.f: New test.
      
      From-SVN: r108632
      Andreas Krebbel committed
    • tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which represent a… · 7d48c9e2
      tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which represent a use and definition of the same...
      
      
      	* tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which
      	represent a use and definition of the same SSA_NAME.
      
      	* gcc.dg/tree-ssa/ssa-dse-8.c: New test.
      
      From-SVN: r108630
      Jeff Law committed
    • target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): New. · 9a8ce21f
      2005-12-16  Jon Grimm  <jgrimm2@us.ibm.com>
      	    Janis Johnson  <janis187@us.ibm.com>
      	    Ben Elliston  <bje@au.ibm.com>
      
      	* target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): New.
      	(TARGET_INITIALIZER): Add TARGET_DECIMAL_FLOAT_P.
      	* target.h (struct gcc_target): Add decimal_float_supported_p.
      	* targhooks.c (default_scalar_mode_supported_p): Handle
      	MODE_DECIMAL_FLOAT.
      	* builtins.def: Add new builtins for 32, 64 and 128 bit variants
      	of inf, nan, finite, isinf and isnan.
      	* builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128,
      	BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR,
      	BT_FN_DFLOAT32, BT_FN_DFLOAT64, BT_FN_DFLOAT128,
      	BT_FN_INT_DFLOAT32, BT_FN_INT_DFLOAT64, BT_FN_INT_DFLOAT128,
      	BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT64_CONST_STRING,
      	BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT32_DFLOAT32,
      	BT_FN_DFLOAT64_DFLOAT64, BT_FN_DFLOAT128_DFLOAT128): New.
      	* c-decl.c (declspecs_add_type): Verify combos on type qualifiers.
      	Pedwarn if decimal floating point types are used.  Error if
      	decimal floating point is not supported by the target.
      	(finish_declspecs): Return type from DFP typespec_word.
      	* c-typeck.c (c_common_type): Choose the decimal floating point
      	type with the greater precision when determining a common type.
      	(convert_arguments): Warn if there is a mismatch between argument
      	and prototype for decimal float types.  Warn of conversions with
      	binary float types and of precision narrowing due to prototype.
      	* c-parser.c (reswords): Add _Decimal32, _Decimal64, _Decimal128.
      	(c_token_starts_typename): Handle RID_DFLOAT32/64/128.
      	(c_token_starts_declspecs): Likewise.
      	(c_parser_attributes): Likewise.
      	* c-common.h (enum rid): Add new enumeration values RID_DFLOAT32,
      	RID_DFLOAT64, RID_DFLOAT128.
      	(T_D32, TEX_D32, T_D64, TEX_D64, T_D128, TEX_D128): New macros.
      	* c-common.c (c_common_type_for_mode): Handle decimal float modes.
      	(shorten_compare): Convert DFP/BFP operands to a common type.
      	(c_common_modes_and_builtins): Register built-in decimal float
      	types if the target supports them.
      	(handle_mode_addtribute): Handle MODE_DECIMAL_FLOAT.
      	* builtins.c (fold_builtin_1): Handle 32, 64 and 128 bit cases of
      	inf, nan, finite, isinf and isnan builtins.
      	* c-cppbuiltin.c (builtin_define_decimal_float_constants): New.
      	(builtin_define_float_constants): Assert non-decimal radix.
      	(c_cpp_builtins): Register built-in __DEC_EVAL_METHOD__ define.
      	Call builtin_define_decimal_float_constants for each type.
      	* c-lex.c (interpret_float): Decode decimal float types from CPP_N
      	flags.  Use real_from_string3, which can handle binary or decimal
      	floats.
      	* c-tree.h (enum c_typespec_keyword): Add cts_dfloat32,
      	cts_dfloat64, cts_dfloat128.
      	* tree.c (build_common_tree_nodes_2): Add decimal float types.
      	* tree.h (enum tree_index): Add new enumeration values
      	TI_DFLOAT32_TYPE, TI_DFLOAT64_TYPE, TI_DFLOAT128_TYPE,
      	TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, TI_DFLOAT128_PTR_TYPE.
      	(dfloat32_type_node): New macro.
      	(dfloat64_type_node, dfloat128_type_node): Likewise.
      	(dfloat32_ptr_type_node, dfloat64_ptr_type_node): Likewise.
      	(dfloat128_ptr_type_node): Likewise.
      	* c-pretty-print.c (pp_c_floating_constant): Append 32, 64 and 128
      	bit decimal floating point types with "df", "dd" and "dl".
      	* c-format.h (enum format_lengths): Add new enumeration values
      	FMT_LEN_H, FMT_LEN_D and FMT_LEN_DD.
      	* c-format.c (printf_length_specs, scanf_length_specs): Add
      	entries for H, D, DD.
      	(print_char_table, scan_char_table): Use new entries.
      	(asm_fprintf_char_table, gcc_diag_char_table,
      	gcc_cdiag_char_table, gcc_cxxdiag_char_table): Adjust for longer
      	length arrays.
      	* defaults.h (DECIMAL32_TYPE_SIZE): Define.
      	(DECIMAL64_TYPE_SIZE): Likewise.
      	(DECIMAL128_TYPE_SIZE): Likewise.
      	(TARGET_DEC_EVAL_METHOD): Likewise.
      	* doc/extend.texi (Decimal Float): New node.
      	(Constructing Calls): Document decimal float built-ins.
      	* doc/tm.texi: Document TARGET_DECIMAL_FLOAT_SUPPORTED_P hook.
      	* Makefile.in (USER_H): Add $(srcdir)/ginclude/decfloat.h.
      	* ginclude/decfloat.h: New file.
      
      Co-Authored-By: Ben Elliston <bje@au.ibm.com>
      Co-Authored-By: Janis Johnson <janis187@us.ibm.com>
      
      From-SVN: r108629
      Jon Grimm committed
    • reload.c (find_reloads): Fix comment typo. · 425de739
      	* reload.c (find_reloads): Fix comment typo.
      	* recog.h (recog_memoized): Correct comment.
      
      From-SVN: r108627
      Alan Modra committed
    • basic-block.h, [...]: Fix comment typos. · 6416ae7f
      	* basic-block.h, config/i386/winnt.c, config/pa/pa.c,
      	config/s390/s390.c, dfp.c, expr.c, fold-const.c, params.def,
      	reload.c, struct-equiv.c, tree-ssa-ccp.c, tree-ssa-pre.c,
      	tree-ssa-reassoc.c, tree-ssa-structalias.c: Fix comment typos.
      	* doc/invoke.texi, doc/tm.texi: Fix typos.
      
      From-SVN: r108626
      Kazu Hirata committed
    • * parser.c, pt.c: Fix comment typos. · bcf51da2
      From-SVN: r108625
      Kazu Hirata committed
    • dependency.c, [...]: Fix comment typos. · 8a6c4339
      	* dependency.c, resolve.c, trans-array.c: Fix comment typos.
      	* gfortran.texi: Fix typos.
      
      From-SVN: r108624
      Kazu Hirata committed
    • struct-layout-encoding-1_generate.c (base_types): Change C++ style comments to C style comments. · a0754007
      2005-12-16  Andrew Pinski  <pinskia@physics.uc.edu>
      
              * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c (base_types):
              Change C++ style comments to C style comments.
              Remove aligned types from the array.
              Keep Enums disabled.
              (complex_types): Remove aligned types from the array.
              Comment out "_Complex long double".
              (attrib_types): Remove.
              (complex_attrib_types): Remove.
              (attrib_array_types): Remove.
              (complex_attrib_array_types): Remove.
              (aligned_bitfld_types): Remove.
              (n_aligned_bitfld_types): Remove.
              (FEATURE_ALIGNEDPACKED): Delete.
              (ALL_FEATURES): Remove FEATURE_ALIGNEDPACKED.
              (singles): Remove support for adding attributes.
              (choose_type): Remove support for attributed types.
              (generate_fields): Remove support for attributed bit-fields.
              Remove support for adding attributes.
              (generate_random_tests): Remove support for adding attributes.
              (features): Add back "[0] :0" and "complex vector [0]".
              (main): Remove support for attributed bit-fields.
              Uncomment the calling of generate_random_tests for the rests of
              the tests.
      
      From-SVN: r108623
      Andrew Pinski committed
    • predicates.md (m32c_psi_scale): New. · 12ea2512
      * config/m32c/predicates.md (m32c_psi_scale): New.
      * config/m32c/m32c.c (m32c_expand_neg_mulpsi3): New.
      * config/m32c/muldiv.md (mulpsi3): Support negative constants.
      
      From-SVN: r108620
      DJ Delorie committed
    • Daily bump. · 6cb8c059
      From-SVN: r108614
      GCC Administrator committed
    • re PR java/25429 (can't see private static final int CREATE = 1) · 86bcd3a2
      gcc/java:
      	PR java/25429
      	* parse.y (resolve_expression_name): Don't generate accessor
      	methods for constant fields.
      libjava:
      	* testsuite/libjava.compile/rh175833.java: New file.
      	* testsuite/libjava.compile/pr25429.java: New file.
      
      Co-Authored-By: Andrew Haley <aph@redhat.com>
      
      From-SVN: r108608
      Tom Tromey committed
  2. 15 Dec, 2005 9 commits