aboutsummaryrefslogtreecommitdiff
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-02testsuite_io.h (class sync_buf): New, templatized version of sync_streambuf; ↵Paolo Carlini6-157/+208
add typedefs for streambuf/wstreambuf. 2004-12-02 Paolo Carlini <pcarlini@suse.de> * testsuite/testsuite_io.h (class sync_buf): New, templatized version of sync_streambuf; add typedefs for streambuf/wstreambuf. (class fail_buf): Likewise, for fail_streambuf. (class fail_num_get): Templatize and add char/wchar_t typedefs. (class fail_num_put): Likewise. * testsuite/27_io/basic_istream/extractors_arithmetic/char/ exceptions_badbit_throw.cc: Use the latter. * testsuite/27_io/basic_istream/extractors_arithmetic/char/ exceptions_failbit_throw.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/char/ exceptions_badbit_throw.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/char/ exceptions_failbit_throw.cc: Likewise. From-SVN: r91635
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-02Fix last entry (remove config/ from pathname).Richard Sandiford1-1/+1
From-SVN: r91626
2004-12-02Introduce and use config/gcc-version.m4.Richard Sandiford48-296/+558
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 Davis5-0/+26
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-02flush.c: New file.Steven G. Kargl3-0/+564
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. From-SVN: r91611
2004-12-02inquire.c (inquire_via_unit): do not allow a direct access file to be opened ↵Bud Davis4-2/+27
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. Kargl15-177/+771
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-02Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.Aaron W. LaFramboise3-2/+8
2004-12-01 Aaron W. LaFramboise <aaronavay62@aaronwl.com> * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I. From-SVN: r91602
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: r91599.2
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-02be.po, [...]: Update.Joseph Myers12-4173/+104767
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po, sv.po, tr.po: Update. From-SVN: r91591
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-01Makefile.in (clean-target-libgcc): Add stmp-dirs to list of things to remove.Eric Christopher2-1100/+1106
2004-12-01 Eric Christopher <echristo@redhat.com> * Makefile.in (clean-target-libgcc): Add stmp-dirs to list of things to remove. From-SVN: r91583
2004-12-01no-threads.h (_Jv_ThreadDestroyData): Removed argument name.Tom Tromey3-4/+14
* include/no-threads.h (_Jv_ThreadDestroyData): Removed argument name. (_Jv_ThreadRegister): Likewise. (_Jv_MutexCheckMonitor): Likewise. * link.cc: Include limits.h. From-SVN: r91581
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-01re PR libgcj/18699 (SIGSEGV in GC_local_gcj_malloc)Bryce McKinlay3-0/+42
2004-12-01 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/18699 * testsuite/libjava.lang/PR18699.java, testsuite/libjava.lang/PR18699.out: New test. From-SVN: r91573
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-011.cc: New.Paolo Carlini9-0/+615
2004-12-01 Paolo Carlini <pcarlini@suse.de> * testsuite/27_io/basic_istream/get/wchar_t/1.cc: New. * testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise. * testsuite/27_io/basic_istream/get/wchar_t/3.cc: Likewise. * testsuite/27_io/basic_istream/ignore/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise. * testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise. * testsuite/27_io/basic_istream/ignore/wchar_t/6360.cc: Likewise. * testsuite/27_io/basic_istream/ignore/wchar_t/7220.cc: Likewise. From-SVN: r91565
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: r91548.2
2004-12-01Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r91547.2