Commit Graph

90801 Commits

Author SHA1 Message Date
GCC Administrator
de2130f9bb Daily bump.
From-SVN: r142254
2008-11-28 00:16:49 +00:00
Geoffrey Keating
e835fd1a4f * mkindex.pl: New.
From-SVN: r142251
2008-11-27 23:37:51 +00:00
Eric Botcazou
2ddc34ba07 * gcc-interface/decl.c: Fix various nits.
From-SVN: r142247
2008-11-27 20:56:22 +00:00
Toon Moene
50e0f1313a MAINTAINERS: Change e-mail address.
2008-11-27  Toon Moene <toon@moene.org>

	* MAINTAINERS: Change e-mail address.

From-SVN: r142246
2008-11-27 20:03:08 +00:00
Tristan Gingold
0db3a85808 configure.ac: Build gdb for i?86-*-darwin*
2008-11-27  Tristan Gingold  <gingold@adacore.com>

	* configure.ac: Build gdb for i?86-*-darwin*
	* configure: Regenerated.

From-SVN: r142245
2008-11-27 16:52:32 +00:00
Richard Guenther
75af9746ba tree-ssa-structalias.c (intra_create_variable_infos): Make a constraint for the static chain parameter.
2008-11-27  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-structalias.c (intra_create_variable_infos): Make
	a constraint for the static chain parameter.

From-SVN: r142242
2008-11-27 09:45:56 +00:00
Bernd Schmidt
c2d54fdff5 Fix error in last change.
From-SVN: r142241
2008-11-27 09:14:59 +00:00
Bernd Schmidt
bf85bc3dcc bfin.opt (micplb): New option.
* config/bfin/bfin.opt (micplb): New option.
	* config/bfin/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Set it.
	* config/bfin/bfin-protos.h (WA_INDIRECT_CALLS,
	ENABLE_WA_INDIRECT_CALLS): New macros.
	* config/bfin/bfin.c (bfin_cpus): Add WA_INDIRECT_CALLS to
	all 54x CPUs.
	(indirect_call_p): New function.
	(workaround_speculation): Handle anomaly 05-00-0426 when
	ENABLE_WA_INDIRECT_CALLS is true.
	* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
	__WORKAROUND_INDIRECT_CALLS if ENABLE_WA_INDIRECT_CALLS.
	* doc/invoke.texi (Blackfin Options): Document -micplb.

From-SVN: r142240
2008-11-27 09:11:50 +00:00
DJ Delorie
58ad17cfc6 mov.md ("extendhipsi2"): New.
* config/m32c/mov.md ("extendhipsi2"): New.

* config/m32c/bitops.md (bset_qi): Add memsym_operand predicate.

* config/m32c/bitops.md (andhi3_24, iorhi3_24): Don't prefer HL class.
* config/m32c/mov.md (zero_extendqihi2): Likewise.

From-SVN: r142237
2008-11-26 22:08:55 -05:00
GCC Administrator
b88375aeed Daily bump.
From-SVN: r142235
2008-11-27 00:17:08 +00:00
Janis Johnson
32ab0ba481 re PR testsuite/28870 (configuring, over-riding timeout values in testsuite)
PR testsuite/28870
	* lib/objc.exp (objc_target_compile): Fix typo from previous change.
	* lib/gnat.exp (gnat_target_compile): Fix typo from previous change.

From-SVN: r142230
2008-11-26 22:15:07 +00:00
Adam Nemet
6411cd386c mips.md (clear_hazard): Rename to clear_hazard_<mode>.
* config/mips/mips.md (clear_hazard): Rename to
	clear_hazard_<mode>.  Use mode-specific addition.
	(clear_cache): Rename gen_clear_hazard to gen_clear_hazard_si
	or gen_clear_hazard_di depending on the size of Pmode.

From-SVN: r142229
2008-11-26 22:14:50 +00:00
DJ Delorie
15a4367741 configure.ac: Test m32c-elf-gas for .loc.
* configure.ac: Test m32c-elf-gas for .loc.
* configure: Likewise.

From-SVN: r142228
2008-11-26 16:03:06 -05:00
Janis Johnson
d4038ca243 re PR testsuite/28870 (configuring, over-riding timeout values in testsuite)
gcc/
	PR testsuite/28870
	* doc/sourcebuild.texi (Test Directives): Add dg-timeout and
	dg-timeout-factor.

gcc/testsuite/
	PR testsuite/28870
	* lib/timeout.exp: New.
	* lib/timeout-dg.exp: New.
	* lib/gcc-dg.exp: Include new timeout library files.
	(dg-test): Unset timeout variables.
	* lib/gcc.exp (gcc_target_compile): Set timeout value from new proc.
	* lib/g++.exp (g++_target_compile): Ditto.
	* lib/gfortran.exp (gfortran_target_compile): Ditto.
	* lib/objc.exp (objc_target_compile): Ditto.
	* lib/obj-c++.exp (obj-c++_target_compile): Ditto.
	* lib/obj-c++.exp (obj-c++_target_compile): Ditto.
	* lib/gnat.exp (gnat_target_compile): Ditto.

libstdc++-v3/
	PR testsuite/28870
	* testsuite/lib/libstdc++.exp: Include new timeout library files.
	(libstdc++_init): Define tool_timeout.
	(dg-test): Override DejaGnu proc.
	(v3_target_compile): Set timeout value from new proc.
	(v3_target_compile_as_c): Ditto.

libmudflap/
	PR testsuite/28870
	* testsuite/lib/mfdg.exp (dg-test): Use new timeout support.
	(dg-timeout): Remove.
	(standard-wait): Remove.
	* testsuite/lib/libmudflap.exp: Include new timeout library files.
	(libmudflap_target_compile): Set timeout value from new proc.

libgomp/
	PR testsuite/28870
	* testsuite/lib/libgomp.exp: Include new timeout library files.
	(libgomp_target_compile): Set timeout value from new proc.

From-SVN: r142225
2008-11-26 18:51:07 +00:00
Uros Bizjak
13fd89472d sync.md (memory_barrier_nosse): Disable also for TARGET_64BIT.
* config/i386/sync.md (memory_barrier_nosse): Disable also for
	TARGET_64BIT.  Remove special asm template for TARGET_64BIT case.
	(memory_barrier): Do not generate memory_barrier_nosse instruction
	for TARGET_64BIT.
	* config/i386/sse.md (*sse2_mfence): Also enable for TARGET_64BIT.

From-SVN: r142224
2008-11-26 17:49:20 +01:00
H.J. Lu
10b923de93 re PR middle-end/37843 (unaligned stack in main due to tail call optimization)
2008-11-26  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/37843
	* gcc.target/i386/pr37843-1.c: Make it Linux only.
	* gcc.target/i386/pr37843-2.c: Likewise.

From-SVN: r142222
2008-11-26 06:52:12 -08:00
Fredrik Unger
39dfdd2098 floatuntisf.c (__floatuntisf): Correct function name from __floatundisf.
* config/soft-fp/floatuntisf.c (__floatuntisf): Correct
        function name from __floatundisf.
        * config/soft-fp/fixdfti.c (__fixdfti): Correct argument type to
        DFtype.

From-SVN: r142218
2008-11-26 13:32:43 +01:00
Kai Tietz
5d059ed962 calls.c (expand_call): Pass to REG_PARM_STACK_SPACE the type of the function...
2008-11-26  Kai Tietz  <kai.tietz@onevision.com>

        PR/38227
        * calls.c (expand_call): Pass to REG_PARM_STACK_SPACE
        the type of the function, when there is no FUNCTION_DECL available.
        OUTGOING_REG_PARM_STACK_SPACE pass fntype, when no fndecl is available.
        (compute_argument_block_size): Add fntype argument.
        OUTGOING_REG_PARM_STACK_SPACE pass fntype, when no fndecl is available.
        (emit_library_call_value_1): Likewise.
        OUTGOING_REG_PARM_STACK_SPACE pass fntype, when no fndecl is available.
        * config/i386/i386.c (ix86_reg_parm_stack_space): Handle function types.
        * doc/tm.texi (REG_PARM_STACK_SPACE): Adjust documentation.

From-SVN: r142215
2008-11-26 11:25:38 +01:00
Kai Tietz
89d926785d func-indirect.c: New.
2008-11-26  Kai Tietz  <kai.tietz@onevision.com>

        * gcc.dg/callabi/func-indirect.c: New.

From-SVN: r142214
2008-11-26 11:22:24 +01:00
Daniel Berlin
3dc211827b re PR tree-optimization/37869 (PTA results wrong for "non-pointer" variables)
2008-11-25  Daniel Berlin  <dberlin@dberlin.org>
	Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/37869
	* tree-ssa-structalias.c (struct constraint_graph): Remove
	pt_used and number_incoming members.
	(build_pred_graph): Do not allocate them.
	(condense_visit): Do not use them.
	(label_visit): Likewise.
	(free_var_substitution_info): Do not free them.

Co-Authored-By: Richard Guenther <rguenther@suse.de>

From-SVN: r142213
2008-11-26 09:46:23 +00:00
Jason Merrill
1dbc1ae77a re PR c++/28743 (ICE with invalid specialization)
PR c++/28743
        * decl2.c (check_classfn): Error rather than abort on parameter
        list mismatch.

From-SVN: r142212
2008-11-25 22:51:40 -05:00
GCC Administrator
9feafad0c9 Daily bump.
From-SVN: r142210
2008-11-26 00:17:05 +00:00
Vladimir Makarov
30ea859e70 invoke.texi (ira-max-loops-num): Change semantics.
2008-11-25  Vladimir Makarov  <vmakarov@redhat.com>

	* doc/invoke.texi (ira-max-loops-num): Change semantics.

	* ira-int.h (struct ira_loop_tree_node): New member to_remove_p.

	* ira-color.c (allocno_spill_priority): New function.
	(remove_allocno_from_bucket_and_push, push_allocno_to_spill):
	Print more info about the spilled allocno.
	(push_allocnos_to_stack): Use allocno_spill_priority.  Add more
	checks on bad spill.

	* ira-build.c (loop_node_to_be_removed_p): Remove.
	(loop_compare_func, mark_loops_for_removal): New functions.
	(remove_uneccesary_loop_nodes_from_loop_t): Use member
	to_remove_p.
	(remove_unnecessary_allocnos): Call mark_loops_for_removal.

	* ira.c (ira): Don't change flag_ira_algorithm.

	* params.def (ira-max-loops-num): Change the value.

From-SVN: r142207
2008-11-25 22:52:37 +00:00
Maxim Kuvyrkov
5a1c3c1095 m68k.md (extendsidi2, [...]): Merge, clean up.
* config/m68k/m68k.md (extendsidi2, extendsidi2_mem): Merge, clean up.
	Disable unsupported alternative for ColdFire,
	add new alternative that ColdFire can handle.

	* gcc.c-torture/compile/20080929-1.c: New.

From-SVN: r142205
2008-11-25 22:08:13 +00:00
Eric Botcazou
32fc3abf0e regrename.c (merge_overlapping_regs): Add registers artificially defined at the top of the basic block to the set of...
* regrename.c (merge_overlapping_regs): Add registers artificially
	defined at the top of the basic block to the set of live ones just
	before the first insn.

From-SVN: r142203
2008-11-25 21:25:52 +00:00
Janis Johnson
15c58b190c * gfortran.dg/default_format_denormal_1.f90: Fix xfail for darwin.
From-SVN: r142196
2008-11-25 18:13:33 +00:00
H.J. Lu
d35a1ef103 re PR middle-end/37843 (unaligned stack in main due to tail call optimization)
gcc/

2008-11-25  H.J. Lu  <hongjiu.lu@intel.com>
	    Joey Ye  <joey.ye@intel.com>

	PR middle-end/37843
	* config/i386/i386.c (ix86_function_ok_for_sibcall): Return
	false if we need to align the outgoing stack.
	(ix86_update_stack_boundary): Check parm_stack_boundary.

gcc/testsuite/

2008-11-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/37843
	* gcc.target/i386/align-main-3.c: New.
	* gcc.target/i386/pr37843-1.c: Likewise.
	* gcc.target/i386/pr37843-2.c: Likewise.
	* gcc.target/i386/pr37843-3.c: Likewise.

Co-Authored-By: Joey Ye <joey.ye@intel.com>

From-SVN: r142193
2008-11-25 07:33:27 -08:00
H.J. Lu
5308fd74fd module.c (gfc_dump_module): Report error on unlink only if errno != ENOENT.
2008-11-25  H.J. Lu  <hongjiu.lu@intel.com>

	* module.c (gfc_dump_module): Report error on unlink only if
	errno != ENOENT.

From-SVN: r142192
2008-11-25 07:01:41 -08:00
Mikael Morin
bc0f8bd478 re PR fortran/36463 (gfc_get_default_type(): Bad symbol)
2008-11-25  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/36463
	* expr.c (replace_symbol): Don't replace the symtree
	if the expresion is an intrinsic function. Don't create
	non-existent symtrees.  Use symbol's name instead of symtree's,
	different in case of module procedure dummy arguments.

2008-11-25  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/36463
	* gfortran.dg/proc_decl_20.f90: New test.

From-SVN: r142191
2008-11-25 13:27:26 +00:00
Jan Kratochvil
056c165212 re PR fortran/38248 (Ignored temporary module files manipulation errors)
2008-11-25  Jan Kratochvil  <jan.kratochvil@redhat.com>

        PR fortran/38248
        * module.c (gfc_dump_module): Check rename/unlink syscalls errors.

From-SVN: r142190
2008-11-25 13:51:44 +01:00
Richard Guenther
b0ff8d7af5 re PR middle-end/38151 (structures with _Complex arguments are not passed correctly)
2008-11-25  Richard Guenther  <rguenther@suse.de>

	PR middle-end/38151
	PR middle-end/38236
	* tree-ssa-alias.c (struct alias_info): Remove written_vars.
	Remove dereferenced_ptrs_store and dereferenced_ptrs_load
	in favor of dereferenced_ptrs.
	(init_alias_info): Adjust.
	(delete_alias_info): Likewise.
	(compute_flow_insensitive_aliasing): Properly
	include all aliased variables.
	(update_alias_info_1): Use dereferenced_ptrs.
	(setup_pointers_and_addressables): Likewise.
	(get_smt_for): Honor ref-all pointers and pointers with known alias
	set properly.
	* config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers.

	* gcc.c-torture/execute/pr38151.c: New testcase.
	* gcc.c-torture/execute/pr38236.c: Likewise.

From-SVN: r142189
2008-11-25 10:34:11 +00:00
Eric Botcazou
abb370e461 re PR fortran/37319 (gfortran.dg/function_kinds_5.f90 fails)
PR fortran/37319
	* parse.c (match_deferred_characteristics): Make sure 'name' is
	initialized before reading it.

From-SVN: r142188
2008-11-25 08:39:39 +00:00
Jerry DeLisle
ca4300857f re PR fortran/37803 (Call mpfr_check_range after setting emin/emax)
2008-11-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/37803
	* arith.c (gfc_check_real_range): Add mpfr_check_range.
	* simplify.c (gfc_simplify_nearest): Add mpfr_check_range.

From-SVN: r142187
2008-11-25 05:55:55 +00:00
John David Anglin
58e99d9a79 weak1.C: Don't xfail hppa*64*-*-*.
* g++.dg/eh/weak1.C: Don't xfail hppa*64*-*-*.

From-SVN: r142183
2008-11-25 01:31:06 +00:00
Uros Bizjak
b5d9f5d485 * ChangeLog: Wix wrong PR number in my previous commit.
From-SVN: r142182
2008-11-25 01:18:38 +01:00
GCC Administrator
7323a27fba Daily bump.
From-SVN: r142180
2008-11-25 00:17:08 +00:00
Uros Bizjak
decc2ec39a re PR c++/38256 (ICE with "operator auto")
PR target/38256
	* config/i386/sync.md (memory_barrier_nosse): New insn
	(memory_barrier): Generate memory_barrier_nosse insn for !TARGET_SSE2.

From-SVN: r142177
2008-11-25 01:12:15 +01:00
Maxim Kuvyrkov
467a1bf1e9 * config/m68k/m68k.md (cmpdi): Use (scratch) instead of pseudo.
From-SVN: r142176
2008-11-24 22:18:30 +00:00
Richard Sandiford
370d36c656 mips.h (ASM_OUTPUT_DEBUG_LABEL): Define.
gcc/
	* config/mips/mips.h (ASM_OUTPUT_DEBUG_LABEL): Define.

From-SVN: r142173
2008-11-24 20:39:05 +00:00
DJ Delorie
60b5c18d0f * gcc.c-torture/execute/pr36321.c: Don't rely on argv[0] being set.
From-SVN: r142170
2008-11-24 14:14:07 -05:00
Mikael Morin
6e7cc036d2 re PR fortran/38184 (invariant RESHAPE not expanded if SOURCE is empty)
2008-11-24  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/38184
	* simplify.c (is_constant_array_expr): Return true instead of false
	if the array constructor is empty.

2008-11-24  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/38184
	* gfortran.dg/reshape_empty_1.f03: New test.

From-SVN: r142168
2008-11-24 19:04:34 +00:00
Jack Howarth
c63d77544c re PR testsuite/38241 (g++.old-deja/g++.pt/const2.C fails on *-apple-darwin9)
2008-11-24  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR testsuite/38241
	* g++.old-deja/g++.pt/const2.C: Prune output for Darwin.

From-SVN: r142164
2008-11-24 18:11:12 +00:00
Jack Howarth
c607e765a2 re PR c++/38076 (FAIL: g++.dg/other/anon5.C)
2008-11-24  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR testsuite/38076
	* g++.dg/other/anon5.C: Skip on Darwin.

From-SVN: r142163
2008-11-24 18:05:50 +00:00
Jack Howarth
968b910556 default_format_denormal_1.f90: XFAIL on darwin8 and darwin9 subversions.
2008-11-24  Jack Howarth  <howarth@bromo.med.uc.edu>

	* gfortran.dg/default_format_denormal_1.f90: XFAIL on darwin8
	and darwin9 subversions.

From-SVN: r142162
2008-11-24 18:00:50 +00:00
Maxim Kuvyrkov
5ad2f1a5f2 re PR target/35018 ([m68k-elf] Gcc ouputs invalid asm when compiling with -O2 or higher)
PR target/35018

	* config/m68k/m68k.md (ok_for_coldfire, enabled): New attributes.
	(addsi_lshrsi_31): Add ColdFire-friendly alternatives.

	* gcc.target/m68k/pr35018.c: New.

From-SVN: r142161
2008-11-24 17:55:35 +00:00
Uros Bizjak
148153c18c re PR target/36793 (x86-64 does not get __sync_synchronize right)
* config/i386/i386.md (UNSPECV_CMPXCHG): Rename from
	UNSPECV_CMPXCHG_[12].
	* config/i386/sync.md: Use UNSPECV_CMPXCHG instead of
	UNSPECV_CMPXCHG_[12].

	PR target/36793
	* config/i386/sync.md (memory_barrier): New expander.

From-SVN: r142160
2008-11-24 17:55:49 +01:00
Daniel Kraft
a03826d1d5 re PR fortran/37779 (Missing RECURSIVE not detected)
2008-11-24  Daniel Kraft  <d@domob.eu>

	PR fortran/37779
	* resolve.c (resolve_procedure_expression): New method.
	(resolve_variable): Call it.
	(resolve_actual_arglist): Call gfc_resolve_expr for procedure arguments.

2008-11-24  Daniel Kraft  <d@domob.eu>

	PR fortran/37779
	* gfortran.dg/c_funloc_tests.f03: Added missing `RECURSIVE'.
	* gfortran.dg/c_funloc_tests_2.f03: Ditto.
	* gfortran.dg/recursive_check_4.f03: New test.
	* gfortran.dg/recursive_check_5.f03: New test.

From-SVN: r142158
2008-11-24 14:10:37 +01:00
Jakub Jelinek
72a2609f5d re PR middle-end/37135 (code size increase for struct assignment)
PR middle-end/37135
	* dse.c (find_shift_sequence): Optimize extraction from a constant.

From-SVN: r142157
2008-11-24 13:57:37 +01:00
Mikael Morin
5b19c351a4 re PR fortran/35681 (wrong result for vector subscripted array expression in MVBITS)
2008-11-24  Mikael Morin <mikael.morin@tele2.fr>

	PR fortran/35681
	* gfortran.dg/elemental_dependency_1.f90: Really commit it.

From-SVN: r142155
2008-11-24 12:37:25 +00:00
Paolo Carlini
c32f57c054 PR libstdc++/38244 (cont, debug bits)
2008-11-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/38244 (cont, debug bits)
	* include/debug/bitset (bitset<>::bitset(const char*, char, char)):
	Remove, do not implement DR 778.

From-SVN: r142153
2008-11-24 11:19:39 +00:00