1. 08 Aug, 2004 1 commit
  2. 07 Aug, 2004 9 commits
  3. 06 Aug, 2004 21 commits
    • intrinsic.c (add_subroutines): Add getenv and get_environment_variable. · aa6fc635
      2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
      
      	* intrinsic.c (add_subroutines): Add getenv and
      	get_environment_variable. (add_sym_5s): New function.
      	* intrinsic.h (gfc_resolve_get_environment_variable): Add
      	prototype.
      	* iresolve.c (gfc_resolve_get_environment_variable): New
      	function.
      libgfortran/
      	* intrinsics/env.c: New file.
      	* Makefile.am: Add env.c to build.
      	* Makefile.in: Regenerate.
      testsuite/
      	* gfortran.dg/getenv_1.f90: New test.
      
      From-SVN: r85656
      Janne Blomqvist committed
    • f95-lang.c (gfc_init_builtin_functions): Fix the number of __builtin_pow[f] arguments. · c7d78bbe
      	* f95-lang.c (gfc_init_builtin_functions): Fix the number of
      	__builtin_pow[f] arguments.
      
      From-SVN: r85653
      Feng Wang committed
    • arith.c: Add #define for model numbers. · f8e566e5
      2004-08-06  Steven G. Kargl  <kargls@comcast.net>
      
      	* arith.c: Add #define for model numbers.  Remove global GMP variables.
      	(natural_logarithm,common_logarithm,exponential,sine,
      	cosine,arctangent,hypercos,hypersine ): Remove.
      	(gfc_mpfr_to_mpz,gfc_set_model_kind,gfc_set_model): New functions.
      	(arctangent2,gfc_arith_init_1,gfc_arith_done_1
      	gfc_check_real_range, gfc_constant_result, gfc_range_check,
      	gfc_arith_uminus,gfc_arith_plus, gfc_arith_minus, gfc_arith_times,
      	gfc_arith_divide,complex_reciprocal,complex_pow_ui,
      	gfc_arith_power,gfc_compare_expr,compare_complex,gfc_convert_real,
      	gfc_convert_complex,gfc_int2real,gfc_int2complex,
      	gfc_real2int,gfc_real2real,gfc_real2complex,
      	gfc_complex2int,gfc_complex2real,gfc_complex2complex): Convert GMP
      	to MPFR, use new functions.
      	* arith.h: Remove extern global variables.
      	(natural_logarithm,common_logarithm,exponential, sine, cosine,
      	arctangent,hypercos,hypersine): Remove prototypes.
      	(arctangent2): Update prototype from GMP to MPFR.
      	(gfc_mpfr_to_mpz, gfc_set_model_kind,gfc_set_model): Add prototypes.
      	* dump-parse-tree.c (gfc_show_expr): Convert GMP to MPFR.
      	* expr.c (free_expr0,gfc_copy_expr): Convert GMP to MPFR.
      	* gfortran.h (GFC_REAL_BITS): Remove.
      	(arith): Add ARITH_NAN.
      	Include mpfr.h.  Define GFC_RND_MODE.
      	Rename GCC_GFORTRAN_H GFC_GFC_H.
      	(gfc_expr): Convert GMP to MPFR.
      	* module.c: Add arith.h, correct type in comment.
      	(mio_gmp_real): Convert GMP to MPFR.
      	(mio_expr):  Use gfc_set_model_kind().
      	* primary.c:  Update copyright date with 2004.
      	(match_real_constant,match_const_complex_part): Convert GMP to MPFR.
      	* simplify.c: Remove global GMP variables
      	(gfc_simplify_abs,gfc_simplify_acos,gfc_simplify_aimag,
      	gfc_simplify_aint,gfc_simplify_dint,gfc_simplify_anint,
      	gfc_simplify_dnint,gfc_simplify_asin,gfc_simplify_atan,
      	gfc_simplify_atan2,gfc_simplify_ceiling,simplify_cmplx,
      	gfc_simplify_conjg,gfc_simplify_cos,gfc_simplify_cosh,
      	gfc_simplify_dim,gfc_simplify_dprod,gfc_simplify_epsilon,
      	gfc_simplify_exp,gfc_simplify_exponent,gfc_simplify_floor,
      	gfc_simplify_fraction,gfc_simplify_huge,gfc_simplify_int,
      	gfc_simplify_ifix,gfc_simplify_idint,gfc_simplify_log,
      	gfc_simplify_log10,simplify_min_max,gfc_simplify_mod,
      	gfc_simplify_modulo,gfc_simplify_nearest,simplify_nint,
      	gfc_simplify_rrspacing,gfc_simplify_scale,
      	gfc_simplify_set_exponent,gfc_simplify_sign,gfc_simplify_sin,
      	gfc_simplify_sinh,gfc_simplify_spacing,gfc_simplify_sqrt,
      	gfc_simplify_tan,gfc_simplify_tanh,gfc_simplify_tiny,
      	gfc_simplify_init_1,gfc_simplify_done_1):  Convert GMP to MPFR.
      	Use new functions.
      	* trans-const.c (gfc_conv_mpfr_to_tree): Rename from
      	gfc_conv_mpf_to_tree.  Convert it to use MPFR
      	(gfc_conv_constant_to_tree): Use it.
      	* trans-const.h: Update prototype for gfc_conv_mpfr_to_tree().
      	* trans-intrinsic.c: Add arith.h, remove gmp.h
      	(gfc_conv_intrinsic_aint,gfc_conv_intrinsic_mod): Convert GMP to MPFR.
      
      From-SVN: r85652
      Steven G. Kargl committed
    • Add myself as Darwin maintainer. · 1b4ed0bc
      From-SVN: r85649
      Dale Johannesen committed
    • symbian.h (CC1_SPEC): Avoid passing duplicate options to the compiler. · 2ed9e527
      	* config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
      	to the compiler.  Use -fshort-wchar by default.
      
      	* gcc.dg/symbian4.c: Expect a 2-byte wchar_t, not a 4-byte
      	wchar_t.
      	* gcc.dg/symbian5.c: Test -fno-short-wchar.
      
      From-SVN: r85648
      Mark Mitchell committed
    • params.def (PARAM_MIN_CROSSJUMP_INSNS): New. · 12183e0f
      2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
      
              * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
              * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
              threshhold.
              * doc/invoke.texi (param): Document min-crossjump-insns.
      
      From-SVN: r85646
      Pat Haugen committed
    • trans-array.c (gfc_trans_allocate_array_storage, [...]): For functions... · fc90a8f2
      	* trans-array.c (gfc_trans_allocate_array_storage,
      	gfc_trans_allocate_temp_array, gfc_add_loop_ss_code,
      	gfc_conv_loop_setup):
      	For functions, if the shape of the result is not known
      	in compile-time, generate an empty array descriptor for
      	the result and let the callee to allocate the memory.
      	(gfc_trans_dummy_array_bias): Do nothing for pointers.
      	(gfc_conv_expr_descriptor): Use function return values directly.
      	* trans-expr.c (gfc_conv_function_call): Always add byref call
      	insn to pre chain.
      	(gfc_trans_pointer_assignment): Add comments.
      	(gfc_trans_arrayfunc_assign): Don't chain on expression.
      testsuite/
      	* gfortran.dg/ret_array_1.f90: New test.
      	* gfortran.dg/ret_pointer_1.f90: New test.
      
      From-SVN: r85642
      Paul Brook committed
    • utils.c (gnat_define_builtin): Remove second parameter of make_decl_rtl. · 160ff372
      	* utils.c (gnat_define_builtin): Remove second parameter of
      	make_decl_rtl.
      	(begin_subprog_body): Likewise.
      
      From-SVN: r85640
      Andreas Schwab committed
    • re PR c/13282 (A "-Wno..." switch to turn off "missing initializer" warnings) · eaac4679
      	PR c/13282
      	* c.opt (Wmissing-field-initializers): New option.
      	* c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
      	* c-typeck.c (pop_init_level): Guard the missing field warning with
      	warn_missing_field_initializers rather than extra_warnings.
      	* doc/invoke.texi (-Wmissing-field-initializers): Document, moving
      	some of the explanation from...
      	(-Wextra): ...here.  Say that the missing field warning can be
      	seperately controlled by -Wmissing-field-initializers.
      
      cp/
      	* typeck2.c (process_init_constructor): Guard the missing field warning
      	with warn_missing_field_initializers rather than extra_warnings.
      
      testsuite/
      	* gcc.dg/missing-field-init-[12].c: New tests.
      	* g++.dg/warn/missing-field-init-[12].C: New tests.
      
      From-SVN: r85638
      Richard Sandiford committed
    • gcc_release (snapshot_print): Accept arguments. · 155cb616
      2004-08-06  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* gcc_release (snapshot_print): Accept arguments.  Don't use echo -e.
      	(announce_snapshot):  Update for above.  Don't use echo -e.
      
      From-SVN: r85637
      Kelley Cook committed
    • expr.c (expand_expr_real_1): Remove. · caad9f81
      2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
      
      	* expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
      	* tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
      	* tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
      	* tree.def (ENTRY_VALUE_EXPR): Remove.
      
      cp:
      2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
      
      	* class.c (instantiate_type) <ENTRY_VALUE_EXPR>: Do not handle.
      
      From-SVN: r85636
      Paolo Bonzini committed
    • i386.c (ix86_expand_clrmem): Move gen_cld down to the places where it is actually needed. · 6b32b628
      	* config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
      	the places where it is actually needed.  Don't use repz; stosb
      	for -Os with sufficiently small constant sizes.
      	For sufficiently small repz; stos{l,q} repeat counts use a sequence
      	of stos{l,q} instructions instead.
      
      From-SVN: r85635
      Jakub Jelinek committed
    • re PR tree-optimization/16807 ([lno] Weird loop unrolling) · 6797f908
      	PR tree-optimization/16807
      	* loop-iv.c (dump_iv_info): Dump invariants correctly.
      	(iv_subreg, iv_extend): Express value of invariant purely in
      	base field.
      
      From-SVN: r85634
      Zdenek Dvorak committed
    • symbian.h (CC1_SPEC): Add -fno-short-enums. · 866cf037
      	* config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
      	(CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
      
      	* gcc.dg/enum2.c: New test.
      	* gcc.dg/symbian3.c: Likewise.
      	* gcc.dg/symbian4.c: Likewise.
      	* gcc.dg/wchar_t-2.c: Likewise.
      
      From-SVN: r85632
      Mark Mitchell committed
    • m68k.c (post_inc_operand,pre_dec_operand): New. · 9652c531
              * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
              * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
              pre_dec_operand.
              * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
              pattern until reload is finished to allow better code generation
              and split them completely into separate instrunctions.
              (*andsi3_split): New pattern.
      
      From-SVN: r85631
      Roman Zippel committed
    • Makefile.def (bfd, [...]): Mark as bootstrap module. · 3589b69e
      2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
      
      	* Makefile.def (bfd, opcodes, gcc, zlib): Mark as bootstrap module.
      	(bison, byacc, flex, texinfo): Do not mark as bootstrap module.
      	(Dependencies): New section.
      	* Makefile.tpl (Dependencies): Generate from Makefile.def.
      	(configure-target-[+module+]): Depend on maybe-all-gcc
      	(all-prebootstrap): New name of all-bootstrap.  Changed throughout.
      	(toplevel profiledbootstrap): Fix dependencies.
      	* Makefile.in: Regenerate.
      
      From-SVN: r85629
      Paolo Bonzini committed
    • visibility-8.C: Add constructor and destructor tests. · ae232e45
      	* g++.dg/ext/visibility/visibility-8.C: Add constructor and
      	destructor tests.
      
      From-SVN: r85623
      Mark Mitchell committed
    • lang.c (flag_emit_class_files, [...]): Remove explicit declarations. · 9ddfe26e
      2004-08-06  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* lang.c (flag_emit_class_files, flag_filelist_file, flag_redundant,
      	flag_use_divide_subroutine, flag_use_boehm_gc, flag_store_check,
      	flag_hash_synchronization, flag_assert, flag_jni, flag_newer,
      	flag_check_references, flag_extraneous_semicolon, flag_deprecated,
      	flag_force_classes_archive_check, flag_optimize_sci,
      	flag_indirect_dispatch): Remove explicit declarations.
      	* lang.opt: Add implicit declare/define/assign.  Remove obsolete
      	final comment.
      
      From-SVN: r85622
      Kelley Cook committed
    • tree.c (handle_dll_attribute): Move here from i383/winnt.c. · b2ca3702
      	* tree.c (handle_dll_attribute): Move here from i383/winnt.c.
      	Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
      	DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
      	* tree.h (handle_dll_attribute): Declare.  Test
      	TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
      	* c-common.h (c_determine_visibility): Declare.
      	* c-common.c (c_determine_visibility): New function.
      	* c-decl.c (finish_decl): Use it.
      	(finish_function): Likewise.
      	* defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
      	zero, by default.  Use #if, not	#ifdef, to test it.
      	* config/arm/arm.c (arm_attribute_table): Use
      	handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
      	#if.
      	* config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
      	* config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
      	to 1.
      	* config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
      	* config/i386/i386.c (ix86_attribute_table): Use
      	handle_dll_attribute for dllimport/dllexport.  Test
      	TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
      	* config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
      	* config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
      	it to 1.
      	* config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
      	with #if.
      	* config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
      	it to 1.
      	* doc/extend.texi (dllexport): Clarify and correct documentation.
      	(dllimport): Likewise.
      	* doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
      	handle_dll_attribute.
      
      	* decl.c (start_preparsed_function): Move determine_visibility
      	call.
      	* decl2.c (determine_visibility): Incorporate dllexport testing.
      
      	* g++.dg/ext/visibility/assign1.C: Use scan-hidden and
      	dg-require-visiblity.
      	* g++.dg/ext/visibility/fvisibility-inlines-hidden.C: Likewise.
      	* g++.dg/ext/visibility/fvisibility.C: Likewise.
      	* g++.dg/ext/visibility/memfuncts.C: Likewise.
      	* g++.dg/ext/visibility/new1.C: Likewise.
      	* g++.dg/ext/visibility/pragma.C: Likewise.
      	* g++.dg/ext/visibility/staticmemfuncts.C: Likewise.
      	* g++.dg/ext/visibility/virtual.C: Likewise.
      	* g++/dg/ext/visibility/visibility-1.C: Likewise.
      	* g++/dg/ext/visibility/visibility-2.C: Likewise.
      	* g++/dg/ext/visibility/visibility-3.C: Likewise.
      	* g++/dg/ext/visibility/visibility-4.C: Likewise.
      	* g++/dg/ext/visibility/visibility-5.C: Likewise.
      	* g++/dg/ext/visibility/visibility-6.C: Likewise.
      	* g++/dg/ext/visibility/visibility-7.C: Likewise.
      	* g++/dg/ext/visibility/visibility-8.C: New test.
      	* gcc.c-torture/compile/dll.x: Remove.
      	* gcc.dg/dll-2.c: Use dg-require-dll
      	* gcc.dg/visibility-10.c: New test.
      	* lib/gcc-dg.exp (dg-require-dll): Add Symbian to list of targets
      	supporting DLLs.
      	* testsuite/lib/scanasm.exp (scan_hidden): New function.
      	(scan_not_hidden): Likewise.
      
      From-SVN: r85621
      Mark Mitchell committed
    • g++spec.c (lang_specific_driver): An -Xlinker or -Wl, option means that libstdc++ is needed. · 01e05466
      	* g++spec.c (lang_specific_driver): An -Xlinker or -Wl, option
      	means that libstdc++ is needed.
      
      From-SVN: r85620
      Geoffrey Keating committed
    • Daily bump. · 78701d2a
      From-SVN: r85618
      GCC Administrator committed
  4. 05 Aug, 2004 9 commits