Commit Graph

43455 Commits

Author SHA1 Message Date
Richard Sandiford ea16b5eef5 gcc.c (process_command): Avoid assignment to read-only location.
* gcc.c (process_command): Avoid assignment to read-only location.
	Fix sizeof calculation.

From-SVN: r54439
2002-06-10 12:27:55 +00:00
GCC Administrator 1e4b0830e2 Daily bump.
From-SVN: r54438
2002-06-10 07:23:14 +00:00
Neil Booth 6618c5d49d cpphash.h (struct cpp_macro): Put comments on their own lines.
* cpphash.h (struct cpp_macro): Put comments on their own lines.
	(_cpp_expansions_different_trad): New.
	* cppmacro.c (warn_of_redefinition): Fix for traditional case.
	* cpptrad.c (canonicalize_text): New.
	(scan_out_logical_line): Handle no arguments correctly.
	(save_replacement_text): Commit memory when finished.
	(_cpp_expansions_different_trad): New.

From-SVN: r54432
2002-06-10 06:03:13 +00:00
Bryce McKinlay 36d010cabf Don't use RTL inlining. Fix for PR java/6820.
* lang.c (LANG_HOOKS_POST_OPTIONS): Define.
	(flag_really_inline): New.
	(java_decode_option): Set flag_really_inline if -finline-functions
	is seen.
	(java_post_options): New function. Turn off inlining unless
	flag_really_inline is set.

From-SVN: r54430
2002-06-10 06:11:42 +01:00
Bryce McKinlay 5f555088ad configure.host: Disable hash synchronization and slow_pthread_self for cygwin.
* configure.host: Disable hash synchronization and slow_pthread_self
	for cygwin.

From-SVN: r54428
2002-06-10 04:50:41 +01:00
Bryce McKinlay 64e681975f gjavah.c (throwable_p): Accept argument as either a classname or signature fragment.
* gjavah.c (throwable_p): Accept argument as either a classname or
	signature fragment. Create null-terminated classname string for super
	when calling itself recursively.
	(decode_signature_piece): Skip first character from class name
	signature when calling throwable_p.

From-SVN: r54427
2002-06-10 04:47:36 +01:00
Zack Weinberg 4272287154 Add more cscope data files
From-SVN: r54426
2002-06-10 02:36:06 +00:00
Tim Josling 96e3ac4fa0 Fixes to make treelang worg with PCH gengtype.c changes.
From-SVN: r54425
2002-06-10 00:56:49 +00:00
Tim Josling 02ef40d97c Make configure.in check that languages specified were found.
From-SVN: r54418
2002-06-09 23:33:49 +00:00
Geoffrey Keating 37a4aa311b Makefile.in (install-driver): Install driver as $(target_alias)-gcc-$(version).
* Makefile.in (install-driver): Install driver as
	$(target_alias)-gcc-$(version).
	* gcc.c (spec_version): Make const.
	(process_command): Handle -V and -b by using exec.
	* doc/invoke.texi (Target Options): Restore -V option,
	update docs for -b option.

From-SVN: r54417
2002-06-09 23:20:08 +00:00
Jeff Law 39d31de834 Forgot to commit on Friday.
From-SVN: r54416
2002-06-09 16:45:01 -06:00
Tim Josling b38b97c439 Doc fixes for treelang, in gcc/doc directory.
From-SVN: r54415
2002-06-09 22:40:14 +00:00
Hans-Peter Nilsson ae9dbf1f2e * config/cris/cris.c: Include ggc.h
From-SVN: r54413
2002-06-09 20:44:26 +00:00
Neil Booth 1ce676a061 cpphash.h (_cpp_push_text_context): Update.
* cpphash.h (_cpp_push_text_context): Update.
	(_cpp_arguments_ok): New.
	* cppmacro.c (_cpp_arguments_ok): New, split out from...
	(collect_args): ...here.
	(_cpp_push_text_context): Change inputs.
	* cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
	replace_args_and_push): New.
	(lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
	Don't use IS macros directly.
	(scan_out_logical_line): Handle function-like macro argument
	collection.
	(push_replacement_text): Update.
	(replacement_length): Remove.
	(_cpp_create_trad_definition): Don't skip whitespace before
	checking for '('.

From-SVN: r54412
2002-06-09 20:04:17 +00:00
Marek Michalkiewicz 25f2e17641 avr.c (avr_mcu_types): Update for new devices.
* config/avr/avr.c (avr_mcu_types): Update for new devices.
	* config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
	(LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
	* config/avr/avr.md ("type" and "length" attributes): New type
	"xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
	output a single "call" or "rcall" insn depending on device size.
	* config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.

From-SVN: r54410
2002-06-09 18:06:10 +00:00
David Edelsohn 6ef0903d0f - Add PROCESSOR_DEFAULT64 changelog entry.
From-SVN: r54409
2002-06-09 13:25:49 -04:00
David Edelsohn 79ef62999c - Add PROCESSOR_DEFAULT64 as well.
From-SVN: r54408
2002-06-09 13:24:45 -04:00
Andreas Jaeger 42bac11688 encoding.c (objc_layout_structure_next_member): Remove unused variable.
* encoding.c (objc_layout_structure_next_member): Remove unused
	variable.

From-SVN: r54406
2002-06-09 18:46:01 +02:00
David Edelsohn 309323c219 {aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3 synonym for 630.
* config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
        synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
        assembler option.
        (CPP_CPU_SPEC): Add power3 and power4.
        (PROCESSOR_DEFAULT): Change to 604e.
        * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
        (CPP_CPU_SPEC): Similar additions.
        (enum process_type): Add POWER4.
        (RTX_COSTS): Add POWER4.
        (CPP_CPU_SPEC): Similar additions.
        * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
        * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
        (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
        branch adjustment.
        (rs6000_issue_rate): Add Power4.
        * config/rs6000/rs6000.md (cpu attr): Add power4.
        (iu compare): Remove 604, 604e, 620, 630.
        Add basic Power4 scheduling information.
        (mfcr/mtcrf): Change type attribute to cr_logical.

From-SVN: r54405
2002-06-09 11:05:09 -04:00
GCC Administrator 739dd3dd83 Daily bump.
From-SVN: r54404
2002-06-09 07:20:22 +00:00
Kaveh R. Ghazi 57d802974a gengtype.h (error_at_line): Use PARAMS, not VPARAMS.
* gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
	ATTRIBUTE_PRINTF_2.
	* gengtype-lex.l: Fix format specifier warning.

From-SVN: r54394
2002-06-09 02:40:08 +00:00
Kaveh R. Ghazi 1f8e46828a genautomata.c: Don't include ctype.h or limits.h.
* genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
	not isspace.
	* gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
	lieu of isspace/IDchar.
	* gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
	* read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
	ISSPACE.

From-SVN: r54392
2002-06-09 02:12:21 +00:00
Jason Thorpe f210d2390d * configure.in (vax-*-netbsd*): Re-enable gas.
From-SVN: r54391
2002-06-09 01:34:39 +00:00
Zack Weinberg 5a9ee62387 Makefile.in (LIBCPP_OBJS): Take out version.o.
* Makefile.in (LIBCPP_OBJS): Take out version.o.
	* cpphash.h (cpp_reader): Take out print_version member.
	* cppinit.c: (cpp_handle_option): Don't do anything with
	-version.  Just set help_only for --version, --target-help.
	Just set verbose option for -v.
	(cpp_post_options): Don't print a version string.

From-SVN: r54390
2002-06-09 00:26:31 +00:00
Marek Michalkiewicz c16e5a3596 avr.c (TARGET_SECTION_TYPE_FLAGS): New.
* config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
	(avr_section_type_flags): New, handle .noinit* sections.

From-SVN: r54389
2002-06-08 20:38:15 +00:00
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