71771 Commits

Author SHA1 Message Date
Paolo Carlini
3d8aa000c3 [multiple changes]
2005-11-02  Thomas Kho  <tkho@ucla.edu>

	PR libstdc++/23425
	* include/bits/stl_vector.h (vector<>::clear): Open code
	in terms of _Destroy.

2005-11-02  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/vector.tcc (vector<>::_M_fill_assign): Qualify fill_n.

From-SVN: r106379
2005-11-02 10:27:54 +00:00
Hans-Peter Nilsson
ced61f82af re PR testsuite/18338 (mmix-knuth-mmixware testsuite failure: gcc.dg/bitfld-4.c and g++.dg/abi/bitfield4.C)
PR target/18338
	* gcc.dg/bitfld-4.c, g++.dg/abi/bitfield4.C: Gate on
	pcc_bitfield_type_matters || default_packed.

From-SVN: r106377
2005-11-02 03:02:00 +00:00
Hans-Peter Nilsson
51b4e4093a re PR testsuite/23304 (testsuite failures: g++.dg/ext/packed3.C, packed4.C, packed8.c and g++.dg/other/crash-4.C)
PR testsuite/23304
	* lib/target-supports.exp (check_effective_default_packed): New proc.
	* g++.dg/ext/packed3.C, g++.dg/ext/packed8.C, g++.dg/other/crash-4.C:
	Gate expected errors on target ! default_packed.
	* g++.dg/ext/packed4.C: Gate on target ! default_packed.

From-SVN: r106376
2005-11-02 02:52:30 +00:00
Hans-Peter Nilsson
edc5687ec1 * lib/target-supports.exp
(check_effective_target_pcc_bitfield_type_matters): New proc.
	* gcc.dg/bitfld-3.c: Gate on target pcc_bitfield_type_matters.

From-SVN: r106375
2005-11-02 02:49:24 +00:00
Hans-Peter Nilsson
aa5c7673b8 target-supports.exp (check_effective_default_packed): New proc.
* lib/target-supports.exp (check_effective_default_packed): New proc.
	* g++.dg/ext/packed3.C, g++.dg/ext/packed8.C, g++.dg/other/crash-4.C:
	Gate expected errors on target ! default_packed.
	* g++.dg/ext/packed4.C: Gate on target ! default_packed.

From-SVN: r106374
2005-11-02 02:41:44 +00:00
Richard Henderson
745f2a84b9 re PR target/21518 (unable to find a register with -fPIC and -O2 and non inlining static function)
PR 21518
        * loop.c (scan_loop): Do not propagate computations to a hard
        register destination with SMALL_REGISTER_CLASSES.

From-SVN: r106373
2005-11-01 18:12:32 -08:00
GCC Administrator
12674da393 Daily bump.
From-SVN: r106368
2005-11-02 00:17:11 +00:00
Bryce McKinlay
39bfe5c798 gc_priv.h: Increase MAX_ROOT_SETS to 1024.
2005-11-01  Bryce McKinlay  <mckinlay@redhat.com>

        * include/private/gc_priv.h: Increase MAX_ROOT_SETS to 1024.

From-SVN: r106362
2005-11-02 00:06:30 +00:00
Tobias Schlüter
c96cfa49c2 decl.c (gfc_match_entry): Function entries don't need an argument list if there's no RESULT clause.
fortran/
	* decl.c (gfc_match_entry): Function entries don't need an argument
	list if there's no RESULT clause.
testsuite/
	* gfortran.fortran-torture/execute/entry_9.f90: Revert previous
	change (r106358).

From-SVN: r106361
2005-11-02 01:04:28 +01:00
Tobias Schlüter
0be8cb80ee re PR fortran/24008 (gfortran too permissive about ENTRY syntax)
fortran/
	PR fortran/24008
	* decl.c (gfc_match_entry): Function entries need an argument list.
testsuite/
	PR fortran/24008
	* gfortran.dg/entry_5.f90: New.
	* gfortran.fortran-torture/execute/entry_9.f90: Fix syntax error.

From-SVN: r106358
2005-11-01 22:55:02 +01:00
Erik Edelmann
6a8697062c re PR fortran/24245 (-fdump-parse-tree gives ICE for CONTAINED functions)
fortran/
2005-11-01  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR 24245
        * trans.c (gfc_generate_code): Move code to create a main
        program symbol from here ...
        * parse.c (main_program_symbol): ... to this new
        function, setting the locus from gfc_current_locus
        instead of ns->code->loc.
        (gfc_parse_file):  Call main_program_symbol for main programs.

From-SVN: r106353
2005-11-01 21:40:06 +00:00
Tobias Schlüter
92119f26f7 re PR fortran/24404 (Poor Error Description, bad error order)
PR fortran/24404
	* resolve.c (resolve_symbol): Output symbol names in more error
	messages, clarify error message.

From-SVN: r106346
2005-11-01 21:05:54 +01:00
Joseph Myers
8a82b045bf rs6000.c (rs6000_rtx_costs): Do not add extra costs for MULT inside PLUS or MINUS.
* config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
	costs for MULT inside PLUS or MINUS.

From-SVN: r106345
2005-11-01 19:57:29 +00:00
Tobias Schlüter
2e71c2a06e dump-parse-tree.c (show_symtree): Revert change unintentionally committed in r106246.
* dump-parse-tree.c (show_symtree): Revert change unintentionally
	committed in r106246.

From-SVN: r106341
2005-11-01 20:05:34 +01:00
Bob Wilson
89d86f1397 * gcc.dg/intmax_t-1.c: Disable for xtensa-*-elf*.
From-SVN: r106337
2005-11-01 18:16:46 +00:00
Bob Wilson
8533368889 xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
* config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
	(TRAMPOLINE_SIZE): Round up to 60.
	* config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.

From-SVN: r106336
2005-11-01 18:07:13 +00:00
Joseph Myers
f415efe34c * gcc_update: Include revision number in LAST_UPDATED.
From-SVN: r106327
2005-11-01 12:59:50 +00:00
Paolo Carlini
2747345455 re PR libstdc++/24595 (std::tr1::get_deleter not declared)
2005-11-01  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/24595
	* include/tr1/boost_shared_ptr.h (shared_ptr<>::get_deleter):
	Move out of shared_ptr.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/misc/24595.cc:
	New.

From-SVN: r106321
2005-11-01 11:01:40 +00:00
Paul Thomas
53096259e6 re PR fortran/21565 (namelist in block data is illegal)
2005-11-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/21565
	* symbol.c (check_conflict): An object cannot be in a namelist and in
	block data.

	PR fortran/18737
	* resolve.c (resolve_symbol): Set the error flag to
	gfc_set_default_type, in the case of an external symbol, so that
	an error message is emitted if IMPLICIT NONE is set.

	PR fortran/14994
	* gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SECNDS to enum.
	* check.c (gfc_check_secnds): New function.
	* intrinsic.c (add_functions): Add call to secnds.
	* iresolve.c (gfc_resolve_secnds): New function.
	* trans-intrinsic (gfc_conv_intrinsic_function): Add call to
	secnds via case GFC_ISYM_SECNDS.
	* intrinsic.texi: Add documentation for secnds.

2005-11-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/14994
	* libgfortran/intrinsics/date_and_time.c: Add interface to
	the functions date_and_time for the intrinsic function secnds.

2005-11-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/21565
	gfortran.dg/namelist_blockdata.f90: New test.

	PR fortran/18737
	gfortran.dg/external_implicit_none.f90: New test.

	PR fortran/14994
	* gfortran.dg/secnds.f: New test.

From-SVN: r106317
2005-11-01 05:53:29 +00:00
GCC Administrator
4b2a5715ee Daily bump.
From-SVN: r106306
2005-11-01 00:17:06 +00:00
James E Wilson
eef2514298 Restore old AT_frame_base code for targets that don't use dwarf2 unwind info.
Partial fix.
PR debug/24444
* dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
ifdef.  Put ifdefs around call in gen_subprogram_die.
(compute_frame_pointer_to_cfa_displacement): Likewise.
(gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
not defined.

From-SVN: r106299
2005-10-31 15:39:29 -08:00
James E Wilson
e5f9a909f1 Rewrite fix for PR 17356, fix for enable checking ada build failure.
cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.

From-SVN: r106297
2005-10-31 15:24:36 -08:00
Jan Hubicka
d63f0fe58a re PR middle-end/24093 (cgraph exhausts virtual memory building 197.parser with -profile-use -O3)
PR middle-end/24093
	* cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative

From-SVN: r106291
2005-10-31 21:07:29 +00:00
Jan Hubicka
d8ff1871ed re PR target/20928 (ICE: unrecognizable insns with -fPIC -O1)
PR target/20928
	* i386.c (legitimize_pic_address): Deal with large immediates.

	* gcc.c-torture/compile/pr20928.c: New test.

From-SVN: r106284
2005-10-31 18:42:23 +00:00
Jan Hubicka
2b557972cf re PR gcov-profile/20815 (-fprofile-use barfs with "coverage mismatch for function '...' while reading counter 'arcs'.")
PR profile/20815
	* coverage.c (coverage_checksum_string): Fix code to stip random seeds
	from symbol names while computing checkup.

From-SVN: r106283
2005-10-31 18:23:44 +00:00
Mark Kettenis
0432a5de96 from Mark Kettenis <kettenis@gnu.org>
* floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
New variables.

* floatformat.h (enum floatformat_byteorders): Add
floatformat_vax.
(floatformat_vax_aingle, floatformat_vax_double): Declare.

From-SVN: r106281
2005-10-31 12:52:38 -05:00
Andreas Jaeger
44bcbae366 .cvsignore are not needed for subversion, remove them.
From-SVN: r106279
2005-10-31 18:20:58 +01:00
Jan Hubicka
f372b26ff8 re PR gcov-profile/24487 (Basic block frequencies inaccurate)
PR profile/24487
	* predict.c (predict_loops): Do not estimate more than
	MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
	* predict.def (MAX_PRED_LOOP_ITERATIONS): Define.

From-SVN: r106276
2005-10-31 14:48:57 +00:00
Richard Kenner
52f661769d (setup_one_parameter): Add comment to last change.
From-SVN: r106274
2005-10-31 09:05:12 -05:00
Andrew MacLeod
a56b5394f0 re PR tree-optimization/19097 (Quadratic behavior with many sets for the same register in VRP)
2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
	
	PR tree-optimization/19097
	* tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.

From-SVN: r106272
2005-10-31 13:38:05 +00:00
J"orn Rennecke
cd7ec127de optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
2005-10-31  J"orn Rennecke <joern.rennecke@st.com>

	* optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.

From-SVN: r106271
2005-10-31 13:30:14 +00:00
Andrew Pinski
047f4b2c78 re PR middle-end/23492 (ACATS c48009e SEGV in set_bb_for_stmt tree-cfg.c:2673 on x86_64)
2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23492
        * tree-inline.c (setup_one_parameter): If the init_stmt
        is NULL, don't insert the statement.
2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23492
        * gcc.c-torture/compile/zero-strct-5.c: New test.

From-SVN: r106270
2005-10-31 05:22:20 -08:00
Jerry DeLisle
0d4b0351d2 re PR libfortran/24584 (Segfault when reading empty string in namelist file)
2005-10-31  Jerry DeLisle  <jvdelisle@verizon.net>

        PR libgfortran/24584
        * gfortran.dg/pr24584.f90: New test.

From-SVN: r106266
2005-10-31 01:05:09 +00:00
Jerry DeLisle
2a81ce9bf2 re PR libfortran/24584 (Segfault when reading empty string in namelist file)
2005-10-31  Jerry DeLisle  <jvdelisle@verizon.net>

        PR libgfortran/24584
        * io/list_read.c (free_saved): Set saved_used to zero.

From-SVN: r106265
2005-10-31 01:00:20 +00:00
GCC Administrator
826d2862fc Daily bump.
From-SVN: r106262
2005-10-31 00:17:17 +00:00
Andreas Schwab
def6f17006 Make-lang.in (GFORTRAN_TARGET_INSTALL_NAME): Define.
* Make-lang.in (GFORTRAN_TARGET_INSTALL_NAME): Define.
	(GFORTRAN_CROSS_NAME): Remove.
	(fortran.install-common): Correctly install a cross compiler.
	(fortran.uninstall): Use GFORTRAN_TARGET_INSTALL_NAME instead of
	GFORTRAN_CROSS_NAME.

From-SVN: r106256
2005-10-30 23:18:07 +00:00
Erik Edelmann
1367913544 gfortran.texi: Update contributors.
fortran/
2005-10-30  Erik Edelmann  <eedelman@gcc.gnu.org>

        * gfortran.texi: Update contributors.

From-SVN: r106255
2005-10-30 22:48:26 +00:00
Erik Edelmann
d48734ef20 re PR fortran/18883 (ICE in gfc_finish_var_decl)
fortran/
2005-10-30  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/18883
        * trans-decl.c (gfc_finish_var_decl): Add decl to the
        current function, rather than the parent.  Make
        assertion accept fake result variables.
        * trans-expr.c (gfc_conv_variable): If the character
        length of an ENTRY isn't set, get the length from
        the master function instead.

testsuite
2005-10-30  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/18883
        * gfortran.dg/char_result_9.f90: New.
        * gfortran.dg/char_result_10.f90: New.

From-SVN: r106254
2005-10-30 22:43:45 +00:00
Paolo Carlini
097588e4e4 re PR libstdc++/20213 (cassert header documentation wrong)
2005-10-30  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/20213
	* include/c_std/std_csignal.h: Adjust comment as per 17.4.1.2/4.
	* include/c_std/std_cstdlib.h: Likewise.
	* include/c_std/std_cstdio.h: Likewise.
	* include/c_std/std_cstdarg.h: Likewise.
	* include/c_std/std_cctype.h: Likewise.
	* include/c_std/std_cerrno.h: Likewise.
	* include/c_std/std_cmath.h: Likewise.
	* include/c_std/std_ciso646.h: Likewise.
	* include/c_std/std_ctime.h: Likewise.
	* include/c_std/std_clocale.h: Likewise.
	* include/c_std/std_climits.h: Likewise.
	* include/c_std/std_cassert.h: Likewise.
	* include/c_std/std_csetjmp.h: Likewise.
	* include/c_std/std_cwchar.h: Likewise.
	* include/c_std/std_cfloat.h: Likewise.
	* include/c_std/std_cstring.h: Likewise.
	* include/c_std/std_cstddef.h: Likewise.
	* include/c_std/std_cwctype.h: Likewise.

From-SVN: r106253
2005-10-30 22:21:50 +00:00
Thomas Koenig
ed146156e0 gfortran.texi: Remove reservations about I/O usability.
2005-10-30  Thomas Koenig  <Thomas.Koenig@online.de>

	* gfortran.texi:  Remove reservations about I/O usability.  Document
	that array intrinsics mostly work.

From-SVN: r106252
2005-10-30 21:38:25 +00:00
Tobias Schlüter
dda0f76478 Remove .cvsignore
From-SVN: r106250
2005-10-30 22:15:36 +01:00
Tobias Schlüter
a63dad5b08 gfortran.texi: Move license stuff to back.
* gfortran.texi: Move license stuff to back.  Add information
on ENUM and ENUMERATOR.
* invoke.texi: Document -fshort-enums.

From-SVN: r106249
2005-10-30 21:54:43 +01:00
Steven Bosscher
133f4c87b1 gcc_build: Use gcc.gnu.org as the default server.
* gcc_build: Use gcc.gnu.org as the default server.  Set up
	SVN_REPOSITORY correctly.  Add support for checking out branches.

From-SVN: r106248
2005-10-30 19:45:01 +00:00
Jan Hubicka
5e13fdf752 re PR tree-optimization/24172 (error: incorrect sharing of tree nodes)
PR tree-optimization/24172
	* tree-inline.c (copy_body_r): Unshare the substituted value first.
	* g++.dg/tree-ssa/pr24172.C: New testcase.

From-SVN: r106247
2005-10-30 18:14:15 +00:00
Tobias Schlüter
25d8f0a283 arith.c (gfc_enum_initializer): New function.
fortran/
2005-10-30  Gaurav Gautam  <gauravga@noida.hcltech.com>
	    Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>

	* arith.c (gfc_enum_initializer): New function.
	(gfc_check_integer_range): Made extern.
	* decl.c (enumerator_history): New typedef.
	(last_initializer, enum_history, max_enum): New variables.
	(create_enum_history, gfc_free_enum_history): New functions.
	(add_init_expr_to_sym): Call create_enum_history if parsing ENUM.
	(variable_decl): Modified to parse enumerator definition.
	(match_attr_spec): Add PARAMETER attribute to ENUMERATORs.
	(gfc_match_data_decl): Issues error, if match_type_spec do not
	return desired return values.
	(set_enum_kind, gfc_match_enum, gfc_match_enumerator_def): New
	functions.
	(gfc_match_end): Deal with END ENUM.
	* gfortran.h (gfc_statement): ST_ENUM, ST_ENUMERATOR, ST_END_ENUM
	added.
	(symbol_attribute): Bit field for enumerator added.
	(gfc_options): Add fshort_enums.
	(gfc_enum_initializer, gfc_check_integer_range): Add prototypes.
	* options.c: Include target.h
	(gfc_init_options): Initialize fshort_enums.
	(gfc_handle_option): Deal with fshort_enums.
	* parse.c (decode_statement): Match ENUM and ENUMERATOR statement.
	(gfc_ascii_statement): Deal with the enumerator statements.
	(parse_enum): New function to parse enum construct.
	(parse_spec): Added case ST_ENUM.
	* parse.h (gfc_compile_state): COMP_ENUM added.
	(gfc_match_enum, gfc_match_enumerator_def, gfc_free_enum_history):
	Prototype added.
	* symbol.c (gfc_copy_attr): Copy enumeration attribute.
	* lang.opt (fshort-enums): Option added.

testsuite/
2005-10-30  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>

	* gfortran.dg/enum_10.f90, gfortran.dg/enum_10.c: New test.

2005-10-30  Gaurav Gautam  <gauravga@noida.hcltech.com>

	* gfortran.dg/enum_1.f90, gfortran.dg/enum_2.f90,
	gfortran.dg/enum_3.f90, gfortran.dg/enum_4.f90,
	gfortran.dg/enum_5.f90, gfortran.dg/enum_6.f90,
	gfortran.dg/enum_7.f90, gfortran.dg/enum_8.f90,
	gfortran.dg/enum_9.f90,
	gfortran.fortran-torture/compile/enum_1.f90,
	gfortran.fortran-torture/execute/enum_1.f90,
	gfortran.fortran-torture/execute/enum_2.f90,
	gfortran.fortran-torture/execute/enum_3.f90,
	gfortran.fortran-torture/execute/enum_4.f90: New tests.

From-SVN: r106246
2005-10-30 19:09:55 +01:00
Hans-Peter Nilsson
e8299ec258 mmix.c (mmix_intval): Correct handling of DFmode constants for hosts with long != 32 bits.
* config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
	constants for hosts with long != 32 bits.

From-SVN: r106027
2005-10-30 17:06:40 +00:00
Hans-Peter Nilsson
6536905d5a re PR target/18482 (mmix-knuth-mmixware testsuite failure: tmpdir-gcc.dg-struct-layout-1)
PR target/18482
	* gcc.dg/compat/struct-layout-1_generate.c (switchfiles, main):
	For mmix-*-*, pass with dg-options an additional -mno-base-addresses.

From-SVN: r106026
2005-10-30 16:46:41 +00:00
Francois-Xavier Coudert
159840cb8a re PR libfortran/20179 (cannot mix C and Fortran I/O)
PR libfortran/20179
	* io/unix.c (flush_if_preconnected): New function.
	* io/io.h: Add prototype for flush_if_preconnected.
	* io/transfer.c (data_transfer_init): Use flush_if_preconnected
	to workaround buggy mixed C-Fortran code.

	* gfortran.dg/mixed_io_1.f90: New test.
	* gfortran.dg/mixed_io_1.c: New file.

From-SVN: r106017
2005-10-30 12:48:52 +00:00
Francois-Xavier Coudert
0d519038a0 check.c (gfc_check_malloc, [...]): New functions.
* check.c (gfc_check_malloc, gfc_check_free): New functions.
	* gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_MALLOC.
	* intrinsic.c (add_functions): Add symbols for MALLOC function.
	(add_subroutines): Add symbol for FREE subroutine.
	* intrinsic.h: Prototypes for gfc_check_malloc, gfc_check_free,
	gfc_resolve_malloc and gfc_resolve_free.
	* intrinsic.texi: Add doc for FREE and MALLOC intrinsics.
	* iresolve.c (gfc_resolve_malloc, gfc_resolve_free): New
	functions.
	* trans-intrinsic.c (gfc_conv_intrinsic_function): Add case for
	GFC_ISYM_MALLOC.

	* Makefile.am: Add intrinsics/malloc.c file.
	* Makefile.in: Regenerate.
	* intrinsics/malloc.c: New file, with implementations for free
	and malloc library functions.

	* gfortran.dg/malloc_free_1.f90: New test.

From-SVN: r106016
2005-10-30 12:17:48 +00:00
Steven Bosscher
cf6ae9554d * gfortran.texi: Update contributors.
From-SVN: r106015
2005-10-30 11:15:27 +00:00