aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2007-02-23re PR fortran/30910 ([Regression 4.2, 4.3] Gfortran: ES format not quite ↵Jerry DeLisle2-0/+60
right...) 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/30910 * gfortran.dg/fmt_zero_precision.f90: Update test. From-SVN: r122251
2007-02-23builtins.c (fold_builtin_frexp): New.Kaveh R. Ghazi4-0/+186
* builtins.c (fold_builtin_frexp): New. (fold_builtin_2): Use it. testsuite: * gcc.dg/torture/builtin-frexp-1.c: New test. From-SVN: r122249
2007-02-23* doc/invoke.texi (Spec Files): Document getenv spec function.Mark Mitchell2-0/+15
From-SVN: r122248
2007-02-23Daily bump.GCC Administrator1-1/+1
From-SVN: r122244
2007-02-22gcc.c (getenv_spec_function): New function.Mark Mitchell3-4/+38
* gcc.c (getenv_spec_function): New function. (static_spec_functions): Add it. * config/vxworks.h (VXWORKS_TARGET_DIR): Remove. (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks header files. From-SVN: r122240
2007-02-22gfortran.texi (Old-style kind specifications): Document special handling of ↵Brooks Moses3-8/+19
old-style kind specifiers for COMPLEX. * gfortran.texi (Old-style kind specifications): Document special handling of old-style kind specifiers for COMPLEX. * decl.c (gfc_match_old_kind_spec): Documented kind/bytesize assumptions in comment. From-SVN: r122238
2007-02-22* g++.dg/opt/switch4.C: Pass -fshort-enums -w.Mark Mitchell2-0/+5
From-SVN: r122235
2007-02-22dwarf2out.c (add_AT_string): Call ggc_strdup once per string.Michael Matz7-144/+74
* dwarf2out.c (add_AT_string): Call ggc_strdup once per string. (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME. * cp-tree.h (TFF_NO_OUTER_SCOPE): New formatting flag. * error.c (dump_aggr_type, dump_simple_decl, dump_decl, dump_function_decl): Guard emitting outer scopes by new flag. * cp-lang.c (cxx_dwarf_name): New function. (LANG_HOOKS_DWARF_NAME): Define to cxx_dwarf_name. * pt.c (classtype_mangled_name, mangle_class_name_for_template): Remove functions. (push_template_decl_real, lookup_template_class): Remove calls to above functions. From-SVN: r122230
2007-02-22re PR debug/30898 (ICE with anonymous union and -g)Ian Lance Taylor4-0/+54
./: PR debug/30898 * dwarf2out.c (concatn_mem_loc_descriptor): New static function. (mem_loc_descriptor): Call it. testsuite/: * g++.dg/debug/pr30898.C: New test. From-SVN: r122228
2007-02-22* tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.Ira Rosen4-1/+96
From-SVN: r122226
2007-02-22re PR tree-optimization/30843 (ice for legal code with -ftree-vectorize -O2)Ira Rosen4-11/+40
PR tree-optimization/30843 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar stores only after all the group is vectorized. From-SVN: r122225
2007-02-22Update test to be compatible with Ada 2005.Arnaud Charlet2-2/+2
From-SVN: r122222
2007-02-22re PR tree-optimization/30858 (ice for legal code with -O2 -ftree-vectorize)Dorit Nuzman5-8/+79
PR tree-optimization/30858 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts in the reduction cycle have a single use in the loop. * tree-vectorizer.h (relevant): Add documentation. From-SVN: r122220
2007-02-22wrapper.exp (${tool}_maybe_build_wrapper): Allow the caller to set options ↵Mark Mitchell4-5/+17
for compiling testglue. * lib/wrapper.exp (${tool}_maybe_build_wrapper): Allow the caller to set options for compiling testglue. * lib/g++.exp (g++_init): Compile testglue with -fexceptions. * lib/obj-c++.exp (obj-c++_init): Likewise. * testsuite/lib/libstdc++.exp (libstdc++_init): Compile testglue with -fexceptions. From-SVN: r122217
2007-02-22Daily bump.GCC Administrator1-1/+1
From-SVN: r122215
2007-02-21configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.Mike Stump3-2/+9
* configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>. * configure: Regenerate. From-SVN: r122211
2007-02-21Change the defaults of some parameters and options.Trevor Smigiel11-181/+404
2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com> Change the defaults of some parameters and options. * config/spu/spu-protos.h (spu_optimization_options): Declare. * config/spu/spu.c (spu_optimization_options): Add. (spu_override_options): Change params in spu_optimization_options. * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define. Register 127 is only 16 byte aligned when used as a frame pointer. * config/spu/spu-protos.h (spu_init_expanders): Declare. * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for HARD_FRAME_POINTER_REGNUM. (spu_legitimate_address): Use regno_aligned_for_reload. (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte aligned when frame_pointer_needed is true. (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM to 8 bits. * config/spu/spu.h (INIT_EXPANDERS): Define. Make sure shift and rotate instructions have valid immediate operands. * config/spu/predicates.md (spu_shift_operand): Remove. * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers. * config/spu/constraints.md (W, O): Extend range. * config/spu/spu.md (umask, nmask): Define. (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti, lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>, rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>, rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use spu_nonmem_operand instead of spu_shift_operands. Use new modifiers. (lshr<mode>3_reg): Fix rtl description. Make sure mulhisi immediate operands are valid. * config/spu/predicates.md (imm_K_operand): Add. * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand. Generate constants using fsmbi and andi. * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2. (print_operand, spu_split_immediate, classify_immediate, fsmbi_const_p): Handle IC_FSMBI2. Correctly handle a CONST_VECTOR containing symbols. * config/spu/spu.c (print_operand): Handle HIGH correctly. (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem. (immediate_load_p): Allow symbols that use 2 instructions to create. (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR with symbols when flag_pic is set. (const_vector_immediate_p): New. (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't accept a CONST_VECTOR with symbols. (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH correctly. * config/spu/spu.md (high, low): Delete. (low_<mode>): Define. Remove INTRmode and INTR_REGNUM, which didn't work. * config/spu/spu.c (spu_conditional_register_usage): Remove reference of INTR_REGNUM. * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr, set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed peephole2 pattern): Don't use INTR or 131. (movintrcc): Delete. * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM. * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove. (UNSPEC_SET_INTR): Add. * config/spu/spu-modes.def (INTR): Remove. More accurate warnings about run-time relocations. * config/spu/spu.c (reloc_diagnostic): Test in_section. Correctly warn about immediate arguments to specific intrinsics. * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs. (spu_expand_builtin_1): Call spu_check_builtin_parm before checking the instruction predicate. Fix tree check errors with latest update. * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use CALL_EXPR_ARG. (spu_expand_builtin): Use CALL_EXPR_FN. Add missing specific intrinsics. * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and si_bislede. * config/spu/spu_internals.h: Ditto. Fix incorrect operand modifiers. * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H. * config/spu/spu.md (xor<mode>3): Change %S to %J. Optimize one case of zero_extend of a vec_select. * config/spu/spu.md (_vec_extractv8hi_ze): Add. Accept any immediate for hbr. * config/spu/spu.md (hbr): Change s constraints to i. From-SVN: r122210
2007-02-21re PR ada/18819 (ACATS cdd2a02 fail at runtime)Eric Botcazou4-6/+135
PR ada/18819 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an untagged derived type, add hidden components to keep discriminant layout consistent, when a given discriminant of the derived type constraints several discriminants of the parent type. From-SVN: r122208
2007-02-21builtin-ldexp-1.c: Use -fno-finite-math-only on sh* targets.Kaveh R. Ghazi2-4/+10
* gcc.dg/torture/builtin-ldexp-1.c: Use -fno-finite-math-only on sh* targets. Call the correct CKSGN macro. From-SVN: r122206
2007-02-21arm.c (thumb2_final_prescan_insn): Don't incrememnt condexec_count when ↵Paul Brook2-4/+6
skipping USE and CLOBBER. 2007-02-21 Paul Brook <paul@codesourcery.com> * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt condexec_count when skipping USE and CLOBBER. From-SVN: r122205
2007-02-21common.opt (Warray-bounds): Add Warning attribute.Nick Clifton3-8/+17
* common.opt (Warray-bounds): Add Warning attribute. (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch): Likewise. (fsized-zeroes): Add Optimization attribute. (fsplit-wide-types, ftree-scev-cprop): Likewise. * c.opt (Wc++0x-compat): Add Warning attribute. From-SVN: r122200
2007-02-21re PR middle-end/30761 (Error: unsupported relocation against sfp)Ulrich Weigand2-25/+24
PR middle-end/30761 * reload1.c (eliminate_regs_in_insn): In the single_set special case, attempt to re-recognize the insn before falling back to having reload fix it up. From-SVN: r122199
2007-02-21[multiple changes]Jakub Jelinek5-28/+76
2007-02-21 Bernhard Fischer <aldot@gcc.gnu.org> * parse.c (next_free): Gooble spaces after OpenMP sentinel. 2007-02-21 Jakub Jelinek <jakub@redhat.com> * gfortran.dg/gomp/omp_parse1.f90: New test. * gfortran.dg/gomp/omp_parse2.f: New test. From-SVN: r122190
2007-02-21Daily bump.GCC Administrator1-1/+1
From-SVN: r122187
2007-02-21frv.c (frv_read_argument): Take a tree and int argument.Eric Christopher2-92/+114
2007-02-20 Eric Christopher <echristo@gmail.com> * config/frv/frv.c (frv_read_argument): Take a tree and int argument. Rewrite accordingly. (frv_read_iacc_argument): Ditto. (frv_expand_set_builtin): Take a call instead of arglist, update for above changes. (frv_expand_unop_builtin): Ditto. (frv_expand_binop_builtin): Ditto. (frv_expand_cut_builtin): Ditto. (frv_expand_binopimm_builtin): Ditto. (frv_expand_voidbinop_builtin): Ditto. (frv_expand_int_void2arg): Ditto. (frv_expand_prefetches): Ditto. (frv_expand_voidtriop_builtin): Ditto. (frv_expand_voidaccop_builtin): Ditto. (frv_expand_load_builtin): Ditto. (frv_expand_store_builtin): Ditto. (frv_expand_mdpackh_builtin): Ditto. (frv_expand_mclracc_builtin): Ditto. (frv_expand_mrdacc_builtin): Ditto. (frv_expand_mwtacc_builtin): Ditto. (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update calls for above. From-SVN: r122182
2007-02-20invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.Janis Johnson11-114/+291
* doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp. * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the cmpb instruction. (HAVE_GAS_DFP): Check for assembler support of decimal floating point instructions. * configure: Regenerate. * config.in: Regenerate. * config/rs6000/rs6000.opt (mcmpb, mdfp): New. * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP masks to power6 and power6x and to POWERPC_MASKS. * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define _ARCH_PWR6. * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP. * config/rs6000/sysv4.opt (mprototype): Use variable, not mask. * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Access PROTOTYPE as variable, not mask. From-SVN: r122179
2007-02-20rtl.h (remove_reg_equal_equiv_notes): New prototype.Steven Bosscher5-21/+28
* rtl.h (remove_reg_equal_equiv_notes): New prototype. * rtlanal.c (remove_reg_equal_equiv_notes): New function. * combine.c (adjust_for_new_dest): Use it. * postreload.c (reload_combine): Likewise. From-SVN: r122178
2007-02-20rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ* notes on an insn ↵Steven Bosscher2-1/+14
with multiple sets... * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ* notes on an insn with multiple sets, even if single_set returns non-NULL for that insn. From-SVN: r122177
2007-02-20re PR fortran/30869 ([4.1 only] Rejects pointer to integer as loop variable)Thomas Koenig4-6/+20
2007-02-20 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/30869 * match.c(gfc_match_iterator): Remove conflict between loop variable and pointer. 2007-02-20 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/30869 * gfortran.dg/do_pointer_1.f90: New test. From-SVN: r122176
2007-02-20fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb, scalbn and scalbln.Kaveh R. Ghazi4-4/+20
* fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb, scalbn and scalbln. testsuite: * gcc.dg/torture/builtin-nonneg-1.c: Add checks for scalb, scalbn and scalbln. From-SVN: r122169
2007-02-20Index: gcc/ChangeLogGeoffrey Keating7-5/+41
2007-02-20 Geoffrey Keating <geoffk@apple.com> * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only if user didn't pass it. * config/i386/darwin.h (CC1_SPEC): Likewise. * config/rs6000/darwin.h (CC1_SPEC): Likewise. (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of -mmacosx-version-min. Index: gcc/testsuite/ChangeLog 2007-02-20 Geoffrey Keating <geoffk@apple.com> * gcc.dg/darwin-minversion-1.c: New. * gcc.dg/darwin-minversion-2.c: New. From-SVN: r122166
2007-02-20optabs.h (enum optab_index): Add new OTI_scalb.Kaveh R. Ghazi8-8/+140
* optabs.h (enum optab_index): Add new OTI_scalb. (scalb_optab): Define corresponding macro. * optabs.c (init_optabs): Initialize scalb_optab. * genopinit.c (optabs): Implement scalb_optab using scalb?f3 patterns. * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}. (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set. * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders to implement scalbf, scalb and scalbl built-ins as inline x87 intrinsics. testsuite/ChangeLog * gcc.dg/builtins-34.c: Add scalb/scalbn/scalbln cases. From-SVN: r122162
2007-02-20re PR other/30824 (-Werror -Wfatal-errors should stop after the first warning)Manuel López-Ibáñez10-27/+81
2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org> DJ Delorie <dj@redhat.com> PR other/30824 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to... (diagnostic_report_diagnostic): ... here, and turn them into real errors. If warnings are inhibited, no need to do anything. testsuite/ * gcc.dg/Wfatal.c: New. * gcc.dg/Wfatal-2.c: New. * gcc.dg/Werror-1.c: Adjust expectations. * gcc.dg/Werror-5.c: Likewise. * gcc.dg/Werror-7.c: Likewise. * gcc.dg/Werror-10.c: Likewise. * gcc.dg/Werror-11.c: Likewise. Co-Authored-By: DJ Delorie <dj@redhat.com> From-SVN: r122159
2007-02-20i386.md (expm1xf2): Reorder insn sequence for better code generation.Uros Bizjak2-10/+19
* config/i386/i386.md (expm1xf2): Reorder insn sequence for better code generation. From-SVN: r122158
2007-02-20re PR fortran/30522 (Host-/use-associated VOLATILE variable: volatile scope, ↵Tobias Burnus6-13/+174
redundent attributes) fortran/ 2007-02-20 Tobias Burnus <burnus@net-b.de> PR fortran/30522 * symbol.c (gfc_add_volatile): Allow to set VOLATILE attribute for host-associated variables. * gfortran.h (symbol_attribute): Save namespace where VOLATILE has been set. * trans-decl.c (gfc_finish_var_decl): Move variable declaration to the top. testsuite/ 2007-02-20 Tobias Burnus <burnus@net-b.de> PR fortran/30522 * gfortran.dg/volatile10.f90: New test. From-SVN: r122157
2007-02-20re PR fortran/30783 ("character(*), value" produces SEGV at runtime)Tobias Burnus2-3/+20
2007-02-20 Tobias Burnus <burnus@net-b.de> PR fortran/30783 * resolve.c (resolve_symbol): Add character dummy VALUE check. From-SVN: r122156
2007-02-20call.c (build_new_method_call): Ensure that explicit calls of destructors ↵Mark Mitchell2-0/+19
have type "void". * call.c (build_new_method_call): Ensure that explicit calls of destructors have type "void". From-SVN: r122153
2007-02-20* config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.Ben Elliston2-1/+5
From-SVN: r122152
2007-02-20c4x.md, [...]: Follow spelling conventions.Kazu Hirata26-87/+100
* config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.md, config/i386/i386.h, config/iq2000/iq2000.h, config/iq2000/predicates.md, config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h, config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h, config/pdp11/pdp11.c, config/pdp11/pdp11.h, config/rs6000/altivec.md, config/rs6000/rs6000.c, config/s390/s390-modes.def, config/sparc/netbsd-elf.h, config/sparc/sparc.c, config/sparc/sparc.h, config/sparc/sparc.md, config/spu/constraints.md, config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling conventions. From-SVN: r122151
2007-02-20alpha.c, [...]: Follow spelling conventions.Kazu Hirata11-22/+30
* config/alpha/alpha.c, config/alpha/alpha.md, config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c, config/alpha/vms-psxcrt0-64.c, config/arc/arc.c, config/arc/arc.h, config/arm/arm.c, config/arm/arm.md, config/arm/lib1funcs.asm: Follow spelling conventions. From-SVN: r122150
2007-02-20re PR middle-end/29943 (gcc generate incorrect alias symbols for PPC)Alan Modra2-0/+10
PR target/29943 * varasm.c (use_blocks_for_decl_p): Return false for decls with alias attribute. From-SVN: r122148
2007-02-20Daily bump.GCC Administrator1-1/+1
From-SVN: r122146
2007-02-19* doc/invoke.texi (-ftree-lrs): Remove.Kazu Hirata2-7/+5
From-SVN: r122141
2007-02-19tree-ssa-pre.c (create_value_expr_from): Initialize POOL to NULL.Diego Novillo2-1/+6
* tree-ssa-pre.c (create_value_expr_from): Initialize POOL to NULL. From-SVN: r122140
2007-02-19ia64.c (ia64_expand_builtin): Use the new CALL_EXPR_FN macro for retrieving ↵Lee Millward2-1/+7
the function declaration of the... * config/ia64/ia64.c (ia64_expand_builtin): Use the new CALL_EXPR_FN macro for retrieving the function declaration of the input expression. From-SVN: r122139
2007-02-19re PR libfortran/30533 ([4.1 only] minval, maxval missing for kind=1 and kind=2)Thomas Koenig4-26/+32
2007-02-19 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/30533 PR libfortran/30765 * Makefile.am: Add $(srcdir) too all files in generated/. (i_maxloc0_c): Add maxloc0_4_i1.c, maxloc0_8_i1.c, maxloc0_16_i1.c, maxloc0_4_i2.c, maxloc0_8_i2.c and maxloc0_16_i2.c. (i_maxloc1_c): Add maxloc1_4_i1.c, maxloc1_8_i1.c, maxloc1_16_i1.c, maxloc1_4_i2.c, maxloc1_8_i2.c and maxloc1_16_i2.c. (i_maxval_c): Add maxval_i1.c and maxval_i2.c. (i_minloc0_c): Add minloc0_4_i1.c, minloc0_8_i1.c, minloc0_16_i1.c, minloc0_4_i2.c, minloc0_8_i2.c and minloc0_16_i2.c. (i_minloc_1.c): Add minloc1_4_i1.c, minloc1_8_i1.c, minloc1_16_i1.c, minloc1_4_i2.c, minloc1_8_i2.c and minloc1_16_i2.c. (i_minval_c): Add minval_i1.c and minval_i2.c. (i_sum_c): Add sum_i1.c and sum_i2.c. (i_product_c): Add product_i1.c and product_i2.c. (i_matmul_c): Add matmul_i1.c and matmul_i2.c. (gfor_built_specific_src): Remove $(srcdir) from target. (gfor_bulit_specific2_src): Likewise. Makefile.in: Regenerated. libgfortran.h: Add GFC_INTEGER_1_HUGE and GFC_INTEGER_2_HUGE. Add gfc_array_i1 and gfc_array_i2. * generated/matmul_i1.c: New file. * generated/matmul_i2.c: New file. * generated/maxloc0_16_i1.c: New file. * generated/maxloc0_16_i2.c: New file. * generated/maxloc0_4_i1.c: New file. * generated/maxloc0_4_i2.c: New file. * generated/maxloc0_8_i1.c: New file. * generated/maxloc0_8_i2.c: New file. * generated/maxloc1_16_i1.c: New file. * generated/maxloc1_16_i2.c: New file. * generated/maxloc1_4_i1.c: New file. * generated/maxloc1_4_i2.c: New file. * generated/maxloc1_8_i1.c: New file. * generated/maxloc1_8_i2.c: New file. * generated/maxval_i1.c: New file. * generated/maxval_i2.c: New file. * generated/minloc0_16_i1.c: New file. * generated/minloc0_16_i2.c: New file. * generated/minloc0_4_i1.c: New file. * generated/minloc0_4_i2.c: New file. * generated/minloc0_8_i1.c: New file. * generated/minloc0_8_i2.c: New file. * generated/minloc1_16_i1.c: New file. * generated/minloc1_16_i2.c: New file. * generated/minloc1_4_i1.c: New file. * generated/minloc1_4_i2.c: New file. * generated/minloc1_8_i1.c: New file. * generated/minloc1_8_i2.c: New file. * generated/minval_i1.c: New file. * generated/minval_i2.c: New file. * generated/product_i1.c: New file. * generated/product_i2.c: New file. * generated/sum_i1.c: New file. * generated/sum_i2.c: New file. 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/30533 * fortran/iresolve.c(gfc_resolve_maxloc): Remove coercion of argument to default integer. (gfc_resolve_minloc): Likewise. 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/30533 * gfortran.dg/intrinsic_intkinds_1.f90: New test. From-SVN: r122137
2007-02-19c.opt (Waddress): New.Manuel López-Ibáñez36-70/+111
2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * c.opt (Waddress): New. * common.opt (Walways-true): Delete. (Wstring-literal-comparison): Delete. * doc/invoke.texi (Warning Options): Delete -Walways-true and -Wstring-literal-comparison. Add -Waddress. (Waddress): New. (Walways-true): Delete. (Wstring-literal-comparison): Delete. * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat consistently instead of -Walways-true in example. * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall. * c-typeck.c (parser_build_binary_op): Replace -Wstring-literal-comparison and -Walways-true with -Waddress. * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true with -Waddress. cp/ * typeck.c (build_binary_op): Replace -Wstring-literal-comparison and -Walways-true with -Waddress. * cvt.c (convert_to_void): Replace unconditional warning with -Waddress. testsuite/ * gcc.dg/20031012-1.c: Replace -Walways-true with -Waddress. * gcc.dg/Walways-true-1.c: Likewise. * gcc.dg/weak/weak-3.c: Likewise. * gcc.dg/Werror-1.c: Likewise. * gcc.dg/Werror-3.c: Likewise. * gcc.dg/Werror-4.c: Likewise. * gcc.dg/Werror-5.c: Likewise. * gcc.dg/Werror-6.c: Likewise. * gcc.dg/Werror-7.c: Likewise. * gcc.dg/Werror-8.c: Likewise. * gcc.dg/Werror-10.c: Likewise. * gcc.dg/Werror-11.c: Likewise. * gcc.dg/Werror-12.c: Likewise. * g++.old-deja/g++.mike/warn8.C: Likewise. * g++.dg/warn/Walways-true-1.C: Likewise. * g++.dg/warn/Walways-true-2.C: Likewise. * g++.dg/warn/noeffect8.C: Warn only with -Waddress. * g++.dg/warn/Wstring-literal-comparison-1.C: Replace -Wstring-literal-comparison with -Waddress. * gcc.dg/Wstring-literal-comparison-4.c: Replace -Wno-string-literal-comparison with -Wno-address. From-SVN: r122136
2007-02-19tree-cfg.c (dump_function_to_file): Be prepared for functions without ↵Eric Botcazou2-2/+10
DECL_STRUCT_FUNCTION initialized. * tree-cfg.c (dump_function_to_file): Be prepared for functions without DECL_STRUCT_FUNCTION initialized. From-SVN: r122135
2007-02-19gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap due to ↵Eric Botcazou4-0/+54
calls to functions taking pointers as parameters. * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap due to calls to functions taking pointers as parameters. From-SVN: r122133
2007-02-19re PR debug/29558 (ICE in set_variable_part, at var-tracking.c:2140)Richard Henderson3-1/+38
PR debug/29558 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P in memory. From-SVN: r122131