- 29 Sep, 2009 18 commits
-
-
2009-09-29 H.J. Lu <hongjiu.lu@intel.com> PR testsuite/41496 * g++.dg/dfp/dfp.exp: Unset DEFAULT_CXXFLAGS if it didn't exist before. From-SVN: r152287
H.J. Lu committed -
2009-09-29 Basile Starynkevitch <basile@starynkevitch.net> Rafael Avila de Espindola <espindola@google.com> * gengtype.c (plugin_output): New. (get_output_file_with_visibility): Return plugin_output for plugins. (main): Parse and use the -P option. * gty.texi: Update the command line format. Co-Authored-By: Rafael Avila de Espindola <espindola@google.com> From-SVN: r152286
Basile Starynkevitch committed -
From-SVN: r152285
H.J. Lu committed -
* gcc.test-framework/dg-bogus-exp-XF.c: Move dg-bogus directive. * gcc.test-framework/dg-warning-exp-P.c: Move dg-warning directives. From-SVN: r152284
Janis Johnson committed -
PR debug/41438 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New functions. (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail out if !const_ok_for_output. PR debug/41474 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN, case VAR_LOCATION>: Remove gcc_unreachable (). * gcc.dg/debug/dwarf2/const-1.c: Add dg-require-visibility, make x hidden. * g++.dg/debug/dwarf2/const-1.C: Likewise. From-SVN: r152282
Jakub Jelinek committed -
2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com> * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h. (x86_64-*-*): Ditto. * config/i386/smmintrin.h: Move instructions in mmintrin-common.h back to smmintrin.h. * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit. * config/i386/x86intrin.h: Remove SSE5. * config/i386/mmintrin-common.h: Delete file. * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins. * gcc.target/i386/i386.exp: Remove check_effective_target_sse5. * gcc.target/i386/isa-1.c * gcc.target/i386/isa-5.c * gcc.target/i386/isa-6.c: Remove SSE5. * gcc.target/i386/funcspec-4.c: Remove error conditions related to SSE5. * gcc.target/i386/avx-1.c * gcc.target/i386/avx-2.c * gcc.target/i386/sse-23.c: Remove comments to mmintrin-common.h. * gcc.target/i386/funcspec-9.c: Delete. From-SVN: r152280
Harsha Jagasia committed -
alias.c (ao_ref_from_mem): Properly deal with off decl accesses resulting from stack temporaries on... 2009-09-29 Richard Guenther <rguenther@suse.de> * alias.c (ao_ref_from_mem): Properly deal with off decl accesses resulting from stack temporaries on STRICT_ALIGNMENT targets. From-SVN: r152278
Richard Guenther committed -
PR testsuite/41444 * gcc.dg/guality/guality.h (GUALITY_GDB_REDIRECT): Fix a typo in macro name definition for non-unix/win32/msdos. From-SVN: r152275
Jakub Jelinek committed -
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out common code processing the component type into... <E_Array_Subtype>: Likewise. (gnat_to_gnu_component_type): ...this new static function. (maybe_pad_type): Minor cleanup. From-SVN: r152273
Eric Botcazou committed -
* decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite the handling of constrained discriminated record subtypes. (components_to_record): Declare the type of the variants and of the qualified union. (build_subst_list): Move around. (compute_field_positions): Rename into... (build_position_list): ...this. Return a TREE_VEC. (annotate_rep): Adjust for above renaming. (build_variant_list): New static function. (create_field_decl_from): Likewise. (get_rep_part): Likewise. (get_variant_part): Likewise. (create_variant_part_from): Likewise. (copy_and_substitute_in_size): Likewise. From-SVN: r152272
Eric Botcazou committed -
* gcc.dg/guality/guality.exp (gdb-test): New proc for use in dg-final. * gcc.dg/guality/pr41353-1.c: New test. From-SVN: r152271
Jakub Jelinek committed -
* function.c (current_function_name): If there is no current function just return "<none>". From-SVN: r152269
Nick Clifton committed -
2009-09-29 Daniel Kraft <d@domob.eu> PR fortran/39626 * gfortran.h (enum gfc_statement): Add ST_BLOCK and ST_END_BLOCK. (struct gfc_namespace): Convert flags to bit-fields and add flag `construct_entities' for use with BLOCK constructs. (enum gfc_exec_code): Add EXEC_BLOCK. (struct gfc_code): Add namespace field to union for EXEC_BLOCK. * match.h (gfc_match_block): New prototype. * parse.h (enum gfc_compile_state): Add COMP_BLOCK. * trans.h (gfc_process_block_locals): New prototype. (gfc_trans_deferred_vars): Made public, new prototype. * trans-stmt.h (gfc_trans_block_construct): New prototype. * decl.c (gfc_match_end): Handle END BLOCK correctly. (gfc_match_intent): Error if inside of BLOCK. (gfc_match_optional), (gfc_match_value): Ditto. * match.c (gfc_match_block): New routine. * parse.c (decode_statement): Handle BLOCK statement. (case_exec_markers): Add ST_BLOCK. (case_end): Add ST_END_BLOCK. (gfc_ascii_statement): Handle ST_BLOCK and ST_END_BLOCK. (parse_spec): Check for statements not allowed inside of BLOCK. (parse_block_construct): New routine. (parse_executable): Parse BLOCKs. (parse_progunit): Disallow CONTAINS in BLOCK constructs. * resolve.c (is_illegal_recursion): Find real container procedure and don't get confused by BLOCK constructs. (resolve_block_construct): New routine. (gfc_resolve_blocks), (resolve_code): Handle EXEC_BLOCK. * st.c (gfc_free_statement): Handle EXEC_BLOCK statements. * trans-decl.c (saved_local_decls): New static variable. (add_decl_as_local): New routine. (gfc_finish_var_decl): Add variable as local if inside BLOCK. (gfc_trans_deferred_vars): Make public. (gfc_process_block_locals): New routine. * trans-stmt.c (gfc_trans_block_construct): New routine. * trans.c (gfc_trans_code): Handle EXEC_BLOCK statements. 2009-09-29 Daniel Kraft <d@domob.eu> PR fortran/39626 * gfortran.dg/block_1.f08: New test. * gfortran.dg/block_2.f08: New test. * gfortran.dg/block_3.f90: New test. * gfortran.dg/block_4.f08: New test. * gfortran.dg/block_5.f08: New test. * gfortran.dg/block_6.f08: New test. * gfortran.dg/block_7.f08: New test. * gfortran.dg/block_8.f08: New test. From-SVN: r152266
Daniel Kraft committed -
2009-09-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/35862 * gfortran.dg/round_1.f03: New test. * gfortran.dg/f2003_io_3.f03: Update test. From-SVN: r152264
Jerry DeLisle committed -
2009-09-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/35862 * io.h (gfc_unit): Add round_status. (format_token): Add enumerators for rounding format specifiers. * transfer.c (round_opt): New options table. (formatted_transfer_scalar_read): Add set round_status for each rounding format token. (formatted_transfer_scalar_write): Likewise. * format.c (format_lex): Tokenize the rounding format specifiers. (parse_format_list): Parse the rounding format specifiers. * write_float.def (outout_float): Modify rounding code to use new variable rchar to set the appropriate rounding. Fix some whitespace. * unit.c (get_internal_unit): Initialize rounding mode for internal units. (init_units): Likewise. From-SVN: r152263
Jerry DeLisle committed -
2009-09-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/35862 * io.c (format_token): Add enumerators for rounding format specifiers. (format_lex): Tokenize the rounding format specifiers. (gfc_match_open): Enable rounding modes in OPEN statement. From-SVN: r152262
Jerry DeLisle committed -
From-SVN: r152261
GCC Administrator committed -
2009-09-28 Benjamin Kosnik <bkoz@redhat.com> * libsupc++/eh_terminate.cc: Fixes for -fno-exceptions. * libsupc++/vec.cc: Same. * libsupc++/vterminate.cc: Same. * libsupc++/new_opnt.cc: Same. From-SVN: r152258
Benjamin Kosnik committed
-
- 28 Sep, 2009 19 commits
-
-
* tree-pass.h (register_pass_info): New structure. (pass_positioning_ops): Move enum from gcc-plugin.h. (register_pass): New function. * gcc-plugin.h (plugin_pass): Delete structure. (pass_positioning_ops): Delete enum. * plugin.c (regsiter_pass): Delete function. (position_pass): Delete function. (added_pass_nodes): Delete variable. (prev_added_pass_nodes): Delete variable. (pass_list_node): Delete structure. * passes.c (make_pass_instance): New function. (next_pass_1): Change to call make_pass_instance. (pass_list_node): Move structure from gcc-plugin.h. (added_pass_nodes): Move variable from plugin.c. (prev_added_pass_nodes): Move variable from plugin.c. (position_pass): New function. (register_pass): New function. From-SVN: r152257
Sriraman Tallam committed -
2009-09-28 Kai Tietz <kai.tietz@onevision.com> * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu assembly version use of ___chkstk. From-SVN: r152256
Kai Tietz committed -
From-SVN: r152254
Olivier Hainque committed -
./: * ifcvt.c (noce_try_abs): Recognize pattern and call expand_one_cmpl_abs_nojump. * optabs.c (expand_one_cmpl_abs_nojump): New function. * optabs.h (expand_one_cmpl_abs_nojump): Declare. testsuite/: * gcc.target/i386/ifcvt-onecmpl-abs-1.c: New file. * gcc.c-torture/execute/ifcvt-onecmpl-abs-1.c: New file. From-SVN: r152253
Easwaran Raman committed -
PR middle-end/40500 * c-opts.c (c_common_handle_option): Don't set warn_jump_misses_init for -Wall. * doc/invoke.texi (Warning Options): Update documentation. From-SVN: r152252
Ian Lance Taylor committed -
gcc/: * Makefile.in ($(out_object_file)): Depend on gt-$(basename $(notdir $(out_file))).h. From-SVN: r152249
Ralf Wildenhues committed -
* g++.dg/dfp/dfp.exp: Run tests from c-c++-common/dfp. * c-c++-common/dfp/func-vararg-alternate-d32.c: XFAIL for C++. * c-c++-common/dfp/func-vararg-dfp.c: Ditto. * c-c++-common/dfp/func-vararg-mixed.c: Ditto. * c-c++-common/dfp/func-vararg-mixed-2.c: Ditto. From-SVN: r152247
Janis Johnson committed -
From-SVN: r152246
Janis Johnson committed -
* lib/target-supports.exp (check-effective-target-dfp-nocache): Fix typo that breaks the check. From-SVN: r152245
Janis Johnson committed -
* gcc-interface/targtyps.c * (get_target_default_allocator_alignment): Account for observable alignments out of default allocators. testsuite/ * gnat.dg (tagged_alloc_free.adb): New testcase. From-SVN: r152243
Olivier Hainque committed -
* mangle.c (write_builtin_type): Support decimal float types. * g++.dg/dfp: New directory. * g++.dg/dg.exp: Prune tests in dfp directory. * g++.dg/dfp/dfp/exp: New. * g++.dg/dfp/mangle-mode.C: New test. From-SVN: r152242
Janis Johnson committed -
* except.h (struct eh_region_d): Add use_cxa_end_cleanup. * except.c (gen_eh_region): Set it. (duplicate_eh_regions_1): Copy it. * tree-eh.c (lower_resx): Use it to determine which function to call to resume. * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup. * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New. * builtins.def (BUILT_IN_CXA_END_CLEANUP): New. * tree.c (build_common_builtin_nodes): Remove parameter. Build BUILT_IN_CXA_END_CLEANUP if necessary. * tree.h (build_common_builtin_nodes): Update decl. * c-common.c (c_define_builtins): Update call to build_common_builtin_nodes. gcc/ada/ * gcc-interface/utils.c (gnat_install_builtins): Update call to build_common_builtin_nodes. gcc/cp/ * cp-objcp-common.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New. gcc/fortran/ * f95-lang.c (gfc_init_builtin_functions): Update call to build_common_builtin_nodes. gcc/java/ * builtins.c (initialize_builtins): Update call to build_common_builtin_nodes. * lang.c (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New. From-SVN: r152241
Richard Henderson committed -
2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com> * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns. From-SVN: r152239
Andrew Pinski committed -
* builtins.c (interclass_mathfn_icode): New helper. (expand_builtin_interclass_mathfn): Use it here, and split folding into ... (fold_builtin_interclass_mathfn): ... this new folder. (build_call_nofold_loc): New static helper. (build_call_nofold): New wrapper macro for above. (expand_builtin_int_roundingfn): Use it instead of build_call_expr. (expand_builtin_pow): Ditto. (expand_builtin_memset_args): Ditto. (expand_builtin_printf): Ditto. (expand_builtin_fprintf): Ditto. (expand_builtin_sprintf): Ditto. (expand_builtin_memory_chk): Ditto. (expand_builtin_mempcpy_args): Ditto and don't call folders. (expand_builtin_stpcpy): Ditto. (expand_builtin_strcmp): Ditto. (expand_builtin_strncmp): Ditto. (expand_builtin_strcpy): Remove FNDECL and MODE arguments. (expand_builtin_strcpy_args): Don't call folders. (expand_builtin_memcmp): Ditto. (expand_builtin_strncpy): Ditto, and use target. (expand_builtin_memcpy): Ditto. (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr, expand_builtin_strpbrk, expand_builtin_memmove, expand_builtin_memmove_args, expand_builtin_bcopy, expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat, expand_builtin_strspn, expand_builtin_strcspn, expand_builtin_fputs): Remove these. (expand_builtin): Don't call the above, change calls to other expanders that changed prototype. (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy. (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call fold_builtin_interclass_mathfn. (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy. (fold_builtin_strcat): Add folding split from expand_builtin_strcat. * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp. * passes.c (init_optimization_passes): Move pass_fold_builtins after last phiopt pass. * tree-inline.c (fold_marked_statements): When folding builtins iterate over all instruction potentially generated. * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare earlier. (fold_gimple_call): Use it to always fold calls (into potentially multiple instructions). * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p calls into zero at this time. * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple statements generated by builtin folding. testsuite/ * gcc.dg/builtins-44.c: Use __builtin_isinf_sign when checking for sign of -Inf. From-SVN: r152236
Michael Matz committed -
* config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns. From-SVN: r152235
Nick Clifton committed -
2009-09-28 Johannes Singler <singler@ira.uka.de> * include/parallel/for_each_selectors.h: Remove obsolete comment. From-SVN: r152234
Johannes Singler committed -
From-SVN: r152233
Duncan Sands committed -
Approved by Ian Lance Taylor. From-SVN: r152232
Duncan Sands committed -
From-SVN: r152230
GCC Administrator committed
-
- 27 Sep, 2009 3 commits
-
-
tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under which we remove __builtin_stack_restore. * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under which we remove __builtin_stack_restore. From-SVN: r152227
Richard Henderson committed -
* loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P, to test for GRD_INVARIANT. (simple_rhs_p): Anything that's function_invariant_p is fine. From-SVN: r152226
Bernd Schmidt committed -
From-SVN: r152225
Rafael Espindola committed
-