Commit Graph

63069 Commits

Author SHA1 Message Date
Paolo Bonzini
ec6c739264 Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS too.
2006-06-15  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS
	too.
	* Makefile.in: Regenerate.

gcc:
2006-06-15  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac (CFLAGS): Get them from the toplevel or from the
	configure invocation.
	* configure: Regenerate.
	* Makefile.in (CFLAGS): Substitute value provided by configure.

From-SVN: r114673
2006-06-15 06:26:59 +00:00
Mark Mitchell
e6bd55657a re PR c++/26559 (ICE with __builtin_constant_p in template argument)
PR c++/26559
	* pt.c (tsubst_expr): Use finish_omp_atomic.
	(value_dependent_expression_p): All CALL_EXPRs are dependent.
	* semantics.c (finish_omp_atomic): Rework to use standard
	paradigms for handling non-dependent expressions.

From-SVN: r114671
2006-06-15 05:49:19 +00:00
Mark Mitchell
4c4e648c76 re PR c++/27665 (ICE writing class instead of typename)
PR c++/27665
	* parser.c (cp_parser_unqualified_id): Use constructor_name_p to
	identify destructors.
	(cp_parser_nested_name_specifier_opt): Remove invalid
	optimization.
	(cp_parser_template_id): Refine heuristic for determining whether
	we are entering a scope.
	PR c++/27665
	* g++.dg/template/crash52.C: New test.

From-SVN: r114669
2006-06-15 03:51:51 +00:00
Mark Mitchell
0c926bff30 Fix ChangeLog
From-SVN: r114668
2006-06-15 03:42:01 +00:00
Mark Mitchell
84019f237c re PR c++/27648 (ICE on attribute on pointers in static_cast)
PR c++/26748
	* parser.c (cp_parser_declarator): Robustify.
	PR c++/26748
	* g++.dg/ext/attrib22.C: New test.

From-SVN: r114667
2006-06-15 03:40:42 +00:00
Mark Mitchell
070809e38c Fix ChangeLog
From-SVN: r114666
2006-06-15 03:39:10 +00:00
Mark Mitchell
fe89d79748 re PR c++/26559 (ICE with __builtin_constant_p in template argument)
2006-06-14  Mark Mitchell  <mark@codesourcery.com>

	PR c++/26559
	* c-common.h (c_finish_omp_atomic): Adjust declaration.
	* c-omp.c (c_finish_omp_atomic): Return the expression to perform,
	rather than calling add_stmt on it.
	* c-parser.c (c_parser_omp_atomic): Adjust accordingly.

2006-06-14  Mark Mitchell  <mark@codesourcery.com>

	PR c++/26559
	* pt.c (tsubst_expr): Use finish_omp_atomic.
	(value_dependent_expression_p): All CALL_EXPRs are dependent.
	* semantics.c (finish_omp_atomic): Rework to use standard
	paradigms for handling non-dependent expressions.

2006-06-14  Mark Mitchell  <mark@codesourcery.com>

	PR c++/26559
	* g++.dg/template/builtin1.C: New test.
	* g++.dg/gomp/tpl-atomic-2.C: Remove XFAIL.

From-SVN: r114665
2006-06-15 03:26:38 +00:00
GCC Administrator
801522dead Daily bump.
From-SVN: r114663
2006-06-15 00:17:22 +00:00
Gabriel Dos Reis
decebe5154 * typeck.c (build_modify_expr): Tidy diagnostic message.
From-SVN: r114658
2006-06-14 22:14:18 +00:00
Mark Mitchell
cf24598a2e re PR c++/28018 (g++.dg/ext/complit1.C fails: in emit_move_insn, at expr.c:3275)
PR c++/28018
	* typeck.c (build_modify_expr): Disallow array assignment.
	PR c++/28018
	* g++.old-deja/g++.benjamin/14664-2.C: Expect error for array
	assignment.
	* g++.old-deja/g++.pt/crash51.C: Likewise.

From-SVN: r114653
2006-06-14 19:18:45 +00:00
Gabriel Dos Reis
438d94ed9a * cp-tree.def: Fix typo.
From-SVN: r114649
2006-06-14 19:07:12 +00:00
Mark Mitchell
ace4831de9 re PR c++/27227 (rejects valid code with some extern "C")
PR c++/27227
	* decl.c (decls_match): Allow an extern "C" variable declarations
	from different namespaces to match.
	(duplicate_decls): Disallow redeclaring a variable with a
	different linkage specification.
	PR c++/27227
	* g++.dg/lookup/linkage1.C: New test.
	* g++.dg/lookup/linkage2.C: Likewise.

From-SVN: r114647
2006-06-14 17:44:36 +00:00
Andreas Krebbel
184f4c5647 re PR middle-end/27959 (s390x miscompilation due to clobbering literal pool base reg)
2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>

	PR middle-end/27959
	* reload1.c (reload): Remove registers returned by update_eliminables
	from used_spill_regs.

2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>

	PR middle-end/27959
	* gcc.dg/pr27959.c: New testcase.

From-SVN: r114640
2006-06-14 14:19:54 +00:00
Ian Lance Taylor
d02f34e7df Correct typo: initialize_constant_valid_p =>
initializer_constant_valid_p.

From-SVN: r114635
2006-06-14 04:54:41 +00:00
DJ Delorie
e3d437c056 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
From-SVN: r114632
2006-06-13 23:16:43 -04:00
GCC Administrator
6520c10a5a Daily bump.
From-SVN: r114628
2006-06-14 00:17:22 +00: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 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
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
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
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
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
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
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