Commit Graph

62037 Commits

Author SHA1 Message Date
Ulrich Weigand
6cbaec9e89 builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to reflect size of memory regions being compared.
* builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
	reflect size of memory regions being compared.

From-SVN: r88142
2004-09-26 19:15:00 +00:00
Ulrich Weigand
931e6c29a7 builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR expressions.
* builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
	expressions.  Always clear MEM_SIZE and alias set.

From-SVN: r88141
2004-09-26 19:13:38 +00:00
Mark Wielaard
3bd2680ed5 System.java (properties): Make package private.
2004-09-26  Mark Wielaard  <mark@klomp.org>

       * java/lang/System.java (properties): Make package private.
       * java/lang/Throwable.java (StaticData.nl): Initialize through
       directly accessing System.properties.getProperty().

       * java/lang/Throwable.java (nl): Remove static field.
       (StaticData): New private static inner class.
       (stackTraceStringBuffer): Use StaticData.nl.

From-SVN: r88133
2004-09-26 17:11:14 +00:00
Tobias Schlüter
54df0e3ead re PR fortran/15164 (trans-decl.c:411: gfc_finish_var_decl: Assertion failed)
PR fortran/15164
* gfortran.dg/pr15164.f90: New test. Fixed in followup commit.

From-SVN: r88132
2004-09-26 17:44:19 +02:00
Tobias Schlüter
fafdb00c15 re PR fortran/15164 (trans-decl.c:411: gfc_finish_var_decl: Assertion failed)
PR fortran/15164
* gfortran.dg/pr15164.f90: New test.

From-SVN: r88131
2004-09-26 17:24:57 +02:00
Roger Sayle
897f610ba4 re PR middle-end/17112 (Copying of packed bitfields is wrong)
PR middle-end/17112
	* stor-layout.c (compute_record_mode): For records with a single
	field, only use the field's mode if its size matches what we'd
	have choosen for the record ourselves.  This forces the use of
	BLKmode for packed records that don't completely fill a mode.

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

Co-Authored-By: Giovanni Bajo <giovannibajo@gcc.gnu.org>

From-SVN: r88130
2004-09-26 14:58:34 +00:00
Roger Sayle
5c8c573a86 re PR rtl-optimization/17151 (x >> (y % WORDSIZE) not optimized)
PR middle-end/17151
	* combine.c (force_to_mode): Remove dubious early return test that
	inhibits further optimization.

From-SVN: r88129
2004-09-26 14:55:37 +00:00
Tobias Schlüter
bf4d99cf13 re PR libfortran/16137 (Fortran compiler unable to produce executables as libfortran depends on C99 math functions)
PR libfortran/16137
* config.h.in (HAVE_POWF): Undefine.
* configure.ac: Check for 'powf' in library.
* configure: Regenerate.
* intrinsics/c99_functions.c (powf): New function.

From-SVN: r88128
2004-09-26 16:52:04 +02:00
Casey Marshall
59c86e4b88 2004-09-26 Casey Marshall <csm@gnu.org>
* java/security/ProtectionDomain.java
       (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
       `true'.

       * java/security/SecureClassLoader.java
       (defineClass): make protection domain dynamically bound.
       (getPermissions): call `getCurrentPolicy' to avoid permission
       check.

From-SVN: r88127
2004-09-26 14:47:41 +00:00
Tobias Schlüter
68629d160e * trans-intrinsic.c: Comment fixes.
From-SVN: r88126
2004-09-26 16:24:07 +02:00
Kazu Hirata
628f3b6363 * profile.c: Fix a comment typo.
From-SVN: r88125
2004-09-26 11:47:53 +00:00
Zdenek Dvorak
be35cf60c4 re PR tree-optimization/17591 (Ada bootstrap SEGV in stage2 on osint.adb, no SEGV when -fno-ivopts)
PR bootstrap/17591
	* tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
	with varying offset.
	* tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
	(idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
	ARRAY_REFS.
	(expr_invariant_in_loop_p): New function.
	(idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
	component_ref_field_offset for COMPONENT_REFs.  Do not allow
	ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
	(add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
	MISALIGNED_INDIRECT_REFs.
	(idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
	(rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
	MISALIGNED_INDIRECT_REFs.

From-SVN: r88123
2004-09-26 08:32:40 +00:00
Joseph Myers
34096b92f4 re PR c/11459 (-ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode)
PR c/11459
	* gcc.c (cpp_options, cc1_options): Preserve relative order of
	-std and -ansi options.

testsuite:
	* gcc.dg/pr11459-1.c: New test.

From-SVN: r88121
2004-09-26 01:59:45 +01:00
GCC Administrator
e6f433fc08 Daily bump.
From-SVN: r88119
2004-09-26 00:16:13 +00:00
Jan Hubicka
1168d30f48 dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die for nested functions whose proper parent has not...
* dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
	for nested functions whose proper parent has not been output.

From-SVN: r88116
2004-09-25 23:32:32 +00:00
Jan Hubicka
5db0241f0c profile.c (compute_branch_probabilities): Use REG_BR_PROB notes when re-constructing profile previously invalidated by loop.
* profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
	when re-constructing profile previously invalidated by loop.

From-SVN: r88115
2004-09-25 23:21:07 +00:00
Mark Wielaard
ffe2e220bd [multiple changes]
2004-09-25  Mark Wielaard  <mark@klomp.org>

        * Makefile.am (core_java_source_files): Add VMTimeZone.java.
        (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
        * Makefile.in: Regenerated.

        * gcj/javaprims.h: Regenerated.

        * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
        (getDefaultTimeZone): Make package private. Check that GMToffset
        contains at least one digit.
        (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
        VMTimeZone.
        * util/VMTimeZone.java: New file with above methods.

        * java/util/natTimeZone.cc: Removed (renamed).
        * java/util/natVMTimeZone.cc: Added (renamed).

2004-09-25  Jeroen Frijters  <jeroen@frijters.net>

        * java/util/TimeZone.java
        (getDefaultTimeZone): Fixed test to distinguish between hours and
        minutes in specified timezone.

From-SVN: r88112
2004-09-25 22:21:51 +00:00
Dale Johannesen
bfe0d06bba tree-gimple.c: Move GIMPLE definition...
2004-09-25  Dale Johannesen  <dalej@apple.com>

        * tree-gimple.c:  Move GIMPLE definition...
        * doc/tree-ssa.texi:  here.

From-SVN: r88111
2004-09-25 22:11:02 +00:00
Ulrich Weigand
45343b92cc loop-2.c: Avoid matching new-line in regexp.
* gcc.dg/tree-ssa/loop-2.c: Avoid matching new-line in regexp.
	* gcc.dg/tree-ssa/loop-4.c: Likewise.

From-SVN: r88110
2004-09-25 20:53:44 +00:00
Jeroen Frijters
9b2b6c0f33 Proxy.java (getPackage, [...]): Fixed handling of default package.
2004-09-25  Jeroen Frijters  <jeroen@frijters.net>

       * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
       handling of default package. (generate): Removed confused comments
       and code about making Method and Field accessible.

From-SVN: r88109
2004-09-25 19:46:21 +00:00
Tom Tromey
c1f042f8b2 re PR java/17500 (Anonymous inner class compile freakout)
PR java/17500:
	* parse.y (create_artificial_method): Use add_method_1.

From-SVN: r88108
2004-09-25 19:11:07 +00:00
Tom Tromey
4b2582f055 re PR java/17500 (Anonymous inner class compile freakout)
PR java/17500:
	* testsuite/libjava.compile/pr17500.java: New file.

From-SVN: r88107
2004-09-25 19:08:27 +00:00
Shashank Bapat
27a92d683b RE.java (initialize): Add RETokenLookAhead support.
2004-09-25  Shashank Bapat  <shashankbapat@yahoo.com>
            Mark Wielaard  <mark@klomp.org>

       * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
       * gnu/regexp/RETokenLookAhead.java: New file.

       * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
       * Makefile.in: Regenerated.

Co-Authored-By: Mark Wielaard <mark@klomp.org>

From-SVN: r88106
2004-09-25 19:04:34 +00:00
Tobias Schlüter
75d17889df * decl.c (add_init_expr_to_sym, variable_decl): Comment fixes.
From-SVN: r88104
2004-09-25 17:50:00 +02:00
Kazu Hirata
601d18c616 * tree-vectorizer.c: Fix a comment typo.
From-SVN: r88103
2004-09-25 14:48:03 +00:00
Kazu Hirata
ea4b78487c c-typeck.c, [...]: Fix comment formatting.
* c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
	gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
	lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
	tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.

From-SVN: r88102
2004-09-25 14:36:40 +00:00
Kazu Hirata
e75220c8ce * tree-ssa-loop-unswitch.c: Fix a comment typo.
From-SVN: r88101
2004-09-25 14:19:02 +00:00
Kazu Hirata
87880c1262 * doc/passes.texi: Fix a typo.
From-SVN: r88100
2004-09-25 14:04:07 +00:00
Kazu Hirata
4dd4c7512e expr.c, [...]: Fix comment typos.
* expr.c, jcf-dump.c, parse-scan.y, parse.y: Fix
	comment typos.
	* gcj.texi: Fix typos.

From-SVN: r88099
2004-09-25 13:49:22 +00:00
Zdenek Dvorak
f3cd574f6b tree-optimize.c (init_tree_optimization_passes): Add pass_record_bounds.
* tree-optimize.c (init_tree_optimization_passes): Add
	pass_record_bounds.
	* tree-pass.h (pass_record_bounds): Declare.
	* tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
	New pass.

From-SVN: r88097
2004-09-25 12:53:26 +00:00
Tobias Schlüter
2c85539856 * gfortran.dg/pr15324.f90: Make array bounds consistent.
From-SVN: r88096
2004-09-25 14:50:02 +02:00
Zdenek Dvorak
f34fa464bb re PR tree-optimization/17474 (Compiling at -01 yields different results)
PR tree-optimization/17474
	* tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
	offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.

From-SVN: r88095
2004-09-25 11:06:43 +00:00
Jan Hubicka
17b2e29d70 30040909-1.c: New test.
* compile/30040909-1.c: New test.
	* compile/30040907-1.c: New test.

From-SVN: r88094
2004-09-25 10:54:16 +00:00
Jan Hubicka
bbd236a198 predict.c (counts_to_freqs): Make glolbal.
* predict.c (counts_to_freqs): Make glolbal.
	* predict.h (counts_to_freqa): Declare.
	* profile.c (compute_branch_probabilities): Compute frequencies
	* tree-profile.c (do_tree_profiling): Refine conditional on when
	tree profiling pass is needed.

From-SVN: r88093
2004-09-25 10:06:18 +00:00
Jan Hubicka
70f3cc30aa passes.c (rest_of_handle_cfg): Disable const/pure function detection when doing tree based profiling.
* passes.c (rest_of_handle_cfg): Disable const/pure function
	detection when doing tree based profiling.

	* tree-inline.c (expand_call_inline): Fix incorrectly reversed
	conditional.

From-SVN: r88092
2004-09-25 10:05:09 +00:00
Michael Koch
20319d321a ObjectStreamField.java: Removed unused import statement.
2004-09-25  Michael Koch  <konqueror@gmx.de>

	* java/io/ObjectStreamField.java:
	Removed unused import statement.

From-SVN: r88091
2004-09-25 09:47:45 +00:00
Richard Sandiford
b11a9d5f3f mips.h (struct mips_args): Clarify comments.
* config/mips/mips.h (struct mips_args): Clarify comments.
	* config/mips/mips.c (struct mips_arg_info): Likewise.
	(mips_arg_info): Don't allow fpr_p to affect the register or
	stack alignment.  Remove o64 silliness.
	(function_arg): Deal with the o32 float,float case specially.

From-SVN: r88090
2004-09-25 07:42:43 +00:00
Richard Sandiford
03eccdc8ff * config/mips/mips.md (loadx, storex): Define for V2SF.
From-SVN: r88089
2004-09-25 06:35:21 +00:00
Ulrich Weigand
ef44a6ff23 s390-protos.h (s390_back_chain_rtx): Add prototype.
* config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
	* config/s390/s390.c (s390_back_chain_rtx): New function.
	* config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
	Call anti_adjust_stack.
	("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
	only if compiling with back chain.
	("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
	back chain only if back chain enabled.  Use s390_back_chain_rtx.

From-SVN: r88087
2004-09-25 00:16:56 +00:00
GCC Administrator
f921af3008 Daily bump.
From-SVN: r88085
2004-09-25 00:16:20 +00:00
Joseph Myers
60ae6360d7 trouble.texi: Remove obsolete information.
* doc/trouble.texi: Remove obsolete information.  Update
	information on how to regenerate fixincluded headers.

From-SVN: r88082
2004-09-25 01:03:17 +01:00
Joseph Myers
b99cfc2273 re PR c/12951 (-Wno-error-implicit-function-declaration not recognized)
PR c/12951
	* doc/invoke.texi: Document that
	-Wno-error-implicit-function-declaration is not accepted.

From-SVN: r88080
2004-09-25 00:18:01 +01:00
Ziemowit Laski
14214f0951 objc-act.c (init_objc_symtab, [...]): When initializing 'long' fields, ensure that the initializer value is also 'long'.
[gcc/objc/ChangeLog]
2004-09-24  Ziemowit Laski  <zlaski@apple.com>

	* objc-act.c (init_objc_symtab, init_module_descriptor,
	build_shared_structure_initializer): When initializing 'long'
	fields, ensure that the initializer value is also 'long'.

From-SVN: r88079
2004-09-24 23:15:33 +00:00
Richard Henderson
e2ea71eaa0 alpha.h (UNITS_PER_SIMD_WORD): New.
* config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
        * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
        on TARGET_MAX.
        (alpha_expand_mov): Allow unaligned vectors.
        (alpha_expand_unaligned_store): Use CONST0_RTX.
        (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.

From-SVN: r88078
2004-09-24 15:57:08 -07:00
Jeff Law
b8545fbfe5 tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict aliasing rules.
* tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
	aliasing rules.
	(simplify_cond_and_lookup_avail_expr): Likewise.

From-SVN: r88077
2004-09-24 16:31:13 -06:00
Zack Weinberg
018a478506 warnings.m4: New file.
config:
	* warnings.m4: New file.
libcpp:
	* configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
	programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
	ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
	* aclocal.m4, configure: Regenerate.
	* init.c: Include localedir.h.
	* Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
	(DEFS): Delete.
	(.c.o): Use $(ALL_CFLAGS).
	(localedir.h, localedir.hs): New rules.
	(clean): Use rm -rf to remove directories.
	(distclean): Also delete localedir.h and localedir.hs.
	(init.o): Update dependencies.

From-SVN: r88074
2004-09-24 21:39:06 +00:00
Zack Weinberg
dd3017e4e5 objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION throughout.
objc:
	* objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION
	throughout.
	(objc_init): Only set input_line to 0 #ifndef USE_MAPPED_LOCATION.
	(build_selector_translation_table): Use %J in diagnostic
	instead of diddling input_line.  Fix spelling.
testsuite:
	* objc.dg/proto-lossage-4.m: Use long instead of int to avoid
	extra diagnostics on targets with 64-bit pointers.
	* objc.dg/selector-1.m: Adjust dg-warning regexp.

From-SVN: r88072
2004-09-24 21:38:08 +00:00
Joseph Myers
2fbebc713b re PR c/12802 (-fms-extensions documentation problem)
PR c/12802
	* doc/extend.texi (Unnamed Fields): Remove "." from end of long
	title.  Document interaction with -fms-extensions.
	* doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
	section.

From-SVN: r88071
2004-09-24 21:29:55 +01:00
Joseph Myers
2e9522f436 re PR c/12713 (Document interaction of attribute noreturn and longjmp)
PR c/12713
	* doc/extend.texi: Document interaction of attribute noreturn and
	longjmp.

From-SVN: r88070
2004-09-24 21:27:25 +01:00
Richard Henderson
41bf2a8b17 re PR middle-end/17503 (quadratic behaviour in invalid_mode_change_p)
PR rtl-opt/17503
        * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
        (som_hash, som_eq): New.
        (init_subregs_of_mode, record_subregs_of_mode): New.
        (cannot_change_mode_set_regs): Rewrite for htab implementation.
        (invalid_mode_change_p): Likewise.
        * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
        * flow.c (mark_used_regs): Likewise.
        (life_analysis): Use init_subregs_of_mode.
        * regs.h (subregs_of_mode): Remove.
        * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.

From-SVN: r88067
2004-09-24 12:47:05 -07:00