Commit Graph

75389 Commits

Author SHA1 Message Date
DJ Delorie 12973d7afb config-ml.in: Alter CCASFLAGS to include special multilib options the same as is done for CFLAGS.
* config-ml.in: Alter CCASFLAGS to include special
multilib options the same as is done for CFLAGS.

From-SVN: r114622
2006-06-13 16:48:23 -04:00
Carlos O'Donell 9288b84507 Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL, html__strip_dir, html__mkdir_p.
gcc/

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

	* Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
	html__strip_dir, html__mkdir_p. Enhance install-html target.
	* configure.ac: AC_SUBST datarootdir, docdir and htmldir. 
	* configure: Regenerate.

From-SVN: r114620
2006-06-13 19:13:47 +00:00
Fariborz Jahanian 6b4e957600 Check for Objective-C++ in deciding certain COND_EXPR folding.
Check for Objective-C++ in deciding certain COND_EXPR
folding.
OKed by Geoff Keating.

From-SVN: r114619
2006-06-13 19:02:49 +00:00
J"orn Rennecke 31b6f0aee8 re PR target/28014 (space-optimized divide used inconsistently)
PR target/28014:

        gcc:
        * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
        * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
        * config/sh/lib1funcs.h (SL, SL1): Define.
        * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
        * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
        * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
        (OBJS_Os_4_200): New variable.
        ($(T)libgcc-Os-4-200.a): Use it.
        * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
        when dividing 1 and/or by 0.

        gcc/testsuite:
        * g++.dg/eh/div.C: New test.

From-SVN: r114616
2006-06-13 18:44:56 +01:00
Roger Sayle de4fb767a9 configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h> before <ucontext.h> to define sigset_t required by...
* configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
	before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
	* configure: Regenerate.

From-SVN: r114614
2006-06-13 16:36:40 +00:00
Andrew Haley 572f9e47d3 re PR java/1305 ([JSR133] GCJ ignores volatile modifier)
2006-06-09  Andrew Haley  <aph@redhat.com>

        PR java/1305
        PR java/27908
        * builtins.c (initialize_builtins): Add __sync_synchronize().
        * class.c (add_field): Mark volatile fields.
        * java-gimplify.c (java_gimplify_expr): Call new functions to
        handle self-modifying exprs and COMPONENT_REFs.
        (java_gimplify_component_ref): New.
        (java_gimplify_modify_expr): Add handling for volatiles.

From-SVN: r114609
2006-06-13 12:43:56 +00:00
Jie Zhang f0f1c408bc bfin.c (bfin_reorg_loops): Only call recog_memoized () for real instruction.
* config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
	for real instruction.

From-SVN: r114608
2006-06-13 09:39:05 +00:00
Jakub Jelinek 10827cd8b3 re PR middle-end/27793 (num_ssa_names inconsistent or immediate use iterator wrong)
PR middle-end/27793
	* cp-tree.h (cxx_int_tree_map): New struct.
	(struct language_function): Add extern_decl_map field.
	* name-lookup.c (pushdecl_maybe_friend): Add x -> t mapping
	to cp_function_chain->extern_decl_map hash table instead of
	copying over DECL_UID.
	* cp-gimplify.c (cxx_int_tree_map_eq, cxx_int_tree_map_hash): New
	functions.
	(cp_genericize_r): Remap DECL_EXTERN local decls using
	cp_function_chain->extern_decl_map hash table.
	* decl.c (finish_function): Clear extern_decl_map.

	PR c++/26757
	PR c++/27894
	* g++.dg/tree-ssa/pr26757.C: New test.
	* g++.dg/tree-ssa/pr27894.C: New test.

From-SVN: r114607
2006-06-13 11:21:30 +02:00
Maxim Kuvyrkov cd8d4e24e0 re PR middle-end/26807 (FAIL: gcc.dg/torture/pr24626-1.c -O2 (test for excess errors))
2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	PR middle-end/26807
	* haifa-sched.c (check_cfg): Handle special case.

From-SVN: r114606
2006-06-13 09:00:52 +00:00
Eric Botcazou 5123ad0975 re PR debug/26754 (Wrong debug info for variable accessed non-locally)
PR debug/26754
	* gimplify.c (declare_tmp_vars): Rename into declare_vars.
	Add debug_info parameter.  Chain the vars to the BLOCK instead
	of the BIND_EXPR if debug info are requested for them.
	(pop_gimplify_context): Adjust for above change.
	(gimple_add_tmp_var): Likewise.
	* tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
	Add bool parameter.
	* tree-nested.c (convert_nonlocal_reference): Adjust for above change.
	(convert_local_reference): Likewise.
	(get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
	(finalize_nesting_tree_1): Request that debug info be emitted
	for debug_var_chain.

From-SVN: r114605
2006-06-13 08:55:40 +00:00
Maxim Kuvyrkov 6f2ba390ae re PR target/27863 (ICE in check_cfg, at haifa-sched.c:4615)
2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	* haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
	for PR target/27863.

2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	* gcc.c-torture/compile/20060609-1.c: New test.
	
	PR target/27863
	* gcc.c-torture/compile/pr27863.c: New test.

From-SVN: r114604
2006-06-13 08:50:53 +00:00
Richard Earnshaw c68ecf64bf Richard Earnshaw <rearnsha@arm.com>
Alexandre Oliva <aoliva@redhat.com>

	* (ZW_GNU_GETTEXT_SISTER_DIR): Add optional
	argument for where to search for NLS config file.

Co-Authored-By: Alexandre Oliva <aoliva@redhat.com>

From-SVN: r114603
2006-06-13 08:00:45 +00:00
Richard Guenther cda5bf3902 re PR middle-end/27536 (-fsection-anchors breaks Ada)
2006-06-13  Richard Guenther  <rguenther@suse.de>

	PR middle-end/27536
	* except.c (output_ttype): Expand type with EXPAND_INITIALIZER.

From-SVN: r114601
2006-06-13 07:23:59 +00:00
Richard Guenther 8e85fd14bf re PR tree-optimization/27830 (ICE: verify_stmts failed (invalid operand to unary operator))
2006-06-13  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27830
	* tree-inline.c (copy_body_r): For copying the operand
	of an ADDR_EXPR make sure to fold &* afterwards.

	* g++.dg/tree-ssa/pr27830.C: New testcase.

From-SVN: r114600
2006-06-13 07:22:04 +00:00
John David Anglin c67ed86a4a configure.in: Don't enable libgomp on hpux10.
* configure.in: Don't enable libgomp on hpux10.
	* configure: Rebuilt.

From-SVN: r114599
2006-06-13 02:40:01 +00:00
John David Anglin ce0d1b886d re PR ada/27944 (s-taprop.adb:66:06: warning: redundant with clause in body)
PR ada/27944
	* s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.

From-SVN: r114598
2006-06-13 02:08:53 +00:00
Matthew Sachs 2094534c2b target-supports-dg.exp (check-flags): Include TOOL_OPTIONS in the list of compiler flags...
* lib/target-supports-dg.exp (check-flags): Include TOOL_OPTIONS in
the list of compiler flags; this causes those flags to be checked
for things like dg-skip-if.

From-SVN: r114597
2006-06-13 01:12:51 +00:00
GCC Administrator cd431bfe12 Daily bump.
From-SVN: r114595
2006-06-13 00:17:23 +00:00
Paolo Carlini 964c53299c re PR libstdc++/26970 (-O3 -Wformat=2 complains about floats written to ostream)
2006-06-12  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/26970
	* config/locale/gnu/c_locale.h (__convert_from_v<>): Change to
	variadic function, instead of template function.
	* config/locale/generic/c_locale.h (__convert_from_v<>): Likewise.
	* include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
	Adjust.
	(money_put<>::do_put(long double)): Likewise.
	* src/locale-misc-inst.cc: Remove.
	* src/Makefile.am: Adjust.
	* src/Makefile.in: Regenerate.

From-SVN: r114591
2006-06-12 23:24:22 +00:00
Volker Reichelt 4c65a5340d re PR c++/27601 (ICE (in fold_offsetof_1, at c-common.c:5998) on strange offsetof)
PR c++/27601
	* semantics.c (finish_offsetof): Handle pseudo-destructors.

	* g++.dg/ext/offsetof1.C: Add test for pseudo-destructors.

From-SVN: r114588
2006-06-12 22:56:07 +00:00
Mark Mitchell dfa9dde4e0 ctor6.C, [...]: New.
* g++.dg/parse/ctor6.C, g++.dg/parse/defarg11.C,
	g++.dg/template/friend42.C, g++.dg/template/spec30.C: New.

Co-Authored-By: Kazu Hirata <kazu@codesourcery.com>

From-SVN: r114585
2006-06-12 22:26:00 +00:00
Volker Reichelt ff8fe3e0ad re PR c++/27933 (ICE with invalid "using")
PR c++/27933
	* name-lookup.c (lookup_qualified_name): Always return error_mark_node
	if lookup fails.

	* g++.dg/lookup/using15.C: New test.

From-SVN: r114580
2006-06-12 21:12:52 +00:00
Volker Reichelt 8bdb09cb0b re PR c++/27951 (ICE with invalid anonymous union)
PR c++/27951
	* decl2.c (finish_anon_union): Return early if build_anon_union_vars
	fails.

	* g++.dg/other/anon4.C: New test.

From-SVN: r114577
2006-06-12 20:50:53 +00:00
Eric Botcazou 02a5eac483 gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other lvalues in the fb_none case with side-effects.
* gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
	lvalues in the fb_none case with side-effects.

From-SVN: r114576
2006-06-12 19:57:44 +00:00
Roger Sayle f0b99d6cbd re PR c++/21210 (Trouble with __complex__ types default construction)
PR c++/21210
	* typeck2.c (build_functional_cast): Use cp_convert to construct
	non-aggregate initializers instead of the user-level build_c_cast.

	* g++.dg/init/complex1.C: New test case.

From-SVN: r114573
2006-06-12 18:50:22 +00:00
Andrew Haley 586825f169 re PR java/27908 (VMSecureRandom generateSeed infinite loop? (Regression))
2006-06-12  Andrew Haley  <aph@redhat.com>

        * testsuite/libjava.lang/PR27908.out: Delete.
        * testsuite/libjava.lang/PR27908.java: Delete.

From-SVN: r114572
2006-06-12 17:07:48 +00:00
Kazu Hirata c90b053bea tree-flow.h: Remove the prototype for compute_phi_arg_on_exit.
* tree-flow.h: Remove the prototype for
	compute_phi_arg_on_exit.
	* tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
	protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
	Remove.

From-SVN: r114569
2006-06-12 13:52:51 +00:00
Andrew Haley af7acf2ed6 re PR java/27908 (VMSecureRandom generateSeed infinite loop? (Regression))
2006-06-12  Andrew Haley  <aph@redhat.com>

        * testsuite/libjava.lang/PR27908.out: New.
        * testsuite/libjava.lang/PR27908.java: New.

From-SVN: r114568
2006-06-12 13:37:54 +00:00
Mark Shinwell dda69cbfb7 builtins.c (expand_builtin_return_addr): Only use frame_pointer_rtx when count == 0 and we are expanding...
gcc/
	* builtins.c (expand_builtin_return_addr): Only use
	frame_pointer_rtx when count == 0 and we are expanding
	__builtin_return_address.

From-SVN: r114567
2006-06-12 12:56:52 +00:00
Fred Fish 0901c5a3d9 mips.c (mips_file_start): Create special section ".gcc_compiled_longXX" for o64 ABI as well as EABI.
2006-06-12  Fred Fish  <fnf@specifix.com>

	* config/mips/mips.c (mips_file_start): Create special section
	".gcc_compiled_longXX" for o64 ABI as well as EABI.

From-SVN: r114566
2006-06-12 11:03:57 +00:00
David Ayers cb253473bc re PR bootstrap/27963 (libjava fails to build if it isn't built by default)
2006-06-12  David Ayers  <d.ayers@inode.at>

	PR bootstrap/27963
	PR target/19970
	* configure.in:	Remove target-boehm-gc from noconfigdirs where 
	${libgcj} is specified.
	* configure: Regenerate.

From-SVN: r114563
2006-06-12 06:58:27 +00:00
Eric Christopher f7eb0dcd45 re PR middle-end/27948 (MS -bitfield struct layout test fails)
2006-06-11  Eric Christopher  <echristo@apple.com>

        PR middle-end/27948
        * stor-layout.c (place_field): Remove check for
        remaining_in_alignment when aligning at the end of a run.

2006-06-11  Eric Christopher  <echristo@apple.com>

	PR middle-end/27948
        * gcc.dg/bf-ms-layout.c: Run on darwin.
        * gcc.dg/bf-no-ms-layout: Ditto.
        * gcc.dg/attr-ms_struct-2.c: New.
        * gcc.dg/bf-ms-layout-2.c: Ditto.

From-SVN: r114562
2006-06-12 06:53:33 +00:00
Eric Christopher 6bb7beac5f re PR target/27542 (the ms_struct pragma is not documented)
2006-06-11  Eric Christopher  <echristo@apple.com>

        PR 27542
        * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
        pragma.

From-SVN: r114561
2006-06-12 06:44:23 +00:00
Roger Sayle 4119019bd7 re PR target/27858 (ICE in spill_failure, at reload1.c:1911while bootstrapping 4.2 on alpha)
PR target/27858
	Revert incorrect fix for PR target/27158
	2006-05-08  Roger Sayle  <roger@eyesopen.com>
	* reload.c (find_reloads_toplev): Only return the simplified SUBREG
	of a reg_equiv_constant if the result is a legitimate constant.

From-SVN: r114559
2006-06-12 02:10:24 +00:00
Roger Sayle 0972012c8a re PR target/27158 (ICE in extract_insn with -maltivec)
PR target/27158
	* config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
	extract a CONST_VECTOR element and interpret it as an integer.
	(vspltis_constant): Use const_vector_elt_as_int instead of the
	macro CONST_VECTOR_ELT in order to handle FP vector modes.
	* config/rs6000/predicates.md (easy_vector_const): Consider
	floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.

From-SVN: r114558
2006-06-12 02:02:14 +00:00
GCC Administrator 98ea97ab84 Daily bump.
From-SVN: r114556
2006-06-12 00:17:43 +00:00
Kaz Kojima cb3123765e re PR middle-end/27942 (packed union doesn't make the unaligned magic on sh64-*)
PR middle-end/27942
	* stor-layout.c (update_alignment_for_field): Don't add extra
	alignment for packed non-bitfield fields in ms_bitfield_layout_p
	code.

	* gcc.dg/attr-ms_struct-packed1.c: New.

From-SVN: r114552
2006-06-11 23:09:58 +00:00
GCC Administrator 9b317af39e Daily bump.
From-SVN: r114545
2006-06-11 00:17:25 +00:00
Thomas Fitzsimmons 348cf02888 configure.ac (ac_configure_args): Add --disable-plugin.
2006-06-10  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* configure.ac (ac_configure_args): Add --disable-plugin.
	(--enable-gtk-cairo): Remove option.
	* configure: Regenerate.

From-SVN: r114540
2006-06-10 07:09:17 +00:00
Paolo Carlini 410fce929b random (random_device::random_device(const std::string& = "/dev/urandom")): Open in binary mode.
2006-06-09  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/random (random_device::random_device(const
	std::string& = "/dev/urandom")): Open in binary mode.

	* include/tr1/random (random_device::random_device(const
	std::string& = "rand")): Use mersenne_twister.
	(random_device::_M_strtoul): New.
	(random_device::operator()()): Update.

	* include/tr1/random: Minor stylistic changes, consistently
	qualify with std::.

From-SVN: r114539
2006-06-10 03:39:38 +00:00
Ralf Corsepius 53e9592145 t-rtems: Add EL/EB multilib variants.
2006-06-09  Ralf Corsepius  <ralf.corsepius@rtems.org>

	* config/mips/t-rtems: Add EL/EB multilib variants.

From-SVN: r114537
2006-06-10 04:25:41 +02:00
GCC Administrator 68da37c6bc Daily bump.
From-SVN: r114534
2006-06-10 00:17:15 +00:00
Mike Stump 71d0c1008f c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
* c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
testsuite:
	* gcc.dg/vla-7.c: Add.

From-SVN: r114530
2006-06-10 00:14:03 +00:00
Paolo Carlini d8bc9819d9 acinclude.m4 ([GLIBCXX_CHECK_RANDOM_TR1]): New, check for the availability of "/dev/random" and "/dev/urandom".
2006-06-09  Paolo Carlini  <pcarlini@suse.de>

	* acinclude.m4 ([GLIBCXX_CHECK_RANDOM_TR1]): New, check for
	the availability of "/dev/random" and "/dev/urandom".
	* configure.ac: Use it.
	* include/tr1/random (random_device): Implement, a fall-back for
	systems not providing "/dev/random" and "/dev/urandom" included.
	* testsuite/tr1/5_numerical_facilities/random/random_device/
	cons/default.cc: New.
	* testsuite/tr1/5_numerical_facilities/random/random_device/
	cons/token.cc: Likewise.
	* testsuite/tr1/5_numerical_facilities/random/random_device/
	requirements/typedefs.cc: Likewise.
	* config.h.in: Regenerate.
	* configure: Likewise.

	* testsuite/tr1/5_numerical_facilities/random/mersenne_twister/
	cons/gen1.cc: Minor tweak, add bool test.

From-SVN: r114529
2006-06-09 23:37:28 +00:00
Paul Thomas 1a492601a1 re PR fortran/24558 (ENTRY doesn't work in module procedures)
2006-06-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24558
	PR fortran/20877
	PR fortran/25047
	* decl.c (get_proc_name): Add new argument to flag that a
	module function entry is being treated. If true, correct
	error condition, add symtree to module namespace and add
	a module procedure.
	(gfc_match_function_decl, gfc_match_entry,
	gfc_match_subroutine): Use the new argument in calls to
	get_proc_name.
	* resolve.c (resolve_entries): ENTRY symbol reference to
	to master entry namespace if a module function.
	* trans-decl.c (gfc_create_module_variable): Return if
	the symbol is an entry.
	* trans-exp.c (gfc_conv_variable): Check that parent_decl
	is not NULL.

2006-06-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24558
	* gfortran.dg/entry_6.f90: New test.

	PR fortran/20877
	PR fortran/25047
	* gfortran.dg/entry_7.f90: New test.

From-SVN: r114526
2006-06-09 22:16:08 +00:00
Richard Henderson d0d1b24d89 env.c (gomp_nthreads_var): Change to unsigned long.
* env.c (gomp_nthreads_var): Change to unsigned long.
        (gomp_run_sched_chunk): Likewise.
        (parse_unsigned_long): Rename from parse_num_threads and generalize.
        (initialize_env): Initialize gomp_thread_attr.
        * libgomp.h (gomp_nthreads_var): Update decl.
        (gomp_run_sched_chunk): Likewise.
        (gomp_thread_attr): Declare.
        * team.c (gomp_thread_attr): Export.
        (initialize_team): Don't initialize it.

From-SVN: r114525
2006-06-09 15:08:55 -07:00
Tom Tromey 45559ef181 re PR libgcj/27730 (Thread.getId() needs implemented)
PR libgcj/27730:
	* java/lang/Thread.java (threadId): New field.
	(nextThreadId): New static field.
	(Thread): Initialize new field.
	(getId): New method.

From-SVN: r114524
2006-06-09 21:37:32 +00:00
Tom Tromey 0cf32584ca * java/lang/Class.java (getClassLoaderInternal): Now native.
From-SVN: r114523
2006-06-09 21:33:32 +00:00
Thomas Fitzsimmons 1bc49a5eea 2006-06-09 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
	(getDefaultScreenDevice): Remove unnecessary GCJ local hack.
	* gnu/java/awt/peer/gtk/GtkToolkit.java (getSystemEventQueueImpl):
	Likewise.
	* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java (registerFormat):
	Likewise.

From-SVN: r114521
2006-06-09 21:22:38 +00:00
Jakub Jelinek cd75853e1d re PR fortran/27916 (Problem with allocatable arrays inside OpenMP do loop)
PR fortran/27916
	* trans-openmp.c (gfc_omp_clause_default_ctor): New function.
	* trans.h (gfc_omp_clause_default_ctor): New prototype.
	* f95-lang.c (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Define.

	* testsuite/libgomp.fortran/pr27916-1.f90: New test.
	* testsuite/libgomp.fortran/pr27916-2.f90: New test.

From-SVN: r114520
2006-06-09 23:18:42 +02:00