85744 Commits

Author SHA1 Message Date
GCC Administrator
31bc8a984f Daily bump.
From-SVN: r131853
2008-01-26 00:17:28 +00:00
Jerry DeLisle
c6a4852ec6 re PR fortran/34876 (Can't read/write array sections with negative stride not specified)
2008-01-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34876
	* gfortran.dg/direct_io_9.f: New test.

From-SVN: r131850
2008-01-25 23:40:23 +00:00
Jerry DeLisle
12d9e9beff Fix date.
From-SVN: r131849
2008-01-25 23:36:39 +00:00
Jerry DeLisle
4152bc263e re PR fortran/34876 (Can't read/write array sections with negative stride not specified)
2008-01-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34876
	* io/transfer.c (write_buf): Handle case of zero sized array.
	(transfer_array): Set data pointer to NULL and size to zero.  Then
	make a data transfer and return.

From-SVN: r131848
2008-01-25 23:34:53 +00:00
Daniel Franke
42cd23cb28 re PR fortran/34661 (ice on where / ASSIGNMENT(=))
gcc/fortran:
2008-01-25  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/34661
        * resolve.c (resolve_where): Added check if user-defined assignment
        operator is an elemental subroutine.
        (gfc_resolve_where_code_in_forall): Likewise.

gcc/testsuite:
2008-01-25  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/34661
        * gfortran.dg/where_operator_assign_4.f90: New test.

From-SVN: r131845
2008-01-25 16:55:47 -05:00
Joseph Myers
3725c0cab3 re PR other/31955 (gcc_release does not generate HTML files from install manual)
PR other/31955
	* doc/install.texi2html: Generate gcc-vers.texi.

From-SVN: r131842
2008-01-25 21:34:38 +00:00
Richard Guenther
291de7fcab re PR c++/33887 (Reference to bitfield gets wrong value when optimizing)
2008-01-25  Richard Guenther  <rguenther@suse.de>

	PR c++/33887
	* decl.c (record_builtin_java_type): Make __java_boolean
	a variant of bool.
	* typeck.c (structural_comptypes): Move TYPE_FOR_JAVA check
	after TYPE_MAIN_VARIANT check.

From-SVN: r131840
2008-01-25 21:20:00 +00:00
DJ Delorie
0288980fc4 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
From-SVN: r131836
2008-01-25 16:00:56 -05:00
Joseph Myers
8d8da22788 MAINTAINERS (c4x port): Remove.
* MAINTAINERS (c4x port): Remove.

contrib:
	* paranoia.cc (main): Remove handling of c4x_single and
	c4x_extended formats.

gcc:
	* config/c4x: Remove directory.
	* config.gcc (crx-*, mt-*): Mark obsolete.
	(c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
	h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
	sh-*-rtemscoff*): Remove cases.
	* defaults.h (C4X_FLOAT_FORMAT): Remove.
	* real.c (encode_c4x_single, decode_c4x_single,
	encode_c4x_extended, decode_c4x_extended, c4x_single_format,
	c4x_extended_format): Remove.
	* real.h (c4x_single_format, c4x_extended_format): Remove.
	* doc/extend.texi (interrupt, naked): Remove mention of attributes
	on C4x.
	(Pragmas): Remove comment about c4x pragmas.
	* doc/install.texi (c4x): Remove target-specific instructions.
	* doc/invoke.texi (TMS320C3x/C4x Options): Remove.
	* doc/md.texi (Machine Constraints): Remove C4x documentation.
	* doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
	refer to C4x source files as examples.
	(C4X_FLOAT_FORMAT): Remove documentation.

gcc/testsuite:
	* gcc.dg/builtin-inf-1.c, gcc.dg/compare6.c, gcc.dg/sibcall-3.c,
	gcc.dg/sibcall-4.c, gcc.dg/torture/builtin-attr-1.c: Don't handle
	c4x-*-* targets.

libgcc:
	* config.host (tic4x-*-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*,
	tic4x-*, h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
	sh-*-rtemscoff*): Remove cases.

From-SVN: r131835
2008-01-25 20:49:04 +00:00
Jason Merrill
1d555e2632 decl2.c (is_late_template_attribute): Don't defer attribute visibility just because the type is dependent.
* decl2.c (is_late_template_attribute): Don't defer attribute
        visibility just because the type is dependent.

From-SVN: r131833
2008-01-25 14:47:28 -05:00
Jason Merrill
b6219f4208 re PR c++/31780 (ICE with incompatible types for ?: with "complex type" conversion)
PR c++/31780
        * call.c (standard_conversion): Allow conversion from integer/real
        to complex.
        (compare_ics): Such a conversion is worse than a normal arithmetic
        conversion.

Co-Authored-By: Mark Mitchell <mark@codesourcery.com>

From-SVN: r131832
2008-01-25 14:45:11 -05:00
Janis Johnson
7fa4b30a16 decCommonSymbols.h: Commit.
* decCommonSymbols.h: Commit.
        * decDPDSybmols.h: Commit.

From-SVN: r131831
2008-01-25 18:47:12 +00:00
Janis Johnson
346b24c0a5 Makefile.in (libdecnumber_a_SOURCES): List Symbols headers.
* Makefile.in (libdecnumber_a_SOURCES): List Symbols headers.
	* decCommonSymbols.h: New file.
	* decCommon.c: Include it.
	* decDPDSymbols.h: New file.
	* decDPD.h: Include it.
	* decNumberLocal.h: Include the two new files.
	* decContextSymbols.h (DECPOWERS, DECSTICKYTAB): New.
	* decNumberSymbols.h (LNnn, d2utable): New.
	* dpd/decimal32Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
	* dpd/decimal64Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
	* dpd/decimal128Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
	* dpd/decimal32.c: Remove redefine of DPD2BIN, BIN2DPD.
	* dpd/decimal64.c: Ditto.
	* dpd/decimal128.c: Ditto.

From-SVN: r131830
2008-01-25 18:07:54 +00:00
Bernd Schmidt
fb7c3b0519 bfin.c (override_options): Reorder tests so that flag_pic gets enabled for -msep-data.
* config/bfin/bfin.c (override_options): Reorder tests so that
	flag_pic gets enabled for -msep-data.

From-SVN: r131829
2008-01-25 17:05:26 +00:00
Richard Guenther
dd3b33d773 re PR middle-end/32244 (bit-field: optimization BUG)
2008-01-25  Richard Guenther  <rguenther@suse.de>

	PR middle-end/32244
	* expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
	to its bitfield precision if required.

	* gcc.c-torture/execute/pr32244-1.c: New testcase.

From-SVN: r131828
2008-01-25 15:33:09 +00:00
Jakub Jelinek
c256730cef re PR middle-end/33880 (ICE: in extract_omp_for_data, at omp-low.c:162)
PR middle-end/33880
	* tree-nested.c (walk_omp_for): New function.
	(convert_nonlocal_reference, convert_local_reference): Call
	walk_omp_for on OMP_FOR.
	(convert_call_expr): Call walk_body on OMP_FOR's
	OMP_FOR_PRE_INIT_BODY.

	* testsuite/libgomp.c/pr33880.c: New test.
	* testsuite/libgomp.fortran/pr33880.f90: New test.

From-SVN: r131825
2008-01-25 13:54:42 +01:00
Richard Guenther
59805c3b29 re PR tree-optimization/34966 (ICE: verify_ssa fails when optimization trigonometric code)
2008-01-25  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/34966
	* tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
	default defs and PHI_NODEs we have to insert after the
	defining statement.

	* gcc.c-torture/compile/pr34966.c: New testcase.

From-SVN: r131824
2008-01-25 12:08:52 +00:00
Richard Guenther
57e2aff267 re PR c++/33887 (Reference to bitfield gets wrong value when optimizing)
2008-01-25  Richard Guenther  <rguenther@suse.de>

	PR c++/33887
	* cp-lang.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define
	to true.

	* g++.dg/torture/pr33887-1.C: New testcase.
	* g++.dg/torture/pr33887-2.C: Likewise.
	* g++.dg/torture/pr33887-3.C: Likewise.
	* gcc.c-torture/execute/20071211-1.c: Likewise.

From-SVN: r131823
2008-01-25 12:06:31 +00:00
Nick Clifton
f84fe9b6f7 stormy16-lib2.c (MIN_UNITS_PER_WORD): Provide a default definition.
* config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
  Provide a default definition.
  (LIBGCC2_UNITS_PER_WORD): Likewise.

  * config/stormy16/stormy16.c: Include df.h for the prototype
  for df_regs_ever_live_p.
  (xstormy16_expand_builtin_va_start): Convert the stack offset
  into a component_ref and then use POINTER_PLUS_EXPR to add it
  to the incoming_virtual_args_rtx.
  (xstormy16_gimplify_va_arg_expr): Rename to
  xstormy16_gimplify_va_arg_expr.
  Use POINTER_PLUS_EXPR when performing pointer arithmetic.
  (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
  xstormy16_gimplify_va_arg_expr.
  Fix up some formatting issues.

  * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
  Move to predicates.md.
  (xs_hi_general_operand): Likewise.
  (xs_hi_nonmemory_operand): Likewise.
  * config/stormy16/predicates.md:
  (xstormy16_carry_plus_operand): New predicate.
  (xs_hi_general_operand): New predicate.
  (xs_hi_nonmemory_operand): New predicate.
  * config/stormy16/stormy16-protos.h:
  (xstormy16_carry_plus_operand): Delete prototype.
  (xs_hi_general_operand): Likewise.
  (xs_hi_nonmemory_operand): Likewise.

  * config/storm16/stormy16.md (addhi3): Remove earlyclobber
  modifiers as they are no longer needed and they can trigger
  reload spill failures.

  * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
  with a match_operand in order to help reload.

  * config/storm16/stormy16.md (movhi_internal): Replace 'r'
  constraint with 'e' for the 8th alternative as this version of
  the mov.w instruction only accepts the lower 8 registers.

From-SVN: r131822
2008-01-25 11:23:44 +00:00
Uros Bizjak
d1f0728e65 re PR target/34856 (ICE with some constant vectors)
PR target/34856
	* simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
	Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
	vector elements.

testsuite/ChangeLog:

	PR target/34856
	* gcc.dg/pr34856.c: Use pointer mode for "pin".

From-SVN: r131821
2008-01-25 11:25:21 +01:00
Jakub Jelinek
80e67011e3 re PR middle-end/33333 (ICE with #pragma omp parallel for in try/catch statement)
PR middle-end/33333
	* gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.

	* g++.dg/gomp/pr33333.C: New test.

From-SVN: r131820
2008-01-25 10:12:57 +01:00
Jakub Jelinek
765d600ac5 re PR preprocessor/34692 (Internal error with pragma in macro)
PR preprocessor/34692
	* macro.c (collect_args): Add pragma_buff argument.  Push
	CPP_PRAGMA ... CPP_PRAGMA_EOL tokens to *pragma_buff, rather
	than into arguments.  Reset prevent_expansion and parsing_args
	state at CPP_PRAGMA_EOL/CPP_EOF.
	(funlike_invocation_p): Add pragma_buff argument, pass it through
	to collect_args.
	(enter_macro_context): Add result argument.  Adjust
	funlike_invocation_p caller.  Emit all deferred pragma tokens
	gathered during collect_args before the expansion, add a padding
	token.  Return 2 instead of 1 if any pragma tokens were prepended.
	(cpp_get_token): If enter_macro_context returns 2, don't return
	a padding token, instead cycle to grab CPP_PRAGMA token.
	* directives.c (_cpp_handle_directive): If was_parsing_args
	in deferred pragma, leave parsing_args and prevent_expansion as is.

	* gcc.dg/cpp/pr34692.c: New test.
	* gcc.dg/gomp/pr34692.c: New test.

From-SVN: r131819
2008-01-25 10:01:27 +01:00
Golovanevsky Olga
1525f2c3a5 ipa-struct-reorg.c (remove_str_allocs_in_func, [...]): New functions.
2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>

	* ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
	New functions.
	(remove_structure): Update allocations list before removing structure.

From-SVN: r131818
2008-01-25 08:02:54 +00:00
Olga Golovanevsky
bd91d74392 [multiple changes]
2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>

	* ipa-struct-reorg.c (is_safe_cond_expr, 
	create_new_stmts_for_cond_expr): Use integer_zerop function,
	that recognize not only zero-pointer, but zero-integer too.
	
2008-01-24  Olga Golovanevsky  <olga@il.ibm.com>

        * gcc.dg/struct/wo_prof_malloc_size_var.c: UnXFAIL.

From-SVN: r131817
2008-01-25 07:47:46 +00:00
GCC Administrator
6ba2cd5959 Daily bump.
From-SVN: r131814
2008-01-25 00:17:48 +00:00
Daniel Franke
79f40de682 re PR fortran/33375 (ICE (segfault) gfortran.dg/common_6.f90)
2008-01-24  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/33375
        PR fortran/34858
        * gfortran.h: Revert changes from 2008-01-17.
        * match.c: Likewise.
        * symbol.c: Likewise.
        (gfc_undo_symbols): Undo namespace changes related to common blocks.

From-SVN: r131811
2008-01-24 16:36:14 -05:00
Daniel Franke
7c8d270315 re PR fortran/34202 (ICE (segfault) for invalid code in formalize_init_expr (data.c:691))
gcc/fortran:
2008-01-24  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/34202
	* data.c (formalize_structure_cons): Skip formalization on
	empty structures.

gcc/testsuite:
2008-01-24  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/34202
        * gfortran.dg/empty_type.f90: New test.

From-SVN: r131810
2008-01-24 16:28:20 -05:00
Ben Elliston
ae7a8ebc89 Committed with RM approval this time.
PR other/22232
	* fixproto: Escape "." in sed expression that strips leading "./".

From-SVN: r131809
2008-01-25 07:52:56 +11:00
Paolo Carlini
3fe82414fe re PR c++/34603 (ICE with broken template declaration)
/cp
2008-01-24  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34603
        * pt.c (push_template_decl_real): Return error_mark_node in case
	of template definition of non-template.

/testsuite
2008-01-24  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34603
        * g++.dg/template/crash77.C: New.

From-SVN: r131804
2008-01-24 19:54:11 +00:00
H.J. Lu
3371362cb0 re PR driver/34904 (-march=native doesn't work with multiple input files)
2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>

	PR driver/34904
	* gcc.c (SWITCH_OK): Removed.
	(SWITCH_LIVE): Changed to bit.
	(SWITCH_FALSE): Likewise.
	(SWITCH_IGNORE): Likewise.
	(switchstr): Change live_cond to unsigned int.
	(process_command): Replace SWITCH_OK with 0.
	(do_self_spec): Likewise.
	(set_collect_gcc_options): Check the SWITCH_IGNORE bit.
	(give_switch): Likewise.
	(used_arg): Likewise.
	(do_spec_1): Set the SWITCH_IGNORE bit.
	(check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
	bits.  Set the SWITCH_LIVE bit.

From-SVN: r131802
2008-01-24 10:57:12 -08:00
Tom Tromey
c496dbb3c1 * resource/gnu/classpath/tools/native2ascii/messages.properties
(Native2ASCII.ReversedHelpCompat): New.
	* tools/gnu/classpath/tools/native2ascii/Native2ASCII.java
	(createParser): Add -reverse.  Update -reversed.

From-SVN: r131801
2008-01-24 18:31:50 +00:00
Daniel Franke
3b30368313 gfortran.texi (OpenMP): Extended existing documentation.
2008-01-24  Daniel Franke  <franke.daniel@gmail.com>

        * gfortran.texi (OpenMP): Extended existing documentation.
        (contributors): Added major contributors of 2008 that were
        not listed yet.
        (proposed extensions): Removed implemented items.

From-SVN: r131800
2008-01-24 13:28:11 -05:00
Andreas Krebbel
5f1b2ee68f s390.h (MOVE_RATIO): Define new target macro.
2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.h (MOVE_RATIO): Define new target macro.

From-SVN: r131799
2008-01-24 18:06:20 +00:00
Richard Sandiford
986d97ed88 re PR tree-optimization/34472 (gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work)
gcc/
	PR tree-optimization/34472
	* ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
	parameter to a "bool *" and set *DATA to false if there is
	an unsafe access.  Do not delete the structure here.
	(check_cond_exprs): Delete it here instead.
	(check_cond_exprs, exclude_cold_structs): Do not increase
	I when removing a structure.

From-SVN: r131798
2008-01-24 17:46:31 +00:00
Uros Bizjak
fcc448088d re PR target/34856 (ICE with some constant vectors)
PR target/34856
	* config/i386/i386.c (ix86_expand_vector_init): Consider only
	CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.

testsuite/ChangeLog:

	PR target/34856
	* gcc.dg/pr34856.c: New test.

From-SVN: r131796
2008-01-24 18:08:10 +01:00
Tobias Burnus
94de25225d namelist_39.f90: Delete temporary files.
2008-01-24  Tobias Burnus  <burnus@net-b.de>

       * gfortran.dg/namelist_39.f90: Delete temporary files.
       * gfortran.dg/namelist_44.f90: Ditto.

From-SVN: r131795
2008-01-24 17:59:02 +01:00
David Edelsohn
ed44a2c764 shlibpath.m4: Add AIX 6 support.
* shlibpath.m4: Add AIX 6 support.
        * configure: Regenerate.

From-SVN: r131794
2008-01-24 11:35:10 -05:00
David Edelsohn
445bad9bb9 * configure: Regenerate.
From-SVN: r131793
2008-01-24 11:33:29 -05:00
David Edelsohn
95d4f544d5 * configure: Regenerate.
From-SVN: r131792
2008-01-24 11:32:40 -05:00
David Edelsohn
f3641e7e09 * configure: Regenerate.
From-SVN: r131791
2008-01-24 11:31:24 -05:00
David Edelsohn
d2a9664c83 * configure: Regenerate.
From-SVN: r131790
2008-01-24 11:30:08 -05:00
David Edelsohn
4f6bebc326 * configure: Regenerate.
From-SVN: r131789
2008-01-24 11:29:16 -05:00
David Edelsohn
e7ad4ca775 * configure: Regenerate.
From-SVN: r131788
2008-01-24 11:28:13 -05:00
David Edelsohn
3e7b7e2b68 * configure: Regenerate.
From-SVN: r131787
2008-01-24 11:27:14 -05:00
David Edelsohn
c8e9554201 Fix date.
From-SVN: r131786
2008-01-24 11:25:43 -05:00
David Edelsohn
716e4bc6b5 * configure: Regenerate.
From-SVN: r131785
2008-01-24 11:25:09 -05:00
David Edelsohn
d653fdfb25 * configure: Regenerate.
From-SVN: r131784
2008-01-24 11:23:13 -05:00
David Edelsohn
349b60e795 * libtool.m4: Backport AIX 6 support from ToT Libtool.
From-SVN: r131783
2008-01-24 11:21:00 -05:00
Richard Biener
366784f820 re PR c++/34953 (ICE on destructor + noreturn-function at -O3)
2008-01-24  Richard Guenther  <rguenther@suse.de>

	PR middle-end/34953
	* g++.dg/torture/pr34953.C: New testcase.

From-SVN: r131782
2008-01-24 16:02:51 +00:00
Jakub Jelinek
134c2de333 re PR middle-end/34934 (-O1 crash compile *** glibc detected *** /usr/lib/gcc/i486-linux-gnu/4.2.3/cc1: double free or corruption (!prev))
PR middle-end/34934
	* tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
	a fixed vector for stack.

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

From-SVN: r131780
2008-01-24 16:13:17 +01:00