Commit Graph

70586 Commits

Author SHA1 Message Date
Steve Ellcey
2efa12b340 re PR target/23556 (FAIL: gfortran.dg/pr18122.f90)
PR target/23556
	* io/read.c (convert_real): Use memcpy to fill buffer.

From-SVN: r103685
2005-08-31 16:58:28 +00:00
Richard Henderson
35210087ce No, I had the number right the first time. Sigh.
From-SVN: r103684
2005-08-31 09:41:47 -07:00
Richard Henderson
e7fad296a1 Fix typo in pr number.
From-SVN: r103681
2005-08-31 09:29:13 -07:00
Richard Henderson
be0c514c74 re PR rtl-optimization/23601 (reload may drop non-call exception information)
PR rtl-opt/23601
        * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
        (fixup_eh_region_note): New.
        (reload_as_needed): Call it.
        (fixup_abnormal_edges): Allow all throwing insns to be deleted;
        don't call find_many_sub_basic_blocks; call verify_flow_info.
        * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
        (keep_stack_depressed): Likewise.
        (assign_stack_temp_for_type): Likewise; use adjust_address_nv.

From-SVN: r103680
2005-08-31 09:26:51 -07:00
Richard Henderson
5d3018cee7 i386.c (ix86_function_ok_for_sibcall): Fix test for fp return matching.
* config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
        fp return matching.

From-SVN: r103679
2005-08-31 09:16:31 -07:00
Fariborz Jahanian
dc38a61086 Fix ppc -m64 constant address expression expansion bug.
Oked by Richard Henderson.

From-SVN: r103676
2005-08-31 15:55:52 +00:00
Andrew Pinski
f471f0fcc7 Fix a couple of dates in the changelog
From-SVN: r103674
2005-08-31 06:48:39 -07:00
Andrew Pinski
7932444251 re PR objc++/23640 (obj-c++ does not call __objc_exec_class for the classes)
2005-08-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR obj-c++/23640
        * decl2.c (cp_finish_file): If this is obj-c++ and we need a static
        init, call generate_ctor_or_dtor_function.

2005-08-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR obj-c++/23640
        * obj-c++.dg/gnu-runtime-3.mm: New test.

From-SVN: r103673
2005-08-31 06:46:06 -07:00
Francois-Xavier Coudert
ee5426a488 re PR fortran/20592 (-fno-automatic (g77 option) is missing from gfortran.)
PR fortran/20592
	* gfortran.h (gfc_option_t): Add flag_automatic.
	* invoke.texi: Document the -fno-automatic option.
	* lang.opt: Add a -fautomatic option.
	* options.c (gfc_init_options): Default for -fautomatic is on.
	(gfc_handle_option): Add handling of -fautomatic option.
	* resolve.c (gfc_resolve): When -fno-automatic is used, mark
	needed variables as SAVE.

From-SVN: r103671
2005-08-31 12:31:30 +00:00
Richard Guenther
c525013985 re PR middle-end/23477 (default-initializing array new expression uses makes stack usage go way up)
2005-08-31  Richard Guenther  <rguenther@suse.de>

	PR middle-end/23477
	* expr.c (all_zeros_p): New function.
	(expand_expr_real_1): Handle the case of an all-zero
	non-addressable constructor separately.

From-SVN: r103670
2005-08-31 11:20:38 +00:00
Volker Reichelt
ef07d61bcb re PR c++/13377 (unexpected behavior of namespace usage directive)
PR c++/13377
	* parser.c (cp_parser_lookup_name): Pass LOOKUP_COMPLAIN to
	lookup_name_real on final parse.

	* g++.dg/lookup/ambig4.C: New test.
	* g++.dg/lookup/ambig5.C: New test.
	* g++.dg/tc1/dr101.C: Adjust error markers.

From-SVN: r103667
2005-08-31 10:32:54 +00:00
Volker Reichelt
1e1b4b377c re PR c++/23639 (Bad error message: not a member of '<declaration error>')
PR c++/23639
	* semantics.c (qualified_name_lookup_error): Do not complain again
	on invalid scope.

	* g++.dg/template/ttp5.C: Adjust error markers.

From-SVN: r103662
2005-08-31 08:46:46 +00:00
Adrian Straetling
ab17392846 builtins.c: (expand_builtin_strcpy...
2005-08-31  Adrian Straetling  <straetling@de.ibm.com>

	* builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
	arguments, adjust all callers.
	(expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.

From-SVN: r103661
2005-08-31 07:49:27 +00:00
Richard Henderson
fabaaf3678 re PR target/23630 (built-ins MMX regression)
PR target/23630
        * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
        whenever the mode sizes match.

From-SVN: r103660
2005-08-30 22:00:37 -07:00
Andrew Pinski
eb6b2571f3 re PR objc/23381 (Next runtime objc exceptions are broken)
2005-08-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR objc/23381
        * objc-act.c (next_sjlj_build_try_catch_finally): Set
        TREE_SIDE_EFFECTS on catch_seq after building it.

From-SVN: r103658
2005-08-30 21:48:41 -07:00
Alan Modra
40b0345dda calls.c (load_register_parameters): Fix comment typo.
* calls.c (load_register_parameters): Fix comment typo.
	* expr.c (emit_push_insn): Comment formatting.

From-SVN: r103656
2005-08-31 13:03:23 +09:30
GCC Administrator
988497883c Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103651.2
2005-08-31 00:16:17 +00:00
Ian Lance Taylor
c2e493dccc x-cygwin (host-cygwin): Change dependency from hosthooks-def.h to $(HOSTHOOKS_DEF_H).
* config/i386/x-cygwin (host-cygwin): Change dependency from
	hosthooks-def.h to $(HOSTHOOKS_DEF_H).

From-SVN: r103648
2005-08-30 21:26:36 +00:00
Andrew Pinski
2c78e9b0f9 re PR testsuite/23609 (all obj-c++ execute tests fails with the GNU runtime)
2005-08-30  Andrew Pinski  <pinskia@physics.uc.edu>

        PR testsuite/23609
        * lib/obj-c++.exp: Include target-libpath.exp.
        (obj-c++_link_flags): Look for the GNU libobjc library
        and set the library path to include it.
        Don't manually set LD_LIBRARY_PATH (etc.) but call
        set_ld_library_path_env_vars instead.
        (obj-c++_target_compile): Don't set library path or
        linker flags because they are already set correctly
        in obj-c++_link_flags.

From-SVN: r103646
2005-08-30 12:20:57 -07:00
Volker Reichelt
166206ce70 re PR c++/23586 (Bad diagnostic for invalid namespace-name)
PR c++/23586
	* parser.c (cp_parser_namespace_name): Move diagnostic for
	invalid namespace-name to here from ...
	* name-lookup.c (do_namespace_alias): ... here and ...
	(do_using_directive): ... here.  Remove dead code.

From-SVN: r103643
2005-08-30 16:22:00 +00:00
Thomas Fitzsimmons
7a98d47cf7 re PR libgcj/23549 (gij swallows args after -ea)
2005-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/23549
	* gij.cc (main): Don't expect arguments to -enableassertions, -ea,
	-disableassertions and -da.

From-SVN: r103642
2005-08-30 16:19:15 +00:00
Paolo Carlini
5038e0988e PR libstdc++/23578 (cont)
2005-08-30  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/23578 (cont)
	* include/bits/stl_bvector.h (class vector<bool>): Add
	a dummy data() to avoid problems in debug-mode.

From-SVN: r103641
2005-08-30 15:49:15 +00:00
Josh Conner
064e8a9454 builtin-stringop-chk-1.c: Add -mstructure-size-boundary=8 to command-line options for arm-*-* targets.
* gcc.dg/builtin-stringop-chk-1.c: Add -mstructure-size-boundary=8
        to command-line options for arm-*-* targets.

From-SVN: r103640
2005-08-30 15:07:15 +00:00
Paolo Carlini
da45075de7 23528.cc: New.
2005-08-30  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/ext/hash_map/23528.cc: New.

From-SVN: r103635
2005-08-30 09:16:31 +00:00
Geoffrey Keating
9fc5fa7b8b [multiple changes]
2005-08-29  Geoffrey Keating  <geoffk@apple.com>

	* config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
	parts of 'vals'.

Index: testsuite/ChangeLog
2005-08-30  Geoffrey Keating  <geoffk@apple.com>

	* g++.dg/other/i386-1.C: New.

From-SVN: r103632
2005-08-30 07:32:39 +00:00
Jakub Jelinek
f5eab47e10 re PR preprocessor/20348 (File not included when file with same name is included before)
PR preprocessor/20348
	PR preprocessor/20356
	* files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
	2004-06-05 changes.

	* gcc.dg/cpp/pr20348.c: New test.
	* gcc.dg/cpp/pr20348.h: New file.
	* gcc.dg/cpp/inc/pr20348.h: New file.
	* gcc.dg/cpp/inc/pr20348-aux.h: New file.
	* gcc.dg/cpp/pr20356.c: New test.
	* gcc.dg/cpp/pr20356.h: New file.
	* gcc.dg/cpp/inc/pr20356.h: New file.
	* gcc.dg/cpp/inc/pr20356-aux.h: New file.

From-SVN: r103629
2005-08-30 08:28:21 +02:00
Jerry DeLisle
4dc0796f75 intrinsic_count.f90: Fix array dimension to avoid correct end-of-file error.
2005-08-29  Jerry DeLisle  <jvdelisle@verizon.net>

       * gfortran.fortran-torture/execute/intrinsic_count.f90:
       Fix array dimension to avoid correct end-of-file error.

From-SVN: r103626
2005-08-30 05:05:38 +00:00
Andrew Pinski
f97e8c0f6b configure.ac: Replace "*-*-darwin[0-7].*" with "*-*-darwin[[0-7]].*"
2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>

        * configure.ac: Replace "*-*-darwin[0-7].*" with
        "*-*-darwin[[0-7]].*"
        * configure: Regenerate.

From-SVN: r103623
2005-08-29 18:52:12 -07:00
GCC Administrator
718229102f Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103619.2
2005-08-30 00:16:38 +00:00
Thomas Koenig
827afb8629 [multiple changes]
2005-08-29  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/23598
	* io/lock.c(library_start):  If ioparm.iostat is present, clear
	it unconditionally.

2005-02-29  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/23598
	* gfortran.dg/iostat_1.f90:  New test.

From-SVN: r103613
2005-08-29 20:40:02 +00:00
Andrew Pinski
57247f4b28 [multiple changes]
2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23408
        * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
        call to ggc_collect.
2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23408
        * gcc.dg/pr23408.c: New test.

From-SVN: r103612
2005-08-29 10:48:58 -07:00
Paolo Carlini
e677187ed5 stl_map.h (class map): ...
2005-08-29  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_map.h (class map): ... and a missing @a.

From-SVN: r103611
2005-08-29 16:50:52 +00:00
Paolo Carlini
76c6705ba8 stl_map.h (class map): Add missing % in comment.
2005-08-29  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_map.h (class map): Add missing % in comment.

From-SVN: r103610
2005-08-29 16:47:06 +00:00
Paolo Carlini
8b5f07a224 PR libstdc++/23578 (DR 464 [Ready])
2005-08-29  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/23578 (DR 464 [Ready])
	* include/bits/stl_map.h (class map): Add at(const key_type&)
	member functions.
	* include/bits/stl_vector.h (class vector): Add data() member
	functions.
	* include/debug/map.h (class map): Adjust consistently.
	* include/debug/vector (class vector): Likewise.
	* testsuite/23_containers/map/element_access/1.cc: New.
	* testsuite/23_containers/vector/data_access/1.cc: Likewise.
	* docs/html/ext/howto.html: Add an entry for DR 464.

From-SVN: r103609
2005-08-29 16:11:19 +00:00
Arnaud Charlet
332a1c2e39 resync
From-SVN: r103608
2005-08-29 17:43:33 +02:00
Arnaud Charlet
b650f41d81 trans.c: Protect < in error msg with quote Replace GCC_ZCX by Back_End_Exceptions.
2005-08-29  Arnaud Charlet  <charlet@adacore.com>
	    Eric Botcazou  <ebotcazou@adacore.com>

	* trans.c: Protect < in error msg with quote
	Replace GCC_ZCX by Back_End_Exceptions.
	(addressable_p) <COMPONENT_REF>: Also return 1 if the field
	has been sufficiently aligned in the record.

From-SVN: r103607
2005-08-29 17:43:07 +02:00
Arnaud Charlet
8c1b16bcbc re PR ada/21053 (Warnings from init.c)
2005-08-29  Arnaud Charlet  <charlet@adacore.com>
	    Doug Rupp  <rupp@adacore.com>

	* s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
	when needed.
	(Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
	this code in the GNAT run-time.

	* decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.

	PR ada/21053
	* init.c (__gnat_error_handler [many]): Mark "msg" as const
	(__gnat_error_handler [HPUX]): Mark siginfo parameter as unused

	(__gnat_inside_elab_final_code): Moved here from
	Standard_Library and only defined for the compiler.
	__gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
	(__gnat_inum_to_ivec): Do not define this function on VxWorks when
	using RTPs because directly vectored Interrupt routines are not
	supported on this configuration.
	(getpid): Do not redefine this function on VxWorks when using RTPs
	because this primitive is well supported by the RTP libraries.
	(copy_msg): Correct the code that checks for buffer overflow.
	Discovered during code reading.

From-SVN: r103606
2005-08-29 17:41:45 +02:00
Mark Mitchell
b794e321c1 re PR c++/23099 (ICE in build_simple_base_path, at cp/class.c:460)
PR c++/23099
	* cp-tree.h (saved_scope): Add skip_evaluation.
	* decl.c (start_decl): Use DECL_INITIALIZED_IN_CLASS_P, not
	DECL_INITIAL, to determine whether or not a static data member was
	initialized in the class-specifier.
	(cp_finish_decl): Add comment.
	* init.c (integral_constant_value): Subtitute into the
	initializers for static data members in	templates.
	* name-lookup.c (push_to_top_level): Save skip_evaluation.
	(pop_from_top_level): Restore it.
	* pt.c (instantiate_class_template): Do not substitute into the
	intializers of static data members when instantiating a class.
	(regenerate_decl_from_template): Simplify.
	(instantiate_decl): Tidy.  Substitute into the initializer for a
	static data member even when the definition of the data member is
	not available.

	PR c++/23099
	* g++.dg/init/member1.C: Make sure erroneous static data member
	definitions are required.
	* g++.dg/template/static13.C: New test.
	* g++.dg/template/static14.C: Likewise.

From-SVN: r103604
2005-08-29 14:08:50 +00:00
Paolo Bonzini
3a6ebcdcee re PR bootstrap/21268 (Bootstrap, configuration problem and insn-conditions.c)
2005-08-18  Paolo Bonzini  <bonzini@gnu.org>

	PR bootstrap/21268
	* Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
	beginning.  Remove $(INCLUDES) from all the rules, if following
	$(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).

From-SVN: r103601
2005-08-29 13:52:32 +00:00
Arnaud Charlet
b654d8ce2a re PR ada/23187 (MAXPATHLEN usage in gcc/ada/*.c)
PR ada/23187
(GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.

From-SVN: r103600
2005-08-29 15:07:05 +02:00
Jakub Jelinek
a7c92c0b54 pr23575.c: Use -msse2 instead of -march=pentium4, remove ilp32 requirement.
* gcc.target/i386/pr23575.c: Use -msse2 instead of
	-march=pentium4, remove ilp32 requirement.

From-SVN: r103597
2005-08-29 10:50:02 +02:00
Jakub Jelinek
f28d3046d2 re PR middle-end/23484 (__builtin___memcpy_chk miscompilation)
PR middle-end/23484
	* builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
	fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
	not constant, but maxlen is, don't set len to maxlen, rather
	set maxlen to len if len is a constant.

	* gcc.c-torture/execute/builtins/pr23484-chk.c: New test.
	* gcc.c-torture/execute/builtins/pr23484-chk-lib.c: New file.

From-SVN: r103594
2005-08-29 10:40:48 +02:00
Zdenek Dvorak
37261a5c97 re PR tree-optimization/23475 (Frequences are not updated for empty loop removal)
PR tree-optimization/23475
	* tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
	and counts.

From-SVN: r103593
2005-08-29 07:13:06 +00:00
Andreas Jaeger
ba1261450b Add marker for PR testsuite/23607.
From-SVN: r103592
2005-08-29 07:31:48 +02:00
Andreas Jaeger
1e106b724c * gcc.target/i386/pr23575.c: Run only on 32-bit x86.
From-SVN: r103591
2005-08-29 06:46:20 +02:00
GCC Administrator
1814d7e4d3 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103588.2
2005-08-29 00:16:35 +00:00
Daniel Berlin
46c5394b31 re PR middle-end/22455 (ICE tree check: expected function_decl, have type_decl in fold_checksum_tree, at fold-const.c:10282)
2005-08-28  Daniel Berlin  <dberlin@dberlin.org>

	Fix PR middle-end/22455

	* fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
	Checksum only the parts of the tree that exist for the tree code.

From-SVN: r103586
2005-08-29 00:12:19 +00:00
Dale Johannesen
ea407814d0 i386.c (nocona_cost): Increase MOVE_RATIO.
2005-08-28  Dale Johannesen  <dalej@apple.com>

        * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.

From-SVN: r103585
2005-08-28 23:28:57 +00:00
Andrew Pinski
87e71ff43b tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.

From-SVN: r103584
2005-08-28 14:08:28 -07:00
Richard Henderson
490272b474 stor-layout.c (finalize_type_size): Revert workaround from 08-26.
* stor-layout.c (finalize_type_size): Revert workaround from 08-26.
        * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
        of char_type_node.

From-SVN: r103583
2005-08-28 09:28:59 -07:00