Commit Graph

22109 Commits

Author SHA1 Message Date
Craig Burley
5b916f262a fix typo in comment
From-SVN: r26551
1999-04-19 14:16:33 -04:00
Alexandre Petit-Bianco
e8fc739639 lang.c (lang_decode_option): Fixed returned value when parsing -fxref=...' and -Wall'.
Mon Apr 19 14:44:48 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* lang.c (lang_decode_option): Fixed returned value when parsing
 	`-fxref=...' and `-Wall'.
	* parse.y (source_end_java_method): Do not generate code when
 	flag_emit_xref is set.
	(resolve_expression_name): Do not build static field access when
 	flag_emit_xref is set.
	(resolve_field_access): No special treatement on `length' when
 	flag_emit_xref is set. Do not build qualified static field access
 	when flag_emit_xref is set.
	(patch_invoke): Keep the method DECL as operand 0 of the CALL_EXPR
 	when flag_emit_xref is set.
	(patch_assignment): Do not generate array store runtime check when
 	flag_emit_xref is set.
	* xref.c (xref_flag_value): Fixed function declaration
 	indentation.
	(xset_set_data): New function.
	* xref.h (xref_set_data): Added prototype for new function.
	(typedef struct xref_flag_table): New field data.
	(XREF_GET_DATA): New macro.

From-SVN: r26550
1999-04-19 08:45:57 -07:00
Zack Weinberg
3b6e11237c Back out accidental commit of unrelated patch
From-SVN: r26549
1999-04-19 15:23:57 +00:00
Mark Mitchell
fa8d6e85a7 cp-tree.h (finish_static_data_member_decl): New function.
* cp-tree.h (finish_static_data_member_decl): New function.
	* decl2.c (finish_static_data_member_decl): Split out from ...
	(grokfield): Here.
	* pt.c (instantiate_class_template): Use it here instead of
	trying to fake it.
	(tsubst_decl): Don't set DECL_ASSEMBLER_NAME;
	finish_static_data_member_decl will do that.  Explicit set
	DECL_EXTERNAL to match non-template processing.

From-SVN: r26548
1999-04-19 12:23:55 +00:00
Zack Weinberg
80e9dcb4b2 cpplib.c (output_line_command): Drop CONDITIONAL argument.
1999-04-19 14:51 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
	* cpplib.c (output_line_command): Drop CONDITIONAL argument.
	We can omit unnecessary line commands if file_change ==
	same_file and pfile->lineno != 0.  All callers changed.
	(cpp_get_token [case '\n']): Don't bump pfile->lineno if
	CPP_OPTIONS (pfile)->no_line_commands is set.
	* cpplib.h: Fix prototype of output_line_command.

From-SVN: r26547
1999-04-19 11:55:04 +00:00
Tom Tromey
a3f406ce4c xref.h (enum): Removed trailing comma.
* xref.h (enum): Removed trailing comma.
	* parse.y (resolve_qualified_expression_name): Added missing
	`break'.

From-SVN: r26546
1999-04-19 10:20:27 +00:00
Tom Tromey
3d79e10b31 natSystem.cc (init_properties): Only declare pwd_entry once.
* java/lang/natSystem.cc (init_properties): Only declare pwd_entry
	once.  From Anthony Green.

From-SVN: r26545
1999-04-19 09:43:18 +00:00
Andrew Haley
80e93e9adf Makefile.in: Processed with new automake.
1999-04-19  Andrew Haley  <aph@cygnus.com>
        * Makefile.in: Processed with new automake.

From-SVN: r26544
1999-04-19 07:57:04 +00:00
Tom Tromey
0cf347a3a7 * include/javaprims.h: Removed security namespace.
From-SVN: r26543
1999-04-19 07:48:02 +00:00
Jeff Law
b3c1c08777 Daily bump.
From-SVN: r26542
1999-04-18 18:45:02 -06:00
Anthony Green
08a0a89b86 * java/io/PrintStream.java (println): Remove extra println.
From-SVN: r26541
1999-04-18 22:22:44 +00:00
Craig Burley
d50108c733 fix crashes on I/O statements involving COMMON variables
From-SVN: r26540
1999-04-18 14:58:04 -04:00
Zack Weinberg
6b84a1ba30 cppfiles.c (find_position, [...]): Use `unsigned long' variables consistently to count line and column numbers.
1999-04-18 17:46 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
	* cppfiles.c (find_position, read_and_prescan): Use `unsigned
	long' variables consistently to count line and column numbers.

From-SVN: r26539
1999-04-18 14:54:35 +00:00
John Wehle
54ff41b717 output.h (current_function_is_leaf, [...]): Declare.
* output.h (current_function_is_leaf,
	current_function_uses_only_leaf_regs): Declare.
	* function.c (current_function_is_leaf,
	current_function_uses_only_leaf_regs): Define.
	(init_function_start): Initialize current_function_is_leaf
	and current_function_uses_only_leaf_regs.
	* final.c (leaf_function): Don't define.
	(final_start_function): Replace uses of leaf_function with
	current_function_uses_only_leaf_regs.
	* toplev.c (rest_of_compilation): Set current_function_is_leaf
	prior to invoking local register allocation.
	(rest_of_compilation): Replace uses of leaf_function with
	current_function_uses_only_leaf_regs.
	* dbxout.c (dbxout_symbol, dbxout_parms): Likewise.
	* dwarf2out.c (add_location_or_const_vaule_attribute): Likewise.
	* dwarfout.c (add_location_or_const_value_attribute): Likewise.
	* sdbout.c (sdbout_symbol): Likewise.
	* sparc.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise.
	* sparc.c (eligible_for_epilogue_delay, output_return,
	sparc_return_peephole_ok): Likewise.
	* sparc.md (leaf_function attribute, untyped_return): Likewise.
	* i386.c (ix86_compute_frame_size): Don't align the stack
	for leaf functions which don't allocate any stack slots.
	* tm.texi: Update documentation.

From-SVN: r26538
1999-04-18 13:09:37 +00:00
Mark Mitchell
fbdd002411 cp-tree.h (finish_class_definition): Add parameter.
* cp-tree.h (finish_class_definition): Add parameter.
	* parse.y (structsp): Use it.  Don't call pop_scope here.
	* parse.c: Regenerated.
	* semantics.c (finish_class_definition): Pop it here.

From-SVN: r26537
1999-04-18 10:58:42 +00:00
Anthony Green
fac6189871 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Add new security files.
	* java/security/NoSuchAlgorithmException.java,
	java/security/MessageDigest.java: New files.
	* include/javaprims.h: Add security namespace.

From-SVN: r26536
1999-04-18 08:24:30 +00:00
Jeffrey A Law
a3f2e0fcd3 Bump for snapshot
From-SVN: r26534
1999-04-17 20:15:18 -06:00
Richard Henderson
bda9708788 Misapplied patch.
From-SVN: r26533
1999-04-17 18:35:07 -07:00
Jeff Law
124d2b7279 Daily bump.
From-SVN: r26532
1999-04-17 18:45:05 -06:00
Richard Henderson
6fab83fdbf alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Correct last change -- make sure FP_BASE_P registers are only used with an integer.
* alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Correct last change --
        make sure FP_BASE_P registers are only used with an integer.

From-SVN: r26531
1999-04-17 17:10:06 -07:00
Richard Henderson
5d02b6c261 alpha.h (REG_OK_FP_BASE_P): New macro.
* alpha.h (REG_OK_FP_BASE_P): New macro.
        (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Use it.
        * alpha.md (adddi3+1): New insn to handle large constants off
        the soft frame pointer.
        (adddi3+2): Don't split soft frame pointer or arg pointer additions.

From-SVN: r26530
1999-04-17 16:31:34 -07:00
Michael Hayes
87ba694401 c4x.c (legitimize_operands): Use rtx_cost to determine if it is worthwhile forcing a constant into a register.
* config/c4x/c4x.c (legitimize_operands): Use rtx_cost
	to determine if it is worthwhile forcing a constant into a register.
	* config/c4x/c4x.h (CONST_COSTS): An integer value of 255 or 65535
	used with a logical and or an integer value of 16 or 24 used with
	a right shift has zero cost on the C40.

From-SVN: r26529
1999-04-17 22:27:41 +00:00
Bernd Schmidt
695ab36a1f Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
        * gcse.c (compute_local_properties): If setp is nonzero, clear
        TRANSP instead of setting it to all ones.

From-SVN: r26528
1999-04-17 14:33:24 -07:00
Jan Hubicka
3af4bd8943 i386.c (i386_preferred_stack_boundary_string): New global variable.
* i386.c (i386_preferred_stack_boundary_string): New global variable.
        (i386_preferred_stack_boundary): New global variable.
        (override_functions): Set it.  Tidy option setting code.
        * i386.h (TARGET_OPTIONS): New command line option.
        (i386_preferred_stack_boundary_string): Declare it.
        (i386_preferred_stack_boundary): Likewise.
        (PREFERRED_STACK_BOUNDARY): Use i386_preferred_stack_boundary.

From-SVN: r26527
1999-04-17 14:13:53 -07:00
Jan Hubicka
73fe76e496 * i386.c (k6_cost): Take into account the decoding time.
From-SVN: r26526
1999-04-17 12:23:54 -07:00
Richard Henderson
d119f84ce7 Donn Terry <donn@interix.com>
Donn Terry  <donn@interix.com>
        * i386.h (PRINT_OPERAND_PUNCT_VALID_P): Allow _.
        * i386.c (print_operand): New %_ operator.
        (load_pic_register): Proper number of leading _ in GOT literal.
        * i386.md (prologue_get_pc_and_set_got): Likewise.
        * i386/unix.h (ASM_OUTPUT_MI_THUNK): Likewise.

From-SVN: r26525
1999-04-17 12:15:29 -07:00
Richard Henderson
f9d7e5cd9e alpha.c (alpha_expand_prologue): Use gen_adddi3 instead of emit_move_insn+plus_constant.
* alpha.c (alpha_expand_prologue): Use gen_adddi3 instead of
        emit_move_insn+plus_constant.  For NT, don't use the stack probe
        loop pointer to allocate stack space.
        * alpha.md (adddi3): Always use lda to set the stack pointer.

From-SVN: r26524
1999-04-17 12:03:04 -07:00
Zack Weinberg
01198c2f1f c-aux-info.c, [...]: Include toplev.h for real declaration of trim_filename.
1999-04-17 20:11 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
	* c-aux-info.c, emit-rtl.c, explow.c, expmed.c, gcse.c,
	haifa-sched.c, optabs.c, reorg.c, resource.c, sched.c: Include
	toplev.h for real declaration of trim_filename.
	* Makefile.in: Update dependencies.

From-SVN: r26523
1999-04-17 17:14:58 +00:00
Richard Henderson
f5e68e33b2 uninit-9.c (func): Use __builtin_alloca instead of alloca to avoid the need for a prototype to...
* gcc.dg/uninit-9.c (func): Use __builtin_alloca instead of alloca
        to avoid the need for a prototype to supress a warning.

From-SVN: r26522
1999-04-17 09:58:31 -07:00
Craig Burley
134fddff1b better support SMP builds in libf2c
From-SVN: r26521
1999-04-17 10:37:14 -04:00
Mark Mitchell
25aab5d0ad decl.c (xref_tag): Revise handling of nested template declarations.
* decl.c (xref_tag): Revise handling of nested template
	declarations.
	* pt.c (check_explicit_specialization): Tweak handling of friend
	templates in template classes.
	(tsubst_friend_class): Handle friend declarations for nested
	member template classes.

From-SVN: r26520
1999-04-17 14:15:29 +00:00
Craig Burley
4e6a144034 remove -fugly, other doc fixes
From-SVN: r26519
1999-04-17 10:09:21 -04:00
Craig Burley
8a19a44a1f forgot to add ffe.texi, the actual g77 front-end internals docs
From-SVN: r26518
1999-04-17 07:45:01 -04:00
Craig Burley
0f4668ef1a Check for circularity only if ENABLE_CHECKING is defined
From-SVN: r26517
1999-04-17 07:43:57 -04:00
Craig Burley
75e8000e18 add g77 front-end internals docs
From-SVN: r26516
1999-04-17 07:09:20 -04:00
Craig Burley
c7e4ee3a6d rewrite to use block/scope structure of GBE
From-SVN: r26515
1999-04-17 06:58:35 -04:00
Zack Weinberg
fc5045f3a7 cccp.c: Make fatal non-static.
1999-04-17 10:15 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
	* cccp.c: Make fatal non-static.

From-SVN: r26514
1999-04-17 07:16:26 +00:00
Michael Hayes
d98d16b11e c4x.md (*andqi3_255_clobber,*andqi3_65535_clobber): New logical and patterns using C40 bit-field insert instructions.
* config/c4x/c4x.md (*andqi3_255_clobber,*andqi3_65535_clobber):
	New logical and patterns using C40 bit-field insert instructions.
	(*lshrqi3_24_clobber,*ashrqi3_24_clobber,*lshrqi3_16_clobber,
	*ashrqi3_16_clobber): New shift patterns using C40 bit-field insert
	instructions.

From-SVN: r26513
1999-04-17 04:52:39 +00:00
Jeff Law
920279f237 Daily bump.
From-SVN: r26512
1999-04-16 18:45:05 -06:00
Zack Weinberg
2a611d21ac system.h: Always prototype abort.
1999-04-16 22:44 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
	* system.h: Always prototype abort.  Prototype fatal.  Define
	abort to call fatal, not fprintf/exit.  Define a stub macro
	for trim_filename.
	* toplev.c: Define DIR_SEPARATOR.  (trim_filename): New
	function.
	* toplev.h: Prototype trim_filename, and #undef system.h's stub.
	* gcc.c, genattr.c, genattrtab.c, gencodes.c, genconfig.c,
	genemit.c, genextract.c, genflags.c, genopinit.c, genoutput.c,
	genpeep.c, genrecog.c: Make fatal non-static.
	* gcov.c, gengenrtl.c, protoize.c: #undef abort after
	including system.h.
	* config/i386/dgux.h, config/m68k/xm-amix.h: Remove stale code
	relating to abort.

From-SVN: r26511
1999-04-16 19:52:44 +00:00
Per Bothner
bf69fb7efc Note char-conversion-related optimizations.
From-SVN: r26510
1999-04-16 11:41:12 -07:00
Per Bothner
839df96120 InputStreamReader.java (<init>): Set super.in correctly.
�
	* java/io/InputStreamReader.java (<init>):  Set super.in correctly.
	* java/io/OutputStreamWriter.java (<init>):  Set super.in correctly.
	(writeChars):  Don't be quite so eager to flush.
	* java/io/PrintStream.java:  Rewrite.  Now more similar to
	OutputStreamWriter, using explicit UnicodeToBytes converter.
	Also, autoflush does not need to flush so often.
	* java/lang/natString.cc (getBytes):  More efficient algorithm.
 	(init(jbyteArray,jint,jint,jstring)):  More efficient.

From-SVN: r26509
1999-04-16 11:35:02 -07:00
Per Bothner
a99ce7cae5 InputStreamReader.java (<init>): Set super.in correctly.
�
	* java/io/InputStreamReader.java (<init>):  Set super.in correctly.
	* java/io/OutputStreamWriter.java (<init>):  Set super.in correctly.
	(writeChars):  Don't be quite so eager to flush.
	* java/io/PrintStream.java:  Rewrite.  Now more similar to
	OutputStreamWriter, using explicit UnicodeToBytes converter.
	Also, autoflush does not need to flush so often.
	* java/lang/natString.cc (getBytes):  More efficient algorithm.
 	(init(jbyteArray,jint,jint,jstring)):  More efficient.

From-SVN: r26508
1999-04-16 11:34:58 -07:00
Mark Mitchell
78638e240e class.c (finish_struct): Remove unused variable.
* class.c (finish_struct): Remove unused variable.
	(pushclass): Likewise.
	(invalidate_class_lookup_cache): Likewise.
	* cp-tree.def (TYPENAME_TYPE): Improve documentation.
	* decl.c (build_typename_type): Make sure TYPENAME_TYPE_FULLNAME
	doesn't get obliterated.
	(make_typename_type): Handle template classes correctly.

From-SVN: r26507
1999-04-16 18:06:34 +00:00
Jason Merrill
4d1bb6125f tweak spelling
From-SVN: r26506
1999-04-16 14:04:47 -04:00
Per Bothner
714091c605 Makefile.am: Various changes for new files and conversions.
�
	* Makefile.am:  Various changes for new files and conversions.

From-SVN: r26505
1999-04-16 10:31:26 -07:00
Per Bothner
dfd08a83ce Makefile.am: Various changes for new files and conversions.
0
	* Makefile.am:  Various changes for new files and conversions.

From-SVN: r26504
1999-04-16 10:31:24 -07:00
Per Bothner
2373aba264 JIS0201.h: New file, generated from Unicode table.
* gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
	* gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
	* gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
	* gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
	* gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
	* gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
	* gnu/gcj/convert/natInput_SJIS.cc:  New file.
	* gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
	* gnu/gcj/convert/natOutput_SJIS.cc:  New file.
	* gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
	* gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
	* gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.

From-SVN: r26503
1999-04-16 10:25:08 -07:00
Per Bothner
0ff6b2f10b JIS0201.h: New file, generated from Unicode table.
�
	* gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
	* gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
	* gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
	* gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
	* gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
	* gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
	* gnu/gcj/convert/natInput_SJIS.cc:  New file.
	* gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
	* gnu/gcj/convert/natOutput_SJIS.cc:  New file.
	* gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
	* gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
	* gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.

From-SVN: r26502
1999-04-16 10:25:08 -07:00
Per Bothner
7b824de381 JIS0201.h: New file, generated from Unicode table.
�
	* gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
	* gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
	* gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
	* gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
	* gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
	* gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
	* gnu/gcj/convert/natInput_SJIS.cc:  New file.
	* gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
	* gnu/gcj/convert/natOutput_SJIS.cc:  New file.
	* gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
	* gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
	* gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.

From-SVN: r26501
1999-04-16 10:25:08 -07:00