Commit Graph

76523 Commits

Author SHA1 Message Date
Kazu Hirata f63fc0d933 c-torture.exp (c-torture-compile, [...]): Treat $srcdir as a literal.
* lib/c-torture.exp (c-torture-compile, c-torture-execute):
	Treat $srcdir as a literal.
	* lib/fortran-torture.exp (fortran-torture-compile,
	fortran-torture-execute): Likewise.
	* lib/objc-torture.exp (objc-torture-compile,
	objc-torture-execute): Likewise.
	* lib/profopt.exp (profopt-execute): Likewise.

From-SVN: r116894
2006-09-12 17:12:49 +00:00
David Daney b095810f1b re PR libffi/23935 ($PREFIX/include/ffi.h needs to go to a target- and -version-dependent location)
PR libffi/23935
	* include/Makefile.am: Install both ffi.h and ffitarget.h in
	$(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
	* aclocal.m4: Regenerated for automake 1.9.6.
	* Makefile.in: Regenerated.
	* include/Makefile.in: Regenerated.
	* testsuite/Makefile.in: Regenerated.

From-SVN: r116893
2006-09-12 16:51:43 +00:00
Tom Tromey bbe5c0840a * testsuite/libjava.jacks/jacks.exp (load_gcc_lib): Removed.
From-SVN: r116892
2006-09-12 16:28:43 +00:00
Roger Sayle 4c6669c2c6 re PR middle-end/4520 (cselib.c hash_rtx incorrectly hashes based on rtx address)
PR middle-end/4520
	PR bootstrap/28784
	* cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
	and symbols.  Instead use the implementation from cse.c's hash_rtx.

From-SVN: r116891
2006-09-12 16:02:31 +00:00
Tom Tromey 4b943588d1 re PR java/28754 (java.lang.nullPointerException while accessing final static members of an interface)
PR java/28754:
	* expr.c (expand_java_field_op): Initialize field's declaring
	interface if necessary.

From-SVN: r116890
2006-09-12 15:55:07 +00:00
Tom Tromey 91da2e7c33 re PR java/28892 (assignment to static field not in class initializer)
PR java/28892:
	* expr.c (expand_java_field_op): No error for assignments not in
	class initializer or constructor.

From-SVN: r116889
2006-09-12 15:47:26 +00:00
Jan Hubicka 93c094b524 re PR middle-end/28071 (A file that can not be compiled in reasonable time/space)
PR rtl-optimization/28071
	* tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
	(vect_transform_loop): Likewise.
	* tree-vectorizer.c (new_loop_vec_info): Likewise.
	(new_loop_vec_info): Likewise.
	(destroy_loop_vec_info): Likewise.
	* tree-dfa.c (create_var_ann): Use GCC_CNEW.
	(create_stmt_ann): Likewise.
	(create_tree_ann): Rename to ...
	(create_tree_common_ann): ... this one; allocate only the common part
	of annotations.
	* tree-vn.c (set_value_handle): Use get_tree_common_ann.
	(get_value_handle): Likewise.
	* tree-ssa-pre.c (phi_translate): Delay annotation allocation for
	get_tree_common_ann.
	* tree-vectorizer.h (set_stmt_info): Take stmt annotation.
	(vinfo_for_stmt): Use stmt annotations.
	* tree-flow.h (tree_ann_common_t): New type.
	(tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
	(tree_ann, get_tree_ann, create_tree_ann): New.
	* tree-flow-inline.h (get_function_ann): Do more type checking.
	(stmt_ann): Likewise.
	(tree_ann): Rename to ...
	(tree_common_ann): ... this one; return ony common_ann
	(get_tree_ann): Rename to ...
	(tree_common_ann): This one; return only common_ann.
	* tree-vect-patterns.c (vect_pattern_recog_1): Update call
	of set_stmt_info.

From-SVN: r116886
2006-09-12 10:11:04 +00:00
Andrew Pinski 5f86874e9f Fix some whitespace issues in the changelog.
From-SVN: r116883
2006-09-12 00:51:16 -07:00
Andrew Pinski 91c884163e Fix some whitespace issues in the changelog.
From-SVN: r116882
2006-09-12 00:49:23 -07:00
Andrew Pinski b476963b6e Fix some whitespace issues in the changelog.
From-SVN: r116881
2006-09-12 00:48:26 -07:00
Andrew Pinski f33a23a09c Fix some whitespace issues in the changelog.
From-SVN: r116880
2006-09-12 00:46:08 -07:00
Andrew Pinski 455ad79239 Fix some whitespace issues in the changelog.
From-SVN: r116879
2006-09-12 00:44:52 -07:00
Andrew Pinski 91ba215a05 Fix some whitespace issues in the changelog.
From-SVN: r116878
2006-09-12 00:44:18 -07:00
Andrew Pinski f2fb70e83d Fix some whitespace issues in the changeLog.
From-SVN: r116877
2006-09-12 00:43:23 -07:00
Andrew Pinski cc6010cd8e Fix some white space issues in the changelog.
From-SVN: r116876
2006-09-12 00:42:10 -07:00
Andrew Pinski 19ede56f15 Fix white space issues in the ChangeLog.
From-SVN: r116875
2006-09-12 00:39:10 -07:00
Geoffrey Keating 703706d7e4 config.gcc (i[34567]86-*-darwin*): Set with_arch and with_cpu by default.
* config.gcc (i[34567]86-*-darwin*): Set with_arch and
	with_cpu by default.

From-SVN: r116874
2006-09-12 06:09:05 +00:00
Geoffrey Keating d5688810fe dwarf2out.c (dwarf_file_data): New.
* dwarf2out.c (dwarf_file_data): New.
	(enum dw_val_class): Add dw_val_class_file.
	(struct dw_val_struct): Add val_file.
	(file_table): Change to a hash table.
	(file_table_emitted): Delete.
	(file_table_last_lookup_index): Delete.
	(emitcount): Delete.
	(last_emitted_file): New.
	(lookup_filename): Change prototype to return a struct dwarf_file_data.
	(init_file_table): Delete.
	(maybe_emit_file): Change prototype to take a struct dwarf_file_data.
	(AT_addr): Add comment.
	(add_AT_file): New.
	(AT_file): New.
	(get_AT_file): New.
	(print_die): Handle dw_val_class_file.
	(print_dwarf_line_table): Update for new file table structure.
	(attr_checksum): Do checksum a filename.
	(same_dw_val_p, same_attr_p): Do compare a filename.
	(size_of_die): Handle dw_val_class_file.
	(value_format): Likewise.
	(output_die): Likewise.  Also, call maybe_emit_file here.
	(struct file_info): Constify filenames.  Make file_idx a pointer
	to a struct dwarf_file_data.
	(struct dir_info): Constify directory names.  Remove 'used' field.
	(struct file_name_acquire_data): New.
	(file_name_acquire): New.
	(output_file_names): Modify to handle new file data structures.
	(add_src_coords_attributes): Use add_AT_file.
	(add_call_src_coords_attributes): Likewise.
	(dwarf2out_imported_module_or_decl): Likewise.
	(gen_subprogram_die): Modify for new file data structures.
	(gen_variable_die): Likewise.
	(file_table_eq): New.
	(file_table_hash): New.
	(file_table_last_lookup): New.
	(lookup_filename): Rewrite to handle new file data structures.
	(maybe_emit_file): Rewrite to handle new file data structures.
	(dwarf2out_source_line): Always call lookup_filename and
	maybe_emit_file.
	(dwarf2out_init): Create file_table here.
	(prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
	(file_table_relative_p): New.
	(dwarf2out_finish): Change detection of relative filenames
	to work with new file data structures.  Move output_line_info call
	after debug_info output.

From-SVN: r116873
2006-09-12 05:54:00 +00:00
Jack Howarth df29fa4d8b re PR testsuite/28950 (regex wrong for testing on darwin in gcc/testsuite/gcc.target/powerpc/ppc-and-1.c)
2006-09-11  Jack Howarth  <howarth@bromo.med.uc.edu>

        PR testsuite/28950
        * gcc.target/powerpc/ppc-and-1.c: Fix regex.

From-SVN: r116867
2006-09-12 00:34:18 +00:00
GCC Administrator 893512c990 Daily bump.
From-SVN: r116865
2006-09-12 00:17:24 +00:00
Steven G. Kargl 977a9355af intrinsic.c: Update Copyright date.
2006-09-11  Steven G. Kargl  <kargl@gcc.gnu.org>

	* intrinsic.c: Update Copyright date.
	* intrinsic.h: Ditto.

From-SVN: r116861
2006-09-11 22:29:39 +00:00
H.J. Lu 1395ea397e re PR target/13685 (Building simple test application with -march=pentium3 -Os gives SIGSEGV (unaligned sse instruction))
gcc/

2006-09-11  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/13685
	PR target/27537
	PR target/28621
	* config/i386/i386.c (override_options): Always default to 16
	byte stack boundary.

gcc/testsuite/

2006-09-11  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/13685
	* gcc.target/i386/pr13685.c: New test.

From-SVN: r116860
2006-09-11 14:34:06 -07:00
Alexandre Oliva d306730315 re PR target/28672 (Gcc went into infinite loop when building libstdc++)
2006-09-11  Alexandre Oliva  <aoliva@redhat.com>

	PR target/28672
	* var-tracking.c (dump_dataflow_set): Start dumping at
	register zero.
	(clobber_variable_part): Kill only the variable part in
	registers holding it, leaving other variables alone.

From-SVN: r116859
2006-09-11 14:30:07 -07:00
Josh Triplett b7886f1470 extend.texi (Other Builtins): Actually use the macro argument in the documentation example for...
2006-09-11  Josh Triplett  <josh@freedesktop.org>

	* doc/extend.texi (Other Builtins): Actually use the macro
	argument in the documentation example for
	__builtin_types_compatible_p.

From-SVN: r116858
2006-09-11 21:25:45 +00:00
Eric Botcazou 2e9182fd4a re PR rtl-optimization/28726 (-fsched2-use-superblock produces wrong code)
PR rtl-optimization/28726
	* sched-deps.c (sched_analyze_reg): New function extracted from...
	(sched_analyze_1): ...here.  Call it to analyze references to
	registers.  Treat again writes to a stack register as writing to the
	register.
	(sched_analyze_2): ...and here.  Call it to analyze references to
	registers.  Treat again reads of a stack register as reading the
	register.

From-SVN: r116855
2006-09-11 19:28:11 +00:00
Josh Conner c2b448c655 nrv3.c: Increase size of structure.
* gcc.dg/nrv3.c: Increase size of structure.
* gcc.dg/nrv4.c: Likewise.
* gcc.dg/nrv5.c: Likewise.

From-SVN: r116854
2006-09-11 18:54:29 +00:00
David Daney 5a4ba983b8 re PR classpath/28580 (HTTP HEAD fails on chuncked encoding)
PR classpath/28580
       * gnu/java/net/protocol/http/Request.java (readResponse):  Call
       createResponseBodyStream in more cases and with new parameter.
       (createResponseBodyStream):  Added new parameter mayHaveBody. Handle
       HEAD and !mayHaveBody responses specially.

From-SVN: r116853
2006-09-11 18:15:27 +00:00
Guenter Roeck d295200882 re PR target/27287 (returning constant double)
2006-09-11  Guenter Roeck  <guenter@roeck-us.net>
            David Edelsohn  <edelsohn@gnu.org>

        PR target/27287
        * config/rs6000/spe.md (frob_df_di): Remove %H.
        (frob_di_df): Remove %H.  Change evmergelo to mr.
        (frob_di_df_2): Remove %H.  Change evldd to two loads.

Co-Authored-By: David Edelsohn <edelsohn@gnu.org>

From-SVN: r116850
2006-09-11 13:05:15 -04:00
Hideki Iwamoto 0c387be360 cpp.texi: Fix names of charset options.
gcc/
2006-09-11  Hideki Iwamoto  <h-iwamoto@kit.hi-ho.ne.jp>

	* doc/cpp.texi: Fix names of charset options.

From-SVN: r116841
2006-09-11 08:33:49 +00:00
Paul Thomas 7f39b34c7e re PR fortran/28890 (ICE on write)
2006-09-11  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28890
	trans-expr.c (gfc_conv_function_call): Obtain the string length
	of a dummy character(*) function from the symbol if it is not
	already translated.  For a call to a character(*) function, use
	the passed, hidden string length argument, which is available
	from the backend_decl of the formal argument.
	resolve.c (resolve_function): It is an error if a function call
	to a character(*) function is other than a dummy procedure or
	an intrinsic.

2006-09-11  Paul Thomas  <pault@gcc.gnu.org>

	PR libfortran/28890
	gfortran.dg/assumed_charlen_function_5.f90: New test.

From-SVN: r116839
2006-09-11 05:02:58 +00:00
Mark Mitchell bc70af526c re PR c++/28991 (Static constructor emitted instead of initialized variable)
PR c++/28991
	* cp-objcp-common.c (cxx_staticp): New function.
	* cp-objcp-common.h (LANG_HOOOKS_STATICP): Use it.
	* cp-tree.h (cxx_staticp): New function.
	PR c++/289991
	* g++.dg/init/static3.C: New test.

From-SVN: r116838
2006-09-11 00:40:15 +00:00
GCC Administrator d35763beea Daily bump.
From-SVN: r116836
2006-09-11 00:17:28 +00:00
Andrew Pinski 96f2fafeee re PR testsuite/29007 (FAIL: gcc.dg/long-long-cst1.c execution test)
2006-09-10  Andrew Pinski  <pinskia@physics.uc.edu>

        PR testsuite/29007
        * gcc.dg/long-long-cst1.c (t): Add cast to
        __SIZE_TYPE__ before casting to int.
        (main): Return 0 on success.

From-SVN: r116832
2006-09-10 16:15:31 -07:00
Andrew Pinski 748dc0c9c2 re PR target/29009 (ice in kernel build)
2006-09-10  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/29009
        * config/i386/i386.c (override_options): Use 128-bit
        stack boundary always for 64bits.

From-SVN: r116831
2006-09-10 16:05:00 -07:00
Eric Botcazou de097a3b99 re PR rtl-optimization/28636 (Miscompiled loop)
PR rtl-optimization/28636
	* combine.c (force_to_mode): Test for side-effects before
	substituting by zero.
	(simplify_shift_const): Likewise for zero or other constants.

From-SVN: r116827
2006-09-10 21:27:36 +00:00
Steven Bosscher 4fe337f67a re PR middle-end/26983 (Missing label with builtin_setjmp/longjmp)
PR middle-end/26983

gcc/
	* builtins.c (expand_builtin_setjmp): Force next_lab to be
	preserved.

testsuite/
	* gcc.dg/pr26983.c: New test.

From-SVN: r116826
2006-09-10 20:08:58 +00:00
Richard Sandiford 9226543b67 re PR target/29006 (Incorrect zeroing of unaligned 64-bit fields on MIPS targets)
gcc/
	PR target/29006
	* config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
	* config/mips/mips.c (mips_expand_unaligned_store): Use the mode
	returned by mode_for_size, rather than the mode of src itself,
	to choose between 32-bit and 64-bit patterns.
	(mips_mem_fits_mode_p): New function.
	* config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
	that the size of the source matches the size of the destination.
	(mov_<store>l, mov_<store>r): Likewise.

gcc/testsuite/
	PR target/29006
	* gcc.c-torture/execute/pr29006.c: New test.

From-SVN: r116822
2006-09-10 19:28:48 +00:00
Eric Christopher ca6f2eefa4 darwin.c (machopic_select_rtx_section): Add CONST_VECTOR for literal16.
2006-09-10  Eric Christopher  <echristo@apple.com>

        * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
        for literal16.

From-SVN: r116821
2006-09-10 19:28:17 +00:00
H.J. Lu bda91613d1 Add missing ChangeLog entry.
From-SVN: r116820
2006-09-10 10:33:17 -07:00
Paul Thomas f0e871d647 re PR fortran/28947 (Double MATMUL() uses wrong array elements)
2006-09-10  Paul Thomas  <pault@gcc.gnu.org>

	PR libfortran/28947
	* m4/matmul.m4: For the case where the second input argument is
	transposed, ensure that the case with rank (a) == 1 is
	correctly calculated.
	* generated/matmul_r4.c: Regenerate.
	* generated/matmul_r8.c: Regenerate.
	* generated/matmul_r10.c: Regenerate.
	* generated/matmul_r16.c: Regenerate.
	* generated/matmul_c4.c: Regenerate.
	* generated/matmul_c8.c: Regenerate.
	* generated/matmul_c10.c: Regenerate.
	* generated/matmul_c16.c: Regenerate.
	* generated/matmul_i4.c: Regenerate.
	* generated/matmul_i8.c: Regenerate.
	* generated/matmul_i16.c: Regenerate.


2006-09-10  Paul Thomas  <pault@gcc.gnu.org>

	PR libfortran/28947
	gfortran.dg/matmul_4.f90: New test.

From-SVN: r116817
2006-09-10 17:21:44 +00:00
Paul Thomas 380bfbbd61 re PR fortran/28959 (ICE on derived type with host association)
2006-09-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28959
	trans-types.c (gfc_get_derived_type): Use the parent namespace of
	the procedure if the type's own namespace does not have a parent.


2006-09-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28959
	gfortran.dg/used_types_10: New test.

From-SVN: r116816
2006-09-10 17:17:57 +00:00
Paul Thomas c71d6a561e re PR fortran/28923 (Bad triplet interpretation in initialization)
2006-09-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28923
	expr.c (find_array_section): Only use the array lower and upper
	bounds for the start and end of the sections, where the expr is
	NULL.

2006-09-10  Paul Thomas  <pault@gcc.gnu.org>

	PR libfortran/28923
	gfortran.dg/array_initializer_2.f90: Fill in missing index start value.
	gfortran.dg/array_initializer_3.f90: New test.

From-SVN: r116815
2006-09-10 17:13:29 +00:00
Joseph Myers a7819e426a * MAINTAINERS: Add self as soft-fp maintainer.
From-SVN: r116813
2006-09-10 11:51:11 +01:00
Paolo Carlini 8cfb1bca83 stl_heap.h (sort_heap): Iterator post-decrement is only required to be convertible to the iterator type.
2006-09-10  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_heap.h (sort_heap): Iterator post-decrement is
	only required to be convertible to the iterator type.

From-SVN: r116812
2006-09-10 09:23:59 +00:00
Eric Christopher 1be1e2dd0c re PR target/28995 (libgfortran build now fails on Darwin PPC)
2006-09-09  Eric Christopher  <echristo@apple.com>

        PR target/28995
        * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
        for literal16.

From-SVN: r116810
2006-09-10 07:09:38 +00:00
Jerry DeLisle fb366039a9 re PR fortran/28914 (Code inside loop hangs; outside loop runs normally; runs OK on other compilers)
2006-09-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/28914
	* gfortran.dg/actual_array_constructor_3.f90: New test.

From-SVN: r116809
2006-09-10 04:58:29 +00:00
Paul Thomas bfa7a1e994 re PR fortran/28914 (Code inside loop hangs; outside loop runs normally; runs OK on other compilers)
2006-09-09  Paul Thomas <pault@gcc.gnu.org>

	PR fortran/28914
	* trans-array.c (gfc_trans_array_constructor_value): Create a temporary
	loop variable to hold the current loop variable in case it is modified
	by the array constructor.

From-SVN: r116808
2006-09-10 04:53:18 +00:00
Roger Sayle 66cc73628c dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
* dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.


Co-Authored-By: Nicolas Setton <setton@adacore.com>

From-SVN: r116807
2006-09-10 00:28:05 +00:00
GCC Administrator c7727b4a3f Daily bump.
From-SVN: r116805
2006-09-10 00:17:35 +00:00
Andreas Schwab 7a34bba92b * config/m68k/m68k.md (bungt_rev): New pattern.
From-SVN: r116801
2006-09-09 22:59:53 +00:00