Commit Graph

64144 Commits

Author SHA1 Message Date
Richard Sandiford
5fef1dbd6e configure.in: Clear gcc_version_trigger if the file doesn't exist.
* configure.in: Clear gcc_version_trigger if the file doesn't exist.
	* configure: Regenerate.

From-SVN: r91639
2004-12-02 14:11:51 +00:00
Andrew Pinski
30513cf6f9 varasm.c (decode_reg_name): Revert change to check for zero length strings.
2004-12-02  Andrew Pinski  <pinskia@physics.uc.edu>

        * varasm.c (decode_reg_name): Revert change to check for zero
        length strings.
        (make_decl_rtl): Make sure that we call decode_reg_name only
        when needed.

From-SVN: r91638
2004-12-02 06:05:50 -08:00
Dorit Naishlos
bfe5acd6af re PR tree-optimization/18716 ([ICE] verify_flow_info failed (loop))
PR tree-opt/18716
        * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
        then and else labels.

From-SVN: r91637
2004-12-02 14:00:30 +00:00
Nathan Sidwell
55dcbc1297 re PR c++/18758 (ICE redeclaring struct as template)
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-02 13:35:15 +00:00
Paolo Carlini
9b8d9ac39f testsuite_io.h (class sync_buf): New, templatized version of sync_streambuf; 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-02 13:24:46 +00:00
Andreas Schwab
1afffb0073 Makefile.in (WERROR_FLAGS): Renamed from WERROR.
* 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-02 12:12:09 +00:00
Kriang Lerdsuwanakij
28e42b7eac PR c++/15664, c++/18276
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-02 12:00:43 +00:00
Kriang Lerdsuwanakij
a5e515185a re PR c++/18123 (ICE on templated enum)
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-02 11:34:56 +00:00
Nick Clifton
1a06672a3b xstormy16: New test directory.
* 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-02 11:10:38 +00:00
Richard Sandiford
4cf93d7c05 Fix last entry (remove config/ from pathname).
From-SVN: r91626
2004-12-02 11:10:30 +00:00
Richard Sandiford
afabd8e62c Introduce and use config/gcc-version.m4.
From-SVN: r91625
2004-12-02 11:05:13 +00:00
Alan Modra
5191f2ba91 re PR target/16952 (GCC for powerpc cross target with -mrelocatable reports error)
PR target/16952
	* gcc.dg/ppc-eabi.c: New.

From-SVN: r91619
2004-12-02 17:00:42 +10:30
Alan Modra
f4f4921e08 rs6000.c (rs6000_assemble_integer): Put back the #ifdef RELOCATABLE_NEEDS_FIXUP.
* config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
	#ifdef RELOCATABLE_NEEDS_FIXUP.

From-SVN: r91617
2004-12-02 16:44:16 +10:30
Roger Sayle
6a46f71d27 re PR target/9908 ([x86] wrong code generated for virtual method call with -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-02 05:31:06 +00:00
Jeff Law
b6bbede951 Fix typo.
From-SVN: r91615
2004-12-01 22:26:50 -07:00
Richard Henderson
0becc98698 expr.c (expand_assignment): Handle CONCAT both as a final destination and as a middle point.
* expr.c (expand_assignment): Handle CONCAT both as a final
        destination and as a middle point.

From-SVN: r91614
2004-12-01 21:24:11 -08:00
Jeff Law
ca3a791a16 tree.h (save_eptr, save_filt): Now file scoped statics.
* 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-01 21:56:42 -07:00
Bud Davis
78579b601d re PR libfortran/18284 (BACKSPACE broken)
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-02 04:29:00 +00:00
Steven G. Kargl
f177a08700 flush.c: New file.
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-02 04:20:09 +00:00
Bud Davis
8dc4d66aa7 inquire.c (inquire_via_unit): do not allow a direct access file to be opened 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-02 04:13:21 +00:00
Steven G. Kargl
df65f0938c flush.c: New file.
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 04:10:26 +00:00
Kazu Hirata
8930ce20d0 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
From-SVN: r91608
2004-12-02 02:49:29 +00:00
Alan Modra
84dcde01bd re PR target/16952 (GCC for powerpc cross target with -mrelocatable reports 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-02 12:51:28 +10:30
Steven G. Kargl
1270d6334a intrinsic.c: Fix and add comments, fix function declarations
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-02 01:34:26 +00:00
Aaron W. LaFramboise
f49b3d3628 Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
2004-12-01  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>

	* Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.

From-SVN: r91602
2004-12-02 00:42:12 +00:00
Zack Weinberg
5b3f9cab6a t-aix43, t-aix52 (SHLIB_LINK): Change temporary file tag from a prefix to an 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-02 00:19:25 +00:00
GCC Administrator
2cf034d2a8 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91599.2
2004-12-02 00:16:19 +00:00
GCC Administrator
2bfb59df88 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91598.2
2004-12-02 00:16:15 +00:00
Janis Johnson
810838e767 gcc-dg.exp (dg-process-target): Wrapper for dg function to handle 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-02 00:05:15 +00:00
Joseph Myers
ee67636177 be.po, [...]: Update.
* 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-02 00:04:32 +00:00
Andreas Schwab
87a725812e * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
From-SVN: r91590
2004-12-01 23:59:55 +00:00
Andrew Pinski
a912a223f3 re PR tree-optimization/18763 (Gcc failed to bootstrap with --disable-checking)
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-01 15:53:17 -08:00
Mark Mitchell
9098b4e6dd Makefile.in (WERROR): New variable.
* 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-01 22:18:35 +00:00
Eric Christopher
78716e864e Makefile.in (clean-target-libgcc): Add stmp-dirs to list of things to remove.
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-01 22:18:25 +00:00
Tom Tromey
7edc2bad71 no-threads.h (_Jv_ThreadDestroyData): Removed argument name.
* 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-01 21:44:09 +00:00
Richard Henderson
9f25f0adaf expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR offsetting.
* expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
        offsetting.

From-SVN: r91577
2004-12-01 12:33:50 -08:00
Matt Austern
8245c1946e Compile speed improvement.
* name-lookup.c (namespace_binding): Omit alias check for global namespace.

From-SVN: r91575
2004-12-01 19:44:48 +00:00
Diego Novillo
986583fd5d re PR tree-optimization/18291 (ICE in merge_alias_info)
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-01 13:54:04 -05:00
Bryce McKinlay
28a6dfca3d re PR libgcj/18699 (SIGSEGV in GC_local_gcj_malloc)
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-01 18:34:54 +00:00
Richard Henderson
b923517634 Test for PR 15289.
From-SVN: r91572
2004-12-01 10:15:58 -08:00
Richard Henderson
1466e38701 re PR rtl-optimization/15289 (reload error with non-lowpart subregs)
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-01 10:13:31 -08:00
Richard Henderson
8c1cfd5aa4 expr.c (optimize_bitfield_assignment_op): Split out from ...
* 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-01 09:57:29 -08:00
Richard Henderson
d7cf6dd66a expmed.c (store_bit_field): Use simplify_gen_subreg instead of gen_rtx_SUBREG directly.
* expmed.c (store_bit_field): Use simplify_gen_subreg instead
        of gen_rtx_SUBREG directly.

From-SVN: r91569
2004-12-01 09:49:20 -08:00
David Edelsohn
e56d740960 re PR rtl-optimization/17107 (Opportunity to improve code generated for 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-01 12:18:38 -05:00
Nathan Sidwell
e06c0febd9 re PR middle-end/18667 (ice with --parm integer-share-limit=0)
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-01 16:46:25 +00:00
Nathan Sidwell
07c65e005e re PR c++/18729 (ICE on invalid typedef)
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-01 16:37:32 +00:00
Paolo Carlini
f8e7ffa673 1.cc: New.
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-01 15:46:58 +00:00
Nathan Sidwell
386489e361 re PR c++/17431 (Internal error: Segmentation fault (program cc1plus))
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-01 10:16:50 +00:00
Alan Modra
eab97e449b re PR target/12817 ([SYSV] Altivec code generation error with many registers used)
PR target/12817
	* config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.

From-SVN: r91553
2004-12-01 16:17:51 +10:30
Joseph Myers
683e261713 standards.texi: Update for C99 TC2.
* doc/standards.texi: Update for C99 TC2.

testsuite:
	* gcc.dg/c99-flex-array-4.c: Remove.

From-SVN: r91552
2004-12-01 02:01:43 +00:00