Commit Graph

84681 Commits

Author SHA1 Message Date
Tom Tromey 607f74e9c6 re PR preprocessor/32868 (Don't warn about redefinitions of __STDC_FORMAT_MACROS)
libcpp
	PR preprocessor/32868:
	* macro.c (_cpp_create_definition): Special case
	__STDC_FORMAT_MACROS.
gcc/testsuite
	PR preprocessor/32868:
	* gcc.dg/cpp/pr32868.c: New file.

From-SVN: r130544
2007-11-30 18:24:01 +00:00
Jerry DeLisle 28d67019f9 re PR fortran/34248 (ICE on assumed length character function)
2007-11-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34248
	* gfortran.dg/result_in_spec_3.f90: Add dg-option -std=gnu.

From-SVN: r130542
2007-11-30 17:55:55 +00:00
Tom Tromey dc3800e59e Really remove accidentally committed ChangeLog entry
From-SVN: r130541
2007-11-30 17:44:03 +00:00
Seongbae Park 6c3d0e311a re PR rtl-optimization/34171 (Segfault in df_chain_remove_problem with -O3 on alpha)
gcc/testsuite/ChangeLog:

2007-11-30  Martin Michlmayr <tbm@cyrius.com>

	PR rtl-optimization/34171
	* gcc.dg/pr34171.c: New testcase.

gcc/ChangeLog:

2007-11-30  Seongbae Park <seongbae.park@gmail.com>

	PR rtl-optimization/34171
	* cfgrtl.c (update_bb_for_insn_chain): New function,
	refactored from update_bb_for_insn.
	(update_bb_for_insn): Call update_bb_for_insn.
	(rtl_merge_blocks, try_redirect_by_replacing_jump):
	Replace a loop with update_bb_for_insn_chain call.
	(cfg_layout_merge_blocks): Add a call to
	update_bb_for_insn_chain. Replace the for loop
	with a call to update_bb_for_insn_chain.

From-SVN: r130539
2007-11-30 17:02:43 +00:00
Zdenek Dvorak b88782e14d pr34244.c: Fixed.
* gcc.dg/tree-ssa/pr34244.c: Fixed.

From-SVN: r130536
2007-11-30 12:48:28 +00:00
Tobias Burnus 1eabf70a84 re PR fortran/34133 (Bind(c,name="") should be rejected for dummies; F2008: allow bind(c) for internal procs)
2007-11-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34133
        * match.h: Add bool allow_binding_name to gfc_match_bind_c.
        * decl.c
        * (match_attr_spec,gfc_match_bind_c_stmt,gfc_match_entry):
        Adjust accordingly.
        (gfc_match_bind_c): Add allow_binding_name argument, reject
        binding name for dummy arguments.
        (gfc_match_suffix,gfc_match_subroutine): Make use of
        allow_binding_name.

2007-11-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34133
        * gfortran.dg/bind_c_usage_9.f03: Fixes; add -std=f2003.
        * gfortran.dg/bind_c_usage_11.f03: New.
        * gfortran.dg/bind_c_usage_12.f03: New.

From-SVN: r130535
2007-11-30 13:16:35 +01:00
Tobias Burnus e6ef7325b8 re PR fortran/34186 (dump-parse-tree: ICE for ts->cl->length, if ts->cl == NULL)
2007-11-30  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34186
        * symbol.c (generate_isocbinding_symbol): Set string length.
        * dump-parse-tree.c (gfc_show_attr): Show BIND(C) attribute.
        * misc.c (gfc_basic_typename): Handle BT_VOID.

From-SVN: r130534
2007-11-30 10:31:56 +01:00
Jakub Jelinek 89ab8ba092 re PR c++/34275 (Broken diagnostic: 'obj_type_ref' not supported by dump_expr)
PR c++/34275
	* error.c (dump_expr): Handle OBJ_TYPE_REF.

	* g++.dg/other/error20.C: New test.

From-SVN: r130533
2007-11-30 08:24:54 +01:00
Steven G. Kargl 6aa38454ca re PR fortran/34230 (Expressions of parameters evaluated with too high precision)
2007-11-29  Steven G. Kargl  <kargls@comcast.net>

	PR fortran/34230
	* gfortran.dg/real_const_3.f90: Fix up for new range-check handling.

From-SVN: r130532
2007-11-30 04:18:05 +00:00
Steven G. Kargl 786a435680 re PR libfortran/33583 (FAIL: gfortran.dg/gamma_1.f90)
2007-11-29  Steven G. Kargl  <kargls@comcast.net>

	PR libfortran/33583
	* libgfortran/gfortran.map: Add tgammaf, tgamma, lgamma, and lgammaf.
	* gfortran.dg/gamma_5.f90: Remove xfail.

From-SVN: r130531
2007-11-30 04:14:01 +00:00
Steven G. Kargl a84b9ee86e re PR fortran/34230 (Expressions of parameters evaluated with too high precision)
2007-11-29  Steven G. Kargl  <kargls@comcast.net>

	PR fortran/34230
	* fortran/arith.c (gfc_check_real_range): Set intermediate values
	to +-Inf and 0 when -fno-range-check is in effect.
	* fortran/invoke.texi: Improve -fno-range-check description.

	PR fortran/34203
	* fortran/invoke.texi: Document the C escaped characters activated
	by -fbackslash.

From-SVN: r130530
2007-11-30 04:10:47 +00:00
Ben Elliston 04fe2e7b30 * config/vax/vax.h (ASM_FORMAT_PRIVATE_NAME): Remove. Use default.
From-SVN: r130529
2007-11-30 13:47:26 +11:00
Zdenek Dvorak 13285d512d re PR tree-optimization/34244 (VRP/SCEV miscompiles Firefox)
PR tree-optimization/34244
	* tree-vrp.c (adjust_range_with_scev): Clear scev cache.
	(record_numbers_of_iterations): New function.
	(execute_vrp): Cache the numbers of iterations of loops.
	* tree-scalar-evolution.c (scev_reset_except_niters):
	New function.
	(scev_reset): Use scev_reset_except_niters.
	* tree-scalar-evolution.h (scev_reset_except_niters): Declare.

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

From-SVN: r130527
2007-11-30 00:32:04 +00:00
GCC Administrator 54bded776c Daily bump.
From-SVN: r130525
2007-11-30 00:17:33 +00:00
Jan Hubicka f6f2da7df7 re PR tree-optimization/33434 (inlining miscompilation)
PR tree-optimization/33434
	* tree-inline.c (setup_one_parameter): If the value passed to
	a parameter is never used, don't set it up.

	* gcc.dg/pr33434-1.c: New test.
	* gcc.dg/pr33434-2.c: New test.
	* gcc.dg/pr33434-3.c: New test.
	* gcc.dg/pr33434-4.c: New test.

From-SVN: r130521
2007-11-29 22:57:38 +01:00
Jakub Jelinek 42924ed71f re PR c++/34270 (ICE applying __decltype to ternary expression)
PR c++/34270
	* tree.c (lvalue_p_1) <case COND_EXPR>: Handle x ?: y
	in templates.
	* typeck.c (is_bitfield_expr_with_lowered_type) <case COND_EXPR>:
	Likewise.

	* g++.dg/template/cond7.C: New test.

From-SVN: r130520
2007-11-29 22:06:18 +01:00
Jakub Jelinek 7a547b936c re PR c++/34267 (ICE applying __decltype to name of template class)
PR c++/34267
	PR c++/34268
	* parser.c (cp_parser_decltype): Don't call finish_id_expression
	on ~type.
	* semantics.c (finish_decltype_type): Issue error on types, TYPE_DECLs
	and ~type early.

	* g++.dg/cpp0x/decltype7.C: New test.
	* g++.dg/cpp0x/decltype8.C: New test.

From-SVN: r130519
2007-11-29 22:04:04 +01:00
Tobias Burnus 10650fbb88 re PR fortran/34248 (ICE on assumed length character function)
2007-11-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34248
        * trans-decl.c (generate_dependency_declarations): Check
        for NULL pointers before accessing the string length.

2007-11-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34248
        * gfortran.dg/result_in_spec_3.f90: New.

From-SVN: r130517
2007-11-29 18:41:37 +01:00
Jakub Jelinek 5ac74d2542 re PR target/32130 (linking problems: multiple definition of `__DTOR_END__')
PR target/32130
	* config/rs6000/eabi-cn.asm (__DTOR_END__): Make it weak.
	* config/rs6000/sol-cn.asm (__DTOR_END__): Likewise.

From-SVN: r130516
2007-11-29 17:21:18 +01:00
Paolo Bonzini d683ec81d2 [multiple changes]
2007-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* config-ml.in: Robustify against white space in absolute file
	names.

	* config-ml.in (multi-clean): Substitute ${Makefile}.
	Remove superfluous ${Makefile} in list.

libgomp:
2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
	    Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.am: Use space as vpath separator.  Use 'vpath %'
	instead of 'VPATH ='.
	* Makefile.in: Regenerate.

gcc:
2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>

	* Makefile.in: Use separate vpath lines for each path.


libstdc++-v3:
2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>

    	* src/Makefile.am: Use separate vpath lines for each path.

M    libgomp/Makefile.in
M    libgomp/ChangeLog
M    libgomp/Makefile.am
M    gcc/ChangeLog
M    gcc/Makefile.in
M    libstdc++-v3/src/Makefile.in
M    libstdc++-v3/src/Makefile.am
M    libstdc++-v3/ChangeLog
M    ChangeLog

From-SVN: r130514
2007-11-29 15:34:21 +00:00
Tobias Burnus 42a8c358ce re PR fortran/34262 (MVBITS does not work for arrays)
2007-11-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34262
        * intrinsic.c (gfc_get_intrinsic_sub_symbol): Add comment.
        (gfc_intrinsic_sub_interface): Copy elemental state if needed.
        * iresolve.c (gfc_resolve_mvbits): Mark procedure as elemental.

2007-11-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34262
        * gfortran.dg/mvbits_3.f90: New.

From-SVN: r130513
2007-11-29 15:56:48 +01:00
Eric Botcazou a6dcb051e9 decl.c (make_packable_type): Retrieve the real name of the type.
* decl.c (make_packable_type): Retrieve the real name of the type.
	(maybe_pad_type): Simplify similar code.

From-SVN: r130512
2007-11-29 12:41:41 +00:00
Ben Elliston 17a15a5c4a * SERVICE: Update URL.
From-SVN: r130510
2007-11-29 16:03:10 +11:00
Bob Wilson 1a79f743ec target-supports.exp (check_effective_target_mips_soft_float): Delete.
* lib/target-supports.exp (check_effective_target_mips_soft_float):
	Delete.
	(check_effective_target_hard_float): New.
	* gcc.dg/var-expand1.c: Skip for targets without FPU instructions.
	* gcc.dg/pr30957-1.c: Likewise.

From-SVN: r130509
2007-11-29 02:50:46 +00:00
Joseph Myers 20c8e40d25 * zh_CN.po: Update.
From-SVN: r130508
2007-11-29 02:21:41 +00:00
GCC Administrator 572faf4caa Daily bump.
From-SVN: r130504
2007-11-29 00:17:10 +00:00
Samuel Tardieu b99dfeb339 Fix PR # in gcc/ada/ChangeLog and gcc/testsuite/ChangeLog (17317->17318)
From-SVN: r130499
2007-11-28 20:54:47 +00:00
Samuel Tardieu 7bde4677df re PR ada/22559 (Bug box, Program_Error at sinput.adb:404, derived fixed-point type)
gcc/ada/
	PR ada/22559
	* sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
	a derived ordinary fixed point type.

	* sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
	RM_Size when a Small clause is found.

    gcc/testsuite/
	PR ada/22559
	* gnat.dg/specs/delta_small.ads: New test.

From-SVN: r130498
2007-11-28 20:48:10 +00:00
Samuel Tardieu 5a21849883 re PR ada/32792 (Assert_Failure sinfo.adb:1730)
gcc/ada/
	PR ada/32792
	* sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
	Signal an error when attribute argument is a fixed-point value of
	an unknown type.

    gcc/testsuite/
	PR ada/32792
	* gnat.dg/specs/integer_value.ads: New test.

From-SVN: r130497
2007-11-28 20:46:18 +00:00
Samuel Tardieu 9c5a3a8d78 re PR target/17317 (Match Constraints for *movdf_insn fails)
gcc/ada/
	PR ada/17317
	* par-ch4.adb (Is_Parameterless_Attribute): New map.
	(P_Name, Scan_Apostrophe block): Parse left parenthesis following
	attribute name or not depending on the new map.

	* sem-attr.adb (Analyze_Attribute): Parameterless attributes
	returning a string or a type will not be called with improper
	arguments.

	* sem-attr.ads (Attribute_Class_Array): Move to snames.ads.

	* snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.

    gcc/testsuite/
	PR ada/17317
	* gnat.dg/specs/attribute_parsing.ads: New test.

From-SVN: r130496
2007-11-28 20:44:58 +00:00
Samuel Tardieu 39a974168f re PR ada/15803 (Illegal program not detected, RM 8.3(19))
gcc/ada/
	PR ada/15803
	* par-ch3.adb (P_Variant_Part): Signal an error when anything other
	than an identifier is used after "case" in a variant_part.

    gcc/testsuite/
	PR ada/15803
	* gnat.dg/specs/variant_part.ads: New test.

From-SVN: r130495
2007-11-28 20:43:25 +00:00
Jakub Jelinek 93d15c3331 re PR tree-optimization/34140 (ICE in is_hidden_global_store, at tree-ssa-sink.c:207)
PR tree-optimization/34140
	* tree-if-conv.c (if_convertible_phi_p): Fail if BB other than
	loop->header has virtual phi nodes.

	* gcc.c-torture/compile/20071128-1.c: New test.

From-SVN: r130494
2007-11-28 20:48:19 +01:00
Richard Sandiford eae645b69a re PR target/32406 (MIPS: FAIL in nestfunc-6.c at -O3)
gcc/
	PR target/32406
	* builtins.c (expand_builtin_nonlocal_goto): Also emit a use
	of GP register, if valid and fixed.

	Revert:
	2007-06-21  David Daney  <ddaney@avtrex.com>

	PR target/32406
	* config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
	to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
	(exception_receiver): Renamed to ...
	(nonlocal_goto_receiver): ... this.

From-SVN: r130493
2007-11-28 19:46:03 +00:00
Jakub Jelinek 36cefd3922 re PR fortran/34247 (ICE in omp_add_variable, at gimplify.c:4677)
* trans-expr.c (gfc_trans_string_copy): Convert both dest and
	src to void *.

	PR fortran/34247
	* trans-openmp.c (gfc_omp_privatize_by_reference): For REFERENCE_TYPE
	pass by reference only PARM_DECLs or non-artificial decls.

From-SVN: r130492
2007-11-28 20:43:03 +01:00
Johannes Singler 1661473b7f multiway_merge.h: Destruct only elements that were have been constructed before.
2007-11-28  Johannes Singler  <singler@ira.uka.de>

        * include/parallel/multiway_merge.h: Destruct only elements that
        were have been constructed before. Code beautifying and formatting.
        * include/parallel/losertree.h: (Copy) construct all loser tree
        item keys, so they can be deconstructed all at once.
        * include/parallel/quicksort.h: Fix memory leak.
        * include/parallel/random_shuffle.h: Use copy constructor instead
        of assignment. Code beautifying and formatting.
        * include/parallel/unique_copy.h: Use assignment instead of copy
        constructor.
        * include/parallel/multiway_mergesort.h: Use copy constructor
        instead of assignment. Code beautifying and formatting.
        * include/parallel/random_shuffle.h: Use copy constructor instead
        of assignment. Code beautifying.

From-SVN: r130490
2007-11-28 17:38:49 +00:00
H.J. Lu 87300e8c81 re PR target/34001 (Incorrect x86 fastcall behavior)
2007-11-27  H.J. Lu  <hongjiu.lu@intel.com>
	    Joey Ye <joey.ye@intel.com>

	PR target/34001
	* config/i386/i386.c (function_arg_32): Don't pass aggregate
	arguments in ECX/EDX for fastcall.

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

From-SVN: r130488
2007-11-27 17:20:34 -08:00
Jerry DeLisle 08203c44a3 re PR fortran/32928 (DATA statement with array element as initializer is rejected)
2007-11-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/32928
	* gfortran.dg/data_array_1.f90
	* gfortran.dg/data_array_2.f90
	* gfortran.dg/data_array_3.f90
	* gfortran.dg/data_array_4.f90

From-SVN: r130487
2007-11-28 01:12:31 +00:00
Jerry DeLisle a27369a518 re PR fortran/34227 (initialized symbol in COMMON: Missing checks)
2007-11-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34227
	* gfortran.dg/blockdata_5.f90: New test.
	* gfortran.dg/blockdata_6.f90: New test.

From-SVN: r130486
2007-11-28 01:09:35 +00:00
Rask Ingemann Lambertsen 296ea027d2 linux.h (CRT_GET_RFIB_DATA): Add Intel syntax inline asm to macro.
* config/i386/linux.h (CRT_GET_RFIB_DATA): Add Intel syntax inline
	asm to macro.
	* config/i386/sco5.h (CRT_GET_RFIB_DATA): Likewise.
	* config/i386/sysv4.h (CRT_GET_RFIB_DATA): Likewise.

From-SVN: r130485
2007-11-28 01:04:27 +00:00
Jerry DeLisle d46e0870c0 re PR fortran/32928 (DATA statement with array element as initializer is rejected)
2007-11-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/32928
	* decl.c (match_data_constant): Use gfc_match_init_expr to match the
	array spec and set the initializer expression.

From-SVN: r130484
2007-11-28 01:02:36 +00:00
Jerry DeLisle f69ab0e0c4 re PR fortran/34227 (initialized symbol in COMMON: Missing checks)
2007-11-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34227
	* match.c (gfc_match_common): Add additional check for BLOCK DATA.

From-SVN: r130483
2007-11-28 01:00:50 +00:00
GCC Administrator 9ffb37ced1 Daily bump.
From-SVN: r130481
2007-11-28 00:17:22 +00:00
Ben Elliston c8402ecc4a aix64.opt (maix64): Add Negative(maix32).
* config/rs6000/aix64.opt (maix64): Add Negative(maix32).
	(maix32): Add Negative(maix64).

From-SVN: r130478
2007-11-28 10:17:29 +11:00
Kaz Kojima 4f5428eb08 01_assoc_laguerre/check_nan.cc: Add -mieee for sh.
* testsuite/tr1/5_numerical_facilities/special_functions/
	01_assoc_laguerre/check_nan.cc: Add -mieee for sh.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	02_assoc_legendre/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	03_beta/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	04_comp_ellint_1/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	06_comp_ellint_3/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	07_conf_hyperg/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	08_cyl_bessel_i/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	09_cyl_bessel_j/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	10_cyl_bessel_k/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	11_cyl_neumann/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	12_ellint_1/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	13_ellint_2/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	14_ellint_3/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	15_expint/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	16_hermite/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	18_laguerre/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	19_legendre/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	20_riemann_zeta/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	21_sph_bessel/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	22_sph_legendre/check_nan.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/special_functions/
	23_sph_neumann/check_nan.cc: Likewise.

From-SVN: r130477
2007-11-27 22:51:53 +00:00
Jakub Jelinek 1785c05dcb re PR tree-optimization/34016 (ICE in execute_todo with -ftree-loop-linear for 454.calculix)
PR tree-optimization/34016
	* tree-ssa-loop.c (pass_linear_transform): Add
	TODO_update_ssa_only_virtuals to todo_flags_finish.

	* gcc.dg/pr34016.c: New test.

From-SVN: r130476
2007-11-27 23:23:29 +01:00
Eric B. Weddington 24e472b86b avr.c (avr_mcu_types): Add atmega32hvb.
* config/avr/avr.c (avr_mcu_types): Add atmega32hvb.
	* config/avr/avr.h (LINK_SPEC): Likewise.
	(CRT_BINUTILS_SPECS): Likewsie.
	* config/avr/t-avr (MULTILIB_MATCHES): Likewise.

From-SVN: r130475
2007-11-28 00:58:13 +03:00
Jakub Jelinek 62cbbe84cf re PR tree-optimization/34181 (FAIL: g++.dg/opt/anchor1.C (internal compiler error))
PR tree-optimization/34181
	* method.c (use_thunk): Don't inline the call in the thunk.

From-SVN: r130474
2007-11-27 22:50:20 +01:00
Paul Thomas 908a223518 re PR fortran/29389 (Statement functions are not recognized as pure when they are)
2007-11-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/29389
	*resolve.c (resolve_ordinary_assign): Use find_sym_in_expr to
	test if a temporary should be written for a vector subscript
	on the lhs.

	PR fortran/33850
	* restore.c (pure_stmt_function): Add prototype and new
	function. Calls impure_stmt_fcn.
	(pure_function): Call it.
	(impure_stmt_fcn): New function.

	* expr.c (gfc_traverse_expr): Call *func for all expression
	types, not just variables. Add traversal of character lengths,
	iterators and component character lengths and arrayspecs.
	(expr_set_symbols_referenced): Return false if not a variable.
	* trans-stmt.c (forall_replace, forall_restore): Ditto.
	* resolve.c (forall_index): Ditto.
	(sym_in_expr): New function.
	(find_sym_in_expr): Rewrite to traverse expression calling
	sym_in_expr.
	*trans-decl.c (expr_decls): New function.
	(generate_expr_decls): Rewrite to traverse expression calling
	expr_decls.
	*match.c (check_stmt_fcn): New function.
	(recursive_stmt_fcn): Rewrite to traverse expression calling
	check_stmt_fcn.

2007-11-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/29389
	* gfortran.dg/stfunc_6.f90: New test.

	PR fortran/33850
	* gfortran.dg/assign_10.f90: New test.

From-SVN: r130472
2007-11-27 20:47:55 +00:00
Paul Thomas 0e5a218b31 re PR fortran/33541 (gfortran wrongly imports renamed-use-associated symbol unrenamed)
2007-11-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/33541
	*interface.c (compare_actual_formal): Exclude assumed size
	arrays from the possibility of scalar to array mapping.
	* decl.c (get_proc_name): Fix whitespace problem.

	PR fortran/34231
	* gfortran.h : Add 'use_rename' bit to symbol_attribute.
	* module.c : Add 'renamed' field to pointer_info.u.rsym.
	(load_generic_interfaces): Add 'renamed' that is set after the
	number_use_names is called.  This is used to set the attribute
	use_rename, which, in its turn identifies those symbols that
	have not been renamed.
	(load_needed): If pointer_info.u.rsym->renamed is set, then
	set the use_rename attribute of the symbol.
	(read_module): Correct an erroneous use of use_flag. Use the
	renamed flag and the use_rename attribute to determine which
	symbols are not renamed.

2007-11-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/33541
	* gfortran.dg/use_11.f90: New test.

	PR fortran/34231
	* gfortran.dg/generic_15.f90: New test.

From-SVN: r130471
2007-11-27 19:21:52 +00:00
Jakub Jelinek f98e89380f re PR target/34225 (ICE (segfault) in adjacent_mem_locations at rs6000.c:18191)
PR target/34225
	* config/rs6000/rs6000.c (adjacent_mem_locations): Don't assume
	MEM_SIZE is set on all MEMs.

	* gcc.dg/pr34225.c: New test.

From-SVN: r130470
2007-11-27 16:28:07 +01:00