- 12 Oct, 2005 22 commits
-
-
2005-10-12 Paul Thomas <pault@gcc.gnu.org> PR fortran/18082 * decl.c (variable_decl): Make a new copy of the character length for each variable, when the expression is not a constant. 2005-10-12 Paul Thomas <pault@gcc.gnu.org> PR fortran/18082 gfortran.dg/automatic_char_len_1.f90: New test. From-SVN: r105329
Paul Thomas committed -
* gfortran.h: Add bitmasks for different FPE traps. Add fpe member to options_t. * invoke.texi: Document the new -ffpe-trap option. * lang.opt: Add -ffpe-trap option. * options.c (gfc_init_options): Initialize the FPE option. (gfc_handle_fpe_trap_option): New function to parse the argument of the -ffpe-trap option. (gfc_handle_option): Add case for -ffpe-trap. * trans-decl.c: Declare a tree for the set_fpe library function. (gfc_build_builtin_function_decls): Build this tree. (gfc_generate_function_code): Generate a call to set_fpe at the beginning of the main program. * trans.h: New tree for the set_fpe library function. * Makefile.am: Add fpu.c to the build process, and target-dependent code as fpu-target.h. * Makefile.in: Regenerate. * configure.ac: Add call to configure.host to set FPU_HOST_HEADER. * configure: Regenerate. * config.h.in: Regenerate. * aclocal.m4: Regenerate. * configure.host: New script to determine which host-dependent code should go in. * libgfortran.h: Add fpe option, remove previous fpu_ options. Add bitmasks for different FPE traps. Add prototype for set_fpu. * runtime/environ.c: Remove environment variables to control fpu behaviour. * runtime/fpu.c (set_fpe): New function for the front-end. * runtime/main.c (init): Set FPU state. * config: New directory to store host-dependent code. * config/fpu-387.h: New file with code handling the i387 FPU. * config/fpu-glibc.h: New file with code for glibc systems. * config/fpu-generic.h: Fallback for the most generic host. Issue warnings. From-SVN: r105328
François-Xavier Coudert committed -
gfortran.dg/save_common.f90, save_result.f90: Add missing newlines at ends of file.. From-SVN: r105326
Paul Thomas committed -
2005-10-12 Paul Thomas <pault@gcc.gnu.org> PR fortran/20847 PR fortran/20856 * symbol.c (check_conflict): Prevent common variables and function results from having the SAVE attribute,as required by the standard. 2005-10-12 Paul Thomas <pault@gcc.gnu.org> PR fortran/20847 gfortran.dg/save_common.f90: New test. PR fortran/20856 gfortran.dg/save_result.f90: New test. From-SVN: r105325
Paul Thomas committed -
2005-10-12 Janne Blomqvist <jblomqvi@cc.hut.fi> * io/unix.c: Remove parts of patch of 2005/10/07 that cause input from the terminal to hang. From-SVN: r105324
Janne Blomqvist committed -
From-SVN: r105322
Hans-Peter Nilsson committed -
cp: PR c++/21592 * pt.c (build_non_dependent_expr): Don't wrap a COMPONENT_REF with already looked up member functions. Assert we're not returning a NON_DEPENDENT_EXPR with unknown type. * typeck.c (finish_class_member_access_expr): We can get non-template-id-expr baselinks. If the lookup finds a baselink, remember it even inside templates. testsuite: PR c++/21592 * g++.dg/template/dependent-expr1.C: Add new expected error. * g++.dg/template/dependent-expr2.C: Adjust error text. * g++.dg/template/overload6.C: New. From-SVN: r105313
Nathan Sidwell committed -
cp: PR c++/23797 * parser.c (cp_parser_functional_cast): Cope when TYPE is not a TYPE_DECL. Use dependent_type_p to check type. * pt.c (uses_template_parms_p): Use dependent_type_p for a TYPE_DECL. (type_dependent_expression_p): Assert we've not been given a TYPE_DECL. testsuite: PR c++/23797 * g++.dg/other/typename8.C: New. From-SVN: r105312
Nathan Sidwell committed -
cp: PR c++/21117 * decl.c (check_function_type): Correctly overwrite incomplete return type with void type. * typeck.c (check_return_expr): If the function's return type is void, don't try and convert a return expr. testsuite: PR c++/21117 * g++.dg/other/return1.C: New. From-SVN: r105310
Nathan Sidwell committed -
PR rtl-opt/23324 * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p. From-SVN: r105306
Richard Henderson committed -
PR c++/23730 * call.c (build_object_call): If BINFO is NULL, bypass lookup_fnfields and set fns to NULL_TREE. From-SVN: r105304
David Edelsohn committed -
From-SVN: r105301
Andreas Schwab committed -
2005-10-12 Paolo Bonzini <bonzini@gnu.org> PR c++/24052 * error.c (dump_expr): Pass LABEL_DECL to dump_decl. Print an ADDR_EXPR of a LABEL_DECL as &&. ==> testsuite/ChangeLog <== 2005-10-12 Paolo Bonzini <bonzini@gnu.org> PR c++/24052 * g++.dg/ext/label5.C: New. From-SVN: r105297
Paolo Bonzini committed -
2005-10-12 Richard Guenther <rguenther@suse.de> * Makefile.in (CGRAPH_H): Depend on $(TREE_H). From-SVN: r105294
Richard Guenther committed -
PR c++/19964 * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid type. cp: PR c++/19964 * cp/class.c (walk_subobject_offsets): Don't walk error_mark_node. testsuite: PR c++/19964 * g++.dg/parse/crash31.C: New. From-SVN: r105293
Nathan Sidwell committed -
From-SVN: r105292
Razya Ladelsky committed -
* gcc.dg/ipa/ipa-1.c: New test. * gcc.dg/ipa/ipa-2.c: New test. * gcc.dg/ipa/ipa-3.c: New test. * gcc.dg/ipa/ipa-4.c: New test. * gcc.dg/ipa/ipa-5.c: New test. * gcc.dg/ipa/ipa.exp: New file. From-SVN: r105291
Razya Ladelsky committed -
2005-10-12 Richard Guenther <rguenther@suse.de> PR c++/23799 * varasm.c (output_constant): Correct typo from previous patch by DJ. From-SVN: r105290
Richard Guenther committed -
2005-10-12 Paul Thomas <pault@gcc.gnu.org> PR fortran/24207 * resolve.c (resolve_symbol): Exclude use and host associated symbols from the test for private objects in a public namelist. 2005-10-12 Paul Thomas <pault@gcc.gnu.org> PR fortran/24207 gfortran.dg/private_type_3.f90: New test. From-SVN: r105289
Paul Thomas committed -
* trans-common.c (build_field): Fix comment typo. (create_common): Set backend_decl of COMMON or EQUIVALENCEd variables to a VAR_DECL with the COMPONENT_REF in DECL_HAS_VALUE_EXPR rather than COMPONENT_REF directly. * f95-lang.c (gfc_expand_function): Emit debug info for EQUIVALENCEd variables if the equiv union is going to be output. From-SVN: r105288
Jakub Jelinek committed -
2005-10-11 Andrew Pinski <pinskia@physics.uc.edu> PR libstdc++/23926 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Fix typo in check for GNU LD. * configure: Regenerate. From-SVN: r105285
Andrew Pinski committed -
[[Split portion of a mixed commit.]] From-SVN: r105278.2
GCC Administrator committed
-
- 11 Oct, 2005 18 commits
-
-
PR fortran/20786 * iresolve.c (gfc_resolve_aint, gfc_resolve_anint ): Type conversion of the argument. gfortran.dg/aint_anint_1.f90: New test. From-SVN: r105276
Steven G. Kargl committed -
PR rtl-optimization/13931 * combine.c: Revert patch of 2003-05-14, and: (try_combine): Only set elim_i1 and elim_i2 if the destination is completely killed in the appropriate insn. (distribute_notes): Don't skip multiple hard register test for elim_i1 and elim_i2. From-SVN: r105275
Ian Lance Taylor committed -
PR libgfortran/24313 * c99_functions.c (csqrtf, csqrt): Fix choice of branch cut. Note csqrt{f} were imported from glibc, and this bug is still present there. glibc PR is 1146. From-SVN: r105274
Steven G. Kargl committed -
cp/ PR c++/8057 * cvt.c (convert_to_void): Don't warn about unused values when processing a template declaration. testsuite/ PR c++/8057 * g++.dg/warn/noeffect7.C: New test. * g++.dg/warn/noeffect2.C: Instantiate templates. * g++.dg/warn/noeffect4.C: Instantiate template. Add new error and warning. From-SVN: r105273
Ian Lance Taylor committed -
PR c/24255 * c-typeck.c (convert_for_assignment): Use build_constructor_single to initialize a transparent union instead of a nop_expr. From-SVN: r105270
Richard Henderson committed -
* Makefile.in (tree-ssa-dce.o): Depend on SCEV_H. * tree-ssa-dce.c: Include tree-scalar-evolution.h. (tree_ssa_dce_loop): Call scev_reset. From-SVN: r105266
Richard Henderson committed -
* f95-lang.c (gfc_init_decl_processing): Initialize void_list_node. From-SVN: r105265
Jakub Jelinek committed -
PR c++/21089 * call.c (convert_like_real): Use decl_constant_value, not integral_constant_value. * init.c (constant_value_1): New function. (integral_constant_value): Use it. (decl_constant_value): Likewise. * typeck.c (decay_conversion): Use decl_constant_value, not integral_constant_value. PR c++/21089 * g++.dg/init/float1.C: New test. From-SVN: r105256
Mark Mitchell committed -
From-SVN: r105255
Mark Mitchell committed -
re PR c++/21369 (Template function definition rejected if function return type begins with 'struct') PR c++/21369 * g++.dg/init/member1.C: Tweak error markers. From-SVN: r105252
Mark Mitchell committed -
PR tree-opt/24300 * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H. * tree-ssa-dce.c: Include cfgloop.h. (tree_ssa_dce_loop, pass_dce_loop): New. * tree-pass.h (pass_dce_loop): Declare it. * passes.c (init_optimization_passes): Use it. From-SVN: r105250
Richard Henderson committed -
PR middle-end/24263 * convert.c (convert_to_real): Revert 2005-10-05 patch. Only apply the optimization for rounding builtins if the inner cast is also an extension. From-SVN: r105249
Eric Botcazou committed -
PR testsuite/24281 * gcc.dg/compat/struct-layout-1_generator.c (generate_fields): Check for null pointer. From-SVN: r105243
Janis Johnson committed -
re PR c++/21369 (Template function definition rejected if function return type begins with 'struct') PR c++/21369 * parser.c (cp_parser_elaborated_type_specifier): Don't treat class types as templates if the type is not appearing as part of a type definition or declaration. PR c++/21369 * g++.dg/parse/ret-type3.C: New test. From-SVN: r105241
Mark Mitchell committed -
2005-10-11 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/23946 * gcc.c-torture/compile/pr23946.c: New test. 2005-10-11 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/23946 * tree-ssa-ccp.c (execute_fold_all_builtins): Call mark_new_vars_to_rename instead of update_stmt. From-SVN: r105239
Andrew Pinski committed -
From-SVN: r105234
Bernd Schmidt committed -
* config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type for setting MMX register to 0 rather than mmx. * g++.dg/opt/mmx2.C: New test. From-SVN: r105230
Jakub Jelinek committed -
PR c++/24277 * pt.c (instantiate_decl): Call finish_static_data_member_decl for static data members. PR c++/24277 * g++.dg/template/static20.C: New test. From-SVN: r105228
Mark Mitchell committed
-