- 22 Aug, 2008 28 commits
-
-
2008-08-22 Robert Dewar <dewar@adacore.com> * exp_ch7.adb: Minor reformatting From-SVN: r139460
Robert Dewar committed -
2008-08-22 Robert Dewar <dewar@adacore.com> * exp_ch6.adb: Minor reformatting From-SVN: r139459
Robert Dewar committed -
2008-08-22 Bob Duff <duff@adacore.com> * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds. From-SVN: r139458
Bob Duff committed -
sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant use_type_clause in an instance. 2008-08-22 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant use_type_clause in an instance. From-SVN: r139457
Ed Schonberg committed -
2008-08-22 Doug Rupp <rupp@adacore.com> * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call __gnat_set_features. * init.c (__gnat_set_features): New function. (__gnat_features_set): New tracking variable. (__gl_no_malloc_64): New feature global variable From-SVN: r139456
Doug Rupp committed -
2008-08-22 Bob Duff <duff@adacore.com> * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb, exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb, exp_intr.adb, exp_ch3.adb: Rename: Exp_Ch7.Controlled_Type => Needs_Finalization Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type => Has_Controlled_Parts (Has_Some_Controlled_Component): Fix bug in array case. From-SVN: r139452
Bob Duff committed -
2008-08-22 Richard Guenther <rguenther@suse.de> PR middle-end/36548 PR middle-end/37125 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only if the multiplication does not overflow. * gcc.c-torture/execute/pr37125.c: New testcase. From-SVN: r139450
Richard Guenther committed -
2008-08-22 Bob Duff <duff@adacore.com> * exp_ch6.ads: Minor comment fix From-SVN: r139449
Arnaud Charlet committed -
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 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 -
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 -
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 -
2008-08-22 Robert Dewar <dewar@adacore.com> * sem_ch8.adb: Minor reformatting From-SVN: r139444
Robert Dewar committed -
* 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 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, 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 -
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 -
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 -
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 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 -
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 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 -
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 -
2008-08-22 Robert Dewar <dewar@adacore.com> * g-catiio.adb: Code cleanup. From-SVN: r139428
Robert Dewar committed -
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 -
From-SVN: r139426
Nathan Sidwell committed -
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 -
From-SVN: r139421
GCC Administrator committed
-
- 21 Aug, 2008 12 commits
-
-
* configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove spurrious comma from test. * configure: Rebuild. From-SVN: r139408
Richard Henderson committed -
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. * 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 -
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 -
* g++.dg/opt/anchor1.C (foo): Return the return value of ycf->ascent. From-SVN: r139399
Joseph Myers committed -
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 -
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 -
From-SVN: r139394
Nathan Froyd committed -
* 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. (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 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 -
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
-