summaryrefslogtreecommitdiff
path: root/gcc/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* 2007-11-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>manu2007-11-266-1/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | PR c/23722 * c-parser.c (struct c_parser): New bit in_if_block. (c_parser_compound_statement_nostart): Handle unexpected 'else' keyword. (c_parser_statement_after_labels): Set in_if_block to false while parsing. (c_parser_if_body): Don't call c_parser_statement_after_labels if a semicolon is found, just consume it. Don't call c_parser_statement_after_labels if an open brace is found, call c_parser_compound_statement instead. (c_parser_else_body): New. (c_parser_if_statement): Set in_if_block to true when parsing the body of the 'if' statement. Use c_parser_else_body. testsuite/ * gcc.dg/cpp/19990413-1.c: Update. * gcc.dg/parse-else-error.c: New. * gcc.dg/parse-else-error-2.c: New. * gcc.dg/parse-else-error-3.c: New. * gcc.dg/parse-else-error-4.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130446 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>krebbel2007-11-262-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR 34081/C++ * c-decl.c (store_parm_decls): Pass 'false' for the new allocate_struct_function parameter. * cgraphunit.c (cgraph_build_static_cdtor): Likewise. * tree-parloops.c (create_loop_fn): Likewise. * function.c (push_function_context_to, push_struct_function, init_function_start): Likewise. (allocate_struct_function): Add boolean parameter. * tree.h (allocate_struct_function): Add boolean parameter. * function.h (struct function): Move returns_struct and returns_pcc_struct to the end of the structure definiton. 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com> PR 34081/C++ * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu): Pass 'false' for the new allocate_struct_function parameter. * utils.c (build_function_stub): Likewise. 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com> PR 34081/C++ * decl.c (finish_method): Pass 'false' for the new allocate_struct_function parameter. 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com> PR 34081/C++ * treetree.c (tree_code_create_function_wrapup): Pass 'false' for the new allocate_struct_function parameter. 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com> PR 34081/C++ * decl.c (start_preparsed_function): Pass processing_template_decl for the new allocate_struct_function parameter. 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com> PR 34081/C++ * g++.dg/template/dependent-expr6.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130441 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/34215uros2007-11-262-1/+25
| | | | | | | | | | | | | | | | | | * config/i386/i386.md (truncdfsf2): Select SLOT_TEMP stack slot if virtual registers are instantiated. (truncxf<mode>2): Ditto. (floatsi<mode>2): Ditto. (floatdisf2): Ditto. (floatdidf2): Ditto. testsuite/ChangeLog: PR target/34215 * gcc.target/i386/pr34215.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130440 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/34174rask2007-11-262-0/+49
| | | | | | | | | | | * config/fr30/fr30.c (fr30_move_double): Sanitize mem->reg case. Copy the address before it is clobbered. testsuite/ * gcc.dg/torture/pr34174-1.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130438 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-26 Richard Guenther <rguenther@suse.de>rguenth2007-11-262-0/+13
| | | | | | | | | | | PR middle-end/34233 * builtins.c (expand_builtin_pow): Use expand_expr to expand the result of build_call_expr. * gcc.dg/pr34233.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130436 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix PR rtl-optimization/34085revitale2007-11-262-0/+45
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130435 138bc75d-0d04-0410-961f-82ee72b054a4
* Formatting.schwab2007-11-261-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130434 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/testsuite/rsandifo2007-11-262-2/+8
| | | | | | | | * lib/target-supports.exp (check_effective_target_mips_soft_float): Return true for MIPS16 targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130433 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2007-11-252-0/+29
| | | | | | | | PR fortran/33152 *gfortran.dg\blockdata_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130416 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-25 Tobias Burnus <burnus@net-b.de>burnus2007-11-254-1/+82
| | | | | | | | | | | | | | | | | | | PR fortran/34079 * trans-types.c (gfc_return_by_reference, gfc_get_function_type): Do not return result of character-returning bind(C) functions as argument. * trans-expr.c (gfc_conv_function_call): Ditto. 2007-11-25 Tobias Burnus <burnus@net-b.de> PR fortran/34079 * gfortran.dg/bind_c_usage_10_c.c: Fix comment. * gfortran.dg/bind_c_usage_16.f03: New. * gfortran.dg/bind_c_usage_16_c.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130414 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type hasebotcazou2007-11-254-0/+152
| | | | | | | | | | | | | | strict alignment, no alignment clause and a known static size, cap the type alignment to the greatest power of 2 factor of the size. (gnat_to_gnu_field): If the field has a component clause, is aliased or of a type with strict alignment, require that its size be equal to that of the type. (validate_size): Use the type size as the minimum size for a type with strict alignment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130406 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-25 Paul Thomas <pault@gcc.gnu.org>pault2007-11-252-0/+48
| | | | | | | | | | | | | | | PR fortran/33499 * decl.c (get_proc_name): If ENTRY statement occurs before type specification, set the symbol untyped and ensure that it is in the procedure namespace. 2007-11-25 Paul Thomas <pault@gcc.gnu.org> PR fortran/33499 * gfortran.dg/entry_16.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130403 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-24 Tobias Burnus <burnus@net-b.de>burnus2007-11-242-0/+24
| | | | | | | | | PR fortran/34192 * gfortran.dg/nearest_2.f90: Add INF/NAN tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130396 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-24 Paul Thomas <pault@gcc.gnu.org>pault2007-11-243-1/+99
| | | | | | | | | | | | | | | | | | | | | | PR fortran/33541 * module.c (find_symtree_for_symbol): Move to new location. (find_symbol): New function. (load_generic_interfaces): Rework completely so that symtrees have the local name and symbols have the use name. Renamed generic interfaces exclude the use of the interface without an ONLY clause (11.3.2). (read_module): Implement 11.3.2 in the same way as for generic interfaces. 2007-11-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/33541 * gfortran.dg/nested_modules_1.f90: Change the reference to FOO, forbidden by the standard, to a reference to W. * gfortran.dg/use_only_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130395 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-23 Tobias Burnus <burnus@net-b.de>jvdelisle2007-11-243-0/+371
| | | | | | | | | | | | | PR fortran/34209 * gfortran.dg/nearest_3.f90: New test. 2007-11-23 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/33317 * gfortran.dg/optional_dim_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130392 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-23 Tobias Burnus <burnus@net-b.de>burnus2007-11-242-0/+34
| | | | | | | | | | | | | | | | | PR fortran/34187 * module.c (load_needed): Ensure binding_label is not lost. * decl.c (set_binding_label,gfc_match_bind_c): Replace strncpy by strcpy. 2007-11-23 Tobias Burnus <burnus@net-b.de> PR fortran/34187 * gfortran.dg/bind_c_usage_15.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130386 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-23 Tobias Burnus <burnus@net-b.de>burnus2007-11-232-0/+153
| | | | | | | | | | | | | | | | | Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/34192 * simplify.c (gfc_simplify_nearest): Fix NEAREST for subnormal numbers. 2007-11-23 Tobias Burnus <burnus@net-b.de> PR fortran/34192 * gfortran.dg/nearest_2.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130383 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/30293jakub2007-11-232-0/+85
| | | | | | | | | | | | | | | | | PR c++/30294 * decl.c (cp_finish_decl): Disallow variable or field definitions if extern "Java" aggregates. (grokparms): Disallow parameters with extern "Java" aggregates. (check_function_type): Disallow function return values with extern "Java" aggregates. * init.c (build_new_1): Disallow placement new with extern "Java" aggregates. * g++.dg/ext/java-2.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130382 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-23 Mark Mitchell <mark@codesourcery.com>manu2007-11-233-0/+30
| | | | | | | | | | | | | | | Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR c++/5310 cp/ * call.c (convert_like_real): Build a zero constant when __null is converted to an integer type. testsuite/ * g++.dg/warn/pr5310.C: New. * g++.dg/warn/pr33160.C: New git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130381 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-23 Richard Guenther <rguenther@suse.de>rguenth2007-11-232-0/+74
| | | | | | | | | | | | | | | | | | | Michael Matz <matz@suse.de> PR tree-optimization/34176 * alloc-pool.h (empty_alloc_pool): Declare. * alloc-pool.c (empty_alloc_pool): New function. * tree-ssa-sccvn.c (vn_reference_lookup): Also lookup from the valid table if a lookup from the optimistic table failed. (vn_unary_op_lookup): Likewise. (vn_binary_op_lookup): Likewise. (vn_phi_lookup): Likewise. (process_scc): Clear optimistic tables before every iteration. * gcc.c-torture/execute/pr34176.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130379 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/34198jakub2007-11-233-0/+76
| | | | | | | | | | | | | * c-common.c (conversion_warning): For INTEGER_TYPE to INTEGER_TYPE conversions call get_narrower on expr to avoid spurious warnings from binop shortening or when the implicit conversion can't change the value. * gcc.dg/Wconversion-5.c: New test. * g++.dg/Wconversion3.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130377 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-23 Richard Guenther <rguenther@suse.de>rguenth2007-11-232-0/+22
| | | | | | | | | | | | | | | * tree-ssa-copy.c (may_propagate_copy): Remove redundant checks. (merge_alias_info): Do verification only if checking is enabled. Merge flow-sensitive alias information in simple cases. * tree-ssa-operands.c (get_addr_dereference_operands): Also complain about missing NMTs. * gcc.dg/tree-ssa/alias-17.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130370 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c/14050jsm282007-11-222-10/+16
| | | | | | | | | | | | | | | | | * c-decl.c (set_array_declarator_inner): Don't give error for static or type qualifiers in abstract declarator. Remove abstract_p parameter. * c-tree.h (set_array_declarator_inner): Update prototype. * c-parser.c (c_parser_direct_declarator_inner): Update call to set_array_declarator_inner. * doc/standards.texi: Update for C99 TC3. testsuite: * gcc.dg/c99-arraydecl-1.c: Don't expect errors for static or type qualifiers in abstract declarator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130362 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-22 Tobias Burnus <burnus@net-b.de>burnus2007-11-222-0/+26
| | | | | | | | | | | | | * primary.c (gfc_match_structure_constructor): Allow constructor for types without components. 2007-11-22 Tobias Burnus <burnus@net-b.de> * gfortran.dg/derived_constructor_comps_3.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130358 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/34094jakub2007-11-222-0/+28
| | | | | | | | | | | * decl2.c (cp_write_global_declarations): Issue error about static data members in anonymous namespace which are declared and used, but not defined. * g++.dg/ext/visibility/anon7.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130351 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-22 Tobias Burnus <burnus@net-b.de>burnus2007-11-224-0/+275
| | | | | | | | | | | | | | | | | | | PR fortran/34079 * trans-expr.c (gfc_conv_function_call): Do not append string length arguments when calling bind(c) procedures. * trans-decl.c (create_function_arglist): Do not append string length arguments when declaring bind(c) procedures. 2007-11-22 Tobias Burnus <burnus@net-b.de> PR fortran/34079 * gfortran.dg/bind_c_usage_10.f03: Remove .mod file afterwards. * gfortran.dg/bind_c_usage_13.f03: New. * gfortran.dg/bind_c_usage_14.f03: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130346 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/testsuite/rsandifo2007-11-222-0/+48
| | | | | | | | PR rtl-optimization/33848 * gcc.dg/torture/pr33848.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130345 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/34083fxcoudert2007-11-212-0/+17
| | | | | | | | | * resolve.c (resolve_structure_cons): Also check for zero rank. * gfortran.dg/derived_constructor_comps_2.f90: Add check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130332 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-20 Richard Guenther <rguenther@suse.de>rguenth2007-11-202-0/+21
| | | | | | | | | | | | | PR middle-end/34154 * gimplify.c (gimplify_switch_expr): Use tree_int_cst_lt instead of the signed INT_CST_LT. * stmt.c (expand_case): Likewise. (estimate_case_costs): Likewise. * testsuite/gcc.c-torture/execute/pr34154.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130324 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.dg/tree-ssa/20030714-1.c: Cleanup dom3 dump file.uros2007-11-202-14/+19
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130323 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-20 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2007-11-207-25/+37
| | | | | | | | | | | | | | | PR fortran/32770 * gfortran.dg/record_marker_1.f90: Explicitly set kinds so test passes with -frecord-marker=8. * gfortran.dg/integer_exponentiation_1.f90: Likewise. * gfortran.dg/integer_exponentiation_2.f90: Likewise. * gfortran.dg/integer_exponentiation_3.F90: Likewise. * gfortran.dg/integer_exponentiation_5.F90: Likewise. * gfortrand.dg/modulo_1.f90: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130322 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/testsuite/rsandifo2007-11-204-0/+23
| | | | | | | | | | * lib/target-supports.exp (check_effective_target_mips_soft_float): New procedure. * gcc.dg/var-expand1.c: Skip for mips_soft_float. * gcc.dg/pr30957-1.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130321 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/34089jakub2007-11-202-0/+11
| | | | | | | | | * parser.c (cp_parser_class_head): Reject function template ids. * g++.dg/template/crash74.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130316 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-20 Richard Guenther <rguenther@suse.de>rguenth2007-11-202-0/+85
| | | | | | | | | | * tree-ssa-operands.c (add_virtual_operand): Consistently prune accesses. * gcc.c-torture/execute/20071120-1.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130315 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c/34146jakub2007-11-203-3/+61
| | | | | | | | | | | | | | | * c-gimplify.c (optimize_compound_literals_in_ctor): New function. (c_gimplify_expr): Use it. PR c/34146 * gcc.dg/tree-ssa/pr34146.c: New test. PR testsuite/33978 * gcc.dg/tree-ssa/pr33723.c: Adjust scan pattern to make it less dependent on target settings like move_by_pieces etc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130311 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/28879jakub2007-11-202-0/+23
| | | | | | | | | | * tree.c (build_cplus_array_type_1): Don't pass any VLA types when processing_template_decl to build_array_type. * g++.dg/template/vla2.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130309 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/33962jakub2007-11-202-0/+20
| | | | | | | | | | * pt.c (more_specialized_fn): Don't segfault if one or both argument list end with ellipsis. * g++.dg/overload/template3.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130308 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/spu/mfc_tag_release.c: New file.bje2007-11-201-0/+312
| | | | | | | | | | | | | | | | | | | | * config/spu/mfc_multi_tag_release.c: Likewise. * config/spu/mfc_multi_tag_reserve.c: Likewise. * config/spu/mfc_tag_release.c: Likewise. * config/spu/mfc_tag_reserve.c: Likewise. * config/spu/mfc_tag_table.c: Likewise. * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Compile them. (TARGET_LIBGCC2_CFLAGS): Define __IN_LIBGCC2. * config/spu/spu_mfcio.h (uint64_t): Typedef if __IN_LIBGCC2 is defined and avoid <stdint.h>. (MFC_TAG_INVALID, MFC_TAG_VALID): New macros. (mfc_tag_reserve, mfc_tag_release, mfc_multi_tag_reserve, mfc_multi_tag_release): Likewise. (__mfc_tag_reserve, __mfc_tag_release, __mfc_multi_tag_reserve, __mfc_multi_tag_release): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130306 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2007-11-202-24/+5
| | | | | | | | PR fortran/33317 * gfortran.dg/optional_dim_2.f90: Remove test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130305 138bc75d-0d04-0410-961f-82ee72b054a4
* PR debug/29436, c/32326jason2007-11-192-4/+2
| | | | | | | | | | | | | | | | * tree.c (build_type_attribute_qual_variant): Refuse to make a distinct copy of a struct/enum type. Use build_distinct_type_copy. * doc/extend.texi (Type Attributes): Don't encourage people to add attributes to struct/enum types in a typedef. Fix transparent_union example. * tree-inline.c (remap_type_1): Remove code that's redundant with remap_type. (build_duplicate_type): Set id.copy_decl. * c-common.c (handle_transparent_union_attribute): Simplify logic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130297 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/rs6000/rs6000.c (invalid_e500_subreg,bergner2007-11-192-0/+58
| | | | | | | | | | | | | | | | | | rs6000_legitimate_offset_address_p, legitimate_lo_sum_address_p, rs6000_legitimize_address, rs6000_legitimize_reload_address, rs6000_legitimate_address, function_arg_advance, spe_build_register_parallel, rs6000_spe_function_arg, rs6000_split_multireg_move, spe_func_has_64bit_regs_p, emit_frame_save, gen_frame_mem_offset, rs6000_function_value, rs6000_libcall_value, rs6000_dwarf_register_span): Handle DDmode and TDmode similarly to DFmode and TFmode. * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK, DATA_ALIGNMENT, CLASS_MAX_NREGS, CANNOT_CHANGE_MODE_CLASS): Likewise. * gcc.dg/dfp/ddmode-ice.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130296 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/34036ebotcazou2007-11-192-1/+7
| | | | | | | | * gcc.dg/tree-ssa/pr23109.c: Pass -ftrapping-math and expect warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130293 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-19 Richard Guenther <rguenther@suse.de>rguenth2007-11-191-0/+5
| | | | | | | | | | | | PR tree-optimization/34099 * tree-ssa-ccp.c (likely_value): Exclude all but PLUS_EXPR, MINUS_EXPR and POINTER_PLUS_EXPR from handling as UNDEFINED if only one operand is undefined. * gcc.c-torture/execute/pr34099-2.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130290 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-19 Richard Guenther <rguenther@suse.de>rguenth2007-11-191-0/+47
| | | | | | | | | | | | PR tree-optimization/34099 * tree-ssa-ccp.c (likely_value): Exclude all but PLUS_EXPR, MINUS_EXPR and POINTER_PLUS_EXPR from handling as UNDEFINED if only one operand is undefined. * gcc.c-torture/execute/pr34099-2.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130289 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-19 Tobias Burnus <burnus@net-b.de>burnus2007-11-193-0/+127
| | | | | | | | | | | | | | | | PR fortran/34079 * decl.c (gfc_match_entry): Support BIND(C). (gfc_match_subroutine): Fix comment typo. 2007-11-19 Tobias Burnus <burnus@net-b.de> PR fortran/34079 * gfortran.dg/bind_c_usage_10_c.c: New. * gfortran.dg/bind_c_usage_10.f03: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130288 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/34036ebotcazou2007-11-194-0/+40
| | | | | | | | | | | | | | | | | | * opts.c (set_fast_math_flags): Do not set flags in common with set_unsafe_math_optimizations_flags, invoke it directly. (set_unsafe_math_optimizations_flags): Unset flag_trapping_math and flag_signed_zeros. * toplev.c (process_options): Force flag_associative_math to 0 and warn, if it is set and either flag_trapping_math or flag_signed_zeros is set too. * doc/invoke.texi (Optimize Options): Document the new behavior of -funsafe-math-optimizations, that -fassociative-math requires both -fno-signed-zeros and -fno-trapping-math and make it clear that -fno-trapping-math requires -fno-signaling-nans. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130286 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/30988jakub2007-11-185-0/+64
| | | | | | | | | | | | | | semantics.c (finish_call_expr): Set current_function_returns_abnormally if fn is noreturn FUNCTION_DECL or OVERLOAD with all noreturn functions. * g++.dg/warn/noreturn-4.C: New test. * g++.dg/warn/noreturn-5.C: New test. * g++.dg/warn/noreturn-6.C: New test. * g++.dg/warn/noreturn-7.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130280 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-18 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2007-11-188-18/+36
| | | | | | | | | | | | | | | | | | | | PR fortran/32770 * gfortran.fortran-torture/execute/equiv_5.f: Set kind on integers so tests works with -fdefault-integer-8. * gfortran.fortran-torture/execute/elemental.f90: Use default integers so test passes with -fdefault-integer-8. * gfortran.fortran-torture/execute/der_io.f90: Increase buffer length so test passes with -fdefault-integer-8. * gfortran.dg/bounds_check_8.f90: Likewise. * gfortran.dg/arrayio_derived_1.f90: LIkewise. * gfortran.dg/equiv_7.f90: Set kind so test passes with -fdefault-integer-8. * gfortran.dg/g77/20030326-1.f: Set kind explicitly to provoke overflow. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130279 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2007-11-183-1/+33
| | | | | | | | | | | PR fortran/33317 * gfortran.dg/optional_dim_2.f90: New test. PR fortran/34139 * gfortran.dg/subref_array_pointer_2.f90: Update test condition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130277 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/34132jakub2007-11-182-0/+22
| | | | | | | | | | * gcse.c (try_replace_reg): Avoid rtx sharing between REG_EQUAL note and insn. * gcc.c-torture/compile/20071118-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130275 138bc75d-0d04-0410-961f-82ee72b054a4