1. 22 Aug, 2008 20 commits
    • exp_ch7.adb: Minor comment fix · 25bb6a4e
      2008-08-22  Bob Duff  <duff@adacore.com>
      
      	* exp_ch7.adb: Minor comment fix
      
      From-SVN: r139448
      Bob Duff committed
    • exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is involved and… · 87cd63ba
      exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is involved and the return type is class-wide...
      
      2008-08-22  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
      	involved and the return type is class-wide, use the type of the expression
      	for the generated access type. Suppress useless discriminant checks on the
      	allocator.
      
      From-SVN: r139447
      Ed Schonberg committed
    • init.c: adjust EH support code on Alpha/Tru64 as well. · 116c24a0
      2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* init.c: adjust EH support code on Alpha/Tru64 as well.
      
      	* raise-gcc.c: Add back a couple of comments.
      
      From-SVN: r139446
      Eric Botcazou committed
    • s-shasto.ads, [...]: Move Shared_Var_ROpen... · 0999b547
      2008-08-22  Kevin Pouget  <pouget@adacore.com>
      
      	* s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
      	Shared_Var_Close procedure specifications from package spec to package body.
      
      	* rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
      	RE_Shared_Var_WOpen entries.
      
      	* exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
      	Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
      
      From-SVN: r139445
      Kevin Pouget committed
    • sem_ch8.adb: Minor reformatting · 44b90160
      2008-08-22  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch8.adb: Minor reformatting
      
      From-SVN: r139444
      Robert Dewar committed
    • 2008-08-22 Robert Dewar <dewar@adacore.com> · 1dcdbfab
      	* exp_attr.adb:
      	(Expand_N_Attribute_Reference): No validity checking on OUT parameter of
      	Read or Input attribute.
      
      From-SVN: r139443
      Arnaud Charlet committed
    • exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate with a… · 597d7158
      exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate with a range is transformed into a positional...
      
      2008-08-22  Gary Dismukes  <dismukes@adacore.com>
      
      	* exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
      	with a range is transformed into a positional aggregate, any copied
      	component literals should be marked Is_Static_Expression.
      
      	* sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
      	not being known at at compile time when Configurable_Run_Time_Mode is
      	true.
      
      From-SVN: r139442
      Gary Dismukes committed
    • init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX, Solaris,… · 5f0085c7
      init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX, Solaris, FreeBSD, VxWorks and PowerPC/Linux.
      
      2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
      	Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
      	do not adjust the PC anymore.
      	(__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
      	on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
      
      	* raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
      	instead of _Unwind_GetIP.
      
      From-SVN: r139441
      Eric Botcazou committed
    • gnat_ugn.texi: Change the description of gnatcheck default rule settings. · f934798c
      2008-08-22  Sergey Rybin  <rybin@adacore.com>
      
      	* gnat_ugn.texi: Change the description of gnatcheck default rule
      	settings.
      
      From-SVN: r139440
      Sergey Rybin committed
    • sem_ch8.adb: Minor reformatting Minor code reorganization (introduce subprogram to factor... · 7ca139d3
      2008-08-22  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch8.adb: Minor reformatting
      	Minor code reorganization (introduce subprogram to factor duplicated
      	code).
      
      From-SVN: r139439
      Thomas Quinot committed
    • gfortran.h (in_prefix): Removed from this header. · 3df684e2
      2008-08-22  Daniel Kraft  <d@domob.eu>
      
      	* gfortran.h (in_prefix): Removed from this header.
      	* match.h (gfc_matching_prefix): Moved and renamed from `in_prefix'.
      	* decl.c (in_prefix): Removed from here.
      	(gfc_match_prefix): Use new name of `gfc_matching_prefix'.
      	* symbol.c (gfc_check_symbol_typed): Ditto.
      	* expr.c (check_typed_ns): New helper variable.
      	(expr_check_typed_help): New helper method.
      	(gfc_expr_check_typed): Rewrote to use gfc_traverse_expr to do the
      	work, fixing a minor problem.
      	* match.c (gfc_matching_prefix): New variable.
      
      From-SVN: r139435
      Daniel Kraft committed
    • exp_attr.adb (Expand_N_Attribute_Reference): In case of access attributes add… · 0d4aed99
      exp_attr.adb (Expand_N_Attribute_Reference): In case of access attributes add missing support to handle designated types...
      
      2008-08-22  Javier Miranda  <miranda@adacore.com>
      
      	* exp_attr.adb (Expand_N_Attribute_Reference): In case of access
      	attributes add missing support to handle designated types that come
      	from the limited view.
      
      	* exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
      
      From-SVN: r139432
      Arnaud Charlet committed
    • vms_data.ads: Add entry for new gnatcheck -mNNN option · b66cb572
      2008-08-22  Sergey Rybin  <rybin@adacore.com>
      
      	* vms_data.ads: Add entry for new gnatcheck -mNNN option
      
      	* gnat_ugn.texi: Add description for gnatcheck option '-m'
      
      From-SVN: r139431
      Sergey Rybin committed
    • sem_ch8.adb (Use_One_Type): when checking which of two use_type clauses in… · 3ea52b2e
      sem_ch8.adb (Use_One_Type): when checking which of two use_type clauses in related units is redundant...
      
      2008-08-22  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch8.adb (Use_One_Type): when checking which of two use_type
      	clauses in related units is redundant, if one of the units is a package
      	instantiation, use its instance_spec to determine which unit is the
      	ancestor of the other.
      
      From-SVN: r139430
      Ed Schonberg committed
    • make.adb (Check.File_Not_A_Source_Of): New Boolean function · 5d41bf55
      2008-08-22  Vincent Celier  <celier@adacore.com>
      
      	* make.adb (Check.File_Not_A_Source_Of): New Boolean function
      	(Check): Check if the file names registered in the ALI file for the
      	spec, the body and each of the subunits are the ones expected.
      
      From-SVN: r139429
      Arnaud Charlet committed
    • g-catiio.adb: Code cleanup. · 2147ba0c
      2008-08-22  Robert Dewar  <dewar@adacore.com>
      
      	* g-catiio.adb: Code cleanup.
      
      From-SVN: r139428
      Robert Dewar committed
    • gnat_ugn.texi: Update the gnatcheck subsection for metric rules acoording to the latest... · 846f6f7a
      2008-08-22  Sergey Rybin  <rybin@adacore.com>
      
      	* gnat_ugn.texi: Update the gnatcheck subsection for metric rules
      	acoording to the latest changes in the metric rule interface
      
      From-SVN: r139427
      Sergey Rybin committed
    • * c-ppoutput.c (init_pp_output): Initialize src_line to 1. · 1a456b49
      From-SVN: r139426
      Nathan Sidwell committed
    • re PR fortran/32095 (Accepts invalid character(len(a)),dimension(1) :: a) · f37e928c
      2008-08-22  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/32095
      	PR fortran/34228
      	* gfortran.h (in_prefix): New global.
      	(gfc_check_symbol_typed), (gfc_check_expr_typed): New methods.
      	* array.c (match_array_element_spec): Check that bounds-expressions
      	don't have symbols not-yet-typed in them.
      	* decl.c (var_element): Check that variable used is already typed.
      	(char_len_param_value): Check that expression does not contain
      	not-yet-typed symbols.
      	(in_prefix): New global.
      	(gfc_match_prefix): Record using `in_prefix' if we're at the moment
      	parsing a prefix or not.
      	* expr.c (gfc_expr_check_typed): New method.
      	* parse.c (verify_st_order): New argument to disable error output.
      	(check_function_result_typed): New helper method.
      	(parse_spec): Check that the function-result declaration, if given in
      	a prefix, contains no not-yet-typed symbols when the IMPLICIT rules are
      	parsed.
      	* symbol.c (gfc_check_symbol_typed): Check that a symbol already has
      	a type associated to it, otherwise use the IMPLICIT rules or signal
      	an error.
      
      2008-08-22  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/32095
      	PR fortran/34228
      	* gfortran.dg/used_before_typed_1.f90: New test.
      	* gfortran.dg/used_before_typed_2.f90: New test.
      	* gfortran.dg/used_before_typed_3.f90: New test.
      	* gfortran.dg/array_constructor_26.f03: Add -std=gnu to not enable
      	legacy-behaviour for the new check.
      	* gfortran.dg/array_constructor_27.f03: Ditto.
      	* gfortran.dg/blockdata_4.f90: Ditto.
      	* gfortran.dg/bound_2.f90: Reordered declarations to satisfy the check.
      	* gfortran.dg/result_in_spec_1.f90: Ditto.
      	* gfortran.dg/argument_checking_7.f90: Adapted expected error messages.
      
      From-SVN: r139425
      Daniel Kraft committed
    • Daily bump. · 6b738732
      From-SVN: r139421
      GCC Administrator committed
  2. 21 Aug, 2008 20 commits
    • configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove spurrious comma from test. · 042628f9
              * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
              spurrious comma from test.
              * configure: Rebuild.
      
      From-SVN: r139408
      Richard Henderson committed
    • re PR c/30457 (Please warn about va_start(ap, invalid)) · 2985f531
      2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR 30457
      	* builtins.c (fold_builtin_next_arg): Add warning about undefined
      	behaviour.
      testsuite/
      	* gcc.dg/pr30457.c: New.
      
      From-SVN: r139406
      Manuel López-Ibáñez committed
    • c-tree.h (grokfield): New argument. · 3d10ed6c
              * c-tree.h (grokfield): New argument.
              * c-decl.c (grokfield): Handle new location argument.
              * c-parser.c (c_parser_struct_declaration): Pass location to
              grokfield.
      testsuite/
              * gcc.dg/20011008-1.c: Test column.
              * gcc.dg/20080820.c: New.
              * gcc.dg/fltconst-1.c: Test column.
              * gcc.dg/cpp/cpp.exp: Add -fno-show-column.
              * gcc.dg/cpp/trad/trad.exp: Same.
              * lib/gcc.exp (gcc_target_compile): Remove -fno-show-column.
              * lib/gcc-dg.exp (process-message): Handle columns.
      
      From-SVN: r139403
      Aldy Hernandez committed
    • eh_ptr.cc (__gxx_dependent_exception_cleanup): Call __cxa_free_dependent_exception. · eb5712c9
      2008-08-21  Sebastian Redl <sebastian.redl@getdesigned.at>
      
      	* libsupc++/eh_ptr.cc (__gxx_dependent_exception_cleanup): Call
      	__cxa_free_dependent_exception.
      
      From-SVN: r139402
      Sebastian Redl committed
    • anchor1.C (foo): Return the return value of ycf->ascent. · 406f3538
      	* g++.dg/opt/anchor1.C (foo): Return the return value of
      	ycf->ascent.
      
      From-SVN: r139399
      Joseph Myers committed
    • tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants. · c76a1f18
      2008-08-21  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
      
      	* gcc.dg/vect/vect-fold-1.c: Scan ccp1 dump instead of dom1.
      
      From-SVN: r139398
      Richard Guenther committed
    • class.c (make_class_data): Don't add field_index when flag_reduced_reflection set. · c7c63407
      2008-08-21  David Daney  <ddaney@avtrex.com>
      
      	* class.c (make_class_data): Don't add field_index when
      	flag_reduced_reflection set.
      
      From-SVN: r139397
      David Daney committed
    • Fix ChangeLog typo · d9b14b12
      From-SVN: r139394
      Nathan Froyd committed
    • libgomp.exp (libgomp_init): Only set things that depend on blddir if blddir exists. · 8c9570df
      	* testsuite/libgomp.exp (libgomp_init): Only set things that
      	depend on blddir if blddir exists.
      	(libgomp_target_compile): Likewise.
      	* testsuite/libgomp.c++/c++.exp: Likewise.
      	* testsuite/libgomp.fortran/fortran.exp: Likewise.
      
      From-SVN: r139393
      Nathan Froyd committed
    • cgraph.c (first_cgraph_function_insertion_hook): New variable. · 129a37fc
      	* cgraph.c (first_cgraph_function_insertion_hook): New variable.
      	(cgraph_add_function_insertion_hook, cgraph_remove_function_insertion_hook,
      	cgraph_call_function_insertion_hooks): New functions.
      	* cgraph.h (cgraph_add_function_insertion_hook, cgraph_remove_function_insertion_hook,
      	cgraph_call_function_insertion_hooks): Declare.
      	* ipa-reference.c (function_insertion_hook_holder): New variable.
      	(check_operand, look_for_address_of): When checking late, do not care
      	about module bitmaps.
      	(add_new_function): New function.
      	(generate_summary): Register hooks; zero module bitmaps.
      	(propagate): Unregister hooks.
      	* ipa-pure-const.c (function_insertion_hook_holder): New variable.
      	(add_new_function): New function.
      	(generate_summary): Register hook.
      	(propagate): Remove hook.
      
      	* ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
      
      	* tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
      	* ipa-cp.c (ipcp_update_cloned_node): New function.
      	(build_const_val): Handle functions correctly; bring type logic
      	into sync with tree-inline.c
      	(ipcp_init_stage):  Take care of computing stuff needed by
      	indirect inlining; update clones.
      	(ipcp_generate_summary): Break out of ipcp_driver.
      	(ipcp_driver): Do only execution and transformation.
      	(pass_ipa_cp): Make IPA_PASS.
      	* tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
      	offset to address.
      	* ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
      	ipcp, some info is already available.
      	* ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
      	* tree-inline.c (remap_ssa_name): Unshare expression.
      
      From-SVN: r139389
      Jan Hubicka committed
    • tree-ssa-pre.c (insert_into_preds_of_block): Before inserting a PHI ask VN if it… · 1e52075c
      tree-ssa-pre.c (insert_into_preds_of_block): Before inserting a PHI ask VN if it is already available.
      
      2008-08-21  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
      	a PHI ask VN if it is already available.
      	* tree-ssa-sccvn.h (vn_phi_lookup): Declare.
      	* tree-ssa-sccvn.c (vn_phi_lookup): Export.
      
      From-SVN: r139388
      Richard Guenther committed
    • re PR middle-end/36817 (internal compiler error: in compare_values_warnv) · 729edaa1
      2008-08-21  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/36817
      	* tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
      	makes sure to produce a result of the correct type.
      
      	* gcc.c-torture/compile/pr36817.c: New testcase.
      
      From-SVN: r139385
      Richard Guenther committed
    • Backport from LTO branch: · 812dbce5
      	2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
      		    Jan Hubicka  <jh@suse.cz>
      	
      	* ipa-pure-const.c
      	(init_state, finish_state, set_function_state, generate_summary):
      	New functions.
      	(scan_stmt): Renamed from scan_function.  Changed to keep state in
      	local static vars rather than cgraph aux field.
      	(propagate): Renamed from static_execute. Changed to keep state in
      	local static vars rather than cgraph aux field.
      	(pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
      	* tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
      
      	2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
      
      	* tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
      	* ipa-reference.c (init_function_info, generate_summary, 
      	propagate): New functions.
      	(analyze_function):  Call init_function_info.
      	(static_execute): Stripped into generate_summary and propagate.
      	(pass_ipa_reference): Made into ipa_opt_pass.
      
      From-SVN: r139378
      Jan Hubicka committed
    • Makefile.am: Add -no-undefined · 0ac7d78a
      2008-08-21  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
      
      	* Makefile.am: Add -no-undefined
      	* Makefile.in: Regenerate.
      
      From-SVN: r139377
      Aaron W. LaFramboise committed
    • ssa-fre-13.c: Remove XFAIL. · a80eccaa
      2008-08-21  Richard Guenther  <rguenther@suse.de>
      
      	* gcc.dg/tree-ssa/ssa-fre-13.c: Remove XFAIL.
      	* gcc.dg/tree-ssa/ssa-fre-14.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-fre-17.c: Likewise.
      	* gcc.dg/tree-ssa/data-dep-1.c: Likewise.
      	* gcc.dg/tree-ssa/ltrans-3.c: Likewise.
      
      From-SVN: r139376
      Richard Guenther committed
    • re PR tree-optimization/37181 (FAIL: Divide_1 -O3) · 08298a8c
      2008-08-21  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/37181
      	* tree-vrp.c (extract_range_from_binary_expr): Check for NULL
      	folding result.
      	(extract_range_from_unary_expr): Likewise.
      
      From-SVN: r139375
      Richard Guenther committed
    • re PR testsuite/37182 (Revision 139286 caused gcc.dg/pr17506.c and gcc.dg/uninit-15.c) · 96501113
      2008-08-21  Richard Guenther  <rguenther@suse.de>
      
      	PR testsuite/37182
      	* gcc.dg/pr17506.c: Remove duplicate testcase.
      	* gcc.dg/uninit-15.c: Adjust to allow for both correct
      	behaviors, one xfailed.
      
      From-SVN: r139374
      Richard Guenther committed
    • diagnostic.c (pedwarn_at): Rename as pedwarn. · 509c9d60
      2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	* diagnostic.c (pedwarn_at): Rename as pedwarn.
      	(pedwarn): Delete.
      	* toplev.h (pedwarn_at): Likewise.
      	* builtins.c: Update all calls to pedwarn.
      	* c-lex.c: Likewise.
      	* toplev.c: Likewise.
      	* c-tree.h: Likewise.
      	* c-decl.c: Likewise.
      	* c-errors.c: Likewise.
      	* c-typeck.c: Likewise.
      	* c-common.c: Likewise.
      	* c-parser.c: Likewise.
      cp/
      	* typeck.c: Update all calls to pedwarn.
      	* decl.c: Likewise.
      	* call.c: Likewise.
      	* error.c: Likewise.
      	* pt.c: Likewise.
      	* name-lookup.c: Likewise.
      	* parser.c: Likewise.
      fortran/	
      	* f95-lang.c: Update all calls to pedwarn.
      
      From-SVN: r139373
      Manuel López-Ibáñez committed
    • char_traits.h (char_traits<char16_t>:: assign(char_type*, size_t, char_type),… · 2fb63453
      char_traits.h (char_traits<char16_t>:: assign(char_type*, size_t, char_type), [...]): For now, just open-code.
      
      2008-08-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/char_traits.h (char_traits<char16_t>::
      	assign(char_type*, size_t, char_type), char_traits<char32_t>::
      	assign(char_type*, size_t, char_type)): For now, just open-code.
      
      From-SVN: r139367
      Paolo Carlini committed
    • re PR target/31070 (ICE in function_arg_slotno) · 0dd8c9bc
      	PR target/31070
      	* config/sparc/sparc.c (function_arg_slotno): Handle structure
      	with MODE_VECTOR_INT mode.
      
      From-SVN: r139363
      Joseph Myers committed