Commit Graph

55608 Commits

Author SHA1 Message Date
Eric Christopher cf551fbaca cppcharset.c (one_iso88591_to_utf8): New function.
2004-01-16  Eric Christopher  <echristo@redhat.com>
	    Chandrakala Chavva <cchavva@redhat.com>

	* cppcharset.c (one_iso88591_to_utf8): New function.
	(convert_iso88591_utf8): Ditto. Use.
	(conversion_tab): Use.
	(_cpp_input_to_utf8): New function.
	(_cpp_init_iconv_buffer): Ditto.
	(_cpp_close_iconv_buffer): Ditto.
	* cpphash.h: Prototype new functions.
	(cpp_buffer): Add input_cset_desc.
	* cppinit.c: Add input_charset default.
	* cpplib.c (cpp_push_buffer): Support init and
	close of iconv.
	* cpplib.h (cpp_options): Add input_charset.

From-SVN: r76000
2004-01-16 22:37:49 +00:00
Fernando Nasser 2f9c39f8fc gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler): Discard GDK_ENTER_NOTIFY related to ungrabs.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
        Discard GDK_ENTER_NOTIFY related to ungrabs.

From-SVN: r75999
2004-01-16 22:30:11 +00:00
Fernando Nasser da1c22e144 EventQueue.java (pop): Prevent breaking the chain if pop is called for an intermediate queue.
* java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
        is called for an intermediate queue.

From-SVN: r75998
2004-01-16 22:26:49 +00:00
Thomas Fitzsimmons eae433e995 2004-01-16 Thomas Fitzsimmons <fitzsim@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
	(window_property_changed_cb): Set id_set.

Also: re-indent kho's latest ChangeLog entry.

From-SVN: r75997
2004-01-16 21:55:21 +00:00
Kazu Hirata 510d1e8047 system.h (ASM_OUTPUT_SECTION_NAME): Poison.
gcc/
	* system.h (ASM_OUTPUT_SECTION_NAME): Poison.
	* config/alpha/unicosmk.h: Remove a commented-out definition
	of ASM_OUTPUT_SECTION_NAME.
	* config/stormy16/stormy16.h: Likewise.

	gcc/ada/
	* Make-lang.in (utils.o): Depend on target.h.
	* utils.c: Include target.h.
	(process_attributes): Use targetm.have_named_sections instead
	of ASM_OUTPUT_SECTION_NAME.

From-SVN: r75995
2004-01-16 21:19:07 +00:00
Rainer Orth fb2c26082d inclhack.def (alpha___extern_prefix): Renamed to ...
* fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
	(alpha___extern_prefix_sys_stat): ... this.
	Apply to <sys/mount.h>, too.
	Tweak to match more variations.
	* fixinc/tests/base/sys/stat.h: Adapt for new hackname.

	* fixinc/inclhack.def (alpha___extern_prefix,
	alpha___extern_prefix_standards): New hacks to obey
 	__PRAGMA_EXTERN_PREFIX.
	* fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
	test.
	* fixinc/tests/base/standards.h: Likewise.

	* fixincl/inclhack.def (alpha_pthread): Tweak to match more
	variations.
	New testcase.
	* fixinc/tests/base/pthread.h: Handle it.

	* fixincl/inclhack.def (bad_lval): Sort file list.
	Add many missing files up to Tru64 UNIX V5.1B.
	* gcc/fixinc/tests/base/libgen.h: Renamed to ...
	* gcc/fixinc/tests/base/dirent.h: ... this to match new file list
	order.

	* fixinc/fixincl.x: Regenerate.

From-SVN: r75994
2004-01-16 20:58:27 +00:00
Kim Ho 2b8deefadd GtkComponentPeer.java (GtkComponentPeer): If it is a FileDialog and has dimensions of 0 by 0...
2004-01-16  Kim Ho  <kho@redhat.com>

        * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If
        it is a FileDialog and has dimensions of 0 by 0, then the initial
        size is set to size request plus insets.
        * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
        (gtkWidgetGetDimensions): Override method.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
        (gtkWidgetGetDimensions): Override method. Returns size request plus
        insets.

From-SVN: r75993
2004-01-16 20:05:41 +00:00
Mark Mitchell 79a76d653a version.c (version_string): Change to 3.5.0.
* version.c (version_string): Change to 3.5.0.
	* doc/include/gcc-common.texi (version-GCC): Likewise.

From-SVN: r75992
2004-01-16 19:41:35 +00:00
Mark Mitchell a8e6c82ab0 re PR c++/13574 (array default initializer in class lets gcc consume all memory and die)
PR c++/13574
	* decl.c (compute_array_index_type): Fix grammar in comment.
	* init.c (build_zero_init): Handle zero-sized arrays correctly.

	PR c++/13574
	* g++.dg/ext/array1.C: New test.

From-SVN: r75991
2004-01-16 19:28:11 +00:00
Jan Hubicka 965514bd92 re PR target/13608 (Incorrect code with -O3 -ffast-math)
* i386.md (load_tp_di): Fix pasto.

	PR opt/13608
	* i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.

	* c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
	pp_c_character_constant, pp_c_floating_constant,
	pp_c_additive_expression, pp_c_shift_expression,
	pp_c_equality_expression, pp_c_and_expression,
	pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
	pp_c_logical_and_expression): Remove inline modifier.
	* dwarf2out.c (get_AT): Likewise.
	* et-forest.c (et_splay): Likewise.
	* ra.h (ra_alloc, ra_calloc): Likewise

	* mangle.c (write_mangled_name): Remove inline modifier.

From-SVN: r75988
2004-01-16 18:53:51 +00:00
J"orn Rennecke 71bbcf4d56 re PR rtl-optimization/11864 (miscompiles zero extention and test)
PR 11864
	From Kazumoto Kojima / Dan Kegel:
	* gcc.dg/pr11864-1.c: New test.

From-SVN: r75987
2004-01-16 18:43:04 +00:00
Mark Mitchell 144e414d26 re PR c++/13178 (Bogus C++ error message referring to operator 1)
PR c++/13178
	* call.c (name_as_c_string): Print conversion operator names
	correctly.

	PR c++/13178
	* g++.dg/conversion/op1.C: New test.

From-SVN: r75986
2004-01-16 18:39:58 +00:00
J"orn Rennecke 9e0baa6041 re PR rtl-optimization/10392 ([SH] optimizer generates faulty array indexing)
PR 10392
	From Marcus Comstedt / Dan Kegel:
	* gcc.dg/pr10392-1.c: New test.

From-SVN: r75985
2004-01-16 18:24:09 +00:00
Kazu Hirata 87b483a1c4 frv-protos.h: Fix comment formatting.
* config/frv/frv-protos.h: Fix comment formatting.
	* config/frv/frv.c: Likewise.
	* config/frv/frv.h: Likewise.
	* config/frv/frv.md: Likewise.
	* config/frv/frvbegin.c: Likewise.
	* config/frv/frvend.c: Likewise.

From-SVN: r75984
2004-01-16 18:04:22 +00:00
Mark Mitchell 1b6bfcd2ce re PR c++/13478 (gcc uses wrong constructor to initialize a const reference)
PR c++/13478
	* call.c (initialize_reference): Pass -1 for inner parameter to
	convert_like_real.

	PR c++/13478
	* g++.dg/init/ref10.C: New test.

From-SVN: r75983
2004-01-16 17:54:25 +00:00
Andrew Haley a3fe7b56f3 locks.h: Don't use in/out memory constraints.
2004-01-16  Andrew Haley  <aph@redhat.com>

	* sysdep/x86-64/locks.h: Don't use in/out memory constraints.
	* sysdep/i386/locks.h: Likewise.

From-SVN: r75982
2004-01-16 17:25:26 +00:00
Andrew Haley b27317b552 configure.in (NO_EXECUTE_PERMISSION): Remove global declaration; add for ia64; remove for MIPS.
2004-01-16  Andrew Haley  <aph@redhat.com>

        * configure.in (NO_EXECUTE_PERMISSION): Remove global declaration;
        add for ia64; remove for MIPS.
        * configure: Regnerated.

From-SVN: r75981
2004-01-16 17:16:29 +00:00
Andrew Haley e081a9c4c7 re PR java/13273 (gcj generates call to abstract method)
2004-01-16  Andrew Haley  <aph@redhat.com>

	PR java/13273:
	* typeck.c (shallow_find_method): New.
	(find_method_in_superclasses): New.
	(find_method_in_interfaces): New.
	(lookup_do): Rewrite.
	* java-tree.h (SEARCH_ONLY_INTERFACE): Delete.

	* jcf-parse.c (read_class): Save and restore output_class.
	* decl.c (java_expand_body): Set output_class from fndecl.

From-SVN: r75980
2004-01-16 17:11:08 +00:00
Mark Mitchell ab8ffc795c re PR c++/13478 (gcc uses wrong constructor to initialize a const reference)
PR c++/13478
	* call.c (convert_like_real): Do not perform an additional
	direct-initialization when binding to a reference.

	PR c++/13478
	* g++.dg/init/ref10.C: New test.

From-SVN: r75979
2004-01-16 16:59:30 +00:00
Kazu Hirata 1620182354 system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
* system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
	* doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
	LINKER_DOES_NOT_WORK_WITH_DWARF2.
	(LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.

From-SVN: r75978
2004-01-16 16:59:17 +00:00
Fernando Nasser 101900aa28 EventDispatchThread.java (run): Stop running when interrupted.
* java/awt/EventDispatchThread.java (run): Stop running when
        interrupted.
        * java/awt/EventQueue.java (pop): Stop dispatch thread when done.
        Reset the queue after transferring its contents.
        (push): Start a new dispatch thread if none is running.

From-SVN: r75977
2004-01-16 16:15:49 +00:00
Joern Rennecke 5ed5fd905c Add bugzilla reference:
PR 11864
        * postreload.c (reload_cse_simplify_operands): Don't remove
        implicit extension from LOAD_EXTEND_OP.

From-SVN: r75976
2004-01-16 16:13:52 +00:00
J"orn Rennecke 115df136c4 postreload.c (reload_cse_simplify_operands): Don't remove implicit extension from LOAD_EXTEND_OP.
* postreload.c (reload_cse_simplify_operands): Don't remove
	implicit extension from LOAD_EXTEND_OP.

From-SVN: r75975
2004-01-16 16:11:56 +00:00
Olga Rodimina f30dbd2039 * gnu/java/awt/peer/gtk/GdkGraphics2D.java:
(doPolygon): set fill rule of polygon to
	WIND_EVEN_ODD by default

From-SVN: r75971
2004-01-16 14:22:23 +00:00
Giovanni Bajo 1303d0344b re PR c++/13407 (Confusing error message from extraneous typename)
PR c++/13407
	* g++.dg/parse/typename6.C: New test.

From-SVN: r75970
2004-01-16 12:33:28 +00:00
Giovanni Bajo 1ed53ef30c re PR c++/13407 (Confusing error message from extraneous typename)
PR c++/13407
	* parser.c (cp_parser_base_specifier): Check for an invalid
	keyword 'typename' and emit an user-friendly error message.

From-SVN: r75969
2004-01-16 12:29:40 +00:00
Jan Hubicka e24e721187 re PR rtl-optimization/11350 (undefined labels with -Os -fPIC)
PR opt/11350
        * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
        after reload.
        * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
        rtl_try_redirect_by_replacing_branch): Likewise.

From-SVN: r75968
2004-01-16 03:30:48 -08:00
Andreas Jaeger fbf3e0dd2d * Makefile.in: Add $(DESTDIR).
From-SVN: r75964
2004-01-16 09:51:38 +01:00
Danny Smith 701b701b54 testsuite_hooks.cc (try_mkfifo): Avoid calling mkfifo for mingw32.
2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>

	* testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
	mkfifo for mingw32.

From-SVN: r75963
2004-01-16 08:43:45 +00:00
Geoffrey Keating b604074cad re PR pch/13689 (GGC PCH breaks aliasing)
PR pch/13689
	* alias.c (struct alias_set_entry): Mark for GC.
	(alias_sets): Make static, mark for GC.
	(record_alias_subset): Use GC to allocate alias structures.
	* varray.c (element): Make generic varrays GCed.

From-SVN: r75962
2004-01-16 07:28:11 +00:00
Geoffrey Keating a6dd409400 Index: ChangeLog
2004-01-15  Geoffrey Keating  <geoffk@apple.com>

	PR pch/13361
	* c-typeck.c (constructor_asmspec): Delete.
	(struct initializer_stack): Delete field 'asmspec'.
	(start_init): Delete saving of asmspec.
	(finish_init): Don't update constructor_asmspec.
	* dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
	* stmt.c (expand_asm): Duplicate strings from tree.
	(expand_asm_operands): Likewise.
	* tree.c (tree_size): Update computation of size of STRING_CST.
	(make_node): Don't make STRING_CST nodes.
	(build_string): Allocate string with tree node.
	* tree.def (STRING_CST): Update comment.
	* tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
	(tree_string): Place contents of string in tree node.
	* config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
	from tree.

Index: cp/ChangeLog
2004-01-15  Geoffrey Keating  <geoffk@apple.com>

	PR pch/13361
	* cp/lex.c (handle_pragma_interface): Duplicate string from tree.
	(handle_pragma_implementation): Likewise.

Index: testsuite/ChangeLog
2004-01-15  Geoffrey Keating  <geoffk@apple.com>

	PR pch/13361
	* testsuite/g++.dg/pch/wchar-1.C: New.
	* testsuite/g++.dg/pch/wchar-1.Hs: New.

From-SVN: r75961
2004-01-16 07:20:38 +00:00
Geoffrey Keating b0fadda7ec rs6000.c (rs6000_va_arg): No need to special-case altivec operands.
* config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
	altivec operands.

From-SVN: r75960
2004-01-16 07:07:27 +00:00
Kazu Hirata e0a21ab90e c-common.h: Fix comment formatting.
* c-common.h: Fix comment formatting.
	* c-cppbuiltin.c: Likewise.
	* c-pragma.c: Likewise.
	* calls.c: Likewise.
	* collect2.c: Likewise.
	* cppcharset.c: Likewise.
	* cpptrad.c: Likewise.
	* dbxout.c: Likewise.
	* defaults.h: Likewise.
	* dwarf2out.c: Likewise.
	* fold-const.c: Likewise.
	* genautomata.c: Likewise.
	* genconditions.c: Likewise.
	* genflags.c: Likewise.
	* gengtype.c: Likewise.
	* integrate.c: Likewise.
	* loop.c: Likewise.
	* predict.c: Likewise.
	* sdbout.c: Likewise.

From-SVN: r75957
2004-01-16 01:44:06 +00:00
Zack Weinberg f57fc998ee ia64.md (*movti_internal): C output template extracted to ia64.c.
* config/ia64/ia64.md (*movti_internal): C output template
	extracted to ia64.c.
	(*movti_internal_reg): Delete.
	(reload_inti, reload_outti): Use the correct mode on operand 2
	in the first place, don't fix it up in the output template.
	(movtf, reload_ointf, reload_outtf): New expanders.
	(*movtf_internal): New define_insn_and_split.
	* config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
	make static; do not hand TFmode CONST_DOUBLEs to split_double.
	(ia64_split_tmode_move): New function, body mostly pulled
	from ia64.md:*movti_internal.
	(ia64_function_arg_words): New function, extracted common
	logic from ia64_function_arg et seq.
	(ia64_function_arg_offset): Likewise.  Handle correctly the
	case of a scalar quantity 16 bytes wide with only 8-byte alignment.
	(ia64_function_arg, ia64_function_arg_partial_nregs)
	(ia64_function_arg_advance): Use ia64_function_arg_words and
	ia64_function_arg_offset.
	(ia64_function_value): TCmode does not go in float regs.
	(ia64_secondary_reload_class): Also handle TFmode.
	* config/ia64/ia64-protos.h: Remove prototype for
	ia64_split_timode; add prototype for ia64_split_tmode_move.

From-SVN: r75956
2004-01-16 01:27:38 +00:00
GCC Administrator 16a9a2803f Daily bump.
From-SVN: r75953
2004-01-16 00:16:07 +00:00
Giovanni Bajo 18eba5570b re PR c++/9259 (Calling a non-qualified member function within a sizeof() expression leads to "invalid use of undefined type")
PR c++/9259
	* g++.dg/expr/sizeof2.C: New test.

From-SVN: r75951
2004-01-15 23:49:13 +00:00
Kelley Cook e9c4897b28 Makefile.in (MAINT): Make it an immediate assignment.
2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.in (MAINT): Make it an immediate assignment.

From-SVN: r75950
2004-01-15 23:49:11 +00:00
R. Kelley Cook 3986a20dda A missed hunk in cvs commit for this patch:
2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.in: Rename configure.in to configure.ac
	* doc/sourcebuild.texi: Likewise.
	* configure: Regenerate.
	* config.in: Regenerate.

From-SVN: r75949
2004-01-15 23:44:16 +00:00
Giovanni Bajo 21b34b9c09 re PR c++/9259 (Calling a non-qualified member function within a sizeof() expression leads to "invalid use of undefined type")
PR c++/9259
	* typeck.c (build_class_member_access_expr): Allow to access members
	of the currently open class.
	(finish_class_member_access_expr): Likewise.

From-SVN: r75948
2004-01-15 23:41:41 +00:00
Daniel Jacobowitz c0f4b5e40e * MAINTAINERS: Add myself to write-after-approval.
From-SVN: r75947
2004-01-15 22:55:06 +00:00
Kazu Hirata 5a67e41fc0 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
From-SVN: r75944
2004-01-15 22:00:51 +00:00
Olga Rodimina b123101753 GdkGraphics2D.java: Implemented rendering hints related methods.
* gnu/java/awt/peer/gtk/GdkGraphics2D.java:
	Implemented rendering hints related methods.
	(getDefaultHints): New helper method. Returns
	default rendering hints.
	(walkPath): changed to normalize path if
	the KEY_STROKE_CONTROL key is in "normalize" mode.
	(draw3DRect): changed coordinates of rectangle by +0.5
	if in "normalize" mode.

From-SVN: r75943
2004-01-15 22:00:01 +00:00
Kazu Hirata 340f649410 coff.h: Replace Hitachi with Renesas.
* config/h8300/coff.h: Replace Hitachi with Renesas.
	* 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.
	* config/h8300/lib1funcs.asm: Likewise.

From-SVN: r75941
2004-01-15 19:49:41 +00:00
Andrew Pinski c954844a8b rs6000.c (uses_TOC): Wrap #if TARGET_ELF around it.
2004-01-15  Andrew Pinski  <apinski@apple.com>

        * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
        around it.

From-SVN: r75940
2004-01-15 11:37:24 -08:00
Stefan Olsson 2913770f6f mt_allocator.h: Reuse thread id's as soon as possible by changing the behaviour of...
2004-01-15  Stefan Olsson  <stefan@snon.net>

	* include/ext/mt_allocator.h: Reuse thread id's as soon as
	possible by changing the behaviour of thread_freelist to do
	push_front when threads die instead of push_back.

From-SVN: r75939
2004-01-15 19:18:35 +00:00
Kazu Hirata ecc748322b * gcc.dg/sibcall-3.c: Replace mn10?00 with mn10300.
From-SVN: r75936
2004-01-15 18:35:32 +00:00
Tom Tromey e18243dd1d Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (gnu/gcj/runtime/StackTrace.lo): New rule.
	(%.lo: %.java) Filter out StackTrace.lo.

From-SVN: r75934
2004-01-15 18:29:29 +00:00
Kazu Hirata 34bf1fe3ad h8300.c (h8300_return_in_memory): New.
* config/h8300/h8300.c (h8300_return_in_memory): New.
	(TARGET_STRUCT_VALUE_RTX): Likewise.
	(TARGET_RETURN_IN_MEMORY): Likewise.
	* config/h8300/h8300.h (STRUCT_VALUE): Remove.
	(RETURN_IN_MEMORY): Likewise.

From-SVN: r75933
2004-01-15 18:02:01 +00:00
Richard Earnshaw e5396f908a re PR rtl-optimization/13375 (ICE in gcse.c)
PR optimization/13375
* gcse.c (handle_avail_expr): Just return if the source is not a
single set.

From-SVN: r75932
2004-01-15 17:29:10 +00:00
Arnaud Charlet acd47d2a69 [multiple changes]
2004-01-15  Olivier Hainque  <hainque@act-europe.fr>

	* decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
	also when not defining if a Size clause applies. That information is
	not to be ignored.

2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>

	* Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
	symbolic links for the shared gnat run time when needed.

2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>

	* memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
	for writing, and terminate with an error message if not.

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

	* sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
	warning on an access to subprogram in an instance, when the target
	type is declared in the same generic unit.
	(Eval_Attribute): If 'access is known to fail accessibility check,
	rewrite as a raise statement.

2004-01-15  GNAT Script  <nobody@gnat.com>

	* Make-lang.in: Makefile automatically updated

From-SVN: r75931
2004-01-15 18:24:17 +01:00