Commit Graph

55739 Commits

Author SHA1 Message Date
Kazu Hirata 6d6b0a12b9 coff.h: Update copyright.
* config/h8300/coff.h: Update copyright.
	* config/h8300/elf.h: Likewise.
	* config/h8300/h8300-protos.h: Likewise.
	* config/h8300/h8300.c: Likewise.
	* config/h8300/h8300.h: Likewise.
	* config/h8300/h8300.md: Likewise.

From-SVN: r76300
2004-01-21 20:19:23 +00:00
Kim Ho 2bd408db4b GtkFramePeer.java (postConfigureEvent): Fix comments.
2004-01-21  Kim Ho  <kho@redhat.com>

        * gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
        Fix comments.
        (removeMenuBarPeer): Make package private.
        (setMenuBarPeer): Make package private.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
        (menubar_resize_cb): Mark attributes unused.
        (getMenuBarHeight): ditto.

From-SVN: r76299
2004-01-21 20:11:08 +00:00
John David Anglin 4b60eb3b4a inclhack.def (hpux10_stdio_declarations, [...]): New hacks.
* fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
	ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
	ultrix_unistd): New hacks.
	* fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
	ULTRIX_CONST2_CHECK): Add checks.
	* fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
	* fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
	* fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
	* fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
	* fixinc/tests/base/locale.h: New file.
	* fixinc/fixincl.x: Rebuilt.

From-SVN: r76298
2004-01-21 20:08:22 +00:00
Gerald Pfeifer dd69a0e038 * crontab: Make 3.4 snapshots from the new 3.4 release branch.
From-SVN: r76295
2004-01-21 19:05:30 +00:00
Andreas Jaeger bbf5a54d98 extend.texi (Extended Asm): Clarify memory clobber.
2004-01-21  Andreas Jaeger  <aj@suse.de>
	    Michael Matz  <matz@suse.de>

	* doc/extend.texi (Extended Asm): Clarify memory clobber.

Co-Authored-By: Michael Matz <matz@suse.de>

From-SVN: r76288
2004-01-21 18:26:08 +01:00
Jakub Jelinek bfccaa6f70 crtstuff.c (frame_dummy, [...]): Call _Jv_RegisterClasses through a function pointer.
* crtstuff.c (frame_dummy, __do_global_ctors_1): Call
	_Jv_RegisterClasses through a function pointer.

From-SVN: r76287
2004-01-21 17:01:26 +01:00
Falk Hueffner c3cda381c7 re PR target/12898 (Tru64 UNIX bootstrap failure: ICE in gen_reg_rtx, at emit-rtl.c:819)
PR target/12898
        * config/alpha/alpha.c (alpha_emit_set_const_1): If
        no_new_pseudos, use gen_rtx_SET directly for SImode constants
        which need multiple instructions to emit.

        * testsuite/gcc.c-torture/compile/20040121-1.c: New test.

From-SVN: r76283
2004-01-21 16:52:47 +01:00
Paolo Carlini 3e7782b2f8 basic_string.tcc (append(const basic_string&)): Revert previous change.
2004-01-21  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.tcc (append(const basic_string&)):
	Revert previous change.
	(append(const basic_string&, size_type, size_type)): Revert
	previous change, use _M_check and _M_limit.

From-SVN: r76282
2004-01-21 15:43:45 +00:00
David Jee 3f07b28898 2004-01-21 David Jee <djee@redhat.com>
* java/awt/Container.java
        (LightweightDispatcher.handleEvent): Add an extra check to avoid
        dispatching MOUSE_ENTERED event twice. Translate the point for
        the mouse event target before dispatching the event.

From-SVN: r76278
2004-01-21 14:39:15 +00:00
Inaoka Kazuhiro 2a2001bed5 * config/m32r/m32r.h (CPP_SPEC): Define.
From-SVN: r76275
2004-01-21 12:16:07 +00:00
Paolo Carlini e03a6fb7b6 basic_string.h (_M_check): Change to return a checked __pos and take an additional const char* argument.
2004-01-21  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.h (_M_check): Change to return
	a checked __pos and take an additional const char* argument.
	(_M_fold): Rename to _M_limit, change to return a size_type,
	corresponding to the __off limited to the actual length.
	(insert(size_type, size_type, _CharT)): Update call, call
	replace.
	(insert(iterator, _CharT)): Call replace(iterator, iterator,
	size_type, _CharT) instead.
	(erase(size_type, size_type)): Update calls.
	(replace(size_type, size_type, size_type, _CharT)): Ditto.
	(substr(size_type, size_type)): Use _M_check.
	* include/bits/basic_string.tcc (basic_string(const basic_string&,
	size_type, size_type)): Update calls.
	(basic_string(const basic_string&, size_type, size_type,
	const _Alloc&)): Ditto.
	(assign(const basic_string&, size_type, size_type)): Use the
	new _M_check and _M_limit.
	(insert(size_type, const basic_string&, size_type, size_type):
	Ditto.
	(insert(size_type, const _CharT*, size_type)): Ditto.
	(replace(size_type, size_type, const _CharT*, size_type): Ditto.
	(replace(size_type, size_type, const basic_string&,
	size_type, size_type)): Ditto.
	(append(const basic_string&)): Ditto.
	(append(const basic_string&, size_type, size_type)): Ditto.
	(copy(_CharT*, size_type, size_type)): Ditto.
	(compare(size_type, size_type, const basic_string&)): Ditto.
	(compare(size_type, size_type, const basic_string&,size_type,
	size_type)): Ditto.
	(compare(size_type, size_type, const _CharT*)): Ditto.
	(compare(size_type, size_type, const _CharT*, size_type)): Ditto.

From-SVN: r76274
2004-01-21 11:29:51 +00:00
Arnaud Charlet adc04486ee [multiple changes]
2004-01-21  Javier Miranda  <miranda@gnat.com>

	* exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
	entity if already built in the current scope.

	* exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
	reminder in internal scopes. Required for nested limited aggregates.

2004-01-21  Doug Rupp  <rupp@gnat.com>

	* Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
	VMS. Replace all occurences of libgnat- and libgnarl- with
	libgnat$(hyphen) and libgnarl$(hyphen).
	Fixed shared library build problem on VMS.

2004-01-21  Robert Dewar  <dewar@gnat.com>

	* mlib-prj.adb: Minor reformatting

2004-01-21  Thomas Quinot  <quinot@act-europe.fr>

	* prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
	'constant' keywords for declaration of pointers that are not modified.

	* exp_pakd.adb: Fix English in comment.

2004-01-21  Ed Schonberg  <schonberg@gnat.com>

	PR ada/10889
	* sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
	copy all attributes of the parent, including the foreign language
	convention.

2004-01-21  Sergey Rybin  <rybin@act-europe.fr>

	PR ada/10565
	* sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
	for 'delay until' statement.

From-SVN: r76271
2004-01-21 11:35:18 +01:00
Zack Weinberg 1ef82ef2e4 c-decl.c (merge_decls): Kill different_binding_level and different_tu arguments; simplify throughout.
* c-decl.c (merge_decls): Kill different_binding_level and
	different_tu arguments; simplify throughout.
	(duplicate_decls): Likewise.
	(pushdecl, merge_translation_unit_decls): Update calls to
	duplicate_decls.
testsuite:
	* gcc.dg/noncompile/20020213-1.c: Add another dg-warning line.

From-SVN: r76269
2004-01-21 10:32:10 +00:00
Zdenek Dvorak 4543ee4782 * parser.c (cp_parser_class_specifier): Prevent garbage collection.
From-SVN: r76264
2004-01-21 07:41:49 +00:00
Michael Ritzert c930d8a53c ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead of the LHS.
2004-01-21  Michael Ritzert  <ritzert@t-online.de>

	* ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
	of the LHS.

From-SVN: r76261
2004-01-21 07:11:09 +01:00
Kaveh R. Ghazi 13544b8138 Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and $(SYSTEM_H).
* Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
	$(SYSTEM_H).
	(print-rtl1.o): Depend on $(SYSTEM_H).

From-SVN: r76253
2004-01-21 02:53:20 +00:00
Kelley Cook a541f69dd2 re PR other/12730 (manual page install broken with old Pod::man)
gcc/
2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>

	PR bootstrap/12730
	* configure.ac: Delete definition and subsitution of docdir.
	Add info, man, srcman and srcinfo to target hooks. Create doc/
	directory.
	* configure: Regenerate.
	* Makefile.in: Don't substitute docdir and delete all references
	throughout.
	(MAKEINFOFLAGS): Define.
	(stmp-docobjdir): Delete.
	(INFOFILES, MANFILES): Define.
	(info): Call lang.info, srcinfo and lang.srcinfo.
	(generated-manpages): Call lang.man, srcman and lang.srcman.
	(srcinfo, srcman): New rules to copy back files to source directory.
	(doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
	(install-man): Revamp rule.
	(clean): Update dvi directory.
	(distclean): Delete TAGS from front end directorys.
	(maintainer-clean): Delete all document files in source directory.

	objc/Make-lang.in (objc.man, objc.info): Dummy entries.
	(objc.srcman, objc.srcinfo): Likewise.

gcc/ada/
2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in: Replace $(docdir) with doc.
	(doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
	doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
	to use consistent MAKEINFO rule.
	(ada.man, ada.srcman): Dummy entry.
	(ADA_INFOFILES): Define.
	(ada.info, ada.srcinfo): New rules.

gcc/cp/
2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in: Replace $(docdir) with doc.
	(c++.info, c++.srcinfo): Dummy entry.
	(c++.man, c++.srcman): New rules.
	(c++.install-man): Revamp rule.

gcc/f/
2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in: Replace $(docdir) with doc.
	(TEXI_G77_FILES): Define.
	(f77.rebuilt): Delete.
	(f77.srcextra): Add dependencies on f/BUGS and f/NEWS.
	(f77.srcman, f77.srcinfo, f77.man, f77.info): New rules.
	(doc/g77.info, doc/g77.dvi): Depend on TEXI_G77_FILES.  Always build in
	doc directory.  Use $(MAKEINFOFLAGS).
	(info, dvi, generated_manpages): Update to look in doc directory.
	(f/BUGS, f/NEWS): Generate in build directory.
	(f77.mostlyclean): Delete BUGS and NEWS from build directory.
	(f77.maintainer-clean): Adjust to delete from source directory.
	(f77.install-man): Revamp rule.

gcc/java/
2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in: Replace $(docdir) with doc.
	(java.info, java.srcinfo, java.man, java.srcman): New rules.
	(java.install-man): Revamp rule.

gcc/treelang/
2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in: Replace $(docdir) with doc.
	(treelang.info, treelang.srcinfo): New rules.
	(treelang.man, treelang.man): Dummy entries.

maintainer-scripts/
2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>

	* gcc_release (build_sources): Delete call to make f77.rebuilt.

From-SVN: r76249
2004-01-21 02:01:55 +00:00
Bruce Korb abd3817fd5 reorder struct exception hacks and only bypass glibc for proper C++ handling
From-SVN: r76246
2004-01-21 00:23:04 +00:00
GCC Administrator 0144d441ac Daily bump.
From-SVN: r76243
2004-01-21 00:16:14 +00:00
Bruce Korb 793146e38d reorder struct exception hacks and only bypass glibc for proper C++ handling
From-SVN: r76240
2004-01-20 23:49:34 +00:00
Roger Sayle fdb33708b4 fold-const.c (fold_convert): Rename to fold_convert_const.
* fold-const.c (fold_convert): Rename to fold_convert_const.
	(fold_convert_const): Change arguments to take a tree_code,
	a type and the operand/expression to be converted.  Return
	NULL_TREE if no simplification is possible.  Add support for
	FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
	(fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
	Adjust call to fold_convert to match new fold_convert_const.
	Avoid modifying the tree passed to fold in-place.

From-SVN: r76237
2004-01-20 22:59:59 +00:00
Alan Modra 34c80057fc sysv4.h (DWARF2_FRAME_REG_OUT): Define.
* config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
	* dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
	* doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.

From-SVN: r76235
2004-01-21 08:59:24 +10:30
John David Anglin a42952105e pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
* pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
	* pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
	Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
	(emit_move_sequence): Check scratch_reg first in various if statements.
	Extend source simplification to handle all 64-bit CONST_INTs.
	(pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
	frame size.
	(hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
	frame offset calculations.
	* pa.h (NEW_HP_ASSEMBLER): Add comment.
	(MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
	LEGITIMATE_64BIT_CONST_INT_P): Define.
	(LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
	any CONST_INT as legitimate during and after reload.
	(VAL_32_BITS_P, INT_32_BITS): Define.
	(LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.

From-SVN: r76234
2004-01-20 22:20:07 +00:00
Jan Hubicka 3e89ed8dd3 emit-rtl.c (verify_rtx_sharing, [...]): Clobbers containing hard regs are shared.
* emit-rtl.c (verify_rtx_sharing, copy_insn_1,
	emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
	containing hard regs are shared.
	(gen_hard_reg_clobber): New function.
	(hard_reg_clobbers): New array.
	* genemit.c (gen_exp): Use gen_hard_reg_clobber.
	(copy_rtx): Do not copy clobbers containing hard regs.
	* rtl.h (gen_hard_reg_clobber): Declare.

From-SVN: r76233
2004-01-20 22:16:59 +00:00
Jan Hubicka 9b57b627f0 varray.c: Include hashtab.h
* varray.c:  Include hashtab.h
	(varray_descriptor): New structure.
	(hash_descriptor, eq_descriptor, varray_descriptor,
	print_statistics): New static functions
	(varray_init, varray_grow): Update statistics
	(dump_varray_statistics): New function.
	* varray.h (dump_varray_statistics): Declare.
	* toplev.c (finalize): Call it.
	* Makefile.in (varray.o): Add dependency.

From-SVN: r76232
2004-01-20 22:08:17 +00:00
Jakub Jelinek d5d2603ff4 Makefile.am (lib_org_w3c_dom_la_LIBADD, [...]): New.
* Makefile.am (lib_org_w3c_dom_la_LIBADD,
	lib_org_w3c_dom_la_LDFLAGS): New.
	(lib_org_xml_sax_la_LIBADD, lib_org_xml_sax_la_LDFLAGS): New.
	* Makefile.in: Rebuilt.

From-SVN: r76231
2004-01-20 22:25:27 +01:00
Thomas Fitzsimmons c01c143789 GtkComponentPeer.java (setBounds): Calculate proper offsets for heavyweight components packed in lightweight...
2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds):
	Calculate proper offsets for heavyweight components packed in
	lightweight containers.

From-SVN: r76230
2004-01-20 21:24:09 +00:00
Thomas Fitzsimmons 9011501793 GtkTextFieldPeer.java, [...] (native create): Add width parameter.
2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
	(native create): Add width parameter.
	(create): Calculate text entry width based on current font's
	metrics and number of columns.  Set TextField's font if not
	already set.  Call native create.
	(gtkEntryGetBorderWidth): New native method.
	(gtkEntryGetSize): Remove method.
	(getMinimumSize): Call minimumSize.
	(getPreferredSize): Call preferredSize.
	(minimumSize): Calculate minimum size based on backing
	GtkEntry's borders, font metrics and number of columns.
	(preferredSize): Likewise for preferred size.
	(get_border_width): New static function.

From-SVN: r76228
2004-01-20 21:05:39 +00:00
Thomas Fitzsimmons cbc635173f GtkFramePeer.java (setResizable): Override GtkWindowPeer's setResizable method to account for menu bar height when...
2004-01-20  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
	Override GtkWindowPeer's setResizable method to account for menu
	bar height when setting the frame's size.

From-SVN: r76227
2004-01-20 20:56:53 +00:00
Jan Hubicka 6a59927d0c cselib.c: Include alloc-pool.h
* cselib.c: Include alloc-pool.h
	(empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
	(elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
	(new_elt_list, new_elt_loc_list, unchain_one_elt_list,
	unchain_one_elt_loc_list_pool, unchain_one_value,
	new_cselib_val): Simplify using allocpool.
	(cselib_init): Initialize allocpools.
	(cselib_finish): Finish allocpools.
	* Makefile.in (cselib.o): Depend on alloc-pool.h

From-SVN: r76226
2004-01-20 20:36:18 +00:00
Richard Sandiford 3c53850d64 mips.c (mips_load_call_address): Make the call insn use $gp if it could be calling a lazy binding stub.
* config/mips/mips.c (mips_load_call_address): Make the call insn
	use $gp if it could be calling a lazy binding stub.

From-SVN: r76224
2004-01-20 19:58:59 +00:00
Kazu Hirata 101ad855ba s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
* config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
	(TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
	(TARGET_STRUCT_VALUE_RTX): Likewise.
	* config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
	(PROMOTE_FUNCTION_RETURN): Remove.
	(STRUCT_VALUE): Remove.

From-SVN: r76220
2004-01-20 18:29:24 +00:00
Denis Chertykov c099ba2802 avr.h (BASE_REG_CLASS): Don't permit to use X register as pointer after reload.
* config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
	register as pointer after reload.

From-SVN: r76216
2004-01-20 20:38:44 +03:00
Jason Merrill 162f92bb89 fix comment
From-SVN: r76215
2004-01-20 12:01:28 -05:00
Zdenek Dvorak c8b6fae388 re PR rtl-optimization/12440 (gcc 3.3.1 on i386 linux 2.4.22 crashes during compilation of quicktime4linux 2.0.0)
PR optimization/12440
	* loop.c: Include ggc.h.
	(loop_optimize): Run garbage collector between optimization of loops.
	* Makefile.in (loop.o): Add GGC_H dependency.

From-SVN: r76213
2004-01-20 16:55:56 +00:00
Hartmut Penner 04bf686df7 * gcc.dg/ppc64-abi-2.c: New test.
From-SVN: r76212
2004-01-20 16:54:34 +00:00
Hartmut Penner c72d6c267a * gcc/config/rs6000/rs6000.c (function_arg) Handle
vector register special in function without prototype.
        (function_arg_advance): Vector parameters get always
        GPRs allocated for the linux64 target.

From-SVN: r76211
2004-01-20 16:51:07 +00:00
Andrew Haley 1bec19ccf7 gcconfig.h (USE_MMAP): Define for all Linux.
2004-01-20  Andrew Haley  <aph@redhat.com>

        * include/private/gcconfig.h (USE_MMAP): Define for all Linux.

        * configure.in: Comment change.

From-SVN: r76210
2004-01-20 15:18:33 +00:00
Steven Bosscher 4850c9827b It's 2004 not 2004
From-SVN: r76206
2004-01-20 12:11:14 +00:00
Kazuhiro Inaoka 91e736f994 (TARGET_M32R2). Test for TARGET_M32R2_MASK not TARGET_M32RX_MASK.
From-SVN: r76204
2004-01-20 10:17:23 +00:00
Eric Botcazou 4043d6fb40 re PR target/13557 (deviation from the psABI for small structures)
PR target/13557
	* config/sparc/sparc.c (function_arg): Reorder the cases.

From-SVN: r76202
2004-01-20 07:38:18 +00:00
Per Bothner 54020b29a8 Fix patch oops.
From-SVN: r76201
2004-01-19 23:35:21 -08:00
Stefan Olsson cec73eb50c mt_allocator.h: If a thread...
2004-01-19  Stefan Olsson  <stefan@snon.net>

	* include/ext/mt_allocator.h: If a thread, when it dies, still has
	memory on it's freelist this memory is not returned to global
	list. Simplification of deallocate so that memory is always
	returned to the calling thread id's freelist instead of to
	global. Fix typos. Add volatile where appropriate.

From-SVN: r76200
2004-01-20 06:35:21 +00:00
Per Bothner 50f59cd710 Move cpp_reader's line_maps field to a shared global.
* cpphash.h (cpp_reader):  Rename line_maps field to line_table
	and change the type to a pointer rather than a struct.
	* cppinit.c (cpp_push_main_field):  Adjust accordingly.
	* cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
	Likewise.
	* cppfiles.c (validate_pch):  Likewise.
	* cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
	Likewise.
	* cpperror.c (print_location):  Likewise.
	* cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
	* cppinit.c (cpp_create_reader):  Handle new parameter.
	(cpp_destroy):  Don't free line_maps - that's no longer our job.
	* input.h (line_table):  New variable.
	* toplev.c (line_table):  Declare variable.
	(general_init):  Initialize line_table.
	* c-opts.c (c_common_init_options):  Pass line_table to
	cpp_create_reader.
	* fix-header.c (read_scan_file):  New local variable line_table.
	Initialize, and pass it to cpp_create_reader.
	* Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
	(C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.

From-SVN: r76198
2004-01-19 21:30:18 -08:00
Per Bothner 9132fbb788 Implement a cache for linemap_lookup.
* line-map.h (struct_line_maps):  Add cache field.
	* line-map.c (linemap_init):  Zero cache field.
	(linemap_add):  Set cache field to offset of newly allocated map.
	(linemap_lookup):  Use and set cache field.

From-SVN: r76197
2004-01-19 21:17:48 -08:00
Kaz Kojima 26d107dba8 re PR rtl-optimization/13567 ([sh] miscompiling calls.c)
PR optimization/13567
	* cse.c (cse_basic_block): Call cse_insn with a non-null
	libcall_insn for the last SET insn of a no-confilict block.

From-SVN: r76195
2004-01-20 02:34:23 +00:00
James A. Morrison 9dfcd6092e treelang.exp: Fill out this file.
2004-01-18  James A. Morrison  <ja2morri@uwaterloo.ca>

        * lib/treelang.exp: Fill out this file.
        * lib/treelang-dg.exp: New File.

treelang:
2004-01-18  James A. Morrison  <ja2morri@uwaterloo.ca>

        * compile/compile.exp: New File.
        * compile/tabs.tree: Test whether the front end
        compiles code with tabs in it.

From-SVN: r76194
2004-01-20 01:57:58 +00:00
Kelley Cook e165d61b82 Makefile.in (target_noncanonical, [...]): Use immediate define instead of deferred.
gcc/
2004-01-16  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.in (target_noncanonical, program_transform_name): Use
	immediate define instead of deferred.
	(GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
	PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
	GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
	deferred backquote.

gcc/cp
2004-01-16  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in (CXX_INSTALL_NAME, GXX_INSTALL_NAME,
	CXX_TARGET_INSTALL_NAME, GXX_TARGET_INSTALL_NAME): Define via a
	immediate $(shell) instead of deferred backquote.

gcc/f
2004-01-16  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in (G77_INSTALL_NAME): Define via a immediate $(shell)
	instead of deferred backquote.

gcc/java
2004-01-16  Kelley Cook  <kcook@gcc.gnu.org>

	* Make-lang.in (JAVA_INSTALL_NAME, JAVA_TARGET_INSTALL_NAME,
	GCJH_TARGET_INSTALL_NAME): Define via a immediate $(shell)
	instead of deferred backquote.

From-SVN: r76193
2004-01-20 01:52:02 +00:00
Joseph Myers 53cd18ec8e c-decl.c (c_init_decl_processing): Set pedantic_lvalues to true unconditionally.
* c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
	true unconditionally.
	* c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
	Remove.
	(build_unary_op, build_modify_expr): Don't handle extended
	lvalues.
	(build_component_ref, build_conditional_expr): Call non_lvalue
	instead of pedantic_non_lvalue.
	(build_c_cast): Don't condition use of non_lvalue on pedantic.
	* fold-const.c (fold): Don't check pedantic directly for
	COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
	passed to pedantic_non_lvalue.
	* doc/extend.texi: Remove documentation of extended lvalues.

testsuite:
	* gcc.c-torture/compile/981022-1.c: Remove.
	* gcc.dg/array-5.c: Remove XFAIL.
	* gcc.dg/sequence-pt-1.c: Remove test using extended lvalues.
	* gcc.dg/cast-lvalue-1.c, gcc.dg/compound-lvalue-1.c,
	gcc.dg/cond-lvalue-1.c: Update.
	* gcc.dg/cast-lvalue-2.c: New test.

From-SVN: r76192
2004-01-20 01:38:27 +00:00
Loren J. Rittle 87d11ccc82 10063-2.cc: Treat unbuffered.
* testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
	* testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
	use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.

From-SVN: r76191
2004-01-20 01:30:03 +00:00