Commit Graph

41408 Commits

Author SHA1 Message Date
Paolo Carlini
bded68b108 ios_manip_basefield.cc (test01): Fix for 64 bit machines.
2002-02-27  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/27_io/ios_manip_basefield.cc (test01):
	Fix for 64 bit machines.

From-SVN: r50111
2002-02-27 19:54:32 +00:00
Zack Weinberg
f458d1d5d7 c-common.c, [...]: Delete code implementing -traditional mode.
* c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
	c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
	cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
	builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
	gcc.c, toplev.c: Delete code implementing -traditional mode.

	* ada/misc.c, ch/ch-tree.h, ch/decl.c, cp/decl2.c, f/com.c,
	f/lex.c, f/top.c, java/builtins.c, java/decl.c: Delete
	traditional-mode-related code copied from the C front end
	but not used, or used only to permit the compiler to link.

	* doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
	doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
	Document removal of -traditional mode for compilation, and
	remove documentation only relevant to that mode.

	* config/nextstep.h, config/ptx4.h, config/svr4.h,
	config/convex/convex.h, config/d30v/d30v.h,
	config/i386/dgux.h, config/i386/osf1elf.h,
	config/i386/osfelf.h, config/i386/osfrose.h,
	config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
	config/m68k/hp310.h, config/m88k/dgux.h,
	config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
	config/m88k/m88k.h, config/m88k/openbsd.h,
	config/mips/abi64.h, config/mips/osfrose.h,
	config/mips/svr4-5.h, config/mips/svr4-t.h,
	config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
	config/stormy16/stormy16.h: Remove all references to
	-traditional from target specs.  Delete all mention of the
	no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
	delete a couple of commented-out definitions of
	DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
	to -traditional.

	* system.h: Poison TRADITIONAL_RETURN_FLOAT.
	* doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.

	* testsuite/gcc.c-torture/execute/920730-1t.c,
	testsuite/gcc.c-torture/execute/920730-1t.x,
	testsuite/gcc.dg/ext-glob.c: Delete test cases, only relevant
	to -traditional.

From-SVN: r50110
2002-02-27 18:48:07 +00:00
Zack Weinberg
e0b3a8ff40 mklibgcc.in: Don't use \n in a line subject to interpretation by echo.
* mklibgcc.in: Don't use \n in a line subject to
	interpretation by echo.

From-SVN: r50109
2002-02-27 18:40:15 +00:00
Graham Stott
72b05af1e5 rs6000.h (ASM_OUTPUT_DEF_FROM_DELC): Constify NAME.
* config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
        Constify NAME.

From-SVN: r50102
2002-02-27 15:08:07 +00:00
Graham Stott
7d10488522 * loop.c (prescan_loop): Handle PARALLEL.
From-SVN: r50101
2002-02-27 15:03:05 +00:00
Graham Stott
8ed805d20c unroll.c (loop_iterations): Return 0 if the add_val for a BIV is REG.
* unroll.c (loop_iterations): Return 0 if the add_val for
        a BIV is REG.

From-SVN: r50100
2002-02-27 15:01:10 +00:00
Graham Stott
fd478a0ad4 * final.c (output_operand_lossage): Constify PFX_STR.
From-SVN: r50099
2002-02-27 13:53:50 +00:00
Graham Stott
5c6a85b70c * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
From-SVN: r50098
2002-02-27 13:50:57 +00:00
Jan Hubicka
cd98ad035e linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>

	* linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
	* x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.

From-SVN: r50097
2002-02-27 09:47:27 +00:00
Jan Hubicka
639ae55bd3 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
From-SVN: r50096
2002-02-27 09:40:32 +00:00
GCC Administrator
977c98c2db Daily bump.
From-SVN: r50095
2002-02-27 08:19:19 +00:00
Neil Booth
e808ec9c71 cpplex.c (_cpp_lex_token): Handle directives in macro arguments.
* cpplex.c (_cpp_lex_token): Handle directives in macro
	arguments.
	* cpplib.c (_cpp_handle_directive): Save and restore state
	if parsing macro args when entering a directive.
	* cppmacro.c (collect_args): No need to handle directives
	in macro arguments.
	(enter_macro_context, replace_args): Use the original macro
	definition in case it was redefined whilst collecting arguments.
doc:
	* cpp.texi: Update.
testsuite:
	* gcc.dg/cpp/undef1.c: Remove.
	* gcc.dg/cpp/directiv.c: Update.
	* gcc.dg/cpp/mac-dir-1.c, mac-dir-2.c: New tests.

From-SVN: r50091
2002-02-27 07:24:53 +00:00
David Edelsohn
f585a35687 [multiple changes]
2002-02-26  David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
        * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
        * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
        method on AIX.
        * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
        (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
        (load_toc_v4_PIC_2): Same.

2002-02-26  Alan Modra  <amodra@bigpond.net.au>

        * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.

From-SVN: r50090
2002-02-27 00:42:20 -05:00
Tom Tromey
fc04b455f9 natSystem.cc (init_properties): Use __VERSION__.
* java/lang/natSystem.cc (init_properties): Use __VERSION__.
	* gij.cc (version): Use __VERSION__.
	* include/config.h.in: Rebuilt.
	* acconfig.h (GCJVERSION): Removed.
	* configure: Rebuilt.
	* configure.in (GCJVERSION): Removed.

From-SVN: r50088
2002-02-27 05:32:29 +00:00
Michael Meissner
1fef1cdd2c Add 20020226-1.c to test rotate patterns
From-SVN: r50087
2002-02-27 05:28:58 +00:00
Andreas Schwab
7d2c4fe1e1 acinclude.m4 (LIB_AC_PROG_CXX): Use glibjava_CXX instead of glibcpp_CXX, since libjava uses even another CXX.
2002-02-26  Andreas Schwab  <schwab@suse.de>

	* acinclude.m4 (LIB_AC_PROG_CXX): Use glibjava_CXX instead of
	glibcpp_CXX, since libjava uses even another CXX.
	* aclocal.m4, configure: Regenerated.

From-SVN: r50084
2002-02-27 02:18:09 +00:00
Richard Henderson
d699058e0a * config/alpha/alpha.md (ashldi_se): Re-enable.
From-SVN: r50083
2002-02-26 17:52:18 -08:00
Richard Henderson
eadccfbb85 alpha.c (alpha_encode_section_info): Examine MODULE_LOCAL_P; improve commentary.
* config/alpha/alpha.c (alpha_encode_section_info): Examine
        MODULE_LOCAL_P; improve commentary.

From-SVN: r50082
2002-02-26 17:48:57 -08:00
Tom Tromey
7fe4a89aed natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'.
* java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not
	`1'.

From-SVN: r50081
2002-02-27 01:39:30 +00:00
Zack Weinberg
7080ada154 cpp.texi: Clarify documentation of relationship between #line and #include.
* doc/cpp.texi: Clarify documentation of relationship between
	#line and #include.

From-SVN: r50079
2002-02-27 01:26:04 +00:00
Kazu Hirata
b42cff6bff h8300-protos.h: Update the prototype for compute_logical_op_length.
* config/h8300/h8300-protos.h: Update the prototype for
	compute_logical_op_length.  Add the prototype for
	compute_logical_op_cc.
	* config/h8300/h8300.c (compute_logical_op_length): Figure out
	code from operands.
	(compute_logical_op_cc): New.
	* config/h8300/h8300.md: Combine all the logical op patterns
	in HImode and SImode.  Use compute_logical_op_cc.

From-SVN: r50078
2002-02-27 01:09:50 +00:00
Benjamin Kosnik
3af7d37f67 basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
2002-02-26  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
	Adjust comment.
	* include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
	(basic_ios::_M_fill_init): New.
	(basic_ios::fill()): Delay dealing with _M_fill.
	Adjust comment.
	* testsuite/27_io/ios_init.cc (test02): Adjust testcase.

From-SVN: r50077
2002-02-27 01:01:59 +00:00
Benjamin Kosnik
ac39fabb8b basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
2002-02-26  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
	Adjust comment.
	* include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
	(basic_ios::_M_fill_init): New.
	(basic_ios::fill()): Deal with _M_fill lazily.
	Adjust comment.
	* testsuite/27_io/ios_init.cc (test02): Adjust testcase.

From-SVN: r50076
2002-02-27 01:01:31 +00:00
Kelley Cook
831c4e87d0 i386.c (print_operand): Don't append ATT-style length suffixs to x87 opcodes when in Intel mode.
* config/i386/i386.c (print_operand): Don't append ATT-style
        length suffixs to x87 opcodes when in Intel mode.

From-SVN: r50075
2002-02-26 16:29:00 -08:00
Ryan T. Sammartino
ff88fe1035 emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
* emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
        (init_emit_once): Update calls.
        * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
        (init_syntax_once): Prototype.

From-SVN: r50072
2002-02-26 16:22:09 -08:00
John David Anglin
d410858908 pa-linux.h (LIB_SPEC): Update definition.
* pa-linux.h (LIB_SPEC): Update definition.
	* pa32-linux.h (LINK_COMMAND_SPEC): Delete.

From-SVN: r50071
2002-02-26 23:38:34 +00:00
Loren J. Rittle
79d6ba0bee Makefile.am (thread_target_headers): Unconditionally stage and install gthr-posix.h.
* include/Makefile.am (thread_target_headers): Unconditionally
	stage and install gthr-posix.h.
	(${target_builddir}/gthr-posix.h): New rule cloned off
	${target_builddir}/gthr-default.h.
	(${target_builddir}/gthr-default.h): Support chained inclusion
	of gthr support headers.
	* include/Makefile.in: Rebuilt.

From-SVN: r50069
2002-02-26 23:02:52 +00:00
Richard Henderson
e013f3c710 ia64.c (nop_cycles_until): Do init_insn_group_barriers if we emitted a stop bit.
* config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
        if we emitted a stop bit.

From-SVN: r50065
2002-02-26 14:41:48 -08:00
Jakub Jelinek
9e944a165d configure.in (libgcc_visibility): Substitute.
* configure.in (libgcc_visibility): Substitute.
	* configure: Rebuilt.
	* mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
	defined symbols .hidden.

From-SVN: r50063
2002-02-26 22:39:07 +01:00
Jakub Jelinek
47bd70b56a attribs.c (c_common_attribute_table): Add visibility.
* attribs.c (c_common_attribute_table): Add visibility.
	(handle_visibility_attribute): New function.
	* varasm.c (assemble_visibility): New function.
	* output.h (assemble_visibility): Add prototype.
	* tree.h (MODULE_LOCAL_P): Define.
	* crtstuff.c (__dso_handle): Use visibility attribute.
	* config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
	for MODULE_LOCAL_P symbols too.
	* config/ia64/ia64.c (ia64_encode_section_info): Handle
	MODULE_LOCAL_P symbols the same way as local symbols.
	Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
	into .sdata/.sbss by the user.
	* doc/extend.texi (Function Attributes): Document visibility
	attribute.

	* gcc.dg/ia64-visibility-1.c: New test.

From-SVN: r50061
2002-02-26 22:17:22 +01:00
Jakub Jelinek
6d73371a68 re PR debug/5770 (undefined reference to `.LC0')
PR debug/5770
	* dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
	STRING_CST initializer spanning the whole variable without
	embedded zeros.
	If expand_expr returned MEM, don't use it.

	* g++.dg/debug/debug4.C: New test.

From-SVN: r50058
2002-02-26 22:08:57 +01:00
Paolo Carlini
2d13abcf86 locale_facets.tcc (num_put::_M_widen_int): Group all the integral types, not only decs.
2002-02-26  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc (num_put::_M_widen_int):
	Group all the integral types, not only decs.
	* testsuite/27_io/ios_manip_basefield.cc (test01): Tweak existing
	tests, add a few more.

From-SVN: r50057
2002-02-26 20:56:24 +00:00
Alexandre Oliva
06e224f7e8 dwarf2out.c (gen_inlined_subroutine_die): If block is abstract, generate a die for the lexical block.
* dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
generate a die for the lexical block.

From-SVN: r50056
2002-02-26 19:05:26 +00:00
Kazu Hirata
40367e2d81 h8300-protos.h: Add a prototype for compute_logical_op_length.
* config/h8300/h8300-protos.h: Add a prototype for
	compute_logical_op_length.
	* config/h8300/h8300.c (compute_logical_op_length): New.
	* config/h8300/h8300.md (anonymous logical patterns): Use
	compute_logical_op_length for length.

From-SVN: r50055
2002-02-26 12:50:52 +00:00
GCC Administrator
64ee51e0ba Daily bump.
From-SVN: r50053
2002-02-26 08:17:53 +00:00
Mark Mitchell
2df96f0a59 update_version: Automatically update version files on all branches.
* update_version: Automatically update version files on all
	branches.
	* crontab: Only invoke update_version once.

From-SVN: r50049
2002-02-26 07:13:25 +00:00
Aldy Hernandez
0e98f92438 dwarf2out.c (modified_type_die): Do not call type_main_variant for vectors.
2002-02-26  Aldy Hernandez  <aldyh@redhat.com>

        * dwarf2out.c (modified_type_die): Do not call type_main_variant
        for vectors.
        (gen_type_die): Same.

        * attribs.c (handle_vector_size_attribute): Set debug information.

From-SVN: r50048
2002-02-26 06:58:01 +00:00
Daniel Egger
a50cfd52a6 rs6000.md: Swap define_insn attributes to fix incorrect generation of merge high...
2002-02-26  Daniel Egger  <degger@fhm.edu>

        * config/rs6000/rs6000.md: Swap define_insn attributes to
        fix incorrect generation of merge high instructions instead
        of merge low.

From-SVN: r50047
2002-02-26 06:50:25 +00:00
Aldy Hernandez
b799728433 c-typeck.c (really_start_incremental_init): Use bitsize_zero_node for vectors.
2002-02-26  Aldy Hernandez  <aldyh@redhat.com>

        * c-typeck.c (really_start_incremental_init): Use
        bitsize_zero_node for vectors.

From-SVN: r50046
2002-02-26 06:22:24 +00:00
Aldy Hernandez
376aec5d8a rs6000.md (get_vrsave_internal): Fix typo.
2002-02-26  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
        ("*set_vrsave_internal"): Same.

From-SVN: r50045
2002-02-26 06:20:48 +00:00
Mark Mitchell
a007e0819b Daily bump.
From-SVN: r50044
2002-02-26 06:12:33 +00:00
Mark Mitchell
3664fcf9b7 Set version numbers for mainline
From-SVN: r50036
2002-02-26 05:50:55 +00:00
Richard Henderson
3b40e71b7b expr.c (expand_expr): Do not apply distributive law in EXPAND_SUM case.
* expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
        in EXPAND_SUM case.  Use host_integerp/tree_low_cst.

From-SVN: r50033
2002-02-25 21:46:15 -08:00
Benjamin Kosnik
1bc59af523 ios.cc (ios_base::~ios_base): Tweak.
2002-02-25  Benjamin Kosnik  <bkoz@redhat.com>

	* src/ios.cc (ios_base::~ios_base): Tweak.
	(ios_base::_M_call_callbacks): Deal with null __p.
	(ios_base::ios_base): Set _M_callbacks.
	* include/bits/basic_ios.tcc (basic_ios::init): Adjust comment.
	* testsuite/27_io/ios_init.cc (test02): Fix.

	* mkcheck.in (static_fail): Failed links go to output file.

From-SVN: r50032
2002-02-26 04:55:48 +00:00
Kazu Hirata
801791cc03 960416-1.x: New.
* gcc.c-torture/execute/960416-1.x: New.
	* gcc.c-torture/execute/divconst-3.x: Likewise.

From-SVN: r50029
2002-02-25 23:07:09 +00:00
Jakub Jelinek
232b8f528b re PR target/5755 (-mregparm=3 and -fomit-frame-pointer corrupt esp register)
PR target/5755
	* config/i386/i386.c (ix86_return_pops_args): Only pop
	fake structure return argument if it was passed on the stack.

	* gcc.dg/20020224-1.c: New test.

From-SVN: r50028
2002-02-25 23:49:44 +01:00
Jason Merrill
6728279090 attribs.c (decl_attributes): Also re-layout PARM_DECL and RESULT_DECL.
* attribs.c (decl_attributes): Also re-layout PARM_DECL and
        RESULT_DECL.

From-SVN: r50027
2002-02-25 17:38:53 -05:00
Alexandre Oliva
5c1817565f gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to link with shared_name only.
* gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
link with shared_name only.
* doc/invoke.texi (Link Options): Document new behavior.

From-SVN: r50025
2002-02-25 13:25:11 +00:00
Bryce McKinlay
f36bcb2d6b Makefile.am (GCJCOMPILE): Use -fCLASSPATH not -fclasspath.
* Makefile.am (GCJCOMPILE): Use -fCLASSPATH not -fclasspath. Fixes
	dependency tracking for .java files.
	* Makefile.in: Rebuilt.

From-SVN: r50024
2002-02-25 09:58:13 +00:00
GCC Administrator
b73a391b6f Daily bump.
From-SVN: r50022
2002-02-25 08:16:22 +00:00