Commit Graph

75389 Commits

Author SHA1 Message Date
Roger Sayle 9734ebafb9 fold-const.c (fold_unary): Ensure folded expressions are type correct.
* fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
	are type correct.  Clean-up.
	<REALPART_EXPR>: Likewise.  Optimize creal(~z) as creal(z).
	<IMAGPART_EXPR>: Likewise.  Optimize cimag(~z) as -cimag(z).

From-SVN: r114330
2006-06-02 23:41:12 +00:00
Steve Ellcey 8659e538c5 init5.C: XFAIL if cxa-atexit is false.
* g++.old-deja/g++.other/init5.C: XFAIL if cxa-atexit is false.
	* g++.old-deja/g++.other/init19.C: Ditto.
	* g++.old-deja/g++.other/init18.C: Ditto, plus change _Exit to _exit
	and add other platforms as expected failures.

From-SVN: r114327
2006-06-02 17:39:28 +00:00
Mark Shinwell 239559e797 pex-unix.c (pex_unix_exec_child): Insert cast when assigning to environ.
* pex-unix.c (pex_unix_exec_child): Insert cast when assigning
	to environ.

From-SVN: r114326
2006-06-02 14:36:45 +00:00
GCC Administrator 3fb385fe58 Daily bump.
From-SVN: r114324
2006-06-02 00:17:24 +00:00
Steve Ellcey 294f1ce368 target-supports.exp (is-effective-target): Add cxa_atexit.
* lib/target-supports.exp (is-effective-target): Add cxa_atexit.
	(is-effective-target-keyword): Ditto.

From-SVN: r114320
2006-06-01 23:21:14 +00:00
Thomas Koenig 47fe00d8f5 re PR fortran/27715 (Extented ASCII characters lead to wrong "CASE" selection)
2006-06-01  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/27715
	* arith.c:  Cast the characters from the strings to unsigned
	char to avoid values less than 0 for extended ASCII.

2006-06-01  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/27715
	* gfortran.dg/extended_char_comparison_1.f:  New test.

From-SVN: r114317
2006-06-01 19:23:56 +00:00
DJ Delorie df5c71ac3c v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the shift, as we've disabled the "switch" insn that needs it.
* config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
shift, as we've disabled the "switch" insn that needs it.

From-SVN: r114315
2006-06-01 13:54:20 -04:00
Per Bothner 0977c9ab42 Fix typo in old ChangeLog entry.
From-SVN: r114312
2006-06-01 09:37:27 -07:00
Per Bothner 112598f405 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
* c-opts.c (finish_options): Use internal line 0 for <command-line>.
	* c-ppoutput.c (cb_define): Don't increment line 0.

From-SVN: r114311
2006-06-01 09:36:25 -07:00
Per Bothner 45a82bd957 data.c (gfc_assign_data_value): Handle USE_MAPPED_LOCATION.
* data.c (gfc_assign_data_value): Handle USE_MAPPED_LOCATION.
	* scanner.c (gfc_gobble_whitespace): Likewise.

From-SVN: r114310
2006-06-01 09:18:34 -07:00
Pete Steinmetz e118597e19 invoke.texi: Add cpu_type power6.
* doc/invoke.texi: Add cpu_type power6.
	* config.gcc: Add cpu_type power6.
	* config/rs6000/rs6000.c (rs6000_override_options): Alias power6
	to power5+ with Altivec.
	* config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
	* config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.

From-SVN: r114309
2006-06-01 11:44:13 -04:00
Anatoly Sokolov d3f27077c4 avr.h (SET_ASM_OP): Define.
* config/avr/avr.h (SET_ASM_OP): Define.

From-SVN: r114308
2006-06-01 19:04:12 +04:00
Kazu Hirata aab260801e * config/bfin/bfin.c: Fix comment typos.
From-SVN: r114306
2006-06-01 12:38:11 +00:00
Paolo Bonzini f5c3bb4bf0 re PR bootstrap/25453 (--disable-bootstrap is not documented)
2006-06-01  Paolo Bonzini  <bonzini@gnu.org>

	PR 25453
	* doc/install.texi: Document --enable-bootstrap and
	--disable-bootstrap.

From-SVN: r114305
2006-06-01 12:28:11 +00:00
Paolo Bonzini 028098486c install.texi: Document that InfoZIP can replace jar.
gcc:
2006-06-01  Paolo Bonzini  <bonzini@gnu.org>

	* doc/install.texi: Document that InfoZIP can replace jar.

libjava:
2006-06-01  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac (ZIP, UNZIP): New programs.
	(JAR): Fall back to bash script.  Generate it.
	(BASH_JAR): New conditional.
	* Makefile.am (bin_SCRIPTS): New.
	* jar.in: New file.

From-SVN: r114304
2006-06-01 12:25:19 +00:00
Bryce McKinlay d5b0558fda MainThread (run): Revert exception chaining change.
2006-06-01  Bryce McKinlay  <mckinlay@redhat.com>

	* gnu/java/lang/MainThread (run): Revert exception chaining change.

From-SVN: r114303
2006-06-01 12:53:54 +01:00
Mark Shinwell ea60341e32 Patch to provide pex_run_in_environment.
* include/libiberty.h: Declare pex_run_in_environment.

libiberty:

	* pex-common.c: New function pex_run_in_environment.
	* pex-common.h: Add environment parameter to exec_child.
	* pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
	* pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
	(pex_djgpp_exec_child): Pass environment to child process.
	* pex-unix.c: Add environment parameter to pex_unix_exec_child.
	(pex_unix_exec_child): Pass environment to child process.
	* pex-win32.c: Add environment parameter to pex_win32_exec_child.
	New function env_compare for comparing VAR=VALUE pairs.
	(win32_spawn): Assemble environment block and pass to CreateProcess.
	(spawn_script): Pass environment through to win32_spawn.
	(pex_win32_exec_child): Pass environment through to spawn_script and
	win32_spawn.
	* functions.texi: Regenerate.
	* pexecute.txh: Document pex_run_in_environment.

From-SVN: r114302
2006-06-01 10:30:51 +00:00
Bryce McKinlay 7d6d782d02 prims.cc (_Jv_RunMain): Use JvNewStringUTF for command-line class name, not Latin1.
2006-05-31  Bryce McKinlay  <mckinlay@redhat.com>

	* prims.cc (_Jv_RunMain): Use JvNewStringUTF for command-line class
	name, not Latin1.
	* gnu/java/lang/MainThread.java (run): Allow file separator char to
	be used in place of '.' as class-name separator. Don't chain
	ClassNotFoundException.

From-SVN: r114300
2006-06-01 08:45:55 +01:00
Alexandre Oliva f3d5aeebf4 re PR c++/26660 (PCH vs -save-temps, ICE while GCing)
PR c++/26660
* parser.c (cp_parser_initial_pragma): Read one more token for
caller after reading PCH file in.

From-SVN: r114298
2006-06-01 04:55:32 +00:00
Paul Thomas 699fa7aa1a re PR fortran/25098 (Variable as actual argument for procedure dummy argument allowed)
2006-06-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25098
	PR fortran/25147
	* interface.c (compare_parameter): Return 1 if the actual arg
	is external and the formal is a procedure.
	(compare_actual_formal): If the actual argument is a variable
	and the formal a procedure, this an error.  If a gsymbol exists
	for a procedure of the same name, this is not yet resolved and
	the error is cleared.

	* trans-intrinsic.c (gfc_conv_associated): Make provision for
	zero array length or zero string length contingent on presence
	of target, for consistency with standard.

2006-06-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25098
	* gfortran.dg/dummy_procedure_1.f90: New test.

	PR fortran/25147
	* gfortran.dg/dummy_procedure_2.f90: New test.

	* gfortran.dg/associated_2.f90: Correct to make consistent with
	standard.

From-SVN: r114296
2006-06-01 04:35:38 +00:00
Roger Sayle 86ce18257f i386.c (ix86_expand_fp_absneg_operator): When SSE isn't available...
* config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
	isn't available, directly generate the simpler x87 patterns without
	the (use (const_int 0)).
	* config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
	implementation isn't available.
	(*negdf2_1): Likewise.
	(*negxf2_1): XF mode negation is always done using the x87.
	(*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.

	* gcc.target/i386/387-11.c: New test case.

From-SVN: r114293
2006-06-01 01:37:17 +00:00
Asher Langton 222ae291bb MAINTAINERS (Write After Approval): Add myself.
* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r114292
2006-06-01 01:16:48 +00:00
GCC Administrator baa36d6e51 Daily bump.
From-SVN: r114289
2006-06-01 00:17:30 +00:00
Thomas Fitzsimmons 99d2ea7e36 gcj.texi (Extensions): Document the new gcj-dbtool-based classname-to-library resolution mechanism.
2006-05-31  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gcj.texi (Extensions): Document the new gcj-dbtool-based
	classname-to-library resolution mechanism.
	Declare the old gnu.gcj.runtime.VMClassLoader.library_control
	mechanism deprecated.
	(libgcj Runtime Properties): Document
	gnu.gcj.runtime.VMClassLoader.library_control's new default.

From-SVN: r114282
2006-05-31 23:12:09 +00:00
Mark Mitchell 07471dfbf7 re PR c++/27801 (ICE in invert_truthvalue with template)
PR c++/27801
	* call.c (perform_implicit_conversion): Do not actually perform
	conversions in templates.
	PR c++/26496
	* call.c (resolve_args): Check for invalid uses of bound
	non-static member functions.
	* init.c (build_offset_ref): Return error_mark_node for errors.
	PR c++/27385
	* decl.c (reshape_init): Robustify.
	(reshape_init_array_1): Likewise.
	PR c++/27801
	* g++.dg/template/cond6.C: New test.
	PR c++/26496
	* g++.dg/template/crash51.C: New test.
	* g++.old-deja/g++.mike/net36.C: Tweak error markers.
	PR c++/27385
	* g++.dg/init/array20.C: New test.

From-SVN: r114278
2006-05-31 20:03:12 +00:00
Thomas Fitzsimmons 69037dd991 VMClassLoader.java (initialize): Set default library control to LIB_NEVER.
2006-05-31  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* java/lang/VMClassLoader.java (initialize): Set default library
	control to LIB_NEVER.

From-SVN: r114277
2006-05-31 17:47:44 +00:00
Roger Sayle 4f31c7ec65 builtins.c (fold_builtin_cabs): Delete prototype.
* builtins.c (fold_builtin_cabs): Delete prototype.  Require an
	additional FNDECL argument.  Optimize cabs(-z) and cabs(~z) as
	cabs(z).
	(fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.

	* gcc.dg/builtins-54.c: New test case.

From-SVN: r114276
2006-05-31 17:44:56 +00:00
James Lemke da7fda0a9e Update my e-mail address for a new "corporate standard".
From-SVN: r114275
2006-05-31 17:32:35 +00:00
Jie Zhang b03149e136 bfin-protos.h (bfin_hardware_loop): Declare.
* config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
	* config/bfin/bfin.c (basic-block.h): Include.
	(struct machine_function): New.
	(bfin_init_machine_status): New.
	(override_options): Initialize init_machine_status.
	(bfin_hardware_loop): New.
	(MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
	(DEF_VEC_P (loop_info)): New.
	(DEF_VEC_ALLOC_P (loop_info,heap)): New.
	(struct loop_info): New.
	(loop_info): New typedef.
	(struct loop_work): New.
	(loop_work): New typedef.
	(DEF_VEC_O (loop_work)): New.
	(DEF_VEC_ALLOC_O (loop_work,heap)): New.
	(bfin_dump_loops): New.
	(bfin_bb_in_loop): New.
	(bfin_scan_loop): New.
	(bfin_optimize_loop): New.
	(bfin_reorg_loops): New.
	(bfin_reorg): Use bfin_reorg_loops.
	* config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
	loop registers.
	(I_REGNO_P): Simplify.
	(DP_REGNO_P, DPREG_P): New macros.
	(REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
	REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
	(enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
	Add LT_REGS, LC_REGS, LB_REGS.
	(REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
	'l' for LB_REGS.
	(REGNO_REG_CLASS): Deal with loop registers.
	* config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
	letters.
	(REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
	New constants for loop registers.
	(UNSPEC_LSETUP_END): New.
	(seq_insns): New define_attr. Set it for appropriate insns.
	(movsi_insn): Add alternatives for move from/to
	loop count registers.
	(doloop_end): New define_expand.
	(loop_end): New define_insn.
	(define_split for bad doloop_end): New.
	(lsetup_with_autoinit): New define_insn.
	(lsetup_without_autoinit): New define_insn.
	(rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
	* config/bfin/predicates.md (lc_register_operand): New.
	(lt_register_operand): New.
	(lb_register_operand): New.
	(nondp_register_operand): New.
	(nondp_reg_or_memory_operand): New.
        * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.

From-SVN: r114274
2006-05-31 16:46:15 +00:00
Daniel Jacobowitz 5dd59f65ca * texi2pod.pl: Correct handling of absolute @include.
From-SVN: r114271
2006-05-31 15:48:05 +00:00
Jie Zhang 54aefc3672 bfin.c (bfin_delegitimize_address): New.
* config/bfin/bfin.c (bfin_delegitimize_address): New.
	(TARGET_DELEGITIMIZE_ADDRESS): Define.

From-SVN: r114269
2006-05-31 15:42:22 +00:00
Daniel Jacobowitz 5c3c36836e gcc/, libcpp/
gcc/, libcpp/
	* Makefile.in (CATALOGS): Add po/ prefix.
	* configure: Regenerated.
config/
	* gettext-sister.m4 (ZW_GNU_GETTEXT_SISTER_DIR): Provide some
	defines otherwise gotten from AM_GNU_GETTEXT.  Remove the
	po/ prefix from CATALOGS.

From-SVN: r114268
2006-05-31 15:34:37 +00:00
Richard Earnshaw 4fe56d8325 re PR target/27829 (ICE/abort in shift_op, at config/arm/arm.c:7917 with asm from testsuite/gcc.dg/pr21255-2-mb.c)
PR target/27829
	* arm.c (arm_print_operand case 'S'): Validate that the operand is
	a shift operand before calling shift_op.  Avoid redundant call of
	shift_op.

From-SVN: r114265
2006-05-31 13:41:08 +00:00
Richard Earnshaw beed32b8fa arm.c (arm_print_operand case 'S'): Validate that the operand is a shift operand before calling shift_op.
* arm.c (arm_print_operand case 'S'): Validate that the operand is
	a shift operand before calling shift_op.  Avoid redundant call of
	shift_op.

From-SVN: r114264
2006-05-31 13:39:48 +00:00
Mark Mitchell c32827b0e6 re PR c++/26433 (Syntax error using __FUNCTION__ in catch handler)
PR c++/26433
	* g++.dg/template/fntry1.C: Add dg-do link.

From-SVN: r114263
2006-05-31 04:07:24 +00:00
Mark Mitchell c7baf9e9fb re PR c++/27808 (ICE with invalid friend declaration)
PR c++/27808
	* parser.c (cp_parser_decl_specifier_seq): Issue errors about
	"friend" specifiers that do not appear in class scopes.
	PR c++/27808
	* g++.dg/parse/friend6.C: New test.

From-SVN: r114259
2006-05-31 01:18:24 +00:00
GCC Administrator 7edd9592be Daily bump.
From-SVN: r114257
2006-05-31 00:17:18 +00:00
Alan Modra 71860b0f61 stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add interpreted classes.
* stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add
	interpreted classes.

From-SVN: r114253
2006-05-31 09:20:03 +09:30
Asher Langton 7074ea72d1 symbol.c (check_conflict): Allow external, function, and subroutine attributes with Cray pointees.
2006-05-30  Asher Langton  <langton2@llnl.gov>

	* symbol.c (check_conflict): Allow external, function, and
	subroutine attributes with Cray pointees.
	* trans-expr.c (gfc_conv_function_val): Translate Cray pointees
	that point to procedures.
	* gfortran.texi: Document new feature.

	* gfortran.dg/cray_pointers_7.f90: New test.

From-SVN: r114252
2006-05-30 23:27:38 +00:00
Naveen.H.S 9cb96754ae m32c.c (m32c_expand_insv): Check that the value we're inserting is a singlt-bit constant.
* config/m32c/m32c.c (m32c_expand_insv): Check that the value
we're inserting is a singlt-bit constant.

Co-Authored-By: DJ Delorie <dj@redhat.com>

From-SVN: r114250
2006-05-30 18:53:48 -04:00
Thomas Fitzsimmons 96a782e226 ChangeLog: Fix latest entry.
* ChangeLog: Fix latest entry.

From-SVN: r114249
2006-05-30 22:10:10 +00:00
Roger Sayle e40122f0fa simplify-rtx.c (simplify_binary_operation_1): Cast width to HOST_WIDE_INT to avoid comparison warnings on some targets.
* simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
	width to HOST_WIDE_INT to avoid comparison warnings on some targets.

From-SVN: r114248
2006-05-30 21:54:17 +00:00
Thomas Fitzsimmons 8c0633b7cd makemake.tcl (emit_bc_rule): Do not skip gnu-java-awt-peer-gtk.lo.
2006-05-30  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* scripts/makemake.tcl (emit_bc_rule): Do not skip
	gnu-java-awt-peer-gtk.lo.
	Include gnu/java/awt/peer/gtk Java objects in libgcj.so.  Use C++
	ABI for gnu/java/awt/peer/gtk package.
	* gnu/classpath/natSystemProperties.cc (PrependVersionedLibdir):
	New function.
	(insertSystemProperties): Only set java.ext.dirs if it is not
	already defined.  Prepend GCJ_VERSIONED_LIBDIR to module search
	path where necessary.
	* configure.ac (GTK_AWT): Remove automake conditional.
	* include/jvm.h (_Jv_PrependVersionedLibdir): New function
	declaration.
	* gij.cc (main): Prepend LD_LIBRARY_PATH with GCJ_VERSIONED_LIBDIR
	and re-exec self.
	* Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR,
	GIJ_EXECUTABLE and PATH_SEPARATOR macros.
	Remove lib-gnu-java-awt-peer-gtk.la and libgcjawt.la build logic.
	* prims.cc (_Jv_PrependVersionedLibdir): New function.

2006-05-30  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* native/jni/gtk-peer/Makefile.am (gcc_version): New variable.
	(gcjversionedlibdir): Likewise.
	(libgtkpeer_la_LDFLAGS): Likewise.
	Install libgtkpeer.so in GCJ versioned library directory.
	* native/jawt/Makefile.am (gcc_version): New variable.
	(gcjversionedlibdir): Likewise.
	(libjawt_la_LDFLAGS): Likewise.
	Rename libjawtgnu.so libjawt.so.  Install libjawt.so in GCJ
	versioned library directory.
	* gnu/java/awt/peer/gtk/GdkFontPeer.java (static): Call
	System.loadLibrary unconditionally.
	* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java: Likewise.
	* gnu/java/awt/peer/gtk/GdkGraphics2D.java: Likewise.
	* gnu/java/awt/peer/gtk/GdkGraphics.java: Likewise.
	* gnu/java/awt/peer/gtk/GtkToolkit.java: Likewise.
	* gnu/java/awt/peer/gtk/GdkTextLayout.java: Likewise.

From-SVN: r114247
2006-05-30 21:38:51 +00:00
Roger Sayle 99b25753bb re PR tree-optimization/23452 (Optimizing CONJG_EXPR (a) * a)
PR tree-optimization/23452
	* fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
	to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
	(fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
	complex values and with -ffast-math for FP complex values.

	* gcc.dg/fold-mulconj-1.c: New test case.

From-SVN: r114246
2006-05-30 21:34:04 +00:00
Mark Mitchell 606791f698 re PR c++/27803 (ICE with invalid bit-field)
PR c++/27803
	* class.c (check_bitfield_decl): Ensure that all bitfields have
	integral type.
	PR c++/27803
	* g++.dg/parse/bitfield1.C: New test.

From-SVN: r114245
2006-05-30 21:25:02 +00:00
Kazu Hirata c98662e020 c-common.h: Remove the prototype for yyparse.
* c-common.h: Remove the prototype for yyparse.
	* rtl.h: Remove the prototype for init_loop.

From-SVN: r114242
2006-05-30 18:34:32 +00:00
Andreas Krebbel 67e0a632e6 cse.c (validate_canon_reg, cse_insn): Don't change insns without calling recog.
2006-05-30  Andreas Krebbel  <krebbel1@de.ibm.com>

	* cse.c (validate_canon_reg, cse_insn): Don't change insns without
	calling recog.

From-SVN: r114241
2006-05-30 16:54:08 +00:00
Roger Sayle 70233f3788 simplify-rtx.c (simplify_binary_operation): Unfactor the shift and rotate cases.
* simplify-rtx.c (simplify_binary_operation): Unfactor the shift
	and rotate cases.
	<LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
	log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.

	* gcc.target/ppc-eq0-1.c: New test case.
	* gcc.target/ppc-negeq0-1.c: New test case.

From-SVN: r114239
2006-05-30 15:32:52 +00:00
Dirk Mueller d117b270e2 re PR c/27273 (tree check fail for legal code when convert returns a constant from an expression that was not constant)
PR c/27273
        * c-common.c (convert_and_check): only track TREE_CONSTANT_OVERFLOW
        for CONSTANT_CLASS_P expressions.

        * gcc.dg/overflow-warn-5.c: New testcase.

From-SVN: r114238
2006-05-30 13:43:55 +00:00
Volker Reichelt 16464cc1bb re PR c/27718 (ICE with sizeof of incomplete type)
PR c/27718
	* c-typeck.c (c_expr_sizeof_type): Handle invalid types.

	* gcc.dg/sizeof-1.c: New test.

From-SVN: r114234
2006-05-30 13:33:17 +00:00