aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-12-02re PR c++/18758 (ICE redeclaring struct as template)Nathan Sidwell4-1/+29
cp: PR c++/18758 * parser.c (cp_parser_class_head): Return NULL_TREE when push_template_decl fails. Update comment. testsuite: PR 18758 * g++.dg/parse/crash21.C: New. From-SVN: r91636
2004-12-02Makefile.in (WERROR_FLAGS): Renamed from WERROR.Andreas Schwab3-4/+12
* Makefile.in (WERROR_FLAGS): Renamed from WERROR. (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR). (STAGE2_FLAGS_TO_PASS): Likewise. * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR. From-SVN: r91634
2004-12-02PR c++/15664, c++/18276Kriang Lerdsuwanakij5-34/+89
PR c++/15664, c++/18276 * pt.c (tsubst_decl) <TEMPLATE_DECL case>: Reorganize. Correctly tsubst TEMPLATE_DECL that is a TEMPLATE_TEMPLATE_PARM. * g++.dg/template/ttp13.C: New test. * g++.dg/template/ttp14.C: Likewise. From-SVN: r91633
2004-12-02re PR c++/18123 (ICE on templated enum)Kriang Lerdsuwanakij5-3/+30
PR c++/18123 * parser.c (cp_parser_type_specifier): Catch template declaration of enum. * g++.dg/parse/enum2.C: New test. * g++.old-deja/g++.pt/enum5.C: Adjust error location. From-SVN: r91630
2004-12-02xstormy16: New test directory.Nick Clifton4-0/+96
* gcc.target/xstormy16: New test directory. * gcc.target/xstormy16/xstormy16.exp: Run the new tests. * gcc.target/xstormy16/bp.c: Check the generation of bp instructions. * gcc.target/xstormy16/below_100.c: Check the generation of bp and bn instructions and the BELOW100 attribute. From-SVN: r91627
2004-12-02Introduce and use config/gcc-version.m4.Richard Sandiford4-23/+26
From-SVN: r91625
2004-12-02re PR target/16952 (GCC for powerpc cross target with -mrelocatable reports ↵Alan Modra2-0/+9
error) PR target/16952 * gcc.dg/ppc-eabi.c: New. From-SVN: r91619
2004-12-02rs6000.c (rs6000_assemble_integer): Put back the #ifdef RELOCATABLE_NEEDS_FIXUP.Alan Modra2-4/+7
* config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the #ifdef RELOCATABLE_NEEDS_FIXUP. From-SVN: r91617
2004-12-02re PR target/9908 ([x86] wrong code generated for virtual method call with ↵Roger Sayle2-2/+8
-masm-intel) PR target/9908 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct Intel assembler syntax by using %A1 instead of %*%1. From-SVN: r91616
2004-12-01Fix typo.Jeff Law1-1/+1
From-SVN: r91615
2004-12-01expr.c (expand_assignment): Handle CONCAT both as a final destination and as ↵Richard Henderson3-2/+40
a middle point. * expr.c (expand_assignment): Handle CONCAT both as a final destination and as a middle point. From-SVN: r91614
2004-12-01tree.h (save_eptr, save_filt): Now file scoped statics.Jeff Law2-4/+35
* tree.h (save_eptr, save_filt): Now file scoped statics. (honor_protect_cleanup_actions): Only create save_eptr and save_filt if they do not already exist. (lower_eh_constructs): Wipe all knowledge of save_eptr and save_filt before returning. From-SVN: r91613
2004-12-02re PR libfortran/18284 (BACKSPACE broken)Bud Davis2-0/+16
2004-12-02 Bud Davis <bdavis9659@comcast.net> PR libfortran/18284 * io/unix.c (fd_alloc_w_at): Update file_length when extending. * io/backspace.c (formatted_backspace): Reset endfile after backspace. PR fortran/18284 * gfortran.dg/backspace.f90 From-SVN: r91612
2004-12-02inquire.c (inquire_via_unit): do not allow a direct access file to be opened ↵Bud Davis2-0/+15
for sequential I/O. 2004-12-02 Bud Davis <bdavis9659@comcast.net> * io/inquire.c (inquire_via_unit): do not allow a direct access file to be opened for sequential I/O. * gfortran.dg/inquire.f90: New test. From-SVN: r91610
2004-12-02flush.c: New file.Steven G. Kargl7-6/+288
2004-12-02 Steven G. Kargl <kargls@comcast.net> Paul Brook <paul@codesourcery.com> libgfortran/ * intrinsics/flush.c: New file. * intrinsics/fnum.c: ditto * intrinsics/stat.c: ditto * io/io.h (unit_to_fd): Add prototype. * io/unix.c (unit_to_fd): New function. * configure.ac: Add test for members of struct stat. Check for sys/types.h and sys/stat.h * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c} * configure.in: Regenerate. * config.h.in: Regenerate. * Makefile.in: Regenerate. fortran/ * check.c (gfc_check_flush, gfc_check_fnum): New functions. (gfc_check_fstat, gfc_check_fstat_sub): New functions. (gfc_check_stat, gfc_check_stat_sub): New functions. * gfortran.h (GFC_ISYM_FNUM,GFC_ISYM_FSTAT,GFC_ISYM_STAT): New symbols * intrinsic.c (add_functions,add_subroutines): Add flush, fnum, fstat, and stat to intrinsics symbol tables. * intrinsic.h (gfc_check_flush, gfc_resolve_stat_sub): Add prototypes. (gfc_resolve_fstat_sub, gfc_resolve_stat): Ditto. * iresolve.c (gfc_resolve_fnum, gfc_resolve_fstat): New functions. (gfc_resolve_stat, gfc_resolve_flush): New functions. (gfc_resolve_stat_sub,gfc_resolve_fstat_sub): New functions * trans-intrinsic.c (gfc_conv_intrinsic_function): Add new intrinsics. Co-Authored-By: Paul Brook <paul@codesourcery.com> From-SVN: r91609
2004-12-02* tree-phinodes.c (remove_phi_arg_num): Fix a comment.Kazu Hirata2-4/+8
From-SVN: r91608
2004-12-02re PR target/16952 (GCC for powerpc cross target with -mrelocatable reports ↵Alan Modra4-9/+26
error) PR target/16952 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace #ifdef RELOCATABLE_NEEDS_FIXUP with if. * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms of target_flags_explicit. * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch case. Define as 0 for non-biarch. From-SVN: r91605
2004-12-02intrinsic.c: Fix and add comments, fix function declarationsSteven G. Kargl2-327/+402
2004-12-02 Steven G. Kargl <kargls@comcast.net> * intrinsic.c: Fix and add comments, fix function declarations (OPTIONAL,REQUIRED): New symbols (add_functions,add_subroutines): Use symbols (gmp.h): Remove unused include From-SVN: r91604
2004-12-02t-aix43, t-aix52 (SHLIB_LINK): Change temporary file tag from a prefix to an ↵Zack Weinberg3-8/+13
infix. * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK): Change temporary file tag from a prefix to an infix. From-SVN: r91601
2004-12-02Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r91598.2
2004-12-02gcc-dg.exp (dg-process-target): Wrapper for dg function to handle ↵Janis Johnson3-4/+84
effective-target-keyword. * lib/gcc-dg.exp (dg-process-target): Wrapper for dg function to handle effective-target-keyword. (dg-skip-if): Support effective-target keyword as target list. (dg-xfail-if): Ditto. * lib/target-supports.exp (is-effective-target-keyword): New proc. From-SVN: r91592
2004-12-01* gcc.c (struct option_map): Add entry for "--pass-exit-codes".Andreas Schwab2-0/+5
From-SVN: r91590
2004-12-01re PR tree-optimization/18763 (Gcc failed to bootstrap with --disable-checking)Andrew Pinski2-0/+21
2004-12-01 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/18763 PR tree-opt/18746 * tree-ssa-alias.c (init_alias_info): Get statement operands for all the statements if aliases_computed_p is true. From-SVN: r91589
2004-12-01Makefile.in (WERROR): New variable.Mark Mitchell3-2/+14
* Makefile.in (WERROR): New variable. (STRICT2_WARN): Use it. (STAGE2_FLAGS_TO_PASS): Likewise. * config/i386/x-mingw32 (WERROR): Add -Wno-format. From-SVN: r91584
2004-12-01expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR offsetting.Richard Henderson2-2/+7
* expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR offsetting. From-SVN: r91577
2004-12-01Compile speed improvement.Matt Austern2-1/+8
* name-lookup.c (namespace_binding): Omit alias check for global namespace. From-SVN: r91575
2004-12-01re PR tree-optimization/18291 (ICE in merge_alias_info)Diego Novillo4-13/+60
PR tree-optimization/18291 * tree-ssa-copy.c (merge_alias_info): Fix merging of flow-sensitive alias information. If the new pointer has no name tag, copy it from the original pointer. Otherwise, make sure that the pointed-to sets have a common intersection. testsuite/ChangeLog PR tree-optimization/18291 * testsuite/gcc.c-torture/compile/pr18291.c: New test. From-SVN: r91574
2004-12-01Test for PR 15289.Richard Henderson1-0/+15
From-SVN: r91572
2004-12-01re PR rtl-optimization/15289 (reload error with non-lowpart subregs)Richard Henderson6-462/+422
PR rtl-opt/15289 * emit-rtl.c (gen_complex_constant_part): Remove. (gen_realpart, gen_imagpart): Remove. * rtl.h (gen_realpart, gen_imagpart): Remove. * expmed.c (extract_bit_field): Remove CONCAT hack catering to gen_realpart/gen_imagpart. * expr.c (write_complex_part, read_complex_part): New. (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push, emit_move_complex_push, emit_move_complex, emit_move_ccmode, emit_move_multi_word): Split out from ... (emit_move_insn_1): ... here. (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part. <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part. * function.c (assign_parm_setup_reg): Hard-code transformations instead of using gen_realpart/gen_imagpart. From-SVN: r91571
2004-12-01expr.c (optimize_bitfield_assignment_op): Split out from ...Richard Henderson2-137/+148
* expr.c (optimize_bitfield_assignment_op): Split out from ... (expand_assignment): ... here. Use handled_component_p to gate get_inner_reference code. Simplify MEM handling. Special case CONCAT destinations. From-SVN: r91570
2004-12-01expmed.c (store_bit_field): Use simplify_gen_subreg instead of ↵Richard Henderson2-14/+9
gen_rtx_SUBREG directly. * expmed.c (store_bit_field): Use simplify_gen_subreg instead of gen_rtx_SUBREG directly. From-SVN: r91569
2004-12-01re PR rtl-optimization/17107 (Opportunity to improve code generated for ↵David Edelsohn2-8/+13
complex logical expression) 2004-12-01 David Edelsohn <edelsohn@gnu.org> Nathan Sidwell <nathan@codesourcery.com> PR target/17107 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER. (sgt): Same. (sle): Same. (slt): Same. Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com> From-SVN: r91568
2004-12-01re PR middle-end/18667 (ice with --parm integer-share-limit=0)Nathan Sidwell5-93/+105
PR middle-end/18667 * params.c (set_param_value): Add range check. * params.def: Add min and max values. Reformat long strings. * params.h (struct param_info): Add min and max fields. (enum compiler_param): Adjust DEFPARAM. * toplev.c (lang_independent_params): Likewise. From-SVN: r91567
2004-12-01re PR c++/18729 (ICE on invalid typedef)Nathan Sidwell4-0/+22
cp: PR c++/18729 * parser.c (cp_parser_class_name): Check decl's type is not error_mark_node. testsuite: PR C++/18729 * g++.dg/parse/crash20.C: New. From-SVN: r91566
2004-12-01re PR c++/17431 (Internal error: Segmentation fault (program cc1plus))Nathan Sidwell7-5/+121
cp: PR c++/17431 * call.c (standard_conversion): Add FLAGS parameter. Do not allow derived to base conversion when checking constructor accessibility. (implicit_conversion): Pass FLAGS to standard_conversion. (check_constructir_callable): Disallow conversion functions. testsuite: PR c++/17431 * g++.dg/overload/arg1.C: New. * g++.dg/overload/arg2.C: New. * g++.dg/overload/arg3.C: New. * g++.dg/overload/arg4.C: New. From-SVN: r91559
2004-12-01re PR target/12817 ([SYSV] Altivec code generation error with many registers ↵Alan Modra2-2/+9
used) PR target/12817 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave. From-SVN: r91553
2004-12-01standards.texi: Update for C99 TC2.Joseph Myers4-29/+10
* doc/standards.texi: Update for C99 TC2. testsuite: * gcc.dg/c99-flex-array-4.c: Remove. From-SVN: r91552
2004-11-30sbitmap.c (sbitmap_any_common_bits): New function.Jeff Law5-22/+33
* sbitmap.c (sbitmap_any_common_bits): New function. * sbitmap.h (sbitmap_any_common_bits): Prototype. * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits No longer allocate/free "psp", "pss" sbitmaps. * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for the "res" sbitmap. (group_aliases): Similarly. From-SVN: r91550
2004-12-01Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r91547.2
2004-11-30tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid uninitialized ↵Nathan Sidwell2-12/+25
variable. 2004-11-30 Nathan Sidwell <nathan@codesourcery.com> * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid uninitialized variable. From-SVN: r91543
2004-11-30* lib/compat.exp (compat-get-options): Fix for use with dg-xfail-if.Janis Johnson2-0/+5
From-SVN: r91542
2004-11-30* lib/target-supports.exp (is-effective-target): Simplify.Janis Johnson2-11/+11
From-SVN: r91541
2004-11-30target-supports.exp (check_effective_target_vect_long): Fix for powerpc64-*-*.Janis Johnson2-14/+14
* lib/target-supports.exp (check_effective_target_vect_long): Fix for powerpc64-*-*. From-SVN: r91540
2004-11-30fold-const.c (fold_widened_comparison): Make sure that we're passing an ↵Eric Christopher2-3/+9
INTEGER_TYPE to int_fits_type_p. 2004-11-30 Eric Christopher <echristo@redhat.com> * fold-const.c (fold_widened_comparison): Make sure that we're passing an INTEGER_TYPE to int_fits_type_p. (fold): Clean up comment. From-SVN: r91539
2004-11-30badalloc1.C (arena_size): Bump up to 262144 to support new requirements on ↵Loren J. Rittle2-2/+7
FreeBSD 5. * g++.old-deja/g++.eh/badalloc1.C (arena_size): Bump up to 262144 to support new requirements on FreeBSD 5. From-SVN: r91536
2004-11-30re PR target/18702 (mmix-knuth-mmixware testsuite failure: ↵Devang Patel2-1/+6
gcc.dg/cpp/isysroot-1.c) PR 18702 * gcc.dg/cpp/isysroot-1.c: Make this test darwin specific. From-SVN: r91535
2004-11-30mklibgcc.in: Correct calculation of libgcc_s_soname and libunwind_soname.Zack Weinberg2-45/+62
* mklibgcc.in: Correct calculation of libgcc_s_soname and libunwind_soname. Use $out, not $outS, in commands for no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above library build rules, make $libunwind_so and $libgcc_s_so depend on them in the normal fashion, and filter those objects out of @shlib_objs@. From-SVN: r91534
2004-11-30altivec.h (vec_step_help): Support const vector types.Janis Johnson4-11/+144
* config/rs6000/altivec.h (vec_step_help): Support const vector types. * g++.dg/ext/altivec-13.C: New test. From-SVN: r91533
2004-11-30re PR tree-optimization/18298 (bad code from lim ssa pass with strcmp)Andrew Pinski4-0/+33
2004-11-30 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/18298 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias pass right after fold builtins. 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/18298 * gcc.c-torture/execute/p18298.c: New test. From-SVN: r91529
2004-11-30s390-modes.def: Added cc modes documentation.Andreas Krebbel4-23/+161
2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/s390-modes.def: Added cc modes documentation. * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode, s390_expand_addcc): Added cc mode comments. * config/s390/s390.md: Removed old cc mode documentation. From-SVN: r91528