Commit Graph

69527 Commits

Author SHA1 Message Date
R. Kelley Cook 6c912b0cb6 Update FSF address.
From-SVN: r101313
2005-06-25 01:11:52 +00:00
Kelley Cook 1788952fea Update FSF address.
From-SVN: r101312
2005-06-25 00:59:41 +00:00
Kelley Cook 356f9ab377 gengtype.c: Update FSF address in copyright header.
2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>

	* gengtype.c: Update FSF address in copyright header.
	(create_file): Update FSF in outputed copyright header.

From-SVN: r101311
2005-06-25 00:55:40 +00:00
Kelley Cook ab57747bb0 Update FSF address.
From-SVN: r101310
2005-06-25 00:40:37 +00:00
Kelley Cook f12c30a8f1 Update FSF address.
From-SVN: r101309
2005-06-25 00:33:05 +00:00
GCC Administrator 41fbc02fda Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r101307.2
2005-06-25 00:16:21 +00:00
Geoffrey Keating 246e0bd879 inclhack.def (AAB_darwin7_9_long_double_funcs): New.
* inclhack.def (AAB_darwin7_9_long_double_funcs): New.
	(AAB_darwin7_9_long_double_funcs_2): New.
	* fixincl.x: Regenerate.

From-SVN: r101305
2005-06-24 23:43:15 +00:00
Jerry DeLisle 1e399e2331 re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics)
2005-06-24  Jerry DeLisle <jvdelisle@verizon.net>

    PR fortran/21915
    * gfortran.h: Add symbols for new intrinsics
    * intrinsic.c: Add acosh, asinh, and atanh
    * intrinsic.h: Add prototypes
    * iresolve.c (gfc_resolve_acosh): New function
    (gfc_resolve_asinh): New
    (gfc_resolve_atanh): New
    * mathbuiltins.def: Add defines
    * simplify.c (gfc_simplify_acosh): New function
    (gfc_simplify_asinh): New
    (gfc_simplify_atanh): New

From-SVN: r101304
2005-06-24 23:12:32 +00:00
Jerry DeLisle e138a19f6b re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics)
2005-06-24  Jerry DeLisle <jvdelisle@verizon.net>

    PR libfortran/21915
    * intrinsics/hyper.c: New file, adds wrapper functions

From-SVN: r101303
2005-06-24 23:09:47 +00:00
Jerry DeLisle f02d008e26 re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics)
2005-06-24  Jerry DeLisle <jvdelisle@verizon.net>

    PR libfortran/21915
    * Makefile.am: include intrinsics/hyper.c
    * c99_protos.h: add prototypes for single precision versions of
    acosh, asinh, and atanh for platforms that do not have these
    * config.h.in: add #undef for wrappers
    * configure.ac: add checks for single precision versions
    * aclocal.m4: generated
    * Makefile.in: generated
    * configure: generated

From-SVN: r101302
2005-06-24 23:07:13 +00:00
Tom Tromey 42c5169549 natClassLoader.cc (_Jv_UnregisterClass): Handle case where class' name is NULL.
* java/lang/natClassLoader.cc (_Jv_UnregisterClass): Handle case
	where class' name is NULL.
	(_Jv_FindClass): Don't wait for class state.
	* java/lang/natVMClassLoader.cc (defineClass): Only unregister if
	name found.
	* include/java-interp.h (_Jv_DefineClass): Updated.
	* defineclass.cc (_Jv_DefineClass): Added 'name_result' argument.
	(struct _Jv_ClassReader): Likewise.
	(found_name): New field.
	(handleClassBegin): Set *found_name.
	(_Jv_VerifyMethodSignature): Handle case where ptr==NULL.
	(handleClassBegin): Throw error if super class not set.
	(read_methods): Correctly call check_tag and prepare_pool_entry.

From-SVN: r101301
2005-06-24 22:48:33 +00:00
Tom Tromey b7938f087d * boehm.cc (_Jv_MarkObj): Handle case where field's type is NULL.
From-SVN: r101300
2005-06-24 22:14:03 +00:00
Tom Tromey aca02b7e00 verify-impl.c (verify_instructions_0): Correctly handle situation where PC falls off end.
gcc/java/:
	* verify-impl.c (verify_instructions_0): Correctly handle
	situation where PC falls off end.
libjava/:
	* verify.cc (verify_instructions_0): Correctly handle situation
	where PC falls off end.

From-SVN: r101299
2005-06-24 22:09:15 +00:00
Tom Tromey 6a05987083 interpret.cc (compile): Handle case where table entry is outside of PC range.
* interpret.cc (compile): Handle case where table entry is
	outside of PC range.

From-SVN: r101298
2005-06-24 22:04:11 +00:00
Kazu Hirata 011646f5ef cfglayout.c (block_locators_locs, [...]): Change the type to VEC(int,heap)*.
* cfglayout.c (block_locators_locs, line_locators_locs,
	line_locators_lines, file_locators_locs): Change the type to
	VEC(int,heap)*.
	(insn_locators_initialize, change_scope, insn_scope,
	locator_line, insn_line, locator_file): Use VEC instead of
	VARRAY.

From-SVN: r101297
2005-06-24 21:55:32 +00:00
Jason Merrill 0620800904 tree-nrv.c (tree_nrv): Fix to check assignments to the RESULT_DECL rather than just RETURN_EXPRs.
* tree-nrv.c (tree_nrv): Fix to check assignments to the
        RESULT_DECL rather than just RETURN_EXPRs.
        (finalize_nrv_r): Adjust.

From-SVN: r101296
2005-06-24 15:30:20 -04:00
Jan Hubicka ce91e74c18 tree-optimize.c (init_tree_optimization_passes): Fix flags of all_passes and all_ipa_passes.
* tree-optimize.c (init_tree_optimization_passes): Fix flags of
	all_passes and all_ipa_passes.

	* c-common.c: Include cgraph.h
	(handle_externally_visible_attribute): New function.
	(c_common_att): Add "externally_visible" attribute.
	* cgraph.c (decide_is_variable_needed): Obey externally
	visible flag.
	(cgraph_varpool_finalize_decl): Avoid redundant checking.
	* cgraph.h (struct cgraph_node): New flag externally_visible.
	(decide_is_function_needed): Obey externally visible flag.
	(cgraph_finalize_function): Avoid redundant checks.
	(cgraph_function_and_variable_visibility): Bring symbols local
	when asked for.
	* common.opt (fwhole-program): New flag.

	* doc/invoke.texi (-fwhole-program): Document.

From-SVN: r101295
2005-06-24 15:14:04 +00:00
Jason Merrill 62765fb14a tweak comment
From-SVN: r101294
2005-06-24 10:21:13 -04:00
Mark Mitchell 707db096bc re PR tree-optimization/22171 (gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c)
PR 22171
	* tree-ssa-operands (get_expr_operands): Check s_ann for NULL
	before use.

From-SVN: r101293
2005-06-24 13:52:35 +00:00
Mark Mitchell 68c1abf1e0 re PR tree-optimization/22171 (gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c)
PR 22171
	* tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL
	before use.

	PR 22171
	* gcc.dg/tree-ssa/pr22171.c: New test.

From-SVN: r101292
2005-06-24 13:27:25 +00:00
Mark Mitchell 305a132148 re PR tree-optimization/22000 (Read from volatile member of struct is optimized away)
PR 22000
	* tree-ssa-operands.c (get_expr_operands): Check the volatility of
	the FIELD_DECL and set s_ann->has_volatile_ops accordingly.

From-SVN: r101289
2005-06-24 03:38:05 +00:00
Feng Wang a3504e64ab simplify.c (gfc_simplify_modulo): Don't clear before get result.
2005-06-24  Feng Wang  <fengwang@nudt.edu.cn>

        * simplify.c (gfc_simplify_modulo): Don't clear before get result.


2005-06-24  Feng Wang  <fengwang@nudt.edu.cn>

        * gfortran.dg/simplify_modulo.f90: New.

From-SVN: r101288
2005-06-24 03:23:04 +00:00
Jan Hubicka b8807f054b * opts.c (decode_options): Enable unit-at-a-time by default at -O1.
From-SVN: r101287
2005-06-24 03:09:54 +00:00
Ziemowit Laski ee18782ffc proto-lossage-[1-4].mm: New.
[gcc/testsuite/ChangeLog]
2005-06-23  Ziemowit Laski  <zlaski@apple.com>

        * obj-c++.dg/proto-lossage-[1-4].mm: New.

From-SVN: r101284
2005-06-24 01:03:21 +00:00
Ziemowit Laski 0c9b7e9b5a typedef-alias-1.mm: New.
[gcc/testsuite/ChangeLog]
2005-06-23  Ziemowit Laski  <zlaski@apple.com>

        * obj-c++.dg/typedef-alias-1.mm: New.
        * objc.dg/typedef-alias-1.m: New.

From-SVN: r101281
2005-06-24 00:22:52 +00:00
GCC Administrator 602174abff Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r101279.2
2005-06-24 00:16:16 +00:00
Jeff Law 9490876243 tree-optimize.c (init_tree_optimization_passes): Move copy prop pass to run just before VRP.
* tree-optimize.c (init_tree_optimization_passes): Move
        copy prop pass to run just before VRP.
        * tree-vrp.c (remove_range_assertions): Remove copies created
        by ASSERT_EXPR removal.

        * gcc.dg/tree-ssa/vrp16.c: New test.

From-SVN: r101277
2005-06-23 16:00:44 -06:00
Francois-Xavier Coudert 32aa3bffc3 c99_functions.c (log10l): New log10l function for systems where this is not available.
* intrinsics/c99_functions.c (log10l): New log10l function for
	systems where this is not available.
	* c99_protos.h: Prototype for log10l function.
	* libgfortran.h: Use generated kinds.h to define GFC_INTEGER_*,
	GFC_UINTEGER_*, GFC_LOGICAL_*, GFC_REAL_*, GFC_COMPLEX_*. Update
	prototypes for gfc_itoa and xtoa.
	* io/io.h: Update prototypes for set_integer and max_value.
	* io/list_read.c (convert_integer): Use new
	GFC_(INTEGER|REAL)_LARGEST type.
	* io/read.c (set_integer): Likewise.
	(max_value): Likewise.
	(convert_real): Likewise.
	(real_l): Likewise.
	(next_char): Likewise.
	(read_decimal): Likewise.
	(read_radix): Likewise.
	(read_f): Likewise.
	* io/write.c (extract_int): Use new GFC_INTEGER_LARGEST type.
	(extract_real): Use new GFC_REAL_LARGEST type.
	(calculate_exp): Likewise.
	(calculate_G_format): Likewise.
	(output_float): Likewise. Use log10l for long double values.
	Add comment for sprintf format. Use GFC_REAL_LARGEST_FORMAT.
	(write_l): Use new GFC_INTEGER_LARGEST type.
	(write_float): Use new GFC_REAL_LARGEST type.
	(write_int): Remove useless special case for (len < 8).
	(write_decimal): Use GFC_INTEGER_LARGEST.
	(otoa): Use GFC_UINTEGER_LARGEST as argument.
	(btoa): Use GFC_UINTEGER_LARGEST as argument.
	* runtime/error.c (gfc_itoa): Use GFC_INTEGER_LARGEST as
	argument.
	(xtoa): Use GFC_UINTEGER_LARGEST as argument.
	* Makefile.am: Use mk-kinds-h.sh to generate header kinds.h
	with all Fortran kinds available.
	* configure.ac: Check for strtold and log10l.
	* Makefile.in: Regenerate.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* config.h.in: Regenerate.
	* mk-kinds-h.sh: Configuration script for available integer
	and real kinds.
	* lib/target-supports.exp: Add
	check_effective_target_fortran_large_real and
	check_effective_target_fortran_large_int to check for
	corresponding effective targets.
	* gfortran.dg/large_integer_kind_1.f90: New test.
	* gfortran.dg/large_real_kind_1.f90: New test.

From-SVN: r101274
2005-06-23 18:50:25 +00:00
Jakub Jelinek 462ec41561 re PR libstdc++/22109 (/home/dave/opt/gnu/bin/ld: BFD 2.16.91 20050612 internal error)
PR libstdc++/22109
	* src/compatibility.cc (_GLIBCXX_SYMVER_COMPATIBILITY): Remove.
	(istreambuf_iterator, basic_fstream, basic_ifstream, basic_ofstream,
	_M_copy, _M_move, _M_assign, _M_disjunct, _M_check_length,
	_M_set_length_and_sharable, ignore, eq): Define to XX suffixed
	variants.
	(ignore (streamsize)): Remove _W prefixed aliases.
	(_GLIBCXX_3_4_SYMVER_SPECIAL, _GLIBCXX_3_4_5_SYMVER_SPECIAL,
	_GLIBCXX_APPLY_SYMVER_SPECIAL): Remove.
	(_GLIBCXX_3_4_SYMVER, _GLIBCXX_3_4_5_SYMVER): Add XXname argument.
	Use #XXname instead of #name as the alias argument.
	* config/abi/compatibility.h: Replace uses of
	_GLIBCXX_APPLY_SYMVER_SPECIAL with _GLIBCXX_APPLY_SYMVER.  Always
	pass 2 arguments to the _GLIBCXX_APPLY_SYMVER macro.
	* include/bits/char_traits.h (char_traits::eq): Revert 2005-06-15
	change.
	* acinclude.m4: Decrease glibcxx_min_gnu_ld_version back to 21400.
	* configure: Rebuilt.

From-SVN: r101273
2005-06-23 18:49:00 +02:00
Kazu Hirata e57f2b4144 re PR tree-optimization/22117 (VRP thinks <ptr type> + <ptr type> is always nonnull.)
gcc/
	PR tree-optimization/22117
	* tree-vrp.c (extract_range_from_binary_expr): Compute a
	correct range when adding two pointers.

testsuite/
	PR tree-optimization/22117
	* gcc.dg/tree-ssa/pr22117.c: New.

From-SVN: r101272
2005-06-23 16:04:09 +00:00
James A. Morrison a31de5014b re PR testsuite/22123 (gcc.dg/fold-mod-1.c scan-tree-dump a % 4294967288 fails)
2005-06-23  James A. Morrison  <phython@gcc.gnu.org>

        PR testsuite/22123
        * gcc.dg/fold-mod-1.c: Accept fffffff8 as well.

From-SVN: r101271
2005-06-23 15:08:38 +00:00
Bryce McKinlay c0f6dc941d re PR java/20697 (Invalid Can't find method error on call to super)
PR java/20697
	* parse.y (find_most_specific_methods_list): Remove special case for
	inner classes.

From-SVN: r101270
2005-06-23 16:00:50 +01:00
Jason Merrill fa47911c56 re PR c++/19317 (removing a temporary return value when we cannot)
PR c++/19317
        Leave the return slot target in the MODIFY_EXPR rather than making
        it an argument, but only use it if the CALL_EXPR has a flag set.
        * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): Rename to
        CALL_EXPR_RETURN_SLOT_OPT.
        * calls.c (expand_call): Adjust.
        * tree-inline.c (expand_call_inline): Adjust.
        * tree-pretty-print.c (dump_generic_node): Adjust.

        And set the flag as appropriate.
        * gimplify.c (gimplify_modify_expr_rhs): Set
        CALL_EXPR_HAS_RETURN_SLOT_ADDR where the LHS is obviously safe.
        * tree-nrv.c (execute_return_slot_opt): Set
        CALL_EXPR_HAS_RETURN_SLOT_ADDR based on escape analysis.
        * tree-pass.h: Declare pass_return_slot.
        * tree-optimize.c (init_tree_optimization_passes): Add it.

        * cp/semantics.c (simplify_aggr_init_expr): Use
        CALL_EXPR_RETURN_SLOT_OPT, not CALL_EXPR_HAS_RETURN_SLOT_ADDR.

From-SVN: r101269
2005-06-23 10:44:21 -04:00
David Edelsohn f565b0a1a5 re PR target/21760 (Powerpc atomic builtins missing PPC405 errata)
PR target/21760
        * config/rs6000/rs6000.h (PPC405_ERRATUM77): New.
        * config/rs6000/rs6000.md: Move atomic instructions to ...
        * config/rs6000/sync.md: Here.
        Change sync_compare_and_swap<mode> to define_expand.  All stwcx
        patterns test PPC405_ERRATUM77.

From-SVN: r101268
2005-06-23 09:24:14 -04:00
David Edelsohn 2de3f2f3a4 * gcc.dg/rs6000-fpint-2.c: Only compile on Darwin and Linux.
From-SVN: r101267
2005-06-23 09:20:18 -04:00
Jan Hubicka 17acc01a46 * tree-inline.c (copy_body_r): Remap labels correctly.
From-SVN: r101266
2005-06-23 13:20:02 +00:00
Jan Hubicka 6c8cba6db4 * tree-inline.c (copy_body_r): Remap labels correctly.
From-SVN: r101265
2005-06-23 13:10:37 +00:00
Paolo Bonzini c7870f5d15 Makefile.def (stagefeedback): Come after profile.
2005-06-22  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.def (stagefeedback): Come after profile.
	Define profiledbootstrap target.
	* Makefile.tpl (profiledbootstrap): Remove.
	(stageprofile-end): Zap stagefeedback.
	(stagefeedback-start): Copy all .gcda files, not only GCC's.
	* Makefile.in: Regenerate.

From-SVN: r101263
2005-06-23 07:31:23 +00:00
David Billinghurst 09102896e8 f2c_4.f90: Add tests for complex functions
2005-06-23  David Billinghurst  <David.Billinghurst@riotinto.com>

	* gfortran.dg/f2c_4.f90:  Add tests for complex functions
	* gfortran.dg/f2c_4.c: Likewise

From-SVN: r101262
2005-06-23 03:57:24 +00:00
David Billinghurst 127c51ed48 f2c_4.f90: Add tests for complex functions
2005-06-23  David Billinghurst  <David.Billinghurst@riotinto.com>

	* gfortran.dg/f2c_4.f90:  Add tests for complex functions
	* gfortran.dg/f2c_4.c: Likewise

From-SVN: r101261
2005-06-23 03:01:57 +00:00
Alan Modra c08a3565c2 * config/rs6000/sysv4.h (TARGET_ASM_EXCEPTION_SECTION): Delete.
From-SVN: r101260
2005-06-23 12:05:01 +09:30
GCC Administrator 91f77d3da4 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r101257.2
2005-06-23 00:16:21 +00:00
Volker Reichelt e4227c0fc5 * pt.c (register_specialization): Remove superfluous assertion.
From-SVN: r101253
2005-06-22 22:47:26 +00:00
Paul Brook bd83e6142d re PR fortran/21034 ([4.0 only] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036)
2005-06-22 Paul Brook  <paul@codesourcery.com>

	PR fortran/21034
	* symbol.c (gfc_is_var_automatic): New function.
	(save_symbol): Use it.
testsuite/
	* gfortran.dg/auto_save_1.f90: New test.

From-SVN: r101250
2005-06-22 15:34:02 +00:00
Michael Matz aacb351279 abi: New directory.
* gcc.target/x86-64/abi: New directory.
        * gcc.target/x86-64/abi/abi-x86_64.exp: New testsuite.
        * gcc.target/x86-64/abi/README.gcc: New file.
        * gcc.target/x86-64/abi/{args.h,defines.h,macros.h}: New headers.
        * gcc.target/x86-64/abi/asm-support.s: New file.
        * gcc.target/x86_64/abi/test_3_element_struct_and_unions.c: New test.
        * gcc.target/x86_64/abi/test_basic_alignment.c: New test.
        * gcc.target/x86_64/abi/test_basic_array_size_and_align.c: New test.
        * gcc.target/x86_64/abi/test_basic_returning.c: New test.
        * gcc.target/x86_64/abi/test_basic_sizes.c: New test.
        * gcc.target/x86_64/abi/test_basic_struct_size_and_align.c: New test.
        * gcc.target/x86_64/abi/test_basic_union_size_and_align.c: New test.
        * gcc.target/x86_64/abi/test_bitfields.c: New test.
        * gcc.target/x86_64/abi/test_complex_returning.c: New test.
        * gcc.target/x86_64/abi/test_passing_floats.c: New test.
        * gcc.target/x86_64/abi/test_passing_integers.c: New test.
        * gcc.target/x86_64/abi/test_passing_structs_and_unions.c: New test.
        * gcc.target/x86_64/abi/test_passing_structs.c: New test.
        * gcc.target/x86_64/abi/test_passing_unions.c: New test.
        * gcc.target/x86_64/abi/test_struct_returning.c: New test.
        * gcc.target/x86_64/abi/test_varargs.c: New test.

From-SVN: r101249
2005-06-22 14:51:07 +00:00
Richard Kenner 0d26b2ff45 re PR middle-end/20593 (Simple array of string access miscompiled on x86 and x86_64 and PPC)
2005-06-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

        PR middle-end/20593
        * varasm.c (compute_reloc_for_constant): Treat VIEW_CONVER_EXPR
        the same as the other cast operands.
        (output_addressed_constants): Likewise.

From-SVN: r101248
2005-06-22 06:38:19 -07:00
Kelley Cook feffe3353f Makefile.am (SUBDIRS): Use append for conditional.
2005-06-22  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.am (SUBDIRS): Use append for conditional.
	(toolexeclib_LTLIBRARIES): Likewise.
	(lib_gnu_java_awt_peer_gtk_la_SOURCES): Directly define with
	a conditional append.
	* Makefile.in: Regenerate.

From-SVN: r101246
2005-06-22 01:30:12 +00:00
GCC Administrator aee95d5545 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r101242.2
2005-06-22 00:16:28 +00:00
Joseph Myers ed059c566d mangle24.C, mangle25.C: Pass -mmmx for 32-bit i?86 and x86_64.
* g++.dg/abi/mangle24.C, g++.dg/abi/mangle25.C: Pass -mmmx for
	32-bit i?86 and x86_64.

From-SVN: r101240
2005-06-22 00:00:45 +01:00
Ziemowit Laski 01277dc46a const-str-[1-9].mm: New tests.
[gcc/testsuite/ChangeLog]
2005-06-21  Ziemowit Laski  <zlaski@apple.com>

        * obj-c++.dg/const-str-[1-9].mm: New tests.

From-SVN: r101237
2005-06-21 21:13:46 +00:00