Commit Graph

43430 Commits

Author SHA1 Message Date
Jason Thorpe
79bc889e3a netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define and include netbsd_entry_point.
* config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
and include netbsd_entry_point.
(SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
(NETBSD_ENTRY_POINT): Define.

From-SVN: r54388
2002-06-08 17:51:28 +00:00
Jason Thorpe
6a79bb0ad4 sh.h (SUBTARGET_EXTRA_SPECS): Define empty if not already defined.
* config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
if not already defined.
(EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.

From-SVN: r54387
2002-06-08 17:47:20 +00:00
Marek Michalkiewicz
e52b6b63da avr.c (avr_regs_to_save): No need to save any registers in a noreturn function.
* config/avr/avr.c (avr_regs_to_save): No need to save any registers
	in a noreturn function.
	(avr_output_function_prologue, avr_output_function_epilogue):
	Correct function size calculation.  Do not crash on empty function.
	(avr_output_function_epilogue): No need for epilogue after a BARRIER.

From-SVN: r54386
2002-06-08 17:25:43 +00:00
Jason Thorpe
1569d6700c netbsd.h (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
* config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
netbsd_link_spec and netbsd_entry_point.
(LINK_SPEC): Use %(netbsd_link_spec).
(NETBSD_ENTRY_POINT): Define.

From-SVN: r54385
2002-06-08 17:23:40 +00:00
H.J. Lu
c238d8067b jcf-path.c (jcf_path_init): Allocate 1 more byte for string.
2002-06-08  H.J. Lu  (hjl@gnu.org)

	* jcf-path.c (jcf_path_init): Allocate 1 more byte for string.

From-SVN: r54384
2002-06-08 09:34:39 -07:00
Jason Thorpe
cfb06024b8 netbsd-elf.h (LINK_ARCH32_SPEC): Only specify linker emulation.
* config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
linker emulation.
(LINK_ARCH64_SPEC): Likewise.
(LINK_SPEC, NETBSD_ENTRY_POINT): Define.
(SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.

From-SVN: r54382
2002-06-08 16:31:14 +00:00
Benjamin Kosnik
497e42fdf4 [multiple changes]
2002-06-08  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/backwards/strstream_members.cc: New.

2002-06-08  Benjamin Kosnik  <bkoz@redhat.com>

	* include/backwards/strstream: Format.
	* src/strstream.cc: Format.

2002-06-08  Andreas Schwab  <schwab@suse.de>

	* src/strstream.cc (strstreambuf::overflow): Set _M_buf,
	_M_buf_size and _M_buf_size_opt to the new buffer and size.

From-SVN: r54375
2002-06-08 15:14:56 +00:00
Marc Espie
e362315840 * lists.c (free_list): Fix typo in comment.
From-SVN: r54374
2002-06-08 14:10:01 +00:00
Andreas Jaeger
272cdf589d lcm.c (optimize_mode_switching): Add unused attribute for variable.
* lcm.c (optimize_mode_switching): Add unused attribute for
	variable.

	* sched-deps.c (sched_analyze): Remove unused variable.

From-SVN: r54372
2002-06-08 16:06:55 +02:00
Benjamin Kosnik
4e4bcb4e86 ctype_noninline.h: Tweak format.
2002-06-08  Benjamin Kosnik  <bkoz@redhat.com>

	* config/os/generic/bits/ctype_noninline.h: Tweak format.

From-SVN: r54371
2002-06-08 14:03:03 +00:00
Gabriel Dos Reis
bf3f2a12a7 * diagnostic.def: Don't capitalize diagnostic descriptors.
From-SVN: r54370
2002-06-08 11:25:28 +00:00
Jason Thorpe
523a5f2fac netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
* config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
(LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
(NETBSD_ENTRY_POINT): Define.

From-SVN: r54368
2002-06-08 07:31:42 +00:00
GCC Administrator
2275e1a80b Daily bump.
From-SVN: r54367
2002-06-08 07:17:41 +00:00
Jason Thorpe
a3e944f9a0 netbsd-elf.h (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
* config/i386/netbsd-elf.h (LINK_SPEC): Define as
NETBSD_LINK_SPEC_ELF.
(SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
(NETBSD_ENTRY_POINT): Define.
* config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
(SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
netbsd_entry_point.
(NETBSD_ENTRY_POINT): Define.

From-SVN: r54362
2002-06-08 06:38:02 +00:00
Jason Thorpe
854928a039 netbsd.h (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
* config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
netbsd_link_spec and netbsd_entry_point.
(LINK_SPEC): Use %(netbsd_link_spec).
(NETBSD_ENTRY_POINT): Define.

From-SVN: r54361
2002-06-08 06:13:35 +00:00
Jason Thorpe
6bb5d2e7c0 netbsd-elf.h (LINK_SPEC): Rename to...
* config/netbsd-elf.h (LINK_SPEC): Rename to...
(NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
to specify program entry point.

From-SVN: r54360
2002-06-08 06:07:11 +00:00
Jeff Law
e50126e858 emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
* emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
	* combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
	than creating a new register.
	(distribute_notes): Likewise.
	* df.c (df_reg_use_gen): Likewise.
	(df_reg_clobber_gen): Likewise.
	(df_ref_record): Likewise.
	* expr.c (use_regs): Likewise.
	* flow.c (propagate_one_insn): Likewise.
	(mark_set_1): Likewise.
	(mark_used_reg): Likewise.
	* reload.c (emit_reload_insns): Likewise.

From-SVN: r54358
2002-06-07 19:51:22 -06:00
Roger Sayle
bc9c18c319 simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form (ne (comp x y) 0) into (comp x y) where comp is a...
* simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
	(ne (comp x y) 0) into (comp x y) where comp is a comparison code.
	Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
	comparison code comp can be reversed.

From-SVN: r54357
2002-06-07 23:50:31 +00:00
Roger Sayle
437f1df1af fold-const.c (fold): Place both integer and real constants last in comparisons.
* fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
	constants last in comparisons.  Optimize (x+1.0)>0.0 into the
	equivalent x > -1.0 when -ffast-math.

	* gcc.dg/20020607-2.c: New test case.

From-SVN: r54356
2002-06-07 23:42:53 +00:00
Jason Thorpe
cd24b8a403 config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
* config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
* config/mips/t-netbsd: New file.

From-SVN: r54353
2002-06-07 23:31:05 +00:00
Zack Weinberg
09e77dee59 cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W options their own entries.
* cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
	options their own entries.
	(parse_option): Clarify comment.
	(cpp_handle_option): Remove 'ignore' parameter and OPT_W
	special case.  Replace if/strcmp chain for -W options with
	use of new OPT_* entries for them.
	(cpp_handle_options): Update to match.
	* cpplib.h: Remove last parameter to cpp_handle_option from prototype.
	* c-decl.c, cp/decl2.c: Update call to cpp_handle_option.

From-SVN: r54352
2002-06-07 22:24:30 +00:00
Steve Ellcey
3522a91b80 locale-inst.cc (__codecvt_abstract_base): Put inside _GLIBCPP_USE_WCHAR_T ifdef.
* src/locale-inst.cc (__codecvt_abstract_base):
	Put inside _GLIBCPP_USE_WCHAR_T ifdef.
	* include/bits/istream.tcc (basic_istream): Ditto.
	(ws) Ditto.
	(operator>>) Ditto.
	* include/bits/ostream.tcc (basic_ostream): Ditto.
	(endl): Ditto.
	(ends): Ditto.
	(flush): Ditto.
	(operator<<): Ditto.

From-SVN: r54351
2002-06-07 22:06:38 +00:00
Jason Merrill
6e683090d1 test for PR 6950
From-SVN: r54350
2002-06-07 17:32:57 -04:00
Phil Edwards
ce5c872270 mkcheck.in: Link against local testsuite library.
2002-06-07  Phil Edwards  <pme@gcc.gnu.org>

	* mkcheck.in:  Link against local testsuite library.
	* testsuite/testsuite_hooks.h (__set_testsuite_memlimit):  Move null
	implementation out...
	* testsuite/testsuite_hooks.cc:  ...to here.

From-SVN: r54349
2002-06-07 20:25:04 +00:00
Akim Demaille
942030dcbe gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2002-06-07  Akim Demaille  <akim@epita.fr>

	* gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
	Whitespace changes.

From-SVN: r54348
2002-06-07 19:19:42 +00:00
Jeff Law
f28468203d sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list on empty lists.
* sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
        on empty lists.

From-SVN: r54347
2002-06-07 12:00:44 -06:00
Matt Kraai
8081570653 * gensupport.c: Fix misspelling.
From-SVN: r54346
2002-06-07 17:59:18 +00:00
H.J. Lu
4bafaa6fdc configure.in: Add --enable-__cxa_atexit.
2002-06-07  H.J. Lu  (hjl@gnu.org)

	* configure.in: Add --enable-__cxa_atexit.
	* configure: Regenerated.
	* config.in: Likewise.

	* defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
	not defined.

2002-06-07  H.J. Lu  (hjl@gnu.org)

	* decl2.c (flag_use_cxa_atexit): Set to DEFAULT_USE_CXA_ATEXIT.

From-SVN: r54345
2002-06-07 10:14:56 -07:00
Gabriel Dos Reis
caef5b46fb * diagnostic.c (diagnostic_build_prefix): Fix initialization.
From-SVN: r54343
2002-06-07 16:35:52 +00:00
Jakub Jelinek
68b15d4f14 * gcc.c-torture/compile/20020604-1.c: New test.
From-SVN: r54342
2002-06-07 18:28:57 +02:00
Jason Thorpe
ac64a17c44 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
From-SVN: r54340
2002-06-07 16:12:43 +00:00
Jason Merrill
97459791c1 cppexp.c (num_equality_op): Use a temporary variable to work around gcc 3.0.4 bug.
* cppexp.c (num_equality_op): Use a temporary variable to work
        around gcc 3.0.4 bug.

From-SVN: r54339
2002-06-07 09:29:17 -04:00
Gabriel Dos Reis
4b1d52c7ae * diagnostic.c (diagnostic_build_prefix): Tidy.
From-SVN: r54337
2002-06-07 13:00:43 +00:00
GCC Administrator
255d3c7028 Daily bump.
From-SVN: r54336
2002-06-07 07:17:30 +00:00
Neil Booth
c70f6ed314 cpptrad.c (struct block, [...]): New.
* cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
	scan_parameters, save_replacement_text, replacement_length): New.
	(scan_out_logical_line): Take a macro and save parameters if
	non-NULL.
	(_cpp_logical_line_trad): Update.
	(_cpp_create_trad_definition): Update to handle function-like
	macros.
	* cpplex.c (new_buff): Update.
	(struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
	* cpphash.h: ...here.
	(CPP_ALIGN2, _cpp_save_parameter): New.
	* cppmacro.c (save_parameter): Rename, export.
	(parse_params): Update.

From-SVN: r54331
2002-06-07 06:26:32 +00:00
Andreas Jaeger
aec2ac46a7 mmix.c: Remove extra broken prototype for mmix_init_machine_status.
* config/mmix/mmix.c: Remove extra broken prototype for
	mmix_init_machine_status.

From-SVN: r54330
2002-06-07 07:21:47 +02:00
Geoffrey Keating
9f313342b1 * gengtype.c: Add comments before all the routines.
From-SVN: r54329
2002-06-07 02:15:39 +00:00
Jason Thorpe
3fa1b44830 config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32 from and add t-sh64 to ${tmake_file}.
* config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
from and add t-sh64 to ${tmake_file}.
(sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
* config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
* config/sh/t-netbsd-sh5-32: Remove.
* config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
MULTILIB_ENDIAN.
(MULTILIB_DIRNAMES): Define.

From-SVN: r54328
2002-06-07 00:58:44 +00:00
Jan Hubicka
0d682900c6 i386.md (and promoting splitters): Disable QI to SImode promoting when doing so changes immediate to be 32bit.
* i386.md (and promoting splitters): Disable QI to SImode promoting
	when doing so changes immediate to be 32bit.

	* rtl.h (emit_*_scope): Declare.
	* emit-rtl.c (emit_*_scope): New global functions.
	(try_split): Copy scope.
	* ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
	noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
	noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
	noce_process_if_block, find_cond_trap): Copy scopes.
	* recog.c (peephole2_optimize): likewise.

From-SVN: r54327
2002-06-06 21:20:43 +00:00
Jeff Law
c991649cef * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
From-SVN: r54323
2002-06-06 15:13:42 -06:00
Adam Megacz
28038fe12f natFileDescriptorWin32.cc (open): Disable Win32 file locking, just like the Sun JVM does.
2002-06-06  Adam Megacz <adam@xwt.org>

        * java/io/natFileDescriptorWin32.cc (open): Disable Win32 file
        locking, just like the Sun JVM does.

From-SVN: r54322
2002-06-06 20:39:37 +00:00
J"orn Rennecke
8a5d66c42f * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
From-SVN: r54321
2002-06-06 21:08:13 +01:00
Rainer Orth
d7f8491b1c Makefile.in (TEXI_GCCINSTALL_FILES): Define.
* Makefile.in (TEXI_GCCINSTALL_FILES): Define.
	($(docdir)/gccinstall.info): New target.
	(info): Depend on it.
	(gccinstall.dvi): New target.
	(dvi): Depend on it.
	* doc/.cvsignore: Ignore new info files.
	* doc/install.texi (@setfilename): Reflect new info filename.

From-SVN: r54319
2002-06-06 20:03:04 +00:00
J"orn Rennecke
eaeb7de8cb sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P on an UNSPEC.
* sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
	on an UNSPEC.

From-SVN: r54318
2002-06-06 16:14:39 +01:00
Ulrich Weigand
ad5e163ca6 * src/s390/sysv.S: Save/restore %r6. Add DWARF-2 unwind info.
From-SVN: r54317
2002-06-06 12:51:23 +00:00
DJ Delorie
917ccc05a6 hashtab.h (htab): Rearrange new members for backward compatibility.
* hashtab.h (htab): Rearrange new members for backward
compatibility.
(htab_create): Don't use a macro that requires other headers.

From-SVN: r54316
2002-06-06 08:42:06 -04:00
Nicola Pero
0c7aeb8801 Fixed regression in the ObjC compiler which was failing on simple C code
due to missing language hooks

From-SVN: r54315
2002-06-06 09:27:22 +00:00
Nicola Pero
4b65dba166 Define some laguage hooks which were missing - LANG_HOOKS_GET_ALIAS_SET
and LANG_HOOKS_SAFE_FROM_P

From-SVN: r54314
2002-06-06 09:25:48 +00:00
Loren J. Rittle
32e7bd5b88 Update last commit.
From-SVN: r54311
2002-06-06 07:43:09 +00:00
Loren J. Rittle
8b5fd4691d Makefile.am (AUTOMAKE_OPTIONS): Use cygnus-style generation.
* src/Makefile.am (AUTOMAKE_OPTIONS): Use cygnus-style generation.
	* include/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* src/Makefile.in: Regenerate (explicitly with --cygnus option).
	* testsuite/Makefile.in: Likewise.

From-SVN: r54310
2002-06-06 07:32:57 +00:00