1. 26 Jul, 1999 19 commits
    • Implement new macro: ASM_FPRINTF_EXTENSIONS · fe0503ea
      From-SVN: r28263
      Nick Clifton committed
    • cp-tree.h (CP_INTEGRAL_TYPE_P): New macro. · a7a64a77
      	* cp-tree.h (CP_INTEGRAL_TYPE_P): New macro.
      	(ARITHMETIC_TYPE_P): Adjust definition for standard conformance.
      	(strip_top_quals): Declare.
      	(ncp_convert): Likewise.
      	(type_after_usual_arithmetic_converions): Likewise.
      	(composite_pointer_type): Likewise.
      	* call.c (strip_top_quals): Don't make it static.
      	(promoted_arithmetic_type_p): New function.
      	(conditional_conversion): Likewise.
      	(null_ptr_cst_p): Allow `false' as a NULL pointer constant.
      	(standard_conversion): Use same_type_p.  Don't build BASE_CONVs
      	for converting a type to itself.
      	(reference_binding): Honor LOOKUP_NO_TEMP_BIND.
      	(implicit_conversion): Make sure the from and to types are
      	complete.
      	(add_builtin_candidate): Correct handling of ?: operator.
      	(add_builtin_candidates): Improve documentation.
      	(build_conditional_expr): New function.
      	(can_convert): Implement in terms of can_convert_arg.
      	(ncp_convert): New function.
      	* typeck.c (type_after_usual_arithmetic_conversions): New
      	function, split out from common_type.
      	(composite_pointer_type): New function, split out from
      	build_conditional_expr.
      	(common_type): Use type_after_usual_arithmetic_conversions.
      	Remove redundant attribute merging.
      	(comptypes): Tidy.  Handle COMPLEX_TYPE.
      	(build_binary_op_nodefault): Use null_ptr_cst_p.
      	(build_conditional_expr): Remove.
      	(convert_for_assignment): Use new conversion functions.
      
      	* cp-tree.h (abstract_virtuals_error): Change declaration.
      	* typeck2.c (abstract_virtuals_error): Check to see if an error
      	ocurred, and return a boolean value accordingly.
      	(build_functional_cast): Adjust accordingly.
      	* class.c (finish_struct_1): Likewise.
      	* cvt.c (ocp_convert): Likewise.
      	* decl.c (cp_finish_decl): Likewise.
      	(grokparams): Likewise.
      	(grok_op_properties): Likewise.
      	(start_function): Likewise.
      	* init.c (build_new_1): Likewise.
      
      	* pt.c (unify): Don't get confused by pointers-to-member functions.
      
      	* search.c (build_cplus_new): Robustify.
      
      From-SVN: r28262
      Mark Mitchell committed
    • Daily bump. · 5cabd6f5
      From-SVN: r28261
      Jeff Law committed
    • i860.h (EXPAND_BUILTIN_SAVEREGS): New. · 0174469a
              * i860.h (EXPAND_BUILTIN_SAVEREGS): New.
              (BUILD_VA_LIST_TYPE): New.
              (EXPAND_BUILTIN_VA_START): New.
              (EXPAND_BUILTIN_VA_ARG): New.
              * i860.c (output_delayed_branch): Disable.
              (output_delay_insn): Likewise.
              (i860_saveregs): New.
              (i860_build_va_list): New.
              (i860_va_start): New.
              (i860_va_arg): New.
              * i860.md: Disable all peepholes using output_delayed_branch.
              * i860/sysv4.h (I860_SVR4_VA_LIST): New.
      
      From-SVN: r28259
      Richard Henderson committed
    • Update copyright. · eb11a473
      From-SVN: r28258
      Richard Henderson committed
    • clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument. · bffe09ec
              * clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument.
              (BUILD_VA_LIST_TYPE): New.
              (EXPAND_BUILTIN_VA_START): New.
              (EXPAND_BUILTIN_VA_ARG): New.
              * clipper.c (clipper_builtin_saveregs): Only dump registers.
              Return the address of the save area.
              (clipper_build_va_list): New.
              (clipper_va_start): New.
              (clipper_va_arg): New.
      
      From-SVN: r28257
      Richard Henderson committed
    • arc.h (EXPAND_BUILTIN_VA_START): New. · 965eb474
              * arc.h (EXPAND_BUILTIN_VA_START): New.
              (EXPAND_BUILTIN_VA_ARG): New.
              * arc.c (arc_setup_incoming_varargs): Set alias set of
              varargs save area.
              (arc_va_start): New.
              (arc_va_arg): New.
      
      From-SVN: r28254
      Richard Henderson committed
    • svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in column zero. · 80c83e63
              * config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
              column zero.
              (DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
              (FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
      
      From-SVN: r28253
      Jeffrey A Law committed
    • alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete. · 63966b3b
              * alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete.
              (BUILD_VA_LIST_TYPE): New.
              (EXPAND_BUILTIN_VA_START): New.
              (EXPAND_BUILTIN_VA_ARG): New.
              * alpha.c (alpha_builtin_saveregs): Delete.
              (alpha_build_va_list): New.
              (alpha_va_start): New.
              (alpha_va_arg): New.
      
      From-SVN: r28252
      Richard Henderson committed
    • Add myself to list, check write access · 820964cd
      From-SVN: r28251
      Geoffrey Keating committed
    • gcc.texi: More changes related to list conversion. · 1e1ec633
      
              * gcc.texi: More changes related to list conversion.
              * invoke.texi: Likewise.
      
      From-SVN: r28250
      Jeffrey A Law committed
    • * README: More listname related changes. · 0e8b6188
      From-SVN: r28249
      Jeffrey A Law committed
    • natString.cc (substring): optimize where substring is entire String. · 41296e2a
      1999-07-22  Bryce McKinlay  <bryce@albatross.co.nz>
      
      	* java/lang/natString.cc (substring): optimize where substring is
      	entire String.
      	* java/io/File.java (getName): don't return separator with file name.
      	* java/io/natFile.cc (attr): fix overflow.
      
      From-SVN: r28246
      Bryce McKinlay committed
    • m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise. · 648d2ffc
              * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
              * m88k.h, m88k.c: Likewise.
              * mn10300.h, mn10300.c: Likewise.
              * pa.h, pa.c: Likewise.
              * rs6000.h, rs6000.c: Likewise.
              * sh.h, sh.c: Likewise.
              * sparc.h, sparc.c: Likewise.
      
      From-SVN: r28245
      Richard Henderson committed
    • Rebuild. · 5379f4a4
      From-SVN: r28244
      Richard Henderson committed
    • builtins.c (expand_builtin_saveregs): Remove static, remove exp and ignore… · d3707adb
      builtins.c (expand_builtin_saveregs): Remove static, remove exp and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
      
              * builtins.c (expand_builtin_saveregs): Remove static, remove exp
              and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
              (expand_builtin_next_arg): Accept ARGLIST not EXP.
              (stabilize_va_list): New function.
              (std_expand_builtin_va_start): New function.
              (expand_builtin_va_start): New function.
              (get_varargs_alias_set): New function.
              (std_expand_builtin_va_arg): New function.
              (expand_builtin_va_arg): New function.
              (expand_builtin_va_end): New function.
              (expand_builtin_va_copy): New function.
              (expand_builtin): Call them.
              * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
              __builtin_{varargs_start,stdarg_start,end,copy}.
              (build_va_arg): New function.
              * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
              (build_va_arg): Declare.
              * c-decl.c (ptr_type_node, va_list_type_node): New.
              * c-parse.gperf (__builtin_va_arg): New.
              * c-parse.in (VA_ARG): New token.
              (unary_expr): Recognize it.
              * expr.c (expand_expr): Expand VA_ARG_EXPR.
              * expr.h (std_expand_builtin_va_start): Declare.
              (std_expand_builtin_va_arg): Declare.
              (expand_builtin_va_arg): Declare.
              (get_varargs_alias_set): Declare.
              * tree.def (VA_ARG_EXPR): New.
              * tree.h (BUILT_IN_VARARGS_START): New.
              (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
              (ptr_type_node, va_list_type_node): Declare.
              * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
              * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
              * m88k.h, m88k.c: Likewise.
              * mn10300.h, mn10300.c: Likewise.
              * pa.h, pa.c: Likewise.
              * rs6000.h, rs6000.c: Likewise.
              * sh.h, sh.c: Likewise.
              * sparc.h, sparc.c: Likewise.
      
              * emit-rtl.c (operand_subword): Copy alias set.
              (change_address): Likewise.
      
      From-SVN: r28243
      Richard Henderson committed
    • decl.c (ptr_type_node, [...]): New. · 4a4b0aa3
              * decl.c (ptr_type_node, va_list_type_node): New.
              * gxx.gperf (__builtin_va_arg): New.
              * parse.y (VA_ARG): New token.
              (unary_expr): Recognize it.
      
      From-SVN: r28242
      Richard Henderson committed
    • com.c (ptr_type_node, [...]): New. · 88c7af34
              * com.c (ptr_type_node, va_list_type_node): New.
              (ffecom_init_0): Init and use ptr_type_node.
      
      From-SVN: r28241
      Richard Henderson committed
    • * decl.c (va_list_type_node): New. · 8824cf7e
      From-SVN: r28240
      Richard Henderson committed
  2. 25 Jul, 1999 5 commits
  3. 24 Jul, 1999 2 commits
    • Daily bump. · 2ac4184c
      From-SVN: r28231
      Jeff Law committed
    • lex.c: Sync with C frontend. · 1ceb5ff3
      	* lex.c: Sync with C frontend.
      	(whitespace_cr): New fn.
      	(skip_white_space): Use it.
      	(init_parse): Reorder.
      	(yyprint): Support CONSTANT.
      	(pragma_getc, pragma_ungetc): Bring back.
      	(read_line_number): Change in_system_header directly.
      	(handle_generic_pragma, handle_cp_pragma, yyerror): Move up in file.
      	(parse_float): Update to C version.
      	(yylex): Handle '$' under the letter case.
      	Remove looking_for_typename handling.
      	Support hex floating point constants.
      	Follow C's lead for choosing type of integer constants.
      	Rearrange stuff to match C frontend.
      	(yyungetc, reinit_parse_for_block, yylex): Support indent_level.
      	* spew.c (yylex): Clear looking_for_typename if we see a TYPESPEC.
      
      From-SVN: r28230
      Jason Merrill committed
  4. 23 Jul, 1999 7 commits
    • call.c (reference_binding): Tweak. · b0385db8
      	* call.c (reference_binding): Tweak.
      	(mayble_handle_implicit_object): Use direct_reference_binding to
      	create the right implicit conversion sequence.
      
      From-SVN: r28228
      Mark Mitchell committed
    • arm.h (TARGET_SWITCHES): Add -m{no-}single-pic-base. · ed0e6530
      * config/arm/arm.h (TARGET_SWITCHES): Add
      -m{no-}single-pic-base.  Correct help string for -mshort-load-words.
      (TARGET_OPTIONS): Add -mpic-register=.
      (ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
      (arm_pic_register_string): Declare.
      (NEED_PLT_GOT): Delete, replace with ...
      (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these.  New macros.
      (OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
      (ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
      * config/arm/arm.c (arm_override_options): Add new option
      -mpic-register=N.
      (arm_pic_register_string): New variable.
      (arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
      (output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
      register as never live.  Use NEED_PLT_RELOC not NEED_PLT_GOT.
      (output_return_instruction): Likewise.
      * config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
      (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these.  Define to flag_pic.
      * config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
      
      * invoke.texi (ARM Options): Fix spelling.  Remove duplicate
      mention of -msched-prolog.  Document new options -msingle-pic-base
      and -mpic-register=.
      
      From-SVN: r28227
      Philip Blundell committed
    • Daily bump. · 59ba45cd
      From-SVN: r28225
      Jeff Law committed
    • pt.c (convert_nontype_argument): Don't call decl_constant_value if we're… · 638dd8fc
      pt.c (convert_nontype_argument): Don't call decl_constant_value if we're converting to a reference type.
      
      	* pt.c (convert_nontype_argument): Don't call decl_constant_value
      	if we're converting to a reference type.
      
      From-SVN: r28224
      Mark Mitchell committed
    • haifa-sched.c (reemit_notes): Tidy. · 19699da4
              * haifa-sched.c (reemit_notes): Tidy.
              * sched.c (reemit_notes): Duplicate 1998-08-31 patch to
              haifa's routine.
      
      From-SVN: r28223
      Richard Henderson committed
    • explow.c (trunc_int_for_mode): New function. · 7e4ce834
              * explow.c (trunc_int_for_mode): New function.
              (plus_constant_wide): Use it.
              * combine.c (simplify_and_const_int): Likewise.
              (merge_outer_ops): Likewise.
              (simplify_shift_const): Likewise.
              * cse.c (simplify_unary_operation): Likewise.
              (simplify_binary_operation): Likewise.
              * emit-rtl.c (operand_subword): Likewise.
              * rtl.h: Declare it.
      
      From-SVN: r28222
      Richard Henderson committed
    • call.c (NEED_TEMPORARY_P): New macro. · 27b8d0cd
      	* call.c (NEED_TEMPORARY_P): New macro.
      	(standard_conversion): Set it, for derived-to-base conversions.
      	(reference_related_p): New function.
      	(reference_compatible_p): Likewise.
      	(convert_class_to_reference): Likewise.
      	(direct_reference_binding): Likewise.
      	(reference_binding): Rework for standards-compliance.
      	(convert_like): Adjust accordingly.
      	(maybe_handle_ref_bind): Simplify; the right conversion sequences
      	are now built up in reference_binding.
      	(initialize_reference): New function.
      	* cp-tree.h (ICS_USER_FLAG): Document.
      	(ICS_THIS_FLAG): Likewise.
      	(ICS_BAD_FLAG): Likewise.
      	(NEED_TEMPORARY_P): Likewise.
      	(cp_lvalue_kind): New type.
      	(real_lvalue_p): Return it.
      	* error.c (dump_expr): Provide more accurate representation for
      	AGGR_INIT_EXPRs.
      	* init.c (expand_default_init): Do not try to perform implicit
      	conversions for a brace-enclosed initializer.
      	* search.c (lookup_conversions): Document.
      	* tree.c (lvalue_p_1): Return a cp_lvalue_kind.  Calculate
      	appropriately.
      	(real_lvalue_p): Adjust accordingly.
      	(lvalue_p): Likewise.
      	(build_cplus_new): Don't allow the creation of an abstract class.
      	* typeck.c (convert_for_initialization): Use initialize_reference.
      
      From-SVN: r28221
      Mark Mitchell committed
  5. 22 Jul, 1999 7 commits