Commit Graph

70494 Commits

Author SHA1 Message Date
Alan Modra
2d9c5743d6 re PR target/23404 (gij trashes args of functions with more than 8 fp args)
PR target/23404
	* src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
	homed fp args.
	(ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.

From-SVN: r103462
2005-08-25 10:24:54 +09:30
GCC Administrator
91432782c4 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103458.2
2005-08-25 00:16:16 +00:00
Lawrence Lim
a35f1a13b9 re PR libstdc++/23550 (char_traits requirements/1.cc test bad math)
2005-08-24  Lawrence Lim  <llim@redhat.com>
            Jakub Jelinek  <jakub@redhat.com>
	    Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/23550
	* testsuite/21_strings/char_traits/requirements/char/1.cc
	(test01): Simplify counting.
	* testsuite/21_strings/char_traits/requirements/wchar_t/1.cc
	(test02): Same.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r103451
2005-08-24 20:29:27 +00:00
Pete Steinmetz
6f48c21a63 params.def (PARAM_MIN_SPEC_PROB): New.
2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>

        * params.def (PARAM_MIN_SPEC_PROB): New.
        * sched-rgn.c (MIN_PROBABILITY): Delete.
        (compute_trg_info): Convert to PARAM_VALUE.
        * doc/invoke.texi (param): Document min-spec-prob.

From-SVN: r103450
2005-08-24 16:28:07 -04:00
Thomas Koenig
fe58e07668 re PR fortran/17758 (gfortran_abort and some others should be marked as noreturn)
2005-08-24  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/17758
	* gfortran.h (symbol_attribute):  Add noreturn to the structure.
	(gfc_intrinsic_sym):  Add noreturn to the structure.
	* intrinsic.c (make_noreturn):  New function.
	(add_subroutines):  Mark subroutines abort and exit as noreturn.
	(gfc_intrinsic_sub_interface):  Copy noreturn attribute from
	isym to the resolved symbol.
	* trans-decl.c (gfc_get_extern_function_decl): Set function
	as VOLATILE (== noreturn) if the noreturn attribute is set.

2005-08-24  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/17758
	gfortran.dg/nonreturning_statements.f90: New test.

From-SVN: r103449
2005-08-24 20:04:20 +00:00
Fariborz Jahanian
1a1e6a9d4a Define __PIC__ for darwin targets.
OKed by Mike Stump.

From-SVN: r103447
2005-08-24 18:22:12 +00:00
Paolo Bonzini
130869aa42 rs6000.md: Fix thinko in the peephole2 I added yesterday.
2005-08-24  Paolo Bonzini  <bonzini@gnu.org>

	* config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
	yesterday.

From-SVN: r103443
2005-08-24 15:46:36 +00:00
Paolo Carlini
bb7d32a918 re PR libstdc++/23465 (Assignment fails on TR1 unordered containers)
2005-08-24  Paolo Carlini  <pcarlini@suse.de>
	    Chris Jefferson  <chris@bubblescope.net>

	PR libstdc++/23465
	* include/tr1/hashtable (hash_code_base::m_swap): Use
	std::swap.
	(hashtable<>::hashtable(const hashtable&)): Use copy_code;
	fix m_allocate_node call.
	* testsuite/tr1/6_containers/unordered/hashtable/23465.cc: New.

Co-Authored-By: Chris Jefferson <chris@bubblescope.net>

From-SVN: r103441
2005-08-24 15:00:19 +00:00
Nathan Sidwell
863a331486 re PR c++/22454 (ICE with operator in default argument in template class)
cp:
	PR c++/22454
	* parser.c (cp_lexer_peek_nth_token): Relax assert.
testsuite:
	PR c++/22454
	* g++.dg/parse/crash29.C: New.

From-SVN: r103438
2005-08-24 10:21:46 +00:00
Zdenek Dvorak
b9a6624012 bb-reorder.c (copy_bb, [...]): Add argument to duplicate_block.
* bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
	to duplicate_block.
	* cfghooks.c (duplicate_block): Added position where to place
	new block as argument.
	* cfghooks.h (duplicate_block): Declaration changed.
	* cfglayout.c (copy_bbs): Add argument after.  Pass it to
	duplicate_block.
	* cfglayout.h (copy_bbs): Declaration changed.
	* cfgloop.h (loop_version): Declaration changed.
	* cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
	position to copy_bbs.
	(loop_version): Pass position to duplicate_loop_to_header_edge.
	Add place_after argument and position new blocks according to
	it.
	* modulo-sched.c (sms_schedule): Pass place_after argument
	to loop_version.
	* tracer.c (tail_duplicate): Pass argument to duplicate_block.
	* tree-cfg.c (split_edge_bb_loc): New function.
	(tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
	to determine position of new blocks.
	* tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
	to loop_version.
	* tree-ssa-threadupdate.c (create_block_for_threading): Pass
	argument to duplicate_block.
	* tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
	Pass position to copy_bbs.

From-SVN: r103437
2005-08-24 07:56:56 +00:00
Zdenek Dvorak
87de2376fd fold-const.c (ptr_difference_const): Use cst_and_fits_in_hwi instead of host_integerp.
* fold-const.c (ptr_difference_const): Use
	cst_and_fits_in_hwi instead of host_integerp.

From-SVN: r103436
2005-08-24 07:53:42 +00:00
Paolo Bonzini
14a07c9282 darwin.c (gen_pic_offset): New.
2005-08-24  Paolo Bonzini  <bonzini@gnu.org>

	* config/darwin.c (gen_pic_offset): New.
	(machopic_indirect_data_reference,  machopic_legitimize_pic_address):
	Use it.

From-SVN: r103434
2005-08-24 07:48:45 +00:00
Zdenek Dvorak
d49195a31b re PR tree-optimization/23486 (ICE in execute_todo, at passes.c:677)
PR tree-optimization/23486
	* tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.

From-SVN: r103433
2005-08-24 07:46:24 +00:00
Phil Edwards
2eab15c974 config.gcc (*-*-vxworks*): Update tm_file, add extra_options, remove use_collect2.
2005-08-22  Phil Edwards  <phil@codesourcery.com>

	* config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
	remove use_collect2.
	(powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.

	* target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
	configuration files to override the default value.

	* config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
	EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
	* config/vx-common.h:  New file, split out from...
	* config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
	* config/vxworksae.h:  New file, for VxWorks AE.
	* config/vxworks.opt:  New file.
	* config/vxlib.c:  Update for VxWorks 6.

	* config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
	other MULTILIB_* variables appropriately.
	(LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
	* config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
	* config/rs6000/vxworks.h:  Update for VxWorks 6.
	* config/rs6000/vxworksae.h:  New file, mostly placeholder for now.

From-SVN: r103432
2005-08-24 07:13:10 +00:00
Andreas Tobler
7307936052 configure.ac (extra_ldflags_libjava): Enable -single_module only for darwin < 8.
2005-08-24  Andreas Tobler  <a.tobler@schweiz.ch>

	* configure.ac (extra_ldflags_libjava): Enable -single_module only for
	darwin < 8.
	* configure: Regenerate.

From-SVN: r103430
2005-08-24 07:54:22 +02:00
Andrew Pinski
2501b16706 re PR target/20799 (bad relocs for new/delete overrides)
2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/20799
        * config/darwin.c (machopic_select_section): Remove the hack to
        mark "::operator new" and "::operator delete" for coalescing
        even though they are not weak.

From-SVN: r103426
2005-08-23 18:50:54 -07:00
Alan Modra
d82bf74753 configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
* configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
	* configure: Regenerate.

From-SVN: r103425
2005-08-24 11:08:05 +09:30
GCC Administrator
d984318c95 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103419.2
2005-08-24 00:16:15 +00:00
Kelley Cook
b71ed55244 re PR libstdc++/23462 (27_io/basic_filebuf/sgetn/char/[12]-i[no].cc execution tests fail)
2005-08-23  Kelley Cook  <kcook@gcc.gnu.org>

	PR libstdc++/23462
	* testsuite/data/sgetn.txt: Revert to previous FSF address.

From-SVN: r103415
2005-08-23 23:05:38 +00:00
Roman Kennke
daa6fb4110 2005-08-23 Roman Kennke <roman@kennke.org>
* java/lang/Character.java
	(toChars(int)): New JDK1.5 method.
	(toChars(int, char[], int)): New JDK1.5 method.
	(charCount): New JDK1.5 method.
	(isSupplementaryCodePoint): New JDK1.5 method.
	(isValidCodePoint): New JDK1.5 method.

From-SVN: r103413
2005-08-23 22:19:17 +00:00
DJ Delorie
7d04db3f0f stdarg-2.c (main): Make sure long constants have the L suffix.
* gcc.c-torture/execute/stdarg-2.c (main): Make sure long
constants have the L suffix.

From-SVN: r103412
2005-08-23 16:58:13 -04:00
Paolo Bonzini
4d3c798d3f re PR middle-end/23517 (can't cast between generic vector types and target supported vector types)
2005-08-23  Paolo Bonzini  <bonzini@gnu.org>

	PR middle-end/23517
	* fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
	between vectors.
	* convert.c (convert_to_integer, convert_to_vector): Likewise.
	* tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
	Likewise.

From-SVN: r103406
2005-08-23 17:48:37 +00:00
Paolo Bonzini
28d0e143fe predicates.md (equality_operator): New.
2005-08-23  Paolo Bonzini  <bonzini@gnu.org>

	* config/rs6000/predicates.md (equality_operator): New.
	* config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
	comparison with a large constant.

From-SVN: r103405
2005-08-23 17:39:59 +00:00
Tom Tromey
e293cbd536 aclocal.m4, [...]: Rebuilt.
* aclocal.m4, Makefile.in: Rebuilt.
	* Makefile.am (property_files): Added META-INF files.
	(propertyo_files): Changed definition.
	($(propertyo_files)): Updated patterns.

From-SVN: r103403
2005-08-23 16:54:31 +00:00
Mark Mitchell
6194fd98b2 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
From-SVN: r103402
2005-08-23 15:04:07 +00:00
Tom Tromey
0a9649e8a1 configure: Rebuilt.
* configure: Rebuilt.
	* configure.ac: Fixed typo.

From-SVN: r103399
2005-08-23 13:53:12 +00:00
J"orn Rennecke
a11c004bd7 sh.c (sh_builtin_saveregs): If the number of to-be-saved fp registers is even...
* sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
        registers is even, and we have a hardware double precision fp,
        align the buffer.
        (sh_gimplify_va_arg_expr): For floating point arguments, consider
        size of current argument when checking if argument was passed in
        registers.

        * sh.c (sh_attr_renesas_p): Handle error_mark_node.

From-SVN: r103398
2005-08-23 14:07:16 +01:00
Nathan Sidwell
aec5ba601b re PR c++/23044 (ICE on valid code)
cp:
	PR c++/23044
	* pt.c (tsubst_qualified_id): A SCOPE_REF can still remain.
testsuite:
	PR c++/23044
	* g++.dg/template/instantiate8.C: New.

From-SVN: r103395
2005-08-23 12:35:42 +00:00
J"orn Rennecke
39d67d5bd4 re PR middle-end/23467 (alignment of member doesn't always carry over to alignment of struct.)
gcc:
        PR middle-end/23467
        * stor-layout.c (finalize_type_size): Dont override
        existing alignment with a smaller alignment from the mode.
testsuite:
        PR middle-end/23467
        * gcc.c-torture/execute/pr23467.c: New test.

From-SVN: r103394
2005-08-23 13:27:53 +01:00
Thomas Kho
9191d64118 re PR libstdc++/23358 (_Destroy doesn't optimize for scalar types)
2005-08-23  Thomas Kho  <tkho@ucla.edu>

	PR libstdc++/23358
	* include/bits/stl_construct.h (_Destroy(_ForwardIterator,
	_ForwardIterator, allocator<_Tp>)): Removed unused template parameter.

From-SVN: r103393
2005-08-23 10:40:14 +00:00
Sebastian Pop
37b8a73b50 lambda-code.c (lambda_vector_lexico_pos): Moved...
* lambda-code.c (lambda_vector_lexico_pos): Moved...
	* lambda.h (lambda_vector_lexico_pos): ... here.
	* tree-data-ref.c (build_classic_dist_vector): Return false when
	the distance vector is lexicographically negative.

From-SVN: r103392
2005-08-23 08:24:20 +00:00
Sebastian Pop
ce8f9416be re PR tree-optimization/23511 (Segfault in fold_binary)
PR tree-optimization/23511
	* tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
	handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.

From-SVN: r103391
2005-08-23 08:15:13 +00:00
Jakub Jelinek
73ed17ff80 re PR middle-end/22043 (Fields not initialized for automatic structs with flexible array members)
PR tree-optimization/22043
	* tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
	* expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
	If ALLOW_FLEXARR, handle types ending with flexible array member.
	Pass false as second argument to recursive count_type_elements calls.
	(categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
	argument to count_type_elements call.
	* tree-sra.c (decide_block_copy): Likewise.
	* gimplify.c (gimplify_init_constructor): If num_type_elements < 0
	for a constant-sized object, set cleared as well.  Pass true as
	second argument to count_type_elements call.

	* gcc.c-torture/execute/20050613-1.c: New test.

From-SVN: r103389
2005-08-23 09:28:26 +02:00
Alan Modra
18b10a7276 missed in last commit
From-SVN: r103383
2005-08-23 12:21:53 +09:30
Alan Modra
0c380712e7 re PR target/21571 (ICE in rs6000.c with -msdata=default.)
PR target/21571
	* config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
	from legitimate_small_data_p, and make global.  Update use.
	Remove forward declaration.
	* config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
	Declare.
	* config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.

From-SVN: r103382
2005-08-23 12:09:56 +09:30
David Edelsohn
d0515b3965 rs6000.md (eq<mode>): Use output operand instead of scratch intermediates.
* config/rs6000/rs6000.md (eq<mode>): Use output operand instead
        of scratch intermediates.
        (eq<mode>_compare): Same.
        (neg_eq0<mode>): New.
        (neg_eq<mode>): Convert to define_insn_and_split.

From-SVN: r103379
2005-08-22 22:08:36 -04:00
Tom Tromey
6bd2fcdadc re PR libgcj/23498 (libgcj/classpath add two undesired info files: hacking.info, vmintegration.info)
PR libgcj/23498:
	* doc/Makefile.am (info_TEXINFOS): Commented out.
	* doc/Makefile.in: Rebuilt.

From-SVN: r103378
2005-08-23 01:46:49 +00:00
Geoffrey Keating
96d06af84b 1.cc: XFAIL on darwin8.
* testsuite/23_containers/vector/resize/1.cc: XFAIL on darwin8.
	* testsuite/27_io/ios_base/storage/2.cc: Likewise.

From-SVN: r103377
2005-08-23 01:16:45 +00:00
Ben Elliston
5464337b7f * gcc_update: Update dependencies for libjava/aclocal.m4.
From-SVN: r103376
2005-08-23 10:55:08 +10:00
Alan Modra
c1fa753e42 re PR target/23070 ([3.4 only] CALL_V4_CLEAR_FP_ARGS flag not properly set)
PR target/23070
	* config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
	stdarg functions, set/clear the fp marker even when no variable
	args are passed.
	* config/rs6000/sysv4.opt (mprototype): Describe.

From-SVN: r103375
2005-08-23 10:03:18 +09:30
GCC Administrator
a0940ff608 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103370.2
2005-08-23 00:16:18 +00:00
James E Wilson
75389255ac Fix FreeBSD fopen instrumentation.
* mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
__FreeBSD__ is defined.

From-SVN: r103368
2005-08-22 17:12:18 -07:00
Ben Elliston
7768a94a9a * gcc.c-torture/execute/ieee/ieee.exp: Load gcc-dg.exp library.
From-SVN: r103365
2005-08-23 09:59:14 +10:00
Jim Wilson
94b0413aaf Correct PR number in last patch checked in.
PR tree-optimization/23426
* decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
array size check.

From-SVN: r103364
2005-08-22 16:56:29 -07:00
James E Wilson
96ce2ac9e8 Partial fix for too large arrays.
PR tree-optimization/21105
* decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
array size check.

From-SVN: r103363
2005-08-22 16:52:22 -07:00
Tom Tromey
10cbe699ce re PR libgcj/22622 (gnu/classpath/Configuration.java being grep'ed for before created)
PR libgcj/22622:
	* configure: Rebuilt.
	* configure.ac: Correctly create Configuration.java (for
	temporary use).

From-SVN: r103362
2005-08-22 22:39:11 +00:00
Kelley Cook
029e5fc0c5 Makefile.am (ACLOCAL_AMFLAGS): Also include "..".
2005-08-22  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.am (ACLOCAL_AMFLAGS): Also include "..".
	* acinclude.m4: Delete.  Extract CHECK_FOR_BROKEN_MINGW_LD to ...
	* mingwld.m4: ... this new file.
	* aclocal.m4, Makefile.in, gcj/Makefile.in: Regenerate.
	* include/Makefile.in, testsuite/Makfile.in: Regenerate.

From-SVN: r103361
2005-08-22 22:36:35 +00:00
Kelley Cook
9c8f164b94 Makefile.am (ACLOCAL_AMFLAGS): New.
2005-08-22  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.am (ACLOCAL_AMFLAGS): New.
	* Makefile.in: Regenerate.

From-SVN: r103358
2005-08-22 21:51:59 +00:00
Tom Tromey
03192b9875 re PR libgcj/23498 (libgcj/classpath add two undesired info files: hacking.info, vmintegration.info)
PR libgcj/23498:
	* doc/Makefile.am (info_TEXINFOS): Commented out.
	* doc/Makefile.in: Rebuilt.

From-SVN: r103353
2005-08-22 20:01:53 +00:00
Jakub Jelinek
27004606de re PR rtl-optimization/23478 (Miscompilation due to reloading of a var that is also used in EH pad)
PR rtl-optimization/23478
	* regs.h (reg_info): Add throw_calls_crossed.
	(REG_N_THROWING_CALLS_CROSSED): Define.
	* flow.c (allocate_reg_life_data): Initialize
	REG_N_THROWING_CALLS_CROSSED.
	(propagate_one_insn, attempt_auto_inc): Update
	REG_N_THROWING_CALLS_CROSSED.
	* global.c (global_alloc): Don't allocate pseudos across
	calls that may throw.

	* g++.dg/opt/pr23478.C: New test.

From-SVN: r103348
2005-08-22 18:58:50 +02:00