Commit Graph

70301 Commits

Author SHA1 Message Date
H.J. Lu
adb7b76436 re PR target/23360 (-ffast-math startup broken on i686 (maybe Athlon-xp))
2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/23360
	* config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
	available for setting it.

From-SVN: r103078
2005-08-14 07:26:51 -07:00
Ira Rosen
1f400bbb8f re PR tree-optimization/23320 (ICE in in base_addr_differ_p, at tree-data-ref.c:430)
PR tree-optimization/23320
        * tree-data-ref.c (base_addr_differ_p): Add comment. Check
        data-refs' types instead of base object nullness. Add check for
        pointer type data-refs before first location comparison. Remove
        assert.

From-SVN: r103076
2005-08-14 06:28:03 +00:00
Ira Rosen
7d465f1def re PR tree-optimization/23119 (gcc.dg/vect/vect-105.c scan-tree-dump-times vectorized 1 loops 1 fails)
PR tree-optimization/23119
        * gcc.dg/vect/vect-105.c: Add xfail for no_align targets.

From-SVN: r103075
2005-08-14 06:13:30 +00:00
Canqun Yang
442c1644c7 trans-stmt.c (gfc_trans_arithmetic_if): Optimized in case of equal labels.
* trans-stmt.c (gfc_trans_arithmetic_if): Optimized in case of equal
	labels.

From-SVN: r103074
2005-08-14 10:06:06 +08:00
Marcin Koziej
ee1658f343 re PR libobjc/22492 ([PATCH] Abort after @finally: libobjc passing exception value instead of exception.)
libobjc/ChangeLog:

2005-08-13  Marcin Koziej  <creep@desk.pl>
            Andrew Pinski  <pinskia@physics.uc.edu>

	PR libobjc/22492
	* exception.c (PERSONALITY_FUNCTION): Fix the PC with finally.

testsuite/ChangeLog:
2005-08-13  Marcin Koziej  <creep@desk.pl>
            Andrew Pinski  <pinskia@physics.uc.edu>

	PR libobjc/22492
	* execute/exceptions/finally-1.m: New test.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>

From-SVN: r103073
2005-08-13 19:01:52 -07:00
Andrew Pinski
65045c0903 nested-func-1.m: Move to ...
2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * objc.dg/nested-func-1.m: Move to ...
        * objc/execute/nested-func-1.m: Here.

From-SVN: r103072
2005-08-13 18:33:13 -07:00
Andrew Pinski
d3748cf565 exceptions.exp: New exp for the exceptions testsuite.
* objc/execute/exceptions/exceptions.exp: New exp for the exceptions
	testsuite.
	* objc/execute/exceptions/trivial.m: New test.
	* objc.dg/try-catch-11.m: Move to ...
	* objc/execute/exceptions/foward-1.m: Here.
	* objc.dg/try-catch-2.m: Move to ...
	* objc/execute/exceptions/catchall-1.m: Here.
	* objc.dg/try-catch-8.m: Move to ...
	* objc/execute/exceptions/local-variables-1.m: Here.

From-SVN: r103071
2005-08-13 17:58:26 -07:00
GCC Administrator
ba35b9c4ae Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103068.2
2005-08-14 00:16:14 +00:00
Andreas Schwab
db875b15ff * doc/md.texi (Machine Constraints): Fix misplaced @end table.
From-SVN: r103065
2005-08-13 23:54:11 +00:00
Andrew Pinski
a5a813f891 Makefile.in (extra_ldflags_libobjc): New.
2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * Makefile.in (extra_ldflags_libobjc): New.
        (libobjc$(libext).la): Add extra_ldflags_libobjc to the link line.
        (libobjc_gc$(libext).la): Likewise.
        * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
        "-Wl,-single_module".
        * configure: Regenerate.
        * linking.m (_objcInit): Remove.

From-SVN: r103064
2005-08-13 16:44:14 -07:00
Andrew Pinski
4f5dce2b35 objc.exp (objc_target_compile): Check for -fgnu-runtime in ${options} instead of [target_info name].
2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * lib/objc.exp (objc_target_compile): Check for -fgnu-runtime
        in ${options} instead of [target_info name].
        * lib/obj-c++.exp (objc_target_compile): Likewise.

From-SVN: r103063
2005-08-13 16:36:21 -07:00
Andrew Pinski
ffacdfa192 stubify-2.m: Correct the name of the rtl dump file.
2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * objc.dg/stubify-2.m: Correct the name of the rtl dump file.

From-SVN: r103062
2005-08-13 14:41:53 -07:00
Andrew Pinski
4179a4142c part of PR testsuite/23348
2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>

        part of PR testsuite/23348
        * lib/objc-torture.exp: Add -fgnu-runtime and/or -fnext-runtime to each
        of the torture options.
        * objc/compile/trivial.m: New test.

From-SVN: r103061
2005-08-13 14:16:04 -07:00
James E Wilson
0ffb94cd68 Document compatibility with earlier ProPolice implementation.
* c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
macros.

From-SVN: r103058
2005-08-13 13:58:02 -07:00
James E Wilson
0aca9021cd Add missing docs for feature added by Richard Henderson.
* doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
* doc/invoke.texi (-Wstack-protector, -fstack-protector,
-fstack-protector-all, --param ssp-buffer-size): Document.
(-Wvariadic-macros): Alphabetize.
(-fsched-stalled-insns-dep): Add missing 'f'.

From-SVN: r103057
2005-08-13 13:52:01 -07:00
David Edelsohn
3256a76e62 rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed or indirect address operand.
* config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
        or indirect address operand.
        (EXTRA_ADDRESS_CONSTRAINT): New.
        * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".

From-SVN: r103056
2005-08-13 14:47:08 -04:00
Sebastian Pop
d77704579c re PR tree-optimization/22236 (wrong code for casts and scev)
PR tree-optimization/22236
	* tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
	successors and predecessors.
	* tree-chrec.c (chrec_convert): Before converting, check that
	sequences don't wrap.
	* tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
	(analyze_array): Extern.
	(find_data_references_in_loop): Remove call to
	compute_estimated_nb_iterations.
	* tree-data-ref.h (analyze_array): Declared.
	* tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
	single_ssa_def_operand, zero_ssa_operands): Fix documentation.
	* tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
	* tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
	condition.
	* tree-ssa-loop-ivcanon.c: Fix documentation.
	* tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
	* tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
	(infer_loop_bounds_from_undefined): New.
	(estimate_numbers_of_iterations_loop): Use
	infer_loop_bounds_from_undefined.
	(used_in_pointer_arithmetic_p): New.
	(scev_probably_wraps_p): Pass an extra parameter.  Call
	used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
	(convert_step): Fix documentation.
	* tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
	Use initial_condition_in_loop_num and evolution_part_in_loop_num
	instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
	scev_probably_wraps_p.

From-SVN: r103055
2005-08-13 17:28:43 +00:00
Ulrich Weigand
e2df5c1dee s390.c (s390_split_branches): Revert 2005-08-12 change.
* config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
	(s390_register_info): Ignore clobbered_regs information for fixed
	registers, and only fixed registers.
	(s390_init_frame_layout): Remove redundant call.

From-SVN: r103054
2005-08-13 11:08:21 +00:00
GCC Administrator
18f0b880ce Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103048.2
2005-08-13 00:16:12 +00:00
Thomas Koenig
68c41a6cc4 eoshift.f90: Correct format.
2005-08-12  Thomas Koenig  <Thomas.Koenig@online.de>

	* gfortran.dg/eoshift.f90:  Correct format.

From-SVN: r103045
2005-08-12 20:02:43 +00:00
Gerald Pfeifer
7cd5c07539 invoke.texi (C++ Dialect Options): Add dynamic_cast to description of -Wold-style-casts.
* doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
	description of -Wold-style-casts.

From-SVN: r103044
2005-08-12 20:02:27 +00:00
Thomas Koenig
a0b6babc1b 005-08-12 Thomas Koenig <Thomas.Koenig@online.de>
* gfortran.fortran-torture/execute/character_passing.f90:
        Fix comment typo.

From-SVN: r103042
2005-08-12 19:42:12 +00:00
Maciej W. Rozycki
6a134f1c7a * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r103041
2005-08-12 18:09:47 +00:00
Morgan Deters
25c76a15f7 re PR libgcj/23353 (clone() copies internal lock data with hash synchronization off)
2005-08-12  Morgan Deters  <mdeters@morgandeters.com>

	PR libgcj/23353:
	* java/lang/natObject.cc (clone): Clear sync_info.

From-SVN: r103039
2005-08-12 16:40:32 +00:00
Paolo Bonzini
2693c0b0b3 configure.in: Replace NCN_STRICT_CHECK_TOOL with NCN_STRICT_CHECK_TOOLS...
toplevel:
2005-08-12  Paolo Bonzini  <bonzini@gnu.org>

	* configure.in: Replace NCN_STRICT_CHECK_TOOL with
	NCN_STRICT_CHECK_TOOLS, and likewise for NCN_STRICT_CHECK_TARGET_TOOLS.
	Look for alternate names of the target cc and c++
	* configure: Regenerate.

config:
2005-08-12  Paolo Bonzini  <bonzini@gnu.org>

	* config/acx.m4 (NCN_CHECK_TARGET_TOOL, NCN_STRICT_CHECK_TOOL,
	NCN_STRICT_CHECK_TARGET_TOOL): Remove.
	(NCN_STRICT_CHECK_TOOLS, NCN_STRICT_CHECK_TARGET_TOOLS): New,
	based on the deleted macros.

From-SVN: r103036
2005-08-12 14:18:46 +00:00
Andreas Krebbel
7b8acc3494 linux.h (TARGET_THREAD_SSP_OFFSET): Define.
2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
	    Jakub Jelinek  <jakub@redhat.com>

	* config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
	* config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
	* config/s390/s390.c (print_operand): New output modifier 'G' added.
	(get_thread_pointer): Renamed to s390_get_thread_pointer.
	* config/s390/s390.md (stack_protect_set, stack_protect_test): If
	TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
	(MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
	(UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
	("stack_protect_set", "stack_protect_test"): New expanders.
	("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
	"stack_protect_testdi"): New insn definitions.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r103034
2005-08-12 13:49:18 +00:00
Andreas Krebbel
4700982dd7 s390.md ("*movdf_31"): Changed constraint from P to K.
2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.

From-SVN: r103033
2005-08-12 13:41:28 +00:00
Paul Brook
3c60bed51c lib1funcs.asm: Error if __ARM_ARCH__ not set.
2005-08-12  Paul Brook  <paul@codesourcery.com>

	* config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.

[[Split portion of a mixed commit.]]

From-SVN: r103029.2
2005-08-12 13:18:36 +00:00
Andreas Krebbel
f83a336ddb predicates.md (setmem_operand): New predicate.
2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/predicates.md (setmem_operand): New predicate.
	(shift_count_operand): Accept ANDs with special constants as
	operand.
	* config/s390/s390.c (print_shift_count_operand): Skip ANDs
	with special constants.
	* config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
	shift_count_operand with setmem_operand.

From-SVN: r103028
2005-08-12 12:24:05 +00:00
Andreas Krebbel
c4d501291d s390.c (s390_extract_part, [...]): Type cast added.
2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.c (s390_extract_part, s390_single_part):
	Type cast added.
	(s390_const_ok_for_constraint_p): Added SImode to the N constraint.
	(s390_output_mi_thunk): Don't use lg on 31 bit.
	* config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
	("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.

From-SVN: r103027
2005-08-12 12:10:30 +00:00
Andreas Krebbel
b5c67a4957 s390.c (CONST_OK_FOR_J, [...]): New macros.
2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
	(s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
	s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
	s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
	with one of the new macros.

From-SVN: r103026
2005-08-12 12:02:21 +00:00
Andreas Krebbel
dc4477f54b s390.c (s390_split_branches, [...]): Don't set save_return_addr_p.
2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
	Don't set save_return_addr_p.
	(s390_register_info): Make clobbered_regs not depending on
	save_return_addr_p.

From-SVN: r103025
2005-08-12 11:58:05 +00:00
Giovanni Bajo
f0ed20083b re PR c++/8271 (Templates and pointers to const member functions)
PR c++/8271
	* g++.dg/template/unify10.C: New.

From-SVN: r103022
2005-08-12 09:34:12 +00:00
Nathan Sidwell
38d18b1a1e re PR c++/21799 (Spurious ambiguity with pointers to members)
cp:
	PR c++/21799
	PR c++/8271
        * pt.c (unify) <METHOD_TYPE>: Check this-pointer cv-qualifiers
	explicitly.

	PR c++/21799
	Revert my 2005-07-08 patch
	* pt.c (type_unification_real): Remove is_method_argument and
	assoicated checks.
	(fn_type_unification, unify): Adjust type_unification_real calls.

From-SVN: r103021
2005-08-12 09:23:43 +00:00
Kaz Kojima
ec92bd4bd8 gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
* gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
	(LINK_COMMAND_SPEC): Add space after %(link_ssp).

From-SVN: r103020
2005-08-12 07:57:52 +00:00
Andreas Jaeger
5074edf00b Fix date of last entry, remove extra whitespace
From-SVN: r103019
2005-08-12 08:00:46 +02:00
James A. Morrison
f66f3eeeff pr22514.C: Move to...
2005-08-11  James A. Morrison  <phython@gcc.gnu.org>

        * g++.dg/parse/pr22514.C: Move to...
        * g++.dg/debug/pr22514.C: here.

From-SVN: r103016
2005-08-12 04:18:48 +00:00
James E Wilson
8c2efff755 Fix debian bug 307503, error compiling libatomic-ops package.
* config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.

From-SVN: r103015
2005-08-11 18:31:35 -07:00
GCC Administrator
301513ec60 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103012.2
2005-08-12 00:16:32 +00:00
Volker Reichelt
ea7ce50bf7 re PR c++/23266 (ICE on pure specifier for static method)
PR c++/23266
	* decl2.c (grokfield): Check that method is not static before
	marking it as pure.

	PR c++/23266
	* g++.dg/inherit/pure1.C: New test.

	* ChangeLog: Fix typos.

From-SVN: r103006
2005-08-11 22:46:29 +00:00
Jakub Jelinek
86bd8ebf5d dwarf2out.c (add_location_or_const_value_attribute): Prefer locations gathered by var-tracking in single entry loc_list over...
* dwarf2out.c (add_location_or_const_value_attribute): Prefer
	locations gathered by var-tracking in single entry loc_list
	over loc_descriptor_from_tree.

From-SVN: r103004
2005-08-11 23:22:43 +02:00
Jakub Jelinek
ea93971a13 dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument, pass it down to loc_descriptor.
* dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
	pass it down to loc_descriptor.
	(loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
	(containing_function_has_frame_base): Move earlier in the file.
	(loc_descriptor_from_tree_1): Use containing_function_has_frame_base
	instead of always assuming fbreg can't be used.

From-SVN: r103003
2005-08-11 23:21:07 +02:00
Jakub Jelinek
8a42356f48 configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
* configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
	(AH_BOTTOM): Add FFI_HIDDEN definition.
	* configure: Rebuilt.
	* fficonfig.h.in: Rebuilt.
	* src/powerpc/ffi.c (hidden): Remove.
	(ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64,
	ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden.
	* src/powerpc/linux64_closure.S (ffi_closure_LINUX64,
	.ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden.
	* src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove,
	add FFI_HIDDEN to its prototype.
	(ffi_closure_SYSV_inner): New.
	* src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.
	* src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New.

From-SVN: r103002
2005-08-11 23:18:24 +02:00
David Edelsohn
dec1f3aa95 altivec.md: Change constraint "m" to "Z".
* config/rs6000/altivec.md: Change constraint "m" to "Z".
        * config/rs6000/predicates.md (indexed_or_indirect_operand):
        Accept address wrapped in AND for Altivec.
        * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
        Strip AND wrapping offset address for Altivec.

From-SVN: r103001
2005-08-11 17:18:11 -04:00
Richard Henderson
7fd6694baf re PR middle-end/23312 (ACATS ICE (32) gimplify_one_sizepos, at gimplify.c:4659)
PR middle-end/23312
        * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
        before using TYPE_IS_SIZETYPE.

From-SVN: r102997
2005-08-11 10:12:30 -07:00
Richard Henderson
4ead2a39a3 re PR target/22225 (Tru64 UNIX testsuite failure: gcc.dg/vect/pr18536.c: ICE in in alphaev4_insn_pipe)
PR target/22225
        * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
        insn types not present on ev4.
        (alphaev5_insn_pipe): Similarly.

From-SVN: r102996
2005-08-11 09:56:32 -07:00
Richard Earnshaw
da8ce8be37 re PR target/23250 (4.0.1 switch -mcallee-super-interworking generating wrong code for ARM7TDMI)
PR target/23250
	* arm.c (arm_override_options): If the user has selected callee-super-
	interworking, then enable normal interworking.

From-SVN: r102993
2005-08-11 14:20:23 +00:00
François-Xavier Coudert
ad9863cd8d * ChangeLog: forgot to add ChangeLog entry in previous commit.
From-SVN: r102991
2005-08-11 13:51:33 +00:00
Francois-Xavier Coudert
8b67b708f1 re PR libfortran/20006 ($ format extension doesn't work)
PR libfortran/20006
	* gfortran.h: Add is_main_program member to symbol_attribute.
	* trans-decl: Add a gfor_fndecl_set_std tree.
	(gfc_build_builtin_function_decls): Create it.
	(gfc_generate_function_code): Add this call at the beginning of
	the main program.
	* trans.c (gfc_generate_code): Move main_program and attr.
	* trans.h: Add declaration for gfor_fndecl_set_std.

	* Makefile.am: Add file runtime/compile_options.c.
	* Makefile.in: Regenerate.
	* libgfortran.h: Create structure compile_options_t. Define the
	compile_options variable and GFC_STD_ macros.
	* runtime/compile_options.c: New file.
	* runtime/error.c (notify_std): New function.
	* runtime/main.c (init): Call init_compile_options during
	initialization.
	* io/format.c: Use the new notify_std function for the $
	descriptor extension.

	* gfortran.dg/runtime_warning_1.f90: New test.

Co-Authored-By: Steven Bosscher <stevenb@suse.de>

From-SVN: r102990
2005-08-11 13:50:13 +00:00
Andrew Haley
74b002ba34 [multiple changes]
2005-08-10  Andrew Haley  <aph@redhat.com>

        * java-gimplify.c (java_gimplify_modify_expr): Fix any pointer
        type mismatches to make legal GIMPLE.

2005-08-10  Robin Green <greenrd@greenrd.org>

        PR java/23230:
        * parse.y (maybe_use_access_method): Generalize check from
        java.lang.Object to any superclass of current_class

From-SVN: r102988
2005-08-11 11:49:26 +00:00