gcc.git
20 years agointrinsic.c (add_subroutines): Add getenv and get_environment_variable.
Janne Blomqvist [Fri, 6 Aug 2004 21:47:03 +0000 (00:47 +0300)]
intrinsic.c (add_subroutines): Add getenv and get_environment_variable.

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

20 years agof95-lang.c (gfc_init_builtin_functions): Fix the number of __builtin_pow[f] arguments.
Feng Wang [Fri, 6 Aug 2004 20:45:14 +0000 (20:45 +0000)]
f95-lang.c (gfc_init_builtin_functions): Fix the number of __builtin_pow[f] arguments.

* f95-lang.c (gfc_init_builtin_functions): Fix the number of
__builtin_pow[f] arguments.

From-SVN: r85653

20 years agoarith.c: Add #define for model numbers.
Steven G. Kargl [Fri, 6 Aug 2004 20:36:05 +0000 (20:36 +0000)]
arith.c: Add #define for model numbers.

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

20 years agoAdd myself as Darwin maintainer.
Dale Johannesen [Fri, 6 Aug 2004 18:17:11 +0000 (18:17 +0000)]
Add myself as Darwin maintainer.

From-SVN: r85649

20 years agosymbian.h (CC1_SPEC): Avoid passing duplicate options to the compiler.
Mark Mitchell [Fri, 6 Aug 2004 17:51:45 +0000 (17:51 +0000)]
symbian.h (CC1_SPEC): Avoid passing duplicate options to the compiler.

* 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

20 years agoparams.def (PARAM_MIN_CROSSJUMP_INSNS): New.
Pat Haugen [Fri, 6 Aug 2004 17:20:53 +0000 (17:20 +0000)]
params.def (PARAM_MIN_CROSSJUMP_INSNS): New.

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

20 years agotrans-array.c (gfc_trans_allocate_array_storage, [...]): For functions...
Paul Brook [Fri, 6 Aug 2004 15:01:10 +0000 (15:01 +0000)]
trans-array.c (gfc_trans_allocate_array_storage, [...]): For functions...

* 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

20 years agoutils.c (gnat_define_builtin): Remove second parameter of make_decl_rtl.
Andreas Schwab [Fri, 6 Aug 2004 14:21:54 +0000 (14:21 +0000)]
utils.c (gnat_define_builtin): Remove second parameter of make_decl_rtl.

* utils.c (gnat_define_builtin): Remove second parameter of
make_decl_rtl.
(begin_subprog_body): Likewise.

From-SVN: r85640

20 years agore PR c/13282 (A "-Wno..." switch to turn off "missing initializer" warnings)
Richard Sandiford [Fri, 6 Aug 2004 11:23:23 +0000 (11:23 +0000)]
re PR c/13282 (A "-Wno..." switch to turn off "missing initializer" warnings)

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

20 years agogcc_release (snapshot_print): Accept arguments.
Kelley Cook [Fri, 6 Aug 2004 11:11:11 +0000 (11:11 +0000)]
gcc_release (snapshot_print): Accept arguments.

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

20 years agoexpr.c (expand_expr_real_1): Remove.
Paolo Bonzini [Fri, 6 Aug 2004 10:40:35 +0000 (10:40 +0000)]
expr.c (expand_expr_real_1): Remove.

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

20 years agoi386.c (ix86_expand_clrmem): Move gen_cld down to the places where it is actually...
Jakub Jelinek [Fri, 6 Aug 2004 10:17:14 +0000 (12:17 +0200)]
i386.c (ix86_expand_clrmem): Move gen_cld down to the places where it is actually needed.

* 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

20 years agore PR tree-optimization/16807 ([lno] Weird loop unrolling)
Zdenek Dvorak [Fri, 6 Aug 2004 09:40:39 +0000 (11:40 +0200)]
re PR tree-optimization/16807 ([lno] Weird loop unrolling)

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

20 years agosymbian.h (CC1_SPEC): Add -fno-short-enums.
Mark Mitchell [Fri, 6 Aug 2004 07:54:19 +0000 (07:54 +0000)]
symbian.h (CC1_SPEC): Add -fno-short-enums.

* 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

20 years agom68k.c (post_inc_operand,pre_dec_operand): New.
Roman Zippel [Fri, 6 Aug 2004 07:14:56 +0000 (07:14 +0000)]
m68k.c (post_inc_operand,pre_dec_operand): New.

        * 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

20 years agoMakefile.def (bfd, [...]): Mark as bootstrap module.
Paolo Bonzini [Fri, 6 Aug 2004 06:45:23 +0000 (06:45 +0000)]
Makefile.def (bfd, [...]): Mark as bootstrap module.

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

20 years agovisibility-8.C: Add constructor and destructor tests.
Mark Mitchell [Fri, 6 Aug 2004 03:26:19 +0000 (03:26 +0000)]
visibility-8.C: Add constructor and destructor tests.

* g++.dg/ext/visibility/visibility-8.C: Add constructor and
destructor tests.

From-SVN: r85623

20 years agolang.c (flag_emit_class_files, [...]): Remove explicit declarations.
Kelley Cook [Fri, 6 Aug 2004 02:03:47 +0000 (02:03 +0000)]
lang.c (flag_emit_class_files, [...]): Remove explicit declarations.

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

20 years agotree.c (handle_dll_attribute): Move here from i383/winnt.c.
Mark Mitchell [Fri, 6 Aug 2004 02:03:29 +0000 (02:03 +0000)]
tree.c (handle_dll_attribute): Move here from i383/winnt.c.

* 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

20 years agog++spec.c (lang_specific_driver): An -Xlinker or -Wl, option means that libstdc+...
Geoffrey Keating [Fri, 6 Aug 2004 00:29:17 +0000 (00:29 +0000)]
g++spec.c (lang_specific_driver): An -Xlinker or -Wl, option means that libstdc++ is needed.

* g++spec.c (lang_specific_driver): An -Xlinker or -Wl, option
means that libstdc++ is needed.

From-SVN: r85620

20 years agoDaily bump.
GCC Administrator [Fri, 6 Aug 2004 00:16:23 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85618

20 years agotree-ssa-loop-manip.c: New file.
Zdenek Dvorak [Thu, 5 Aug 2004 21:33:21 +0000 (23:33 +0200)]
tree-ssa-loop-manip.c: New file.

* tree-ssa-loop-manip.c: New file.
* Makefile.in (tree-ssa-loop-manip.o): Add.
* tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
Declare.
* tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
form.
(tree_ssa_loop_done): Verify loop closed ssa form.
* tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.

From-SVN: r85613

20 years agoMakefile.am: Fix missing rename from x_nat_headers to xlib_nat_headers.
Andreas Tobler [Thu, 5 Aug 2004 21:27:07 +0000 (23:27 +0200)]
Makefile.am: Fix missing rename from x_nat_headers to xlib_nat_headers.

2004-08-05  Andreas Tobler  <a.tobler@schweiz.ch>

* Makefile.am: Fix missing rename from x_nat_headers to
xlib_nat_headers.
* Makefile.in: Regenerated.

From-SVN: r85612

20 years agopa.c (pa_asm_output_aligned_bss, [...]): New functions.
John David Anglin [Thu, 5 Aug 2004 20:57:06 +0000 (20:57 +0000)]
pa.c (pa_asm_output_aligned_bss, [...]): New functions.

* pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
pa_asm_output_aligned_local): New functions.
* pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
pa_asm_output_aligned_common and pa_asm_output_aligned_local.
* pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
pa_asm_output_aligned_common.
(ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
* pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
(ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
(ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
* pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
(ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
(ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
* som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
common data.

From-SVN: r85611

20 years agore PR bootstrap/14893 (3.4.0-20040406, 'make install' fails on doc/gcjh.1)
Michael Chastain [Thu, 5 Aug 2004 19:29:09 +0000 (19:29 +0000)]
re PR bootstrap/14893 (3.4.0-20040406, 'make install' fails on doc/gcjh.1)

2004-08-05  Michael Chastain  <mec.gnu@mindspring.com>

PR bootstrap/14893
* Make-lang.in (java.install-man): Install from either build
tree or source tree, whichever has the file first.

(See the PR for more information and the approval from Alexandre Oliva.
 This fix has been in gcc-3_4-branch for about four months).

From-SVN: r85610

20 years agoobjc-act.c (build_objc_string_object): Mark the address expression as constant.
Andrew Pinski [Thu, 5 Aug 2004 18:06:23 +0000 (18:06 +0000)]
objc-act.c (build_objc_string_object): Mark the address expression as constant.

2004-08-05  Andrew Pinski  <apinski@apple.com>

        * objc/objc-act.c (build_objc_string_object): Mark the address
        expression as constant.

From-SVN: r85609

20 years agoBasicPermission.java: Don't check wildcards.
Andrew Haley [Thu, 5 Aug 2004 17:51:11 +0000 (17:51 +0000)]
BasicPermission.java: Don't check wildcards.

2004-08-04  Andrew Haley  <aph@redhat.com>

        * java/security/BasicPermission.java: Don't check wildcards.

From-SVN: r85608

20 years ago* gcc.dg/sh4a-fprun.c: Fix dg-do typo.
David Edelsohn [Thu, 5 Aug 2004 17:37:02 +0000 (17:37 +0000)]
* gcc.dg/sh4a-fprun.c: Fix dg-do typo.

From-SVN: r85605

20 years agors6000.c (rs6000_rtx_costs): Fix mask_operand and mask64_operand thinkos.
David Edelsohn [Thu, 5 Aug 2004 17:05:48 +0000 (13:05 -0400)]
rs6000.c (rs6000_rtx_costs): Fix mask_operand and mask64_operand thinkos.

* config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.

From-SVN: r85604

20 years agolinux.h, [...]: Remove definitions conditioned on USE_GNULIBC_1 or conditioned out...
Joseph Myers [Thu, 5 Aug 2004 09:12:12 +0000 (10:12 +0100)]
linux.h, [...]: Remove definitions conditioned on USE_GNULIBC_1 or conditioned out...

* config/linux.h, config/i386/linux.h, config/sparc/linux.h:
Remove definitions conditioned on USE_GNULIBC_1 or conditioned
out, and associated obsolete comments.

From-SVN: r85600

20 years agotree.h (force_fit_type): Return a tree, take three flags.
Nathan Sidwell [Thu, 5 Aug 2004 09:03:42 +0000 (09:03 +0000)]
tree.h (force_fit_type): Return a tree, take three flags.

* tree.h (force_fit_type): Return a tree, take three flags.
* fold-const.c (force_fit_type): Set TREE_OVERFLOW and
TREE_CONSTANT_OVERFLOW here.
(int_const_binop, const_binop): Adjust.
(size_int_type): Do sign extension here.
(fold_convert_const, optimize_bit_field_compare,
decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
fold_negate_const, fold_abs_const, fold_not_const): Adjust.
* tree.c (size_in_bytes, int_fits_type_p): Adjust.

* cp/cvt.c (cp_convert_to_pointer): Adjust force_fit_type call.

* java/jcf-parse.c (get_constant): Adjust force_fit_type call.
* java/lex.h (SET_LVAL_NODE_TYPE): Remove.
* java/lex.c (java_perform_atof): Use SET_LVAL_NODE directly.
(do_java_lex): Likewise. Adjust force_fit_type call.

From-SVN: r85599

20 years agore PR tree-optimization/16864 (Segmentation fault during tree tail call elimination)
Zdenek Dvorak [Thu, 5 Aug 2004 08:41:57 +0000 (10:41 +0200)]
re PR tree-optimization/16864 (Segmentation fault during tree tail call elimination)

PR tree-optimization/16864
* tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
for ssa names without default_def.

From-SVN: r85597

20 years agoCommit for Victor Leikehman <lei@il.ibm.com>
Victor Leikehman [Thu, 5 Aug 2004 08:37:42 +0000 (08:37 +0000)]
Commit for Victor Leikehman  <lei@il.ibm.com>

PR libgfortran/16704
* io/read.c (read_radix): Understand letters f and F as hex digits.

From-SVN: r85596

20 years agoi386.c (ix86_expand_prologue): If the function uses a frame pointer, restore eax...
Richard Sandiford [Thu, 5 Aug 2004 07:13:56 +0000 (07:13 +0000)]
i386.c (ix86_expand_prologue): If the function uses a frame pointer, restore eax with an ebp-relative address.

* config/i386/i386.c (ix86_expand_prologue): If the function uses a
frame pointer, restore eax with an ebp-relative address.

From-SVN: r85595

20 years ago20020118-1.c: Declare abort.
Andrew Pinski [Thu, 5 Aug 2004 06:06:49 +0000 (06:06 +0000)]
20020118-1.c: Declare abort.

2004-08-04  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.dg/20020118-1.c: Declare abort.
        * gcc.dg/altivec_check.h: Likewise.
        * gcc.dg/iftrap-2.c: Likewise.
        * gcc.dg/pragma-darwin.c: Likewise.
        * gcc.dg/rs6000-ldouble-1.c: Declare abort and exit.

From-SVN: r85594

20 years agore PR c/14516 (-fleading-underscore does not work correctly for file static variables)
Geoffrey Keating [Thu, 5 Aug 2004 05:52:01 +0000 (05:52 +0000)]
re PR c/14516 (-fleading-underscore does not work correctly for file static variables)

2004-08-04  Geoffrey Keating  <geoffk@apple.com>

PR 14516
* c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
* c-common.h (make_rtl_for_local_static): Delete.
* c-decl.c (shadow_tag_warned): Clean up comment.
(finish_decl): Clean up spacing.  Use set_user_assembler_name when
appropriate.  Don't pass asmspec to rest_of_decl_compilation.
* c-semantics.c (make_rtl_for_local_static): Delete.
* expr.c (init_block_move_fn): Use set_user_assembler_name.
(init_block_clear_fn): Likewise.
* passes.c (rest_of_decl_compilation): Remove asmspec parameter,
expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
* toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
* tree.h (make_decl_rtl): Remove second parameter.
(set_user_assembler_name): New.
* varasm.c (set_user_assembler_name): New.
(make_decl_rtl): Remove second parameter.  Update callers in many
files.

Index: cp/ChangeLog
2004-08-04  Geoffrey Keating  <geoffk@apple.com>

* decl.c (make_rtl_for_nonlocal_decl): Set DECL_ASSEMBLER_NAME rather
than passing it as a parameter to rest_of_decl_compilation.
* decl2.c (grokfield): Use set_user_assembler_name.

From-SVN: r85593

20 years ago* g++.dg/ext/altivec_check.h: Declare exit as extern "C".
Geoffrey Keating [Thu, 5 Aug 2004 05:31:30 +0000 (05:31 +0000)]
* g++.dg/ext/altivec_check.h: Declare exit as extern "C".

From-SVN: r85592

20 years agoconfig.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
Adam Nemet [Thu, 5 Aug 2004 04:55:37 +0000 (04:55 +0000)]
config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.

* config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
(case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
to LynxOS 4.0.
* gthr-lynx.h: New file.
* config/lynx-ng.h: Remove file.
* config/lynx.h: Update to LynxOS 4.0.
* config/t-lynx: New file.
* config/i386/lynx-ng.h: Remove file.
* config/i386/lynx.h: Update to LynxOS 4.0.
* config/rs6000/lynxbase.h: Remove file.
* config/rs6000/lynx.h: Update to LynxOS 4.0.
* config/rs6000/t-lynx: New file.
* doc/install.texi (Options specification): Remove reference to
LynxOS from systems where --with-gnu-as makes a difference.

From-SVN: r85591

20 years agoc-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and __UINTMAX_TYPE__.
Joseph Myers [Thu, 5 Aug 2004 00:38:31 +0000 (01:38 +0100)]
c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and __UINTMAX_TYPE__.

* c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
__UINTMAX_TYPE__.
* c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
__INTMAX_MAX__.
(c_cpp_builtins): Call it.
* doc/cpp.texi: Update.

testsuite:
* gcc.c-torture/execute/builtins/abs-2.c,
gcc.c-torture/execute/builtins/abs-3.c,
gcc.c-torture/execute/builtins/lib/abs.c, gcc.dg/format/format.h,
gcc.dg/torture/builtin-attr-1.c: Use predefined macros for
intmax_t, uintmax_t and their limits.
* gcc.dg/intmax_t-1.c: New test.

From-SVN: r85588

20 years agoDaily bump.
GCC Administrator [Thu, 5 Aug 2004 00:16:14 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85585

20 years agors6000.c (rs6000_rtx_costs): LABEL_REFs are zero cost.
David Edelsohn [Wed, 4 Aug 2004 23:38:34 +0000 (19:38 -0400)]
rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero cost.

        * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
        cost.

From-SVN: r85582

20 years ago* g++.dg/tc1/dr147.C: Add reference to PR.
Giovanni Bajo [Wed, 4 Aug 2004 23:36:53 +0000 (23:36 +0000)]
* g++.dg/tc1/dr147.C: Add reference to PR.

From-SVN: r85581

20 years agobasic-block.h (profile_staus): New global variable.
Jan Hubicka [Wed, 4 Aug 2004 21:37:06 +0000 (23:37 +0200)]
basic-block.h (profile_staus): New global variable.

* basic-block.h (profile_staus): New global variable.
* cfg.c (profile_status): Declare.
(check_bb_profile): Break out from ....; use profile_status
(dump_flow_info): ... here.
* cfgbuild.c (find_basic_blocks): Set profile_status.
* cfgexpand.c (tree_expand_cfg): Likewise.
* predict.c (estimate_probability): Likewise.
* profile.c (branch_prob): Likewise.
* tree-cfg.c (build_tree_cfg): Likewise.
(dump_function_to_file): Use check_bb_profile.
* tree-pretty-print (dump_bb_header): Likewise.
* tree-profile.c (do_tree_profiling): Cleanup.

From-SVN: r85579

20 years agofix typo
Jason Merrill [Wed, 4 Aug 2004 21:13:16 +0000 (17:13 -0400)]
fix typo

From-SVN: r85575

20 years agoMakefile.in (RTL_BASE_H, RTL_H): Correct.
Zack Weinberg [Wed, 4 Aug 2004 20:55:08 +0000 (20:55 +0000)]
Makefile.in (RTL_BASE_H, RTL_H): Correct.

* Makefile.in (RTL_BASE_H, RTL_H): Correct.
(BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
(genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
(read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
(genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
(genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
(genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
(ggc-none.o, errors.o): Move rule to generators section;
correct dependencies.
(min-insn-modes.o): Move rule to generators section; remove
unnecessary explicit command; correct dependencies.
(print-rtl.o, print-rtl1.o): Correct dependencies.
($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
(mostlyclean): Update.

* errors.c: Include bconfig.h not config.h.  Correct comment.
* gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
* ggc-none.c: Include bconfig.h; not config.h or tm.h.
* print-rtl.c: Don't include tm_p.h.

* rtl.h: Move forward-decl of struct function down where it's
needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
#ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.

From-SVN: r85574

20 years agotree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
Zdenek Dvorak [Wed, 4 Aug 2004 20:37:38 +0000 (22:37 +0200)]
tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.

* tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
* tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
* tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
manipulate the duplicated ssa names.
* tree-ssanames.c (ssa_names_to_rewrite): New variable.
(marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
New functions.
(release_ssa_name): Do not release ssa names that may have multiple
definitions.
* tree.h (release_ssa_name_force, mark_for_rewrite,
unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
marked_ssa_names): Declare.
* tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
(duplicate_blocks): Remove call to mark_defs_for_rewrite.
Update call to rewrite_ssa_into_ssa.

Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r85572

20 years agodefaults.h (TARGET_DECLSPEC): New macro.
Mark Mitchell [Wed, 4 Aug 2004 19:37:19 +0000 (19:37 +0000)]
defaults.h (TARGET_DECLSPEC): New macro.

* defaults.h (TARGET_DECLSPEC): New macro.
* c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
* config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
* config/arm/symbian. (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
* config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
__declspec support.
(TARGET_DECLSPEC): Define.
* config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
__declspec support.
* config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
__declspec support.
(TARGET_DECLSPEC): Define.
* config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
__declspec support.
* config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
support.
* doc/tm.texi (TARGET_DECLSPEC): Document.

* doc/extend.texi: Fix typo in comment.

From-SVN: r85571

20 years agoAdd missing ChangeLog entry
Mark Mitchell [Wed, 4 Aug 2004 19:32:34 +0000 (19:32 +0000)]
Add missing ChangeLog entry

From-SVN: r85570

20 years agoacinclude.m4: Correctly quote PKG_CHECK_MODULES.
Thomas Fitzsimmons [Wed, 4 Aug 2004 19:30:13 +0000 (19:30 +0000)]
acinclude.m4: Correctly quote PKG_CHECK_MODULES.

2004-08-04  Thomas Fitzsimmons <fitzsim@redhat.com>
    Michael Koch  <konqueror@gmx.de>

* acinclude.m4: Correctly quote PKG_CHECK_MODULES.
* configure.in: Replaced all usages of AC_LINK_FILES by
AC_CONFIG_LINKS.
* aclocal.m4,
configure: Regenerated.

Co-Authored-By: Michael Koch <konqueror@gmx.de>
From-SVN: r85569

20 years agomips-args-[23].c: Declare abort() and exit().
Richard Sandiford [Wed, 4 Aug 2004 19:12:58 +0000 (19:12 +0000)]
mips-args-[23].c: Declare abort() and exit().

* gcc.dg/mips-args-[23].c: Declare abort() and exit().
* gcc.dg/torture/mips-hilo-[12].c: Likewise.

From-SVN: r85567

20 years agoacconfig.h: Removed.
Thomas Fitzsimmons [Wed, 4 Aug 2004 18:02:00 +0000 (18:02 +0000)]
acconfig.h: Removed.

2004-08-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
    Michael Koch  <konqueror@gmx.de>

* acconfig.h: Removed.
* Makefile.am: Rename variables for xlib peer to include xlib and
gtk_c_headers to gtk_jni_headers.
* Makefile.in: Regenerated.

Co-Authored-By: Michael Koch <konqueror@gmx.de>
From-SVN: r85566

20 years agolibjava.exp (bytecompile_file): Byte compile with debugging.
Andrew Haley [Wed, 4 Aug 2004 16:49:21 +0000 (16:49 +0000)]
libjava.exp (bytecompile_file): Byte compile with debugging.

2004-08-04  Andrew Haley  <aph@redhat.com>

        * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
        debugging.

From-SVN: r85565

20 years agoFix typo.
Paul Brook [Wed, 4 Aug 2004 16:19:14 +0000 (16:19 +0000)]
Fix typo.

From-SVN: r85564

20 years agoconfigure.in (arm*-*-symbianelf*): Add ${libgcj} and target-libiberty to noconfigdirs.
Mark Mitchell [Wed, 4 Aug 2004 16:11:12 +0000 (16:11 +0000)]
configure.in (arm*-*-symbianelf*): Add ${libgcj} and target-libiberty to noconfigdirs.

* configure.in (arm*-*-symbianelf*): Add ${libgcj} and
target-libiberty to noconfigdirs.

From-SVN: r85563

20 years agodecl.c (complete_array_type): Don't gratuitously copy maxindex.
Nathan Sidwell [Wed, 4 Aug 2004 15:59:37 +0000 (15:59 +0000)]
decl.c (complete_array_type): Don't gratuitously copy maxindex.

* decl.c (complete_array_type): Don't gratuitously copy
maxindex. Its type is always set.

From-SVN: r85562

20 years agotarget-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
Paul Brook [Wed, 4 Aug 2004 15:33:51 +0000 (15:33 +0000)]
target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.

gcc/
* target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
(TARGET_CXX): Use it.
* target.h (struct gcc_target): Add cdtor_returns_this.
* config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
(TARGET_CXX_CDTOR_RETURNS_THIS): Define.
* doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
gcc/cp/
* Make-lang.in (cp/semantics.o, cp/optimize.o): Depend on TARGET_H.
* cp-tree.h (struct language_function): Rename x_dtor_label to
x_cdtor_label.
(dtor_label): Rename ...
(cdtor_label): ... to this.
* decl.c (begin_constructor_body): Remove.
(check_special_function_return_type): Maybe change the return type.
(grokdeclarator): Pass the class type.
(start_preparsed_function): Constructors may need a return label.
(finish_constructor_body, finish_destructor_body): Set the return
value.
(begin_function_body): Don't call begin_constructor_body.
(finish_function): Don't warn for constructors or destructors.
(implicitly_declare_fn): Maybe change the return type.
* optimize.c: Include target.h.
(maybe_clone_body): Remap the function result.
* semantics.c: Include target.h.
(finish_return_stmt): Maybe jump to return label for constructors.

From-SVN: r85561

20 years agoconfigopts.html: Emphasize that options change.
Phil Edwards [Wed, 4 Aug 2004 14:40:48 +0000 (14:40 +0000)]
configopts.html: Emphasize that options change.

2004-08-04  Phil Edwards  <phil@codesourcery.com>

* docs/html/configopts.html:  Emphasize that options change.
* docs/html/17_intro/configury.html:  Update links.

From-SVN: r85560

20 years agoc-lex.c (narrowest_unsigned_type, [...]): Take low/high pair.
Nathan Sidwell [Wed, 4 Aug 2004 14:38:27 +0000 (14:38 +0000)]
c-lex.c (narrowest_unsigned_type, [...]): Take low/high pair.

* c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
low/high pair. Do range checking directly.
(interpret_integer): Adjust.

From-SVN: r85559

20 years ago* libgfortran.h (array_t, size0) New declarations.
Victor Leikehman [Wed, 4 Aug 2004 14:30:46 +0000 (14:30 +0000)]
* libgfortran.h (array_t, size0) New declarations.

* m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
space if return value descriptor has NULL in its data field,
and initialize bounds and stride.
* intrinsics/size.c (array_t, size0): Declarations moved to
libgfortran.h.
* generated/*.c: Regenerate.

From-SVN: r85558

20 years agoconfig/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the GCC ABI.
Nick Clifton [Wed, 4 Aug 2004 13:54:51 +0000 (13:54 +0000)]
config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the GCC ABI.

doc/invoke.texi: Document this new switch and also the -mrenesas switch.

From-SVN: r85557

20 years agogcc_update: libjava/configure.ac -> configure.in.
Paolo Bonzini [Wed, 4 Aug 2004 12:08:09 +0000 (12:08 +0000)]
gcc_update: libjava/configure.ac -> configure.in.

2004-08-04  Paolo Bonzini  <gcc@gcc.gnu.org>

* gcc_update: libjava/configure.ac -> configure.in.  Automake
1.4 does not handle configure.ac properly.

From-SVN: r85556

20 years agoReverted renaming of configure.in to configure.ac, has to wait
Paolo Bonzini [Wed, 4 Aug 2004 12:05:07 +0000 (12:05 +0000)]
Reverted renaming of configure.in to configure.ac, has to wait
for updating of automake.

From-SVN: r85555

20 years agocfglayout.c (insn_locators_initialize): Update the current location before initializi...
Nathan Sidwell [Wed, 4 Aug 2004 11:30:31 +0000 (11:30 +0000)]
cfglayout.c (insn_locators_initialize): Update the current location before initializing a location.

* cfglayout.c (insn_locators_initialize): Update the current
location before initializing a location.

From-SVN: r85554

20 years agotypeck.c (convert_ieee_real_to_integer): Call fold on the range checking trees as...
Roger Sayle [Wed, 4 Aug 2004 11:13:07 +0000 (11:13 +0000)]
typeck.c (convert_ieee_real_to_integer): Call fold on the range checking trees as they're being built.

2004-08-04  Roger Sayle  <roger@eyesopen.com>
            Andrew Haley  <aph@redhat.com>

        * typeck.c (convert_ieee_real_to_integer): Call fold on the range
        checking trees as they're being built.
        (convert): Call convert_ieee_real_to_integer if we're
        converting a constant, even if we're writing a class file.

Co-Authored-By: Andrew Haley <aph@redhat.com>
From-SVN: r85553

20 years ago* gcc_update: libjava/configure.in -> configure.ac.
Andreas Schwab [Wed, 4 Aug 2004 11:01:10 +0000 (11:01 +0000)]
* gcc_update: libjava/configure.in -> configure.ac.

From-SVN: r85552

20 years agoconfigure.ac: New name of...
Paolo Bonzini [Wed, 4 Aug 2004 09:57:09 +0000 (09:57 +0000)]
configure.ac: New name of...

2004-08-04  Paolo Bonzini  <bonzini@gnu.org>

        * configure.ac: New name of...
* configure.in: ... this file.

From-SVN: r85551

20 years agoCorrect PR numbers
Zack Weinberg [Wed, 4 Aug 2004 07:25:19 +0000 (07:25 +0000)]
Correct PR numbers

From-SVN: r85547

20 years agodbxout.c (dbxout_function_decl): Always call dbxout_function_end.
Zack Weinberg [Wed, 4 Aug 2004 07:23:14 +0000 (07:23 +0000)]
dbxout.c (dbxout_function_decl): Always call dbxout_function_end.

* dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
(dbxout_function_end): Return after emitting the "Lscope" symbol
under the same conditions that this function formerly wasn't called.
Add explanatory comments.

From-SVN: r85546

20 years agore PR target/14680 (reload_cse_simplify_operands triggers internal error on sparc64...
Zack Weinberg [Wed, 4 Aug 2004 06:33:07 +0000 (06:33 +0000)]
re PR target/14680 (reload_cse_simplify_operands triggers internal error on sparc64 when compiling netpbm)

PR 14680
* c-decl.c (record_builtin_type): Call debug_hooks->type_decl
on the new decl.

From-SVN: r85545

20 years agore PR c++/13596 (value of __cplusplus)
Zack Weinberg [Wed, 4 Aug 2004 06:32:01 +0000 (06:32 +0000)]
re PR c++/13596 (value of __cplusplus)

PR 13596
* dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
functions, broken out of dbxout_block.
(dbxout_block): The block at depth 0 should get LBRAC/RBRAC
stabs too, if it contains symbols.  Use the begin_label and
the Lscope label (emitted by dbxout_function_end) for the
range of this block.

From-SVN: r85544

20 years agoclass.c (build_vtable): Do not set DECL_VISIBILITY here.
Mark Mitchell [Wed, 4 Aug 2004 05:27:52 +0000 (05:27 +0000)]
class.c (build_vtable): Do not set DECL_VISIBILITY here.

* class.c (build_vtable): Do not set DECL_VISIBILITY here.
(check_field_decls): Or here.
(check_methods): Or here.
(initialize_array): Don't mess with DECL_CONTEXT.
* cp-tree.h (start_decl): Adjust prototype.
(determine_visibility): New function.
* decl.c (duplicate_decls): Remove checks for hidden "operator
new".
(build_library_fn_1): Give all library functions default
visibility.
(start_decl): Add pop_scope_p parameter.  Tidy.
(cp_finish_decl): Do not pop scopes here.  Call
determine_visibility for variable definitions.
(start_preparsed_function): Call determine_visibility.
* decl2.c (determine_visibility): New function.
* method.c (use_thunk): Fix formatting.
* parser.c (cp_parser_condition): Adjust calls to start_decl.
(cp_parser_init_declarator): Likewise.
* pt.c (instantiate_decl): Always call pop_nested_class.
* rtti.c (get_tinfo_decl): Do not set DECL_VISIBILITY.
(tinfo_base_init): Likewise.

* g++.dg/ext/visibility/assign1.C: New test.
* g++.dg/ext/visibility/new1.C: Likewise.

From-SVN: r85543

20 years agoconfigure.in: Eliminate uses of changequote (mostly by quoting []).
Nathanael Nerode [Wed, 4 Aug 2004 02:52:53 +0000 (02:52 +0000)]
configure.in: Eliminate uses of changequote (mostly by quoting []).

* configure.in: Eliminate uses of changequote (mostly by quoting []).
Replace most top level 'dnl' comments with '#' comments, conforming
to new autoconf style.  Use AS_HELP_STRING throughout; improve a few
help strings.
* configure: Rebuilt.

From-SVN: r85540

20 years ago* gcc.dg/compat/struct-layout-1.exp: Fix error message typo.
David Edelsohn [Wed, 4 Aug 2004 01:43:30 +0000 (01:43 +0000)]
* gcc.dg/compat/struct-layout-1.exp: Fix error message typo.

From-SVN: r85538

20 years ago* doc/install.texi: Update autoconf version requirements.
Nathanael Nerode [Wed, 4 Aug 2004 00:19:30 +0000 (00:19 +0000)]
* doc/install.texi: Update autoconf version requirements.

From-SVN: r85536

20 years agoDaily bump.
GCC Administrator [Wed, 4 Aug 2004 00:16:44 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85534

20 years agodefaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
Zack Weinberg [Tue, 3 Aug 2004 23:37:34 +0000 (23:37 +0000)]
defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.

* defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
* recog.c (general_operand, immediate_operand, nonmemory_operand)
(asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
* regclass.c (record_reg_classes): Likewise.
* reload.c (find_reloads): Likewise.
* reload1.c (reload): Likewise.

From-SVN: r85512

20 years agogensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args.
Zack Weinberg [Tue, 3 Aug 2004 23:30:45 +0000 (23:30 +0000)]
gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args.

* gensupport.c (init_md_reader_args_cb): Renamed from
init_md_reader_args.  Add third option, callback function for
parsing program-specific options.  Add diagnosis of incorrect
number of input files.
(init_md_reader): Fold into init_md_reader_args_cb.
(init_md_reader_args): Now a thin wrapper around
init_md_reader_args_cb.
* gensupport.h: Update prototypes.

* genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
* genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
* genrecog.c: No need to diagnose lack of an input file;
init_md_reader_args will handle it.
* genconditions.c: Likewise, and use init_md_reader_args.
* genconstants.c: Likewise, and no need to call read_md_rtx.

From-SVN: r85511

20 years agoc-decl.c (implicitly_declare): Diagnose incompatible implicit declarations.
Joseph Myers [Tue, 3 Aug 2004 22:09:13 +0000 (23:09 +0100)]
c-decl.c (implicitly_declare): Diagnose incompatible implicit declarations.

* c-decl.c (implicitly_declare): Diagnose incompatible implicit
declarations.

testsuite:
* gcc.dg/redecl-5.c: New test.
* gcc.dg/format/attr-6.c: Expect warning for implicit declaration
of scanf.

From-SVN: r85509

20 years agomaintainer-scripts (snapshot_print): New function.
Kelley Cook [Tue, 3 Aug 2004 21:42:18 +0000 (21:42 +0000)]
maintainer-scripts (snapshot_print): New function.

2004-08-03 Kelley Cook  <kcook@gcc.gnu.org>

* maintainer-scripts (snapshot_print): New function.
(announce_snapshot): Generate announcment on the fly.
Use a directory link for LATEST.
* snapshot-README: Delete.
* snapshot-index.html: Delete.

From-SVN: r85508

20 years agodarwin-c.c: Don't search in "/Local/Library/Frameworks" for frameworks.
Mike Stump [Tue, 3 Aug 2004 21:26:16 +0000 (21:26 +0000)]
darwin-c.c: Don't search in "/Local/Library/Frameworks" for frameworks.

* config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
for frameworks.
* doc/invoke.texi (Darwin Options): Update to reflect above.

From-SVN: r85507

20 years agore PR middle-end/16790 (Integer down cast ignored in larger expression)
Roger Sayle [Tue, 3 Aug 2004 21:24:32 +0000 (21:24 +0000)]
re PR middle-end/16790 (Integer down cast ignored in larger expression)

PR middle-end/16790
* fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
truncations, not just global truncations.

* gcc.c-torture/execute/pr16790-1.c: New test case.

From-SVN: r85506

20 years agosymbian1.c: New test.
Mark Mitchell [Tue, 3 Aug 2004 21:20:36 +0000 (21:20 +0000)]
symbian1.c: New test.

* gcc.dg/symbian1.c: New test.
* gcc.dg/symbian2.c: Likewise.

From-SVN: r85505

20 years agore PR bootstrap/16865 (False alarm about use of uninitialized variable breaks bootstr...
Andrew Pinski [Tue, 3 Aug 2004 21:13:15 +0000 (14:13 -0700)]
re PR bootstrap/16865 (False alarm about use of uninitialized variable breaks bootstrap at -O3)

2004-08-03  Andrew Pinski  <apinski@apple.com>

        PR bootstrap/16865
        * loop-iv.c (simplify_using_assignment): Initialize lhs.

From-SVN: r85504

20 years agoconfigure.in: Check for MPFR as well as GMP.
Paul Brook [Tue, 3 Aug 2004 21:11:29 +0000 (21:11 +0000)]
configure.in: Check for MPFR as well as GMP.

* configure.in: Check for MPFR as well as GMP.
* configure: Regenerate.
* gcc/doc/install.texi: Document MPFR requirement.

From-SVN: r85503

20 years agoRevert bogus portion of previous commit
Nathanael Nerode [Tue, 3 Aug 2004 20:52:01 +0000 (20:52 +0000)]
Revert bogus portion of previous commit

From-SVN: r85502

20 years agoconfigure.in: Turn mt-linux into mt-gnu.
Robert Millan [Tue, 3 Aug 2004 20:48:48 +0000 (20:48 +0000)]
configure.in: Turn mt-linux into mt-gnu.

ChangeLog:

2004-08-01  Robert Millan  <robertmh@gnu.org>

* configure.in: Turn mt-linux into mt-gnu. Use mt-gnu and enable
libmudflap for all GNU-based systems (with Glibc).
* configure: Regenerate.

config/ChangeLog:

2004-08-01  Robert Millan  <robertmh@gnu.org>

* mt-linux: Rename to ...
* mt-gnu: ... this.

libffi/ChangeLog:

2004-08-01  Robert Millan  <robertmh@gnu.org>

* configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
* configure: Regenerate.

From-SVN: r85501

20 years agoacinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly...
Maciej W. Rozycki [Tue, 3 Aug 2004 20:36:23 +0000 (20:36 +0000)]
acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly instead of relying on preset...

2004-07-30  Maciej W. Rozycki  <macro@linux-mips.org>

* acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
and mmap() explicitly instead of relying on preset autoconf cache
variables.
* aclocal.m4: Regenerate.
* configure: Regenerate.

From-SVN: r85500

20 years agoRemove spurious conflict marker
Nathanael Nerode [Tue, 3 Aug 2004 20:33:52 +0000 (20:33 +0000)]
Remove spurious conflict marker

From-SVN: r85499

20 years agoaclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly...
Maciej W. Rozycki [Tue, 3 Aug 2004 20:33:23 +0000 (20:33 +0000)]
aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly instead of relying on preset...

2004-07-30  Maciej W. Rozycki  <macro@linux-mips.org>

* aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
and mmap() explicitly instead of relying on preset autoconf cache
variables.
* configure: Regenerate.

From-SVN: r85498

20 years agore PR target/16570 (missing _mm_malloc and _mm_free functions in xmmintrin.h)
H.J. Lu [Tue, 3 Aug 2004 19:52:52 +0000 (12:52 -0700)]
re PR target/16570 (missing _mm_malloc and _mm_free functions in xmmintrin.h)

gcc/

2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>

PR target/16570
* config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
to tmake_file.
(i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
(i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
to tmake_file.

* config/i386/t-gmm_malloc: New file.
* config/i386/t-pmm_malloc: Likewise.

* config/i386/xmmintrin.h: Include <mm_malloc.h>.

2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
    Tanguy Fautr�  <tfautre@pandora.be>

* config/i386/pmm_malloc.h: New file.

2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>

* config/i386/gmm_malloc.h: New file.

gcc/testsuite/

2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>

PR target/16570
* gcc.dg/i386-sse-9.c: New test.

From-SVN: r85496

20 years agoacinclude.m4: Include no-executables.m4.
Nathanael Nerode [Tue, 3 Aug 2004 19:40:56 +0000 (19:40 +0000)]
acinclude.m4: Include no-executables.m4.

* acinclude.m4: Include no-executables.m4.
* aclocal.m4: Rebuild.
* configure.in: Convert to the autoconf 2.59 version of
of the no-executables hack, and also of the nonstandard CXX
hack and the multilibbed CC and CXX hack.  Change prerequisite
to autoconf 2.59.
* configure: Rebuild with autoconf 2.59.  (Woo-hoo!)
* Makefile.in, gcj/Makefile.in, include/Makefile.in,
testsuite/Makefile.in: Regenerate.

From-SVN: r85495

20 years agors6000.c (machopic_output_stub): Align Darwin stubs.
Dale Johannesen [Tue, 3 Aug 2004 18:23:35 +0000 (18:23 +0000)]
rs6000.c (machopic_output_stub): Align Darwin stubs.

2004-08-03  Dale Johannesen  <dalej@apple.com>

* config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
* c-common.c: Include opts.h.
(c_common_get_alias_set): Fix check for a single input file.
* toplev.c: Remove current_file_decl.
* tree.h: Ditto.

From-SVN: r85492

20 years ago* jni.cc: Reindented.
Tom Tromey [Tue, 3 Aug 2004 17:38:30 +0000 (17:38 +0000)]
* jni.cc: Reindented.

From-SVN: r85491

20 years agoconfig.gcc (arm*-*-symbianelf*): New target.
Mark Mitchell [Tue, 3 Aug 2004 17:38:09 +0000 (17:38 +0000)]
config.gcc (arm*-*-symbianelf*): New target.

* config.gcc (arm*-*-symbianelf*): New target.
* config/arm/symbian.h: New file.

From-SVN: r85490

20 years agogthr-gnat.c: Add visibility #pragmas.
Mark Mitchell [Tue, 3 Aug 2004 16:57:40 +0000 (16:57 +0000)]
gthr-gnat.c: Add visibility #pragmas.

* gthr-gnat.c: Add visibility #pragmas.
* gthr-gnat.h : Likewise.
* gthr.h: Likewise.
* libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
(__ffsDI2): Likewise.
(__clzSI2): Likewise.
(__ctzSI2): Likewise.
(__ctzDI2): Likewise.
(__popcountSI2): Likewise.
(__popcountDI2): Likewise.
(__paritySI2): Likewise.
(__parityDI2): Likewise.
* libgcc2.h: Add visibility #pragmas.
(__clzDI2): Add prototype.
(__clzSI2): Likewise.
(__ctzSI2): Likewise.
(__ffsDI2): Likewise.
(__ffsSI2): Likewise.
(__ctzDI2): Likewise.
(__popcountSI2): Likewise.
(__popcountDI2): Likewise.
(__paritySI2): Likewise.
(__parityDI2): Likewise.
* unwind-dw2-fde.h: Add visibility #pragmas.
* unwind.h: Likewise.

From-SVN: r85489

20 years agors6000.c (rs6000_rtx_costs): Calculate cost of constants more accurately.
David Edelsohn [Tue, 3 Aug 2004 15:31:38 +0000 (15:31 +0000)]
rs6000.c (rs6000_rtx_costs): Calculate cost of constants more accurately.

        * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
        constants more accurately.  Adjust costs for FMA instructions.
        Add cases for most logical and float operations.  Recurse into
        most operands.

Co-Authored-By: Dale Johannesen <dalej@apple.com>
Co-Authored-By: Roger Sayle <roger@eyesopen.com>
From-SVN: r85488

20 years ago* config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
Richard Earnshaw [Tue, 3 Aug 2004 15:22:03 +0000 (15:22 +0000)]
* config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.

From-SVN: r85487

20 years agora-build.c (conflicts_between_webs): For webs that cross a call add conflicts to...
Pat Haugen [Tue, 3 Aug 2004 15:00:49 +0000 (15:00 +0000)]
ra-build.c (conflicts_between_webs): For webs that cross a call add conflicts to regs_invalidated_by_call.

2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>

        * ra-build.c (conflicts_between_webs): For webs that cross a call add
        conflicts to regs_invalidated_by_call.

From-SVN: r85482

20 years ago* config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
Paul Brook [Tue, 3 Aug 2004 14:30:46 +0000 (14:30 +0000)]
* config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.

From-SVN: r85480

20 years ago* gcc.dg/array-7.c, gcc.dg/c99-tag-2.c: New tests.
Joseph Myers [Tue, 3 Aug 2004 14:19:39 +0000 (15:19 +0100)]
* gcc.dg/array-7.c, gcc.dg/c99-tag-2.c: New tests.

From-SVN: r85479