66042 Commits

Author SHA1 Message Date
Joseph Myers
27bf414caa c-parser.c: New file.
* c-parser.c: New file.
	* c-parse.in: Remove.
	* Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
	Remove.
	(c-parser.o): Add dependencies.
	(C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
	maintainer-clean, TAGS): Update.
	* c-config-lang.in (gtfiles): Update.
	* gengtype-lex.l: Don't handle "@@".
	* stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
	objc_build_synchronized, objc_begin_try_stmt,
	objc_begin_catch_clause, objc_finish_catch_clause,
	objc_build_finally_clause, objc_finish_try_stmt): New.
	* c-tree.h (struct c_declspecs): Add declspecs_seen_p and
	type_seen_p.
	(c_parse_init): Update comment.
	* c-decl.c (c_init_decl_processing): Update comment.
	(build_null_declspecs, declspecs_add_qual, declspecs_add_type,
	declspecs_add_scspec, declspecs_add_attrs): Initialize and update
	new c_declspecs members.

objc:
	* Make-lang.in (objc/objc-parse.o-warn, objc/objc-parse.o,
	objc/objc-parse.c, objc/objc-parse.y): Remove
	(OBJC_OBJS, objc.srcextra, objc.tags, objc.mostlyclean,
	objc.distclean, objc.maintainer-clean): Update for new parser.
	* config-lang.in (gtfiles): Update for new parser.

testsuite:
	* gcc.dg/cpp/separate-1.c, gcc.dg/noncompile/971104-1.c,
	gcc.dg/noncompile/990416-1.c: Adjust expected messages for new
	parser.

From-SVN: r95558
2005-02-25 23:20:48 +00:00
Mark Mitchell
29231b752c * crontab: Adjust for 4.0 branch.
From-SVN: r95554
2005-02-25 22:55:06 +00:00
Julian Brown
d865277225 elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from being used for symbols with vague linkage when...
* gcc/config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
	from being used for symbols with vague linkage when
	HAVE_GAS_COMDAT_GROUP is true.

From-SVN: r95553
2005-02-25 22:32:56 +00:00
Mark Mitchell
04270aa457 * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
From-SVN: r95551
2005-02-25 22:14:01 +00:00
Steve Ellcey
4e9db8b235 re PR target/19930 (gcc.dg/pr19402-2.c fails on ia64-hpux)
PR target/19930
	* doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
	(LIBGCC2_HAS_DF_MODE): New.
	(LIBGCC2_HAS_XF_MODE): New.
	(LIBGCC2_HAS_TF_MODE): New.
	* libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
	(LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
	* libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
	(LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
	(LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
	* config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
	and add _fixtfdi, _fixunstfdi, _floatditf
	* lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
	L_fixunstfdi, L_floatditf.
	* config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
	(LIBGCC2_HAS_TF_MODE): Define.

From-SVN: r95548
2005-02-25 21:34:49 +00:00
Diego Novillo
736c86ad83 re PR tree-optimization/20204 (miscompilation of asm-declared registers)
PR tree-optimization/20204
	* tree-into-ssa.c (insert_phi_nodes_for): Do not use
	REWRITE_THIS_STMT markers on PHI nodes.
	(rewrite_initialize_block): Likewise.


testsuite/ChangeLog

	PR tree-optimization/20204
	* testsuite/gcc.dg/pr20204.c: New test.

From-SVN: r95547
2005-02-25 16:12:34 -05:00
Mark Mitchell
3bf4da728f * version.c (version_string): Update to 4.1.
From-SVN: r95545
2005-02-25 20:42:30 +00:00
Paolo Carlini
a1e7304632 extend.texi (5.24 Declaring Attributes of Functions): Clarify that the alternative way doesn't work in GNU C++.
2005-02-25  Paolo Carlini  <pcarlini@suse.de>

	* doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
	Clarify that the alternative way doesn't work in GNU C++.

From-SVN: r95542
2005-02-25 18:29:28 +00:00
Paolo Carlini
9e38f7028f type_traits: Add the trivial is_union and is_class; add the __is_union_or_class extension.
2005-02-25  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits: Add the trivial is_union and is_class;
	add the __is_union_or_class extension.
	(is_enum, is_empty): Use the latter.
	* include/tr1/type_traits_fwd.h: Add __is_union_or_class.
	* testsuite/testsuite_tr1.h: Add UnionType; trivial formatting
	fixes.
	* testsuite/tr1/4_metaprogramming/composite_type_traits/
	is_union_or_class/is_union_or_class.cc: New.
	* testsuite/tr1/4_metaprogramming/composite_type_traits/
	is_union_or_class/typedefs.cc: Likewise.

From-SVN: r95541
2005-02-25 18:17:06 +00:00
Zdenek Dvorak
9e22cddd6f tree-ssa-dom.c (simple_iv_increment_p): New function.
* tree-ssa-dom.c (simple_iv_increment_p): New function.
	(simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
	Do not propagate value of iv before increment over the increment.

From-SVN: r95540
2005-02-25 17:09:12 +00:00
Zdenek Dvorak
9e7376e595 re PR tree-optimization/19937 (Wrong loop exit (causes binutils to fail))
PR tree-optimization/19937
	* tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
	to the type of the induction variable.

From-SVN: r95535
2005-02-25 12:07:11 +00:00
Kaz Kojima
bd182be84e re PR rtl-optimization/20117 (duplicated labels in PIC)
PR rtl-optimization/20117
	* bb-reorder.c (duplicate_computed_gotos): Don't duplicate
	the block including noncopyable insn.

From-SVN: r95533
2005-02-25 07:13:25 +00:00
Kazu Hirata
2b5936fd61 cse.c (delete_trivially_dead_insns): Speed up by minimizing calls to find_reg_note.
* cse.c (delete_trivially_dead_insns): Speed up by minimizing
	calls to find_reg_note.

From-SVN: r95532
2005-02-25 03:45:37 +00:00
Richard Henderson
964a98317c re PR tree-optimization/20127 (wrong code for volatile struct members)
PR tree-opt/20127
        * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
        the type.

From-SVN: r95530
2005-02-24 17:56:14 -08:00
Fariborz Jahanian
78796ad54b config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for vector...
config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
vector types if to use base reg for misaligned non-word ld/std.
OKed by David Edelsohn.

From-SVN: r95529
2005-02-25 01:16:17 +00:00
GCC Administrator
3b47d0f472 Daily bump.
From-SVN: r95524
2005-02-25 00:16:23 +00:00
Hans-Peter Nilsson
b2142ad842 re PR target/14619 (Incorrect Dwarf 2 information in function prologue)
PR target/14619
	* config/cris/cris.c (cris_target_asm_function_prologue): Create
	dwarf2 label manually and put it after, not before the prologue.

From-SVN: r95521
2005-02-24 22:17:42 +00:00
David Edelsohn
589b3fda57 rs6000.md (trunctfdf2): Remove register constraints.
* config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
        Fix formatting.

From-SVN: r95520
2005-02-24 17:09:35 -05:00
David Edelsohn
b436d71257 reload.c (operands_match_p): Only increment register number for SCALAR_INT_MODE_P modes in multiple hard...
* reload.c (operands_match_p): Only increment register number for
        SCALAR_INT_MODE_P modes in multiple hard registers.

From-SVN: r95519
2005-02-24 17:06:06 -05:00
Volker Reichelt
2054fc29c2 * decl.c, resolve.c, trans-array.c, trans.h: Fix comment typo(s).
From-SVN: r95518
2005-02-24 21:59:24 +00:00
Volker Reichelt
78dcd41a31 call.c, [...]: Fix comment typo(s).
* call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c,
        parser.c: Fix comment typo(s).

From-SVN: r95517
2005-02-24 21:55:15 +00:00
Volker Reichelt
3f1176568b ChangeLog.5: Fix log message typo(s).
* ChangeLog.5: Fix log message typo(s).
	* ChangeLog.7: Likewise.
	* ChangeLog.tree-ssa: Likewise.
	* cfgexpand.c: Fix comment typo(s).
	* conflict.c: Likewise.
	* defaults.h: Likewise.
	* dwarf2out.c: Likewise.
	* gcse.c: Likewise.
	* ggc-page.c: Likewise.
	* tree-eh.c: Likewise.
	* tree-ssa-dom.c: Likewise.

From-SVN: r95516
2005-02-24 21:47:26 +00:00
Jakub Jelinek
df8a7c49f1 re PR target/19019 (GCC ldouble format incompatibility with XLC long double)
PR target/19019
	* mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
	* config/rs6000/darwin-ldouble.c: Only use the .symver directives
	if SHARED is defined.

From-SVN: r95515
2005-02-24 22:33:04 +01:00
Benjamin Kosnik
4b2420b0d3 hash.cc: Guard wchar_t use with _GLIBCXX_USE_WCHAR_T.
2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Guard
	wchar_t use with _GLIBCXX_USE_WCHAR_T.

From-SVN: r95514
2005-02-24 21:32:53 +00:00
Jakub Jelinek
04fa46cf67 re PR target/20196 (Miscompilation of mem_init in 32-bit ppc linux kernel)
PR target/20196
	* config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
	allow splitting only if operands 0 and 3 don't overlap.

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

From-SVN: r95513
2005-02-24 22:23:14 +01:00
Jakub Jelinek
6ecfe13b3e re PR c++/20175 (Warnings are issued when initializing struct members with "strings")
PR c++/20175
	* decl.c (reshape_init): Don't warn about missing braces if STRING_CST
	initializes a char/wchar_t array.

	* g++.dg/warn/Wbraces2.C: New test.

From-SVN: r95512
2005-02-24 22:21:28 +01:00
Richard Henderson
a0d2281e2d re PR middle-end/19953 (Special-case real + complex arithmetic operation (-ffast-math))
PR middle-end/19953
        * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
        (fold_builtin_1): Call them.
        * fold-const.c (fold_complex_mult_parts): Split out from ...
        (fold_complex_mult): ... here.  Fix typo in both imaginary case.
        (fold_complex_div_parts, fold_complex_div): New.
        (fold): Use them.
        * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.

From-SVN: r95511
2005-02-24 12:00:09 -08:00
Richard Kenner
ae95537a89 tree-ssa-ccp.c (visit_assignment): Verify that result of VIEW_CONVERT_EXPR is_gimple_min_invariant.
* tree-ssa-ccp.c (visit_assignment): Verify that result of
	VIEW_CONVERT_EXPR is_gimple_min_invariant.

From-SVN: r95510
2005-02-24 13:58:04 -05:00
Benjamin Kosnik
ab9b9d2cf3 std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to _GLIBCXX_USE_C99_COMPLEX.
2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to
	_GLIBCXX_USE_C99_COMPLEX.
	* acinclude.m4: Same.
	* acconfig.h: Same.
	* configure: Regenerate.
	* config.h.in: Same.

From-SVN: r95508
2005-02-24 18:55:51 +00:00
Richard Kenner
4961152d43 print-tree.c (print_node_brief): Print LABEL_DECL_UID.
* print-tree.c (print_node_brief): Print LABEL_DECL_UID.
	(print_node): Likewise.
	Print TYPE_SIZES_GIMPLIFIED.

From-SVN: r95507
2005-02-24 13:53:40 -05:00
Tobias Schlüter
cb9e4f55b0 Unrevert previously reversed patch, adding this patch:
* module.c (find_true_name): Deal with NULL module.

From-SVN: r95506
2005-02-24 19:26:27 +01:00
Hans-Peter Nilsson
ef6201a68e * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
	operands as commutative in constraints.

From-SVN: r95505
2005-02-24 16:59:25 +00:00
James A. Morrison
f836d6e475 re PR treelang/19896 ([treelang] Static variables don't work)
2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

        PR other/19896
        * execute/execute.exp: New file.
        * execute/funccall.tree, execute/funccall-2.tree, execute/initial.tree,
        execute/main.tree, execute/static.tree: New tests.

From-SVN: r95504
2005-02-24 16:24:25 +00:00
James A. Morrison
fb26d54d7e re PR treelang/19896 ([treelang] Static variables don't work)
2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

        PR other/19896
        * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
        TREE_PUBLIC, and TREE_STATIC for var_decl to zero.  Don't call
        rest_of_decl_compilation on static variables.
        (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
        variables.

From-SVN: r95503
2005-02-24 16:23:14 +00:00
James A. Morrison
77469ec5a1 re PR treelang/19897 ([treelang] External references don't work.)
2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

        PR other/19897
        * compile/exit.tree, compile/extref.tree, compile/function-1.tree,
        compile/syntax-1.tree: New tests.

From-SVN: r95502
2005-02-24 16:14:19 +00:00
James A. Morrison
a10d44d956 parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

	* parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE.
	Move function parameters check from ...
	(function): ...Here.  Update call to tree_code_create_function_initial.
	(function_invocation): Use expressions_with_commas_opt instead of
	expressions_with_commas.
	(expressions_with_commas_opt): New rule.
	* treetree.c (tree_code_create_function_prototype): Create PARM_DECLs
	for function parameters.
	(tree_code_create_function_initial): Remove PARMS parameter.
	Don't create PARM_DECLs for function parameters.
	* treetree.h (tree_code_create_function_initial): Remove PARMS
	parameter.

From-SVN: r95501
2005-02-24 16:12:39 +00:00
James A. Morrison
ca2cc05c7b MAINTAINERS (Language Front Ends Maintainers): Add myself as treelang maintainer.
2005-02-24  James A. Morrison  <phython@gcc.gnu.org>

        * MAINTAINERS (Language Front Ends Maintainers): Add myself as
        treelang maintainer.
        (Write After Approval): Remove myself.

From-SVN: r95500
2005-02-24 15:59:25 +00:00
Diego Novillo
7256233c7a * tree-into-ssa.c: Re-organize internal functions.
From-SVN: r95499
2005-02-24 09:18:46 -05:00
Tobias Schlüter
f5e9e99c8d Revert yesterday's patch:
2005-02-23  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>

                * gfortran.h (gfc_component, gfc_actual_arglist, ...
                ... argument.  Copy string instead of pointing to it.

From-SVN: r95496
2005-02-24 14:01:44 +01:00
Richard Henderson
c746366949 re PR middle-end/18902 (Naive (default) complex division algorithm)
PR middle-end/18902
        * c-opts.c (c_common_post_options): Set flag_complex_method to 2
        for c99.
        * common.opt (fcx-limited-range): New.
        * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
        * toplev.c (flag_complex_method): Initialize to 1.
        (process_options): Set flag_complex_method to 0 if
        flag_cx_limited_range.
        * doc/invoke.texi (-fcx-limited-range): New.

From-SVN: r95493
2005-02-24 01:24:17 -08:00
Paolo Carlini
d962e37d43 functional (mem_fn): Avoid _T, badname on Darwin.
2005-02-24  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/functional (mem_fn): Avoid _T, badname on
	Darwin.

From-SVN: r95492
2005-02-24 09:01:52 +00:00
David Gilbert
7abd8a7e1f TextAttribute.java: changed names to lower case;
2005-02-24  David Gilbert  <david.gilbert@object-refinery.com>

	* java/awt/font/TextAttribute.java: changed names to lower case;
	(readResolve): implemented.
	Added doc comments all over.

From-SVN: r95491
2005-02-24 07:15:55 +00:00
Mark Mitchell
1ceb02beed re PR c++/19878 (ICE in import_export_decl)
PR c++/19878
	* decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
	with internal linkage.

	PR c++/19878
	* g++.dg/init/const2.C: New test.

From-SVN: r95490
2005-02-24 02:42:17 +00:00
Kazu Hirata
03ce14dbc0 cse.c (delete_trivially_dead_insns): Speed up by using NEXT_INSN and PREV_INSN directly instead of next_real_insn...
* cse.c (delete_trivially_dead_insns): Speed up by using
	NEXT_INSN and PREV_INSN directly instead of next_real_insn and
	prev_real_insn.

From-SVN: r95488
2005-02-24 01:55:11 +00:00
Andrea Tarani
b86ba8a3ef m68k.c (m68k_save_reg): Also save A5 for non-leaf functions when -mid-shared-library is being used.
* config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
	functions when -mid-shared-library is being used.

From-SVN: r95487
2005-02-24 02:51:30 +01:00
Douglas Gregor
0179f2c632 TR1 mem_fn and function support
From-SVN: r95486
2005-02-24 01:16:08 +00:00
GCC Administrator
8005da9977 Daily bump.
From-SVN: r95481
2005-02-24 00:16:34 +00:00
Daniel Jacobowitz
57642751f5 tm.texi (LINK_LIBGCC_SPECIAL): Remove.
* doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
	(LINK_LIBGCC_SPECIAL_1): Don't mention it.
	* gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
	* system.h: Poison LINK_LIBGCC_SPECIAL.

From-SVN: r95476
2005-02-23 23:11:08 +00:00
James E Wilson
27f0dff4a2 Fix problem found by CFLAGS=-fmudflap build.
* Makefile.in (full-stamp, test-stamp, $(AF)): Add $(CFLAGS) to link.

From-SVN: r95475
2005-02-23 14:30:01 -08:00
Hans-Peter Nilsson
c5625c0c5d re PR tree-optimization/20100 (LIM is pulling out a pure function even though there is something which can modify global memory)
PR tree-optimization/20100
	* gcc.c-torture/execute/pr20100-1.c: New test.

From-SVN: r95474
2005-02-23 22:20:48 +00:00