Commit Graph

74496 Commits

Author SHA1 Message Date
Jakub Jelinek
ef85ac9aad re PR debug/27057 (ICE with -feliminate-dwarf2-dups and using namespace)
PR debug/27057
	* dwarf2out.c (is_symbol_die): Return true also for namespaces.

	* g++.dg/debug/dwarf2-2.C: New test.

From-SVN: r112820
2006-04-10 15:18:19 +02:00
Jakub Jelinek
55fc9243b7 re PR libfortran/24685 (real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90))
PR libgfortran/24685
	* io/write.c (MIN_FIELD_WIDTH, STR, STR1): Define.
	(output_float): Increase buffer sizes for IEEE quad and IBM extended
	long double.
	(write_real): Output REAL(16) as 1PG43.34E4 rather than 1PG40.31E4.

From-SVN: r112819
2006-04-10 14:02:55 +02:00
Paolo Carlini
9f889fcf52 DR 538, [Ready]
2006-04-10  Paolo Carlini  <pcarlini@suse.de>

	DR 538, [Ready]
	* include/bits/stl_algo.h (__unique_copy(,,, input_iterator_tag,
	output_iterator_tag), and predicated counterpart): Revert to the
	algorithm pre-DR 241, i.e., value_type of InputIterator is now
	required to be Assignable too.
	* testsuite/25_algorithms/unique_copy/3.cc: Remove.
	* docs/html/ext/howto.html: Add an entry for DR 538.

From-SVN: r112818
2006-04-10 10:05:51 +00:00
Roger Sayle
cf26aa8910 expr.c (store_constructor): Don't bother clearing target if we're about to assign a vector to it using...
* expr.c (store_constructor): Don't bother clearing target if
	we're about to assign a vector to it using vec_init_optab.

From-SVN: r112817
2006-04-10 05:13:59 +00:00
Daniel Berlin
ef2bb311e5 tree-ssa-alias.c (lhs_may_store_to): New function.
2006-04-10 Daniel Berlin  <dberlin@dberlin.org>
	
	* tree-ssa-alias.c (lhs_may_store_to): New function.
	(recalculate_used_alone): Handle LHS of calls.

From-SVN: r112815
2006-04-10 03:36:09 +00:00
GCC Administrator
c8d47370ef Daily bump.
From-SVN: r112813
2006-04-10 00:17:03 +00:00
John David Anglin
8b89a26ac1 re PR target/27034 (gcc.dg/20021014-1.c (test for excess errors) fails)
PR target/27034
	PR target/26508
	* config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
	* pa64-hpux.h (LIB_SPEC): Correct typo.  Don't append milli.a.
	(LINK_GCC_C_SEQUENCE_SPEC): Define.  Append milli.a here.
	(PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
	(PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
	(PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
	section.  Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
	stubs.  Add ".align 8" directives before all ".dword" directives.
	(GTHREAD_USE_WEAK): Revise comment.
	(TARGET_ATTRIBUTE_WEAK): Define.
	* pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
	dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
	* stublib.c: New file.

From-SVN: r112807
2006-04-09 18:32:16 +00:00
John David Anglin
16d74a3cc2 re PR target/26743 (gcc generates unreachable branch)
PR target/26743
	PR target/11254
	PR target/10274
	* pa.md (cbranch patterns): Revise arguments used in calls to
	output_cbranch, output_bb and output_bvd.  Add long branch length
	attributes.
	(fbranch patterns): Handle long branches.
	(jump): Revise length check.  Revise arguments for output_lbranch call.
	Add long branch length attributes.
	(decrement_and_branch_until_zero): Add long branch length attributes.
	(output_movb, output_parallel_addb and output_parallel_movb patterns):
	Likewise.  Revise arguments for output_parallel_addb and
	output_parallel_movb calls.
	* pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
	output_parallel_movb and output_parallel_addb): Update prototypes.
	* pa.c (output_cbranch): Revise arguments.  Correct handling of
	nullification in long branches.
	(output_lbranch): Add new argument to control extraction of delay
	instruction.
	(output_bb): Handle long branches.
	(output_bvb, output_dbra, output_movb, output_parallel_movb,
	output_parallel_addb): Likewise.

From-SVN: r112805
2006-04-09 17:19:42 +00:00
Richard Sandiford
c3a50ca3a8 re PR rtl-optimization/27073 (invalid gcse manipulation of REG_EQUIV notes)
PR rtl-optimization/27073
	* gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
	not REG_EQUIVs.

gcc/testsuite/
	* gcc.c-torture/execute/pr27073.c: New test.

From-SVN: r112803
2006-04-09 10:06:20 +00:00
Mike Stump
fd18206b72 Fixup whitespaces
From-SVN: r112800
2006-04-09 00:18:01 +00:00
GCC Administrator
bd0a15d3b1 Daily bump.
From-SVN: r112798
2006-04-09 00:17:05 +00:00
Mike Stump
618617532e Fix whitespaces
From-SVN: r112794
2006-04-09 00:11:53 +00:00
Mike Stump
9a82e70211 Revert previous patch, mistaken.
From-SVN: r112793
2006-04-09 00:07:28 +00:00
Mike Stump
51e7cc90c6 Revert last patch
From-SVN: r112792
2006-04-08 23:36:00 +00:00
Mike Stump
ba67b7cd52 * objc.dg/method-6.m: Add -Wstrict-selector-match.
From-SVN: r112791
2006-04-08 23:26:12 +00:00
Mike Stump
d584868773 * gcc.dg/pragma-darwin.c: Improve for ppc64.
From-SVN: r112790
2006-04-08 23:07:53 +00:00
Daniel Berlin
9ccfe0cda4 tree.h (tree_memory_tag): Add old_used_alone.
2006-04-08  Daniel Berlin  <dberlin@dberlin.org>

	* tree.h (tree_memory_tag): Add old_used_alone.
	(SMT_OLD_USED_ALONE): New macro.
	* tree-ssa-alias.c (recalculate_used_alone): Stop
	marking things for renaming unnecessarily.

From-SVN: r112789
2006-04-08 21:50:04 +00:00
Mike Stump
e0f931d27f Fix whitespacing.
From-SVN: r112788
2006-04-08 21:06:26 +00:00
Mike Stump
ae582f7772 Add missing part of rth patch.
From-SVN: r112787
2006-04-08 20:38:25 +00:00
Aurelien Jarno
a3bd7058ff Makefile.in: Add Ada support for GNU/kFreeBSD.
2006-04-08  Aurelien Jarno  <aurel32@debian.org>

        * Makefile.in: Add Ada support for GNU/kFreeBSD.
        * s-osinte-kfreebsd-gnu.ads: New file.

Approved by: Arnaud Charlet  <charlet@adacore.com>

From-SVN: r112786
2006-04-08 20:11:21 +00:00
Kazu Hirata
f48c58e8f1 * expr.c, gjavah.c: Fix comment typos.
From-SVN: r112784
2006-04-08 17:07:16 +00:00
Kazu Hirata
917f1b7ea3 builtins.c, [...]: Fix comment typos.
* builtins.c, config/arm/arm.c, config/i386/cygwin.h,
	config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
	config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
	haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
	sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
	tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
	tree-vect-patterns.c, tree-vrp.c: Fix comment typos.  Follow
	spelling convensions.
	* config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
	doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
	typos.  Follow spelling conventions.

From-SVN: r112782
2006-04-08 17:01:17 +00:00
Kazu Hirata
b82feea52f gfortran.texi: Fix typos.
* gfortran.texi: Fix typos.  Follow spelling conventions.
	* resolve.c, trans-expr.c, trans-stmt.c: Fix comment typos.
	Follow spelling conventions.

From-SVN: r112780
2006-04-08 14:31:12 +00:00
Kazu Hirata
84dc00e8ac * decl2.c, pt.c, semantics.c: Fix comment typos.
From-SVN: r112779
2006-04-08 14:15:44 +00:00
Robert Millan
675f0a8ab7 * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r112776
2006-04-08 09:03:32 +00:00
GCC Administrator
211302128c Daily bump.
From-SVN: r112773
2006-04-08 00:17:06 +00:00
Jerry DeLisle
967d4d456c re PR libfortran/26890 (SIZE parameter interacts with same variable in IO list character length specification.)
2006-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26890
	* io/io.h: Revert change to pad size made on 2006-03-30.
	Add comment explaining dependency with fortran/trans-io.c.

From-SVN: r112769
2006-04-07 23:05:12 +00:00
James E Wilson
8e7a2b58e7 For PR 26483, IA-64 denorm failure due to unwanted rounding.
* testsuite/libffi.call/float4.c: New testcase.

From-SVN: r112768
2006-04-07 16:04:15 -07:00
Andreas Tobler
a05906031a configure: Rebuilt.
2006-04-08  Andreas Tobler  <a.tobler@schweiz.ch>

	* configure: Rebuilt.

From-SVN: r112766
2006-04-08 00:33:30 +02:00
DJ Delorie
9d746d5e11 m32c.c (m32c_function_arg): Structures are always passed on the stack.
* config/m32c/m32c.c (m32c_function_arg): Structures are always
passed on the stack.
(m32c_init_cumulative_args): When a function returns a structure,
always pass the pointer to that return area on the stack.
(m32c_function_arg_advance): Don't increment the parameter number
if we're processing the returned structure pointer.
(pushm_info): Reverse order of registers.

From-SVN: r112765
2006-04-07 17:50:47 -04:00
Sebastian Pop
ff5e9a942c tree-ssa-loop-niter.c (inverse, [...]): Use build_int_cst instead of build_int_cst_type.
* tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
	assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
	number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
	estimate_numbers_of_iterations_loop): Use build_int_cst instead of 
	build_int_cst_type.
	* tree-chrec.c (chrec_fold_multiply_poly_poly,
	chrec_fold_multiply): Same.
	* tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
	force_expr_to_var_cost): Same.
	* tree-mudflap.c (mf_xform_derefs_1): Same.
	* tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.

From-SVN: r112755
2006-04-07 15:44:59 +00:00
Andrew Haley
544c479db3 InetAddress.java: Throw an UnknownHostException if lookup fails.
2006-04-07  Andrew Haley  <aph@redhat.com>

        * java/net/InetAddress.java: Throw an UnknownHostException if
        lookup fails.

From-SVN: r112754
2006-04-07 15:42:07 +00:00
Jan Hubicka
44cfd8f6d4 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
From-SVN: r112753
2006-04-07 15:24:39 +00:00
David Edelsohn
f6fe3a224f rs6000.c (rs6000_rtx_costs): Do not treat CONST_DOUBLE as INTVAL.
* config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
	treat CONST_DOUBLE as INTVAL.  and64_2_operands require an extra
	insn.

From-SVN: r112752
2006-04-07 10:24:44 -04:00
Jan Hubicka
28e6f134a1 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
From-SVN: r112751
2006-04-07 11:48:42 +00:00
Richard Biener
fcfa143ae5 re PR tree-optimization/26135 (store copyprop not effective)
2006-04-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/26135
	* tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
	loads for store copy-prop.
	(copy_prop_visit_stmt): Likewise.

	* gcc.dg/tree-ssa/ssa-copyprop-1.c: New testcase.

From-SVN: r112749
2006-04-07 08:04:26 +00:00
GCC Administrator
b8cf62e42f Daily bump.
From-SVN: r112745
2006-04-07 00:17:04 +00:00
Carlos O'Donell
cf61af07d9 Makefile.in: Add install-html, install-html-am, and install-html-recursive targets.
libiberty/

2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>

	* Makefile.in: Add install-html, install-html-am, and
	install-html-recursive targets. Define mkdir_p and 
	NORMAL_INSTALL. 
	* configure.ac: AC_SUBST datarootdir, docdir, htmldir.
	* configure: Regenerate.
	* testsuite/Makefile.in: Add install-html and html targets.

From-SVN: r112741
2006-04-06 23:54:50 +00:00
Robert Millan
8224ee206c linux.h: Add a comment to mark macros that are being overriden in config/k*bsd-gnu.h.
* gcc/config/i386/linux.h:  Add a comment to mark macros that are
	being overriden in config/k*bsd-gnu.h.
	* gcc/config/kfreebsd-gnu.h:  Redefine GLIBC_DYNAMIC_LINKER instead of
	DYNAMIC_LINKER.
	* gcc/config/knetbsd-gnu.h:  Ditto.

From-SVN: r112740
2006-04-06 22:16:11 +00:00
Jan Hubicka
1f651229f0 re PR gcov-profile/20815 (-fprofile-use barfs with "coverage mismatch for function '...' while reading counter 'arcs'.")
PR profile/20815
	PR profile/26399
	* coverage.c (coverage_checksum_string): Reorganize loop to not read
	after buffer.
	* g++.dg/bprob/g++-bprob-2.C: New testcase.

From-SVN: r112738
2006-04-06 20:33:21 +00:00
Mike Stump
3425c35fca * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
for HAVE_nonlocal_goto to be consistent.
        (expand_builtin_nonlocal_goto): Likewise.
        (expand_builtin_strcmp): Use #ifdef instead of #if
        for HAVE_cmpstrnsi to be consistent.

From-SVN: r112737
2006-04-06 19:36:30 +00:00
Andreas Tobler
6e6bfd3a7b acinclude.m4 (AC_LTDL_SHLIBEXT): Add GCJ LOCAL marker to indicate GCJ specific stuff.
2006-04-06  Andreas Tobler  <a.tobler@schweiz.ch>

	* acinclude.m4 (AC_LTDL_SHLIBEXT): Add GCJ LOCAL marker to indicate
	GCJ specific stuff.

From-SVN: r112736
2006-04-06 21:22:45 +02:00
Roger Sayle
4b91b67bcb call.c (null_ptr_cst_p): Add explicit TREE_CONSTANT_OVERFLOW check.
* call.c (null_ptr_cst_p): Add explicit TREE_CONSTANT_OVERFLOW check.

	* g++.dg/conversion/nullptr1.C: New test case.
	* g++.dg/conversion/nullptr2.C: Likewise.

From-SVN: r112734
2006-04-06 16:47:40 +00:00
Roger Sayle
06a103af0e dependency.c (get_no_elements): Delete function.
* dependency.c (get_no_elements): Delete function.
	(get_deps): Delete function.
	(transform_sections): Delete function.
	(gfc_check_section_vs_section): Significant rewrite.

	* gfortran.dg/dependency_18.f90: New test case.

From-SVN: r112731
2006-04-06 02:08:27 +00:00
DJ Delorie
0f681872e0 m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c vs m32c.
* config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
vs m32c.

From-SVN: r112730
2006-04-05 21:54:29 -04:00
GCC Administrator
e8882d2f00 Daily bump.
From-SVN: r112728
2006-04-06 00:17:23 +00:00
Tom Tromey
f441078656 re PR libgcj/26625 (libgcj-4.2.0.jar not rebuilt after a source file change)
libjava/classpath:
	PR libgcj/26625:
	* lib/Makefile.in: Rebuilt.
	* lib/Makefile.am (compile-classes): Touch the output file.
libjava:
	PR libgcj/26625:
	* Makefile.in: Rebuilt.
	* Makefile.am (libgcj-$(gcc_version).jar): Depend on
	classpath/lib/compile-classes.

From-SVN: r112724
2006-04-05 22:47:51 +00:00
Jason Merrill
0b1307e51a name-lookup.c (push_namespace_with_attribs): Temporarily disable default hidden visibility for anonymous namespace.
* name-lookup.c (push_namespace_with_attribs): Temporarily disable
        default hidden visibility for anonymous namespace.

From-SVN: r112722
2006-04-05 18:32:25 -04:00
Bernd Schmidt
dcef6abaf5 lib1funcs.asm (modsi): P1/P2 can be call-clobbered even if the calling function doesn't modify them.
* config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
	even if the calling function doesn't modify them.

From-SVN: r112720
2006-04-05 22:03:30 +00:00
John David Anglin
e6c300efaa Makefile.am: Add PA_HPUX port.
2006-04-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
	    Andreas Tobler  <a.tobler@schweiz.ch>

	* Makefile.am: Add PA_HPUX port.
	* Makefile.in: Regenerate.
	* include/Makefile.in: Likewise.
	* testsuite/Makefile.in: Likewise.
	* configure.ac: Add PA_HPUX rules.
	* configure: Regenerate.
	* src/pa/ffitarget.h: Rename linux target to PA_LINUX.
	Add PA_HPUX and PA64_HPUX.
	Rename FFI_LINUX ABI to FFI_PA32 ABI.
	(FFI_TRAMPOLINE_SIZE): Define for 32-bit HP-UX targets.
	(FFI_TYPE_SMALL_STRUCT2): Define.
	(FFI_TYPE_SMALL_STRUCT4): Likewise.
	(FFI_TYPE_SMALL_STRUCT8): Likewise.
	(FFI_TYPE_SMALL_STRUCT3): Redefine.
	(FFI_TYPE_SMALL_STRUCT5): Likewise.
	(FFI_TYPE_SMALL_STRUCT6): Likewise.
	(FFI_TYPE_SMALL_STRUCT7): Likewise.
	* src/pa/ffi.c (ROUND_DOWN): Delete.
	(fldw, fstw, fldd, fstd): Use '__asm__'.
	(ffi_struct_type): Add support for FFI_TYPE_SMALL_STRUCT2,
	FFI_TYPE_SMALL_STRUCT4 and FFI_TYPE_SMALL_STRUCT8.
	(ffi_prep_args_LINUX): Rename to ffi_prep_args_pa32. Update comment.
	Simplify incrementing of stack slot variable. Change type of local
	'n' to unsigned int.
	(ffi_size_stack_LINUX): Rename to ffi_size_stack_pa32. Handle long
	double on PA_HPUX.
	(ffi_prep_cif_machdep): Likewise.
	(ffi_call): Likewise.
	(ffi_closure_inner_LINUX): Rename to ffi_closure_inner_pa32. Change
	return type to ffi_status. Simplify incrementing of stack slot
	variable. Only copy floating point argument registers when PA_LINUX
	is true. Reformat debug statement.
	Add support for FFI_TYPE_SMALL_STRUCT2, FFI_TYPE_SMALL_STRUCT4 and
	FFI_TYPE_SMALL_STRUCT8.
	(ffi_closure_LINUX): Rename to ffi_closure_pa32. Add 'extern' to
	declaration.
	(ffi_prep_closure): Make linux trampoline conditional on PA_LINUX.
	Add nops to cache flush.  Add trampoline for PA_HPUX.
	* src/pa/hpux32.S: New file.
	* src/pa/linux.S (ffi_call_LINUX): Rename to ffi_call_pa32. Rename
	ffi_prep_args_LINUX to ffi_prep_args_pa32.
	Localize labels. Add support for 2, 4 and 8-byte small structs. Handle
	unaligned destinations in 3, 5, 6 and 7-byte small structs. Order
	argument type checks so that common argument types appear first.
	(ffi_closure_LINUX): Rename to ffi_closure_pa32. Rename
	ffi_closure_inner_LINUX to ffi_closure_inner_pa32.

Co-Authored-By: Andreas Tobler <a.tobler@schweiz.ch>

From-SVN: r112719
2006-04-05 23:26:34 +02:00