Commit Graph

90774 Commits

Author SHA1 Message Date
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
Paolo Carlini
9daf8216f4 re PR libstdc++/38244 (bitset initialization from 0 rejected.)
2008-11-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/38244
	* include/std/bitset (bitset<>::bitset(const char*, char, char)):
	Remove, do not implement DR 778.
	* doc/xml/manual/intro.xml: Remove entry for DR 778.
	* testsuite/23_containers/bitset/cons/2.cc: Remove.
	* testsuite/23_containers/bitset/cons/dr396.cc: Tweak.
	* testsuite/23_containers/bitset/cons/38244.cc: Add.

From-SVN: r142152
2008-11-24 11:13:44 +00:00
Hariharan Sandanagobalane
f07bde688d * MAINTAINERS: Added my full name.
From-SVN: r142150
2008-11-24 09:59:37 +00:00
Paul Thomas
2c69d5275c re PR fortran/34820 (internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147)
2008-11-24  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34820
	* trans-expr.c (gfc_conv_function_call): Remove all code to
	deallocate intent out derived types with allocatable
	components.
	(gfc_trans_assignment_1): An assignment from a scalar to an
	array of derived types with allocatable components, requires
	a deep copy to each array element and deallocation of the
	converted rhs expression afterwards.
	* trans-array.c : Minor whitespace.
	* trans-decl.c (init_intent_out_dt): Add code to deallocate
	allocatable components of derived types with intent out.
	(generate_local_decl): If these types are unused, set them
	referenced anyway but allow the uninitialized warning.

	PR fortran/34143
	* trans-expr.c (gfc_trans_subcomponent_assign): If a conversion
	expression has a null data pointer argument, nullify the
	allocatable component.

	PR fortran/32795
	* trans-expr.c (gfc_trans_subcomponent_assign): Only nullify
	the data pointer if the source is not a variable.

2008-11-24  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34820
	* gfortran.dg/alloc_comp_constructor_6.f90 : New test.
	* gfortran.dg/alloc_comp_basics_1.f90 : Reduce expected refs to
	'builtin_free' from 24 to 18.

	PR fortran/34143
	* gfortran.dg/alloc_comp_constructor_5.f90 : New test.

	PR fortran/32795
	* gfortran.dg/alloc_comp_constructor_4.f90 : New test.

From-SVN: r142148
2008-11-24 06:34:16 +00:00
John David Anglin
e4b9521065 pa.c (function_arg): Revert 2008-10-26 change.
* pa.c (function_arg): Revert 2008-10-26 change.

From-SVN: r142147
2008-11-24 01:15:16 +00:00
GCC Administrator
4f1c57258f Daily bump.
From-SVN: r142145
2008-11-24 00:16:40 +00:00
Paul Thomas
b945f9f35e re PR fortran/37735 (Allocatable components in vectors of derived types cause ICE on assignment)
2008-11-23  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/37735
	* trans-array.c (structure_alloc_comps): Do not duplicate the
	descriptor if this is a descriptorless array!

2008-11-23  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/37735
	* gfortran.dg/alloc_comp_assign_7.f90: New test.

From-SVN: r142142
2008-11-23 21:34:44 +00:00
Helge Deller
74e6a47563 linux-atomic.c (EBUSY): Define if not _LP64.
* pa/linux-atomic.c (EBUSY): Define if not _LP64.
	(__kernel_cmpxchg): Return -EBUSY if the kernel LWS call
	succeeded and lws_ret is not equal to oldval.

From-SVN: r142141
2008-11-23 21:14:59 +00:00
John David Anglin
12da694bc0 tmplattr9.C: Require weak.
* g++.dg/ext/tmplattr9.C: Require weak.

From-SVN: r142139
2008-11-23 19:30:17 +00:00
John David Anglin
26080d321e static6.C: Remove xfail for *-*-hpux*.
* g++.old-deja/g++.pt/static6.C: Remove xfail for *-*-hpux*.

From-SVN: r142138
2008-11-23 19:27:26 +00:00
Thomas Koenig
bd72cbc822 re PR libfortran/38234 (In Reshape, SOURCE can be bigger than result)
2008-11-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/38234
	* intrinsics/reshape_generic.c (reshape_internal):
	Source can be larger than shape.
	* m4/reshape.m4:  Likewise.
	* generated/reshape_c10.c Regenerated.
	* generated/reshape_c16.c Regenerated.
	* generated/reshape_c4.c Regenerated.
	* generated/reshape_c8.c Regenerated.
	* generated/reshape_i16.c Regenerated.
	* generated/reshape_i4.c Regenerated.
	* generated/reshape_i8.c Regenerated.
	* generated/reshape_r10.c Regenerated.
	* generated/reshape_r16.c Regenerated.
	* generated/reshape_r4.c Regenerated.
	* generated/reshape_r8.c Regenerated.

2008-11-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/38234
	* gfortran.dg/reshape_4.f90:  New test.

From-SVN: r142137
2008-11-23 19:25:42 +00:00
Joseph Myers
786a13d0d4 * ru.po: Update.
From-SVN: r142135
2008-11-23 16:43:25 +00:00
Kaz Kojima
8d8f087af3 sh.md (consttable_4): Call mark_symbol_refs_as_used.
* config/sh/sh.md (consttable_4): Call mark_symbol_refs_as_used.

From-SVN: r142132
2008-11-23 10:45:06 +00:00
Danny Smith
6a21bcbe16 nessage.txt
From-SVN: r142131
2008-11-23 07:02:22 +00:00
GCC Administrator
09b96fb8c8 Daily bump.
From-SVN: r142129
2008-11-23 00:17:03 +00:00
Andreas Schwab
714832c9c2 varasm.c (default_file_start): Suppress ASM_APP_OFF also with -dA and -dP.
* varasm.c (default_file_start): Suppress ASM_APP_OFF also with
-dA and -dP.

From-SVN: r142126
2008-11-22 22:19:29 +00:00
Thomas Koenig
a388c77976 re PR libfortran/38225 (RESHAPE bounds with multi-dimensional SOURCE)
2008-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/38225
	* intrinsics/reshape_generic.c (reshape_internal):
	Use all dimensions of source for bounds checking.
	* m4/reshape.m4:  Likewise.
	* generated/reshape_c10.c Regenerated.
	* generated/reshape_c16.c Regenerated.
	* generated/reshape_c4.c Regenerated.
	* generated/reshape_c8.c Regenerated.
	* generated/reshape_i16.c Regenerated.
	* generated/reshape_i4.c Regenerated.
	* generated/reshape_i8.c Regenerated.
	* generated/reshape_r10.c Regenerated.
	* generated/reshape_r16.c Regenerated.
	* generated/reshape_r4.c Regenerated.
	* generated/reshape_r8.c Regenerated.

2008-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/38225
	* gfortran.dg/reshape_3.f90:  New test.

From-SVN: r142125
2008-11-22 21:41:27 +00:00
Tobias Burnus
2ec855f1f7 re PR fortran/38160 (C Binding: Kind parameter checking too strict and too late)
2008-11-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/38160
        * trans-types.c (gfc_validate_c_kind): Remove function.
        * decl.c (gfc_match_kind_spec): Add C kind parameter check.
          (verify_bind_c_derived_type): Remove gfc_validate_c_kind call.
          (verify_c_interop_param): Update call.
        * gfortran.h (verify_bind_c_derived_type): Update prototype.
          (gfc_validate_c_kind): Remove.
        * symbol.c (verify_bind_c_derived_type): Update verify_c_interop
        * call.
        * resolve.c (gfc_iso_c_func_interface): Ditto.

2008-11-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/38160
        * gfortran.dg/bind_c_usage_18.f90: New test.
        * gfortran.dg/c_kind_tests_2.f03: Update dg-messages.
        * gfortran.dg/interop_params.f03: Ditto.

From-SVN: r142124
2008-11-22 19:18:05 +01:00
Adam Nemet
9d50ba211c mips.md (rdhwr): Rename to rdhwr_synci_step_<mode>.
* config/mips/mips.md (rdhwr): Rename to rdhwr_synci_step_<mode>.
	Use constant 1 as the operand.
	* config/mips/mips.c (mips_expand_synci_loop): Make INC Pmode.
	Rename gen_rdhwr to gen_rdhwr_synci_step_si or
	gen_rdhwr_synci_step_di depending on the size of Pmode.

From-SVN: r142123
2008-11-22 17:02:14 +00:00
H.J. Lu
e548e2c0f2 Fix ChangeLog entry for config/i386/avxintrin.h.
From-SVN: r142122
2008-11-22 07:41:06 -08:00
Uros Bizjak
a00ce5fe3e re PR target/38222 (gcc.target/i386/sse4_2-popcntl.c fails on i686-apple-darwin9)
PR target/38222
	* config/i386/i386.md (SWI248): New mode iterator.
	(SWI32): Remove mode iterator.
	(popcount<mode>2): Rename from popcounthi2, popcountsi2 and
	popcounthi2 insn patterns. Macroize pattern using SWI248 mode
	iterator.  Generate popcnt mnemonic without mode extensions
	for Darwin x86 targets.
	(*popcount<mode>2_cmp): Ditto.
	(*popcountsi2_cmp_zext): Generate popcnt mnemonic without mode
	extensions for Darwin x86 targets.

testsuite/ChangeLog:

	PR target/38222
	* gcc.target/i386/funcspec-3.c: Scan for popcnt on Darwin targets.

From-SVN: r142121
2008-11-22 15:16:57 +01:00
Eric Botcazou
f06fb22be5 sparc.c (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define only if HAVE_AS_SPARC_UA_PCREL is defined.
* config/sparc/sparc.c (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define
	only if HAVE_AS_SPARC_UA_PCREL is defined.

From-SVN: r142118
2008-11-22 12:44:24 +00:00
Richard Sandiford
61ad6db1bd ira-costs.c (find_allocno_class_costs): Work out the maximum allocno_costs value of the classees with the lowest...
gcc/
	* ira-costs.c (find_allocno_class_costs): Work out the maximum
	allocno_costs value of the classees with the lowest total_costs
	value.  Use this to set ALLOCNO_COVER_CLASS_COST here...
	(setup_allocno_cover_class_and_costs): ...rather than here.
	Use the ALLOCNO_COVER_CLASS_COST for all registers in the
	preferred class.

From-SVN: r142117
2008-11-22 09:16:02 +00:00
Jakub Jelinek
b6500984e4 re PR middle-end/37323 (__builtin_apply failures)
PR middle-end/37323
	* builtins.c (expand_builtin_apply_args): Emit sequence before
	parm_birth_insn instead of after entry_of_function's first insn.

From-SVN: r142116
2008-11-22 09:28:44 +01:00
Jakub Jelinek
bbd46fd5f2 re PR middle-end/37316 (Small structs are not passed correctly on hppa64-*-*)
PR middle-end/37316
	* function.c (assign_parm_remove_parallels): Pass
	data->passed_type as third argument to emit_group_store.

From-SVN: r142115
2008-11-22 09:27:04 +01:00
Jakub Jelinek
b7c7b76871 re PR target/37170 (gcc.dg/weak/weak-1.c)
PR target/37170
	* final.c (mark_symbol_refs_as_used): New function.
	* output.h (mark_symbol_refs_as_used): New prototype.
	* config/s390/s390.c (s390_mark_symbol_ref_as_used): Removed.
	(s390_output_pool_entry): Use mark_symbol_refs_as_used.
	* config/arm/arm.md (consttable_4): Likewise.

From-SVN: r142114
2008-11-22 09:26:24 +01:00
Jakub Jelinek
a7fe25b885 re PR target/37170 (gcc.dg/weak/weak-1.c)
PR target/37170
	* final.c (mark_symbol_refs_as_used): New function.
	* output.h (mark_symbol_refs_as_used): New prototype.
	* config/s390/s390.c (s390_mark_symbol_ref_as_used): Removed.
	(s390_output_pool_entry): Use mark_symbol_refs_as_used.
	* config/arm/arm.md (consttable_4): Likewise.

From-SVN: r142113
2008-11-22 09:22:52 +01:00
Jakub Jelinek
3b13901446 re PR target/37880 (Documentation of option -mcmodel=medium is wrong)
PR target/37880
	* doc/invoke.texi: Adjust wording of -mcmodel=medium description.

From-SVN: r142112
2008-11-22 09:21:04 +01:00