Commit Graph

66064 Commits

Author SHA1 Message Date
John David Anglin
478a1f5ea3 elf.h, som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw instead of trying to save and restore TREE_SYMBOL_REFERENCED.
* pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
	instead of trying to save and restore TREE_SYMBOL_REFERENCED.
	* pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
	(ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.

From-SVN: r95605
2005-02-27 04:22:06 +00:00
Danny Smith
9811fd1712 seh_init.c (__gnat_SEH_error_handler): Mark third and fourth parameters as unused.
* seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
	parameters as unused.

From-SVN: r95604
2005-02-27 01:12:13 +00:00
GCC Administrator
a129cdff3a Daily bump.
From-SVN: r95601
2005-02-27 00:16:40 +00:00
Earl Chew
7320b491ec stl_tree.h (_Rb_tree<>::_M_insert): Don't leak memory if _M_key_compare throws.
2005-02-26  Earl Chew  <earl_chew@agilent.com>
	    Christopher Jefferson  <chris@bubblescope.net>

	* include/bits/stl_tree.h (_Rb_tree<>::_M_insert): Don't leak
	memory if _M_key_compare throws.

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

From-SVN: r95597
2005-02-26 23:34:36 +00:00
Nathanael Nerode
5395b47b3c (top level)
Merged from libada-gnattools-branch:
	2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

	* gnattools: New directory.
	* Makefile.def: Add gnattools as a module, depending on target-libada.
	* Makefile.in: Regenerate.
	* configure.in: Include gnattools in host_tools; disable it if ada
	is disabled.
	* configure: Regenerate.

(gcc)
	* configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
	* configure: Regenerate.
        * libada-mk.in: Remove CC; rename
	cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.

(gcc/ada)
	Partial merge from libada-gnattools-branch:

	2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
        * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
        into code in gnattools/Makefile.in.  Remove direct dependencies on
        stamp-tools by tools clauses.
	2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
        * config-lang.in: Add gnattools to $lang_dirs.

(libada)
2004-12-03  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.in: Add stamp file for building libada, to avoid
	duplicate builds every time all-gnattools is called.

2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.in: Build gcc/ada/Makefile (by running gcc/ada/configure)
	here.

2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure.ac: Replace AC_CANONICAL_SYSTEM with _BUILD, _HOST,
	_TARGET.
	* configure: Regenerate.

2004-07-18  Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure.ac, Makefile.in: Remove gnattools-specific code
	(see gnattools directory).
	* Makefile.in: Remove dead rts-* targets.
	* configure: Regenerate.

(gnattools)
2005-02-02  Nathanael Nerode  <neroden@gcc.gnu.org>

        * Makefile.in: Remove use of cc_set_by_configure; just use
        plain old CC from the top level in this case.

2005-01-30  Nathanael Nerode  <neroden@gcc.gnu.org>
	Merge from mainline at tag libada-gnattools-merge-20050129:
	* configure.ac: Changes propagated from gcc/ada/Makefile.in.
	* Makefile.in: Changes relocated from gcc/ada/Makefile.in.

2004-12-13  Nathanael Nerode  <neroden@gcc.gnu.org>

        * Makefile.in: Reinstate stamp-gnatlib check.

2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.in: Inline gnattools{1,1-re,2,3,4} targets from
	gcc/ada/configure.ac into gnattools-native and gnattools-cross
	targets, collecting flags as appropriate from here,
	gcc/ada/Makefile.in, gcc/ada/configure.ac, etc.  Attempt to retain
	identical behavior.
	* configure.ac: Add necessary configure bits from
	gcc/ada/configure.ac.
	* configure: Regenerate.

2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure.ac: Replace AC_CANONICAL_SYSTEM with _BUILD, _HOST,
	_TARGET.  Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
	ACX_NONCANONICAL_TARGET, and replace now-redundant AC_SUBST.
	* configure: Regenerate.

2004-07-18  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.in, configure.ac: Remove libada-specific targets and
	variables.
	* configure: Regenerate.
	* New directory, cloned from libada.

From-SVN: r95594
2005-02-26 21:43:33 +00:00
Peter O'Gorman
b239be8150 re PR libfortran/17748 (libgfortran contains undefined references to _environ)
2005-02-26  Peter O'Gorman  <peter@pogman.com>
            Toon Moene  <toon@moene.indiv.nluug.nl>

	PR libgfortran/17748
	* runtime/environ.c: Remove references to environ.
	(show_variables): remove GFORTRAN_UNBUFFERED_* and
	GFORTRAN_NAME_* because they require environ.
	(pattern_scan): Remove function.

Co-Authored-By: Toon Moene <toon@moene.indiv.nluug.nl>

From-SVN: r95593
2005-02-26 18:33:11 +00:00
Andrew Pinski
c529e0fe2e re PR tree-optimization/20188 (asm and memory operands does not add a V_MAY_DEF)
2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/20188
        * gcc.dg/tree-ssa/inline_asm-1.c: New test.
        * gcc.dg/tree-ssa/inline_asm-2.c: New test.
        * gcc.dg/asm-b.c: New test.

2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/20188
        * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
        for the lhs, also walk over the tree.  Likewise for rhs.

From-SVN: r95586
2005-02-26 08:15:25 -08:00
James A. Morrison
54ff999a48 var_defs: Add uninitialized variables.
2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * compile/var_defs: Add uninitialized variables.

From-SVN: r95585
2005-02-26 16:09:33 +00:00
James A. Morrison
b12d3a1946 parse.y (function_invocation, [...]): Pass location to tree_code_get_expression.
2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * parse.y (function_invocation, variable-ref, make_plus_expression):
        Pass location to tree_code_get_expression.
        * treetree.c (tree_code_generate_return): Set EXPR_LOCUS on retval.
        (tree_code_get_expression): Wrap variable references in NOP_EXPRs and
        set EXPR_LOCATION on ret1.
        * treetree.h (tree_code_get_expression): Take the location of the
        expression as an argument.

From-SVN: r95584
2005-02-26 16:07:49 +00:00
Richard Earnshaw
7bcf4240fd dyn_load.c: On NetBSD...
* dyn_load.c: On NetBSD, include machine/elf_machdep.h and define
	ELFSIZE in terms of ARCH_ELFSIZE (back-ported from gc7.0alpha1).

From-SVN: r95582
2005-02-26 15:40:07 +00:00
James A. Morrison
56dea94bcf extrafunc.tree, [...]: New tests.
2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * compile/extrafunc.tree, compile/extravar.tree: New tests.

From-SVN: r95581
2005-02-26 14:12:05 +00:00
James A. Morrison
347561b87c treelang.texi: Treelang does have warnings.
2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * treelang.texi: Treelang does have warnings.
        * treetree.c (tree_code_create_function_prototype): Don't set
        TREE_USED and set TREE_PUBLIC, DECL_EXTERNAL, and TREE_STATIC
        as few times as needed on the function declaration.
        (tree_code_create_function_initial): Don't set TREE_USED,
        TREE_ADDRESSABLE, but set TREE_STATIC on the function declaration.
        (tree_code_create_variable): Don't set TREE_USED on VAR_DECL.
        (tree_code_get_expression): Set TREE_USED for variable references
        and function calls.

From-SVN: r95580
2005-02-26 14:10:11 +00:00
James A. Morrison
52058e0da0 unsigned.tree: New test.
2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * compile/unsigned.tree: New test.

From-SVN: r95579
2005-02-26 14:05:15 +00:00
James A. Morrison
c93e9e16fb parse.y: Do comparisons as the type of the first expression.
2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * parse.y: Do comparisons as the type of the first expression.
        * treetree.c (tree_code_get_integer_value): Build integer constants
        with the proper type.

From-SVN: r95578
2005-02-26 14:01:03 +00:00
James A. Morrison
03e3ca0d2b Make-lang.in: Remove commented out code.
2005-02-26  James A. Morrison  <phython@gcc.gnu.org>

        * Make-lang.in: Remove commented out code.
        * lang-specs.h: Always pass -dumpbase to tree1.

From-SVN: r95577
2005-02-26 13:43:39 +00:00
Richard Sandiford
4975073994 mul-subnormal-single-1.x: New file.
* gcc.c-torture/execute/ieee/mul-subnormal-single-1.x: New file.
	Disable this test on IRIX 6.

From-SVN: r95572
2005-02-26 10:05:49 +00:00
Zdenek Dvorak
f67e783f49 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: r95571
2005-02-26 07:55:28 +00:00
James A. Morrison
e0fa00d1f4 treelang.texi: Remove extra contribution notice.
2005-02-25  James A. Morrrison  <phython@gcc.gnu.org>

        * treelang.texi: Remove extra contribution notice.
        Split up some run-on sentences.  Document function parameters
        as optional.  Indicate automatic variables can now be at any scope.
        Mention literals are only signed if they are preceded by a unary
        plus or minus.  Clarify interoperability with C.

From-SVN: r95569
2005-02-26 00:25:52 +00:00
James A. Morrison
d9771cbd4a treelang.texi: Fix whitespacing.
2005-02-25  James A. Morrison  <phython@gcc.gnu.org>

        * treelang.texi: Fix whitespacing.

From-SVN: r95568
2005-02-26 00:17:02 +00:00
GCC Administrator
ae7a02719c Daily bump.
From-SVN: r95566
2005-02-26 00:16:41 +00:00
Joseph Myers
401dcf0acd * cpplib.pot: Regenerate.
From-SVN: r95560
2005-02-25 23:32:16 +00:00
Joseph Myers
1cdaf21952 * gcc.pot: Regenerate.
From-SVN: r95559
2005-02-25 23:31:10 +00:00
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