Commit Graph

39617 Commits

Author SHA1 Message Date
Aldy Hernandez
24408032e7 rs6000.h (rs6000_builtins): Add vsldoi variants.
* config/rs6000/rs6000.h (rs6000_builtins): Add vsldoi variants.

        * config/rs6000/rs6000.md ("altivec_vsldoi_*"): Same.

        * config/rs6000/rs6000.c: Clean up some spacing and indentation.
        (altivec_init_builtins): Add tree types for builtins with 4 bit
        literals.
	(bdesc_3arg): Add vsldoi variants.

From-SVN: r48282
2001-12-23 06:58:48 +00:00
Kaveh R. Ghazi
f540a7d371 1750a.h (datalbl, jmplbl): Declare array size explicitly.
* 1750a.h (datalbl, jmplbl): Declare array size explicitly.
	* a29k.h (a29k_debug_reg_map): Likewise.
	* arc.h (arc_regno_reg_class): Likewise.
	* c4x-protos.h (c4x_regclass_map, c4x_caller_save_map): Likewise.
	* convex.h (regno_reg_class, reg_class_from_letter): Likewise.
	* d30v.h (regno_reg_class, reg_class_from_letter): Likewise.
	* i386.h (regclass_map): Likewise.
	* m32r.h (m32r_hard_regno_mode_ok, m32r_punct_chars): Likewise.
	* mcore.h (regno_reg_class): Likewise.
	* mips.h (mips_print_operand_punct, mips_char_to_class):
	Likewise.
	* ns32k.h (regclass_map): Likewise.
	* pj.h (pj_debugreg_renumber_vec): Likewise.
	* s390.h (regclass_map): Likewise.
	* sh.h (regno_reg_class): Likewise.
	* sparc.h (sparc_regno_reg_class): Likewise.

	* hard-reg-set.h (reg_class_contents): Likewise.
	* machmode.h (class_narrowest_mode): Likewise.

f:
	* bld.c (ffebld_arity_op_): Declare array size explicitly.
	* bld.h (ffebld_arity_op_): Likewise.

From-SVN: r48281
2001-12-23 04:59:13 +00:00
David Edelsohn
d5e0243aac loop.c (scan_loop, [...]): Do not overlook hard registers when computing statistics.
* loop.c (scan_loop, move_movables, count_one_set): Do not
        overlook hard registers when computing statistics.

From-SVN: r48280
2001-12-22 21:16:02 -05:00
Jan Hubicka
53d4257f7f calls.c (ECF_LIBCALL_BLOCK): New constant.
* calls.c (ECF_LIBCALL_BLOCK): New constant.
	(emit_call_1, initialize_argument_information,
	precompute_arguments, expand_call,
	emit_library_call_value_1): Use ECF_LIBCALL_BLOCK
	instead of ECF_PURE | ECF_CONST. Honnor LCT_CONST/LCT_PURE.

From-SVN: r48279
2001-12-23 00:10:43 +00:00
Richard Henderson
affb9cddc0 * configure.target (CPULIMITSH): Fix typo in alpha case.
From-SVN: r48278
2001-12-22 13:13:44 -08:00
Joseph Myers
ba1e6c0b05 config.gcc (extra_headers): Move settings to math-68881.h and ppc-asm.h to common code for CPU types.
* config.gcc (extra_headers): Move settings to math-68881.h and
	ppc-asm.h to common code for CPU types.  Use math-68881.h on all
	m68k targets.
	(header_files): Remove unused setting.

From-SVN: r48277
2001-12-22 21:07:33 +00:00
Kaveh R. Ghazi
e421052c88 elxsi.c: Include "hard-reg-set.h" and/or don't declare `call_used_regs' explicitly.
* elxsi.c: Include "hard-reg-set.h" and/or don't declare
	`call_used_regs' explicitly.
	* i860.c: Likewise.
	* m68k.c: Likewise.
	* ns32k.c: Likewise.
	* pa.c: Likewise.
	* vax.c: Likewise.
	* we32k.c: Likewise.

From-SVN: r48276
2001-12-22 20:55:04 +00:00
Jan Hubicka
91d2f4ba70 i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
* i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
	(TARGET_CPU_DEFAULT_*): Renumber.

From-SVN: r48273
2001-12-22 19:07:28 +00:00
John Wehle
33aceff285 rtl.h (subreg_lsb): Declare.
* rtl.h (subreg_lsb): Declare.
	* rtlanal.c (subreg_lsb): Implement.

From-SVN: r48272
2001-12-22 17:23:52 +00:00
Jeff Law
d599b3fc8a os_defines.h: Update to avoid #defines for strtoll and strtoull.
* config/os/hpux/bits/os_defines.h: Update to avoid #defines
        for strtoll and strtoull.

From-SVN: r48271
2001-12-22 09:51:55 -07:00
Richard Kenner
4891442b1f * cfg.c, cfganal.c, cfgbuild.c: Reformatting and minor cleanups.
From-SVN: r48270
2001-12-22 10:51:07 -05:00
Richard Kenner
bfdade77da * predict.c: Reformatting and minor cleanups.
From-SVN: r48269
2001-12-22 10:37:09 -05:00
Richard Kenner
6c7d86ec5e expr.c (expand_expr, [...]): Handling taking address of SAVE_EXPR.
* expr.c (expand_expr, case ADDR_EXPR): Handling taking address of
	SAVE_EXPR.
	* function.c (gen_mem_addressof): Add missing tests for SAVE_EXPR.
	(put_addressof_into_stack): Clarify code in setting of used_p.

From-SVN: r48268
2001-12-22 10:06:55 -05:00
Richard Kenner
b5cd4ed4c3 calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
* calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
	(expand_call): Delete from here.
	Do pending stack adjustments if ECF_SP_DEPRESSED.

From-SVN: r48267
2001-12-22 09:46:58 -05:00
Richard Kenner
c470afad3c dwarf2out.c (save_rtx): Deleted.
* dwarf2out.c (save_rtx): Deleted.
	(mem_loc_descriptor): Do equivalent operation.
	(add_const_value_attribute, case CONST): Likewise.
	(add_name_and_src_coords_attributes): Likewise.

From-SVN: r48266
2001-12-22 09:31:27 -05:00
Florian Weimer
7a73ad55d8 make.adb (Add_Switch): Make Generic_Position a procedure.
* make.adb (Add_Switch): Make Generic_Position a procedure.  The
	function approach did not work well because of a side effect (the
	function call could reallocate the table which was being indexed
	using its result). Fixes ada/4851.

From-SVN: r48265
2001-12-22 12:58:51 +01:00
GCC Administrator
5637a0ebb9 Daily bump.
From-SVN: r48263
2001-12-22 08:16:10 +00:00
Kazu Hirata
faa4568c14 * config/h8300/h8300.h: Fix comment formatting.
From-SVN: r48262
2001-12-22 02:41:38 +00:00
Richard Henderson
9a07cfaf9f boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..
* boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..
        (get_boehm_type_descriptor): ... here.  Arrange for the
        TREE_TYPE to get set properly.

From-SVN: r48261
2001-12-21 16:52:30 -08:00
Jeff Law
4585ae3de2 os_defines.h: Include <sys/_inttypes.h.
* config/os/hpux/bits/os_defines.h: Include <sys/_inttypes.h.
        Define strtoll and strtoull.  Provide prototypes for
        __strtoll and __strtoull.  Define _GLIBCPP_USE_LONG_LONG
        unconditionally.

From-SVN: r48260
2001-12-21 17:42:46 -07:00
Jeff Law
415f500c76 * src/locale-inst.cc: Include <bits/std_cstdlib.h>
From-SVN: r48259
2001-12-21 17:39:43 -07:00
Jeff Law
75da3b53f8 * configure.target: Fix typo in hpux case.
From-SVN: r48258
2001-12-21 17:32:47 -07:00
Jeff Law
67c49dc70f pa.h (CPP_SPEC): If not in ANSI mode, define _INCLUDE_LONGLONG.
* pa.h (CPP_SPEC): If not in ANSI mode, define _INCLUDE_LONGLONG.
        (CPLUSPLUS_CPP_SPEC): Define _INCLUDE_LONGLONG.

From-SVN: r48257
2001-12-21 17:28:16 -07:00
Tom Tromey
e3109d4c17 ObjectInputStream.java (enableResolveObject): Use correct security check.
* java/io/ObjectInputStream.java (enableResolveObject): Use
	correct security check.
	* java/io/ObjectOutputStream.java (enableReplaceObject): Use
	correct security check.

From-SVN: r48256
2001-12-21 22:51:41 +00:00
Tom Tromey
d47eb5d3f2 re PR java/5165 (Loading class fields with a ConstantValue attribute)
Fix for PR java/5165:
	* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
	Convert any constant string field to a String; not just final
	fields.

From-SVN: r48255
2001-12-21 21:59:27 +00:00
Robert Lipe
655781b7af * system.h (PREFETCH): Explictly undefine.
From-SVN: r48254
2001-12-21 20:54:21 +00:00
Tom Tromey
83d9978859 re PR libgcj/2428 (Classloader is not set)
Fix for PR libgcj/2428:
	* java/lang/natClass.cc: Include RuntimePermission.h.
	(getClassLoader): Define.
	* java/lang/Class.h (Class.getClassLoader): Only declare.

From-SVN: r48253
2001-12-21 19:47:50 +00:00
Richard Henderson
ef96952567 class.c (compile_resource_file): Set TREE_PUBLIC on the constructor only if the target requires collect2.
* class.c (compile_resource_file): Set TREE_PUBLIC on the constructor
        only if the target requires collect2.

From-SVN: r48252
2001-12-21 11:44:06 -08:00
Richard Henderson
f44fefca1a * class.c (build_class_ref): Mark _Jv_fooClass DECL_EXTERNAL.
From-SVN: r48251
2001-12-21 11:26:08 -08:00
Tom Tromey
e97b32d909 reverted erroneous checking -- sorry about that
From-SVN: r48250
2001-12-21 19:18:52 +00:00
Tom Tromey
82712f8b74 For PR java/4509:
* parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute
	CAN_COMPLETE_NORMALLY for the node.
	* jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't
	generate code for second branch if first branch can't complete
	normally.
	(generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to
	the loop head if the loop body can't complete normally.

From-SVN: r48249
2001-12-21 19:15:36 +00:00
Richard Henderson
0ba28a6d48 wtr-aggr-init-1.c: Test that __extension__ disables then re-enables the warning.
* gcc.dg/wtr-aggr-init-1.c: Test that __extension__ disables then
        re-enables the warning.

From-SVN: r48248
2001-12-21 11:14:46 -08:00
Richard Henderson
5137bd4f86 c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
* c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
        (RESTORE_WARN_FLAGS): Restore it.
        (extension): Zero warn_traditional.

From-SVN: r48247
2001-12-21 10:31:11 -08:00
Richard Henderson
3c0a049e58 * g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo.
From-SVN: r48246
2001-12-21 10:03:25 -08:00
Kazu Hirata
c6dcc80eb3 * doc/passes.texi: Fix a typo.
From-SVN: r48245
2001-12-21 16:19:14 +00:00
Kazu Hirata
151ad5cd3b * config/h8300/h8300.h: Fix a comment typo.
From-SVN: r48244
2001-12-21 16:15:38 +00:00
Paolo Carlini
05b8581146 stl_rope.h (_Rope_iterator): Add local typedef to fix implicit typename problems.
2001-12-21  Paolo Carlini  <pcarlini@unitus.it>

	* include/ext/stl_rope.h (_Rope_iterator):
	Add local typedef to fix implicit typename problems.

From-SVN: r48242
2001-12-21 13:08:35 +00:00
Nick Clifton
ea1c1719bf Add missing URL for message that prompted this new test
From-SVN: r48241
2001-12-21 11:46:01 +00:00
Jakub Jelinek
87b7873d9b * gcc.c-torture/compile/20011218-1.c: New test.
From-SVN: r48240
2001-12-21 12:30:47 +01:00
Jakub Jelinek
7958f3c750 combine.c (nonzero_bits): If using reg_nonzero_bits, we don't know anything about bits outside of X mode.
* combine.c (nonzero_bits): If using reg_nonzero_bits,
	we don't know anything about bits outside of X mode.
	(num_sign_bit_copies): Likewise.

From-SVN: r48239
2001-12-21 12:07:59 +01:00
Turly O'Connor
b7fb9feb71 darwin.c (machopic_classify_ident): Handle "stale" section- encoded name problem to avoid generating illegal stubs.
* darwin.c (machopic_classify_ident): Handle "stale" section-
	encoded name problem to avoid generating illegal stubs.
	(func_name_maybe_scoped): Remove, not needed for gcc3.
	(machopic_indirect_call_target): Don't use it.
	(darwin_encode_section_info): Call only one of update_stubs()
	or update_non_lazy_ptrs() as DECL cannot be both.
	(machopic_output_possible_stub_label): New.
	* darwin.h (ASM_DECLARE_FUNCTION_NAME): Use it.
	* darwin-protos.h (machopic_output_possible_stub_label): Declare.

From-SVN: r48238
2001-12-21 10:44:50 +00:00
Nick Clifton
a00b07c5e5 Use 'a' operand code for prefetch instruction.
From-SVN: r48237
2001-12-21 09:31:37 +00:00
Nick Clifton
ff7230ac61 oops - accidentally omitted from previous delta
From-SVN: r48236
2001-12-21 08:46:23 +00:00
GCC Administrator
baf158869c Daily bump.
From-SVN: r48234
2001-12-21 08:16:13 +00:00
Tom Tromey
84a944b3ca For PR java/4509:
* parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute
	CAN_COMPLETE_NORMALLY for the node.
	* jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't
	generate code for second branch if first branch can't complete
	normally.
	(generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to
	the loop head if the loop body can't complete normally.

From-SVN: r48233
2001-12-21 05:28:27 +00:00
Tom Tromey
2d93b92445 For PR java/4766:
* jcf-write.c (generate_bytecode_insns) [TRY_FINALLY_EXPR]: Handle
	case where `finally' clause can't complete normally.

From-SVN: r48232
2001-12-21 05:13:43 +00:00
Tom Tromey
f2af50dbcf re PR java/5057 (gcj -C erroneously omits <clinit>)
Fixes PR java/5057:
	* parse.y (analyze_clinit_body): Added this_class parameter.
	Check for more cases where we must keep <clinit>.
	(maybe_yank_clinit): Cleaned up flow control.

From-SVN: r48231
2001-12-21 04:37:24 +00:00
Kaveh R. Ghazi
7be3337037 aclocal.m4 (gcc_AC_PROG_GNAT): Run prospective ada drivers in subshells.
* aclocal.m4 (gcc_AC_PROG_GNAT): Run prospective ada drivers in
	subshells.
	* configure.in: Likewise for perl Pod::Man.

	* configure: Regenerated.

From-SVN: r48230
2001-12-21 02:46:09 +00:00
Kaveh R. Ghazi
b4c984fbec builtin-attrs.def (__builtin_printf_unlocked, [...]): Mark with the __printf__ attribute.
* builtin-attrs.def (__builtin_printf_unlocked,
	__builtin_fprintf_unlocked, printf_unlocked, fprintf_unlocked):
	Mark with the __printf__ attribute.

	* builtins.c (expand_builtin_fputs): Add an `unlocked' parameter
	and set the replacement function depending on it.
	(expand_builtin): Skip BUILT_IN_*_UNLOCKED when not optimizing.
	Handle BUILT_IN_*_UNLOCKED when optimizing.

	* builtins.def (DEF_EXT_FALLBACK_BUILTIN,
	DEF_EXT_FRONT_END_LIB_BUILTIN): New macros.
	Declare the "unlocked" stdio functions.

	* c-common.c (c_expand_builtin_printf, c_expand_builtin_fprintf):
	Add an `unlocked' parameter and set the replacement function
	depending on it.
	(c_expand_builtin): Handle BUILT_IN_PRINTF_UNLOCKED and
	BUILT_IN_FPRINTF_UNLOCKED.

	* doc/extend.texi (printf_unlocked, fprintf_unlocked,
	fputs_unlocked): Document.

testsuite:
	* gcc.dg/format/builtin-1.c: Test unlocked stdio.
	* gcc.dg/format/c90-printf-3.c: Likewise.
	* gcc.dg/format/c99-printf-3.c: Likewise.
	* gcc.dg/format/ext-1.c: Likewise.
	* gcc.dg/format/ext-6.c: Likewise.
	* gcc.dg/format/format.h: Prototype unlocked stdio.

From-SVN: r48229
2001-12-21 02:36:37 +00:00
Richard Henderson
bfa8af3e37 New test.
From-SVN: r48228
2001-12-20 18:07:09 -08:00