platform/upstream/gcc.git
25 years agomh-go32: Delete.
Mark Elbrecht [Wed, 17 Mar 1999 23:19:59 +0000 (23:19 +0000)]
mh-go32: Delete.

        * config/mh-go32: Delete.
        * config/mh-djgpp: New. Renamed from mh-go32.
        * configure.in (pc-msdosdjgpp): Set host_makefile_frag to
        config/mh-djgpp.

From-SVN: r25834

25 years agot-gnu (SYSTEM_HEADER_DIR): New variable.
Mark Kettenis [Wed, 17 Mar 1999 22:18:49 +0000 (22:18 +0000)]
t-gnu (SYSTEM_HEADER_DIR): New variable.

        * config/t-gnu (SYSTEM_HEADER_DIR): New variable.  Set to
        `/include' in order to find the system's limits.h.

From-SVN: r25833

25 years agofixincl.c: Include auto-host.h instead of config.h
Robert Lipe [Wed, 17 Mar 1999 22:03:34 +0000 (22:03 +0000)]
fixincl.c: Include auto-host.h instead of config.h

        * fixinc/fixincl.c: Include auto-host.h instead of config.h
        * fixinc/procopen.c: Likewise.
        * fixinc/regex.c: Likewise.
        * fixinc/server.c: Likewise.

From-SVN: r25832

25 years agoflow.c (compute_immediate_dominators): New function.
Richard Henderson [Wed, 17 Mar 1999 21:58:49 +0000 (13:58 -0800)]
flow.c (compute_immediate_dominators): New function.

        * flow.c (compute_immediate_dominators): New function.
        * basic-block.h (compute_immediate_dominators): Declare it.

From-SVN: r25831

25 years ago* gcc.c (process_command): Dump link_command_spec too.
Mark Elbrecht [Wed, 17 Mar 1999 21:51:18 +0000 (21:51 +0000)]
* gcc.c (process_command): Dump link_command_spec too.

From-SVN: r25830

25 years agopa.md: Add real PA8000 scheduling information.
Jerry Quinn [Wed, 17 Mar 1999 20:15:18 +0000 (20:15 +0000)]
pa.md: Add real PA8000 scheduling information.

        * pa.md: Add real PA8000 scheduling information.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r25829

25 years agopa.h (processor_type): Add PROCESSOR_8000 symbol.
Jerry Quinn [Wed, 17 Mar 1999 19:46:37 +0000 (19:46 +0000)]
pa.h (processor_type): Add PROCESSOR_8000 symbol.

        * pa.h (processor_type):  Add PROCESSOR_8000 symbol.
        (ISSUE_RATE):  Revamp, including PA8000 support.
        * pa.c (override_options):  Add 8000 as -mschedule= option.
        Do not call strcmp if pa_cpu_string is null.
        * pa.md (attr cpu):  Add 8000.
        * invoke.texi: Add documentation for PA8000 scheduling.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r25828

25 years agosparc.h (TARGET_SWITCHES, [...]): Add descriptions.
David S. Miller [Wed, 17 Mar 1999 18:33:17 +0000 (10:33 -0800)]
sparc.h (TARGET_SWITCHES, [...]): Add descriptions.

* config/sparc/sparc.h (TARGET_SWITCHES, TARGET_OPTIONS):
Add descriptions.
* config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
* config/sparc/splet.h (SUBTARGET_SWITCHES): Likewise.

From-SVN: r25827

25 years agoremoved part of comment
Nick Clifton [Wed, 17 Mar 1999 15:30:35 +0000 (15:30 +0000)]
removed part of comment

From-SVN: r25826

25 years agoalpha.h (HARD_REGNO_MODE_OK): Allow only 4 and 8 byte unit modes in FP regs.
Richard Henderson [Wed, 17 Mar 1999 14:49:22 +0000 (06:49 -0800)]
alpha.h (HARD_REGNO_MODE_OK): Allow only 4 and 8 byte unit modes in FP regs.

        * alpha.h (HARD_REGNO_MODE_OK): Allow only 4 and 8 byte unit modes
        in FP regs.
        (MODES_TIEABLE_P): Define asymmetricly wrt modes illegal in FP regs.

From-SVN: r25825

25 years agoFix compile time warnings.
Nick Clifton [Wed, 17 Mar 1999 14:47:27 +0000 (14:47 +0000)]
Fix compile time warnings.

Improve target CPU selection.

From-SVN: r25824

25 years agoreload1.c (eliminate_regs): Don't keep REG_DEAD notes around for things that were...
J"orn Rennecke [Wed, 17 Mar 1999 13:31:30 +0000 (13:31 +0000)]
reload1.c (eliminate_regs): Don't keep REG_DEAD notes around for things that were eliminated.

* reload1.c (eliminate_regs): Don't keep REG_DEAD notes around for
things that were eliminated.

From-SVN: r25823

25 years ago* gcc.c-torture/execute/ieee/980619-1.x: New. Expected fail on x86.
Richard Henderson [Wed, 17 Mar 1999 12:23:42 +0000 (04:23 -0800)]
* gcc.c-torture/execute/ieee/980619-1.x: New.  Expected fail on x86.

From-SVN: r25822

25 years agofunction.c (fixup_var_refs_1): First try moving the expression directly into a register.
Richard Henderson [Wed, 17 Mar 1999 12:17:02 +0000 (04:17 -0800)]
function.c (fixup_var_refs_1): First try moving the expression directly into a register.

        * function.c (fixup_var_refs_1): First try moving the expression
        directly into a register.  Don't separate cc0 setter and user.

From-SVN: r25821

25 years agoUpdate NEWS derived file
Craig Burley [Wed, 17 Mar 1999 08:44:15 +0000 (03:44 -0500)]
Update NEWS derived file

From-SVN: r25820

25 years agoEditorial fix to g77 news
Craig Burley [Wed, 17 Mar 1999 08:39:59 +0000 (08:39 +0000)]
Editorial fix to g77 news

From-SVN: r25819

25 years agoUpdate libg2c to netlib f2c-19990317
Craig Burley [Wed, 17 Mar 1999 08:21:44 +0000 (08:21 +0000)]
Update libg2c to netlib f2c-19990317

From-SVN: r25818

25 years agocppfiles.c (PIPE_BUF): #define PIPE_BUF if not defined already.
Dave Brolley [Wed, 17 Mar 1999 08:21:31 +0000 (08:21 +0000)]
cppfiles.c (PIPE_BUF): #define PIPE_BUF if not defined already.

Wed Mar 17 11:20:29 1999  Dave Brolley  <brolley@cygnus.com>
* cppfiles.c (PIPE_BUF): #define PIPE_BUF if not defined already.

From-SVN: r25817

25 years agoc-lex.c: Don't include setjmp.h.
Kaveh R. Ghazi [Wed, 17 Mar 1999 06:34:46 +0000 (06:34 +0000)]
c-lex.c: Don't include setjmp.h.

        * c-lex.c: Don't include setjmp.h.
        (parse_float): New static function.
        (pf_args): New struct.
        (yylex): Use them in call to `do_float_handler'.

From-SVN: r25816

25 years agoRegenerate
Martin v. Löwis [Wed, 17 Mar 1999 01:18:10 +0000 (01:18 +0000)]
Regenerate

From-SVN: r25814

25 years agoDaily bump.
Jeff Law [Wed, 17 Mar 1999 00:45:02 +0000 (17:45 -0700)]
Daily bump.

From-SVN: r25813

25 years agoparse.y (named_complex_class_head_sans_basetype): Do nothing for error_mark_node.
Martin v. Löwis [Wed, 17 Mar 1999 00:28:43 +0000 (00:28 +0000)]
parse.y (named_complex_class_head_sans_basetype): Do nothing for error_mark_node.

* parse.y (named_complex_class_head_sans_basetype):
Do nothing for error_mark_node.
(maybe_base_class_list): Likewise.
* decl.c (start_decl): Check for error_mark_node as a type.
Detected by g++.brendan/array-refs.C.
(start_decl_1): Likewise. Detected by g++.bugs/900322_01.C.
(maybe_build_cleanup_1): Likewise. Detected by
g++.jason/incomplete1.C.
* tree.c (build_dummy_object): Use void_zero_node instead of the
error_mark_node
(is_dummy_object): Check for such a node.  Detected by
g++.bob/inherit1.C

From-SVN: r25812

25 years agocexp.y (yyerror): Call verror to get a usefull error message.
Andreas Schwab [Tue, 16 Mar 1999 21:10:35 +0000 (21:10 +0000)]
cexp.y (yyerror): Call verror to get a usefull error message.

        * cexp.y (yyerror): Call verror to get a usefull error message.
        * cexp.c: Rebuilt.

From-SVN: r25811

25 years agogdbinit: Move command to put breakpoint at abort to end of file so that gdb does...
Andreas Schwab [Tue, 16 Mar 1999 20:58:45 +0000 (20:58 +0000)]
gdbinit: Move command to put breakpoint at abort to end of file so that gdb does not...

        * .gdbinit: Move command to put breakpoint at abort to end of file
        so that gdb does not bail out early.

From-SVN: r25810

25 years agomethod.c (old_backref_index): Split out...
Jason Merrill [Tue, 16 Mar 1999 19:34:49 +0000 (19:34 +0000)]
method.c (old_backref_index): Split out...

* method.c (old_backref_index): Split out...
(flush_repeats): From here.  Rename back from try_old_backref.
(build_mangled_name): Put back some old-style repeat handling.

From-SVN: r25809

25 years agoparse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray.
Per Bothner [Tue, 16 Mar 1999 16:25:16 +0000 (08:25 -0800)]
parse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray.


* parse.y (java_complete_lhs):  Call force_evaluation_order
after patch_newarray.
(patch_binop):  Don't call fold if there are side effects.

From-SVN: r25808

25 years agoparse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray.
Per Bothner [Tue, 16 Mar 1999 16:25:14 +0000 (08:25 -0800)]
parse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray.

x
* parse.y (java_complete_lhs):  Call force_evaluation_order
after patch_newarray.
(patch_binop):  Don't call fold if there are side effects.

From-SVN: r25807

25 years agoparse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray.
Per Bothner [Tue, 16 Mar 1999 16:25:12 +0000 (08:25 -0800)]
parse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray.

* parse.y (java_complete_lhs):  Call force_evaluation_order
after patch_newarray.
(patch_binop):  Don't call fold if there are side effects.

From-SVN: r25806

25 years agoRename free_bb_memory to free_bb_mem
Nick Clifton [Tue, 16 Mar 1999 15:49:28 +0000 (15:49 +0000)]
Rename free_bb_memory to free_bb_mem

From-SVN: r25805

25 years ago* sh.md (movsi_i): Move t/r alternative after r/rI alternative.
J"orn Rennecke [Tue, 16 Mar 1999 15:47:06 +0000 (15:47 +0000)]
* sh.md (movsi_i): Move t/r alternative after r/rI alternative.

From-SVN: r25804

25 years agoFix build failure when using SGI Irix6 cc.
Jim Wilson [Tue, 16 Mar 1999 13:50:10 +0000 (13:50 +0000)]
Fix build failure when using SGI Irix6 cc.

* mn10200/mn10200.md (addsi3, subsi3, ashlsi3, lshrsi3, ashrsi3):
Delete emit_library_call_value declaration.

From-SVN: r25803

25 years agocppfiles.c (read_and_prescan): Map backslash-newline to '\r' (which cannot otherwise...
Zack Weinberg [Tue, 16 Mar 1999 13:10:15 +0000 (13:10 +0000)]
cppfiles.c (read_and_prescan): Map backslash-newline to '\r' (which cannot otherwise appear in the processed...

1999-03-16 16:06 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
* cppfiles.c (read_and_prescan): Map backslash-newline to '\r'
(which cannot otherwise appear in the processed buffer) and
move it out of tokens that it appears in the middle of.
Improve performance.
(find_position): New function.
* cpplib.c: \r (one character) indicates backslash
newline, not \\\n (two characters).  It cannot appear in the
middle of a token.  Call CPP_BUMP_LINE (pfile) whenever
parsing moves past \n or \r.  Increment pfile->lineno whenever
a \n is placed into token_buffer.  Only one mark can exist at
a time, and CPP_BUMP_LINE must not be used while it is
active.  It is automatically cleared by cpp_pop_buffer and
parse_goto_mark.  \r is not in is_hor_space or is_space.
(NEWLINE_FIX, NEWLINE_FIX1, adjust_position,
update_position, count_newlines, parse_move_mark): Removed.
(parse_string, copy_comment): New functions.
(parse_name): Returns void.
(parse_set_mark, parse_clear_mark, parse_goto_mark): Take only
one argument, a cpp_reader *.  Change for new marking scheme.
(skip_comment): Handle CHILL line comments too.  Second
argument is now first character of comment marker; all callers
changed.  Issue error for unterminated block comment here.
(cpp_skip_hspace): Recognize CHILL comments.
(copy_rest_of_line): Likewise.  Call skip_comment and
parse_string directly, don't go through cpp_get_token.  Emit
"/**/" for block comments if -traditional (create_definition
needs this).
(do_define): Don't play with put_out_comments.
(cpp_push_buffer): Initialize ->mark to -1.
(cpp_buf_line_and_col): Just read out the values in the buffer
structure.
(output_line_command): Use cpp_buf_line_and_col.  Fix
formatting.  Remove stale code.
(cpp_get_token): Break out string parsing code to
parse_string.  Use skip_comment for CHILL comments too.  Use
copy_comment for put_out_comments instead of dinking with
marks.  Remove stale code.  Don't call output_line_command
unless it's necessary.
* cpplib.h (parse_marker): Removed.
(struct cpp_buffer): line_base is now a unsigned char *; add
`mark' [long], remove `marks' [struct parse_marker *].
(parse_set_mark, parse_clear_mark, parse_goto_mark): Update
prototypes.
(CPP_BUMP_LINE, CPP_BUMP_BUFFER_LINE): New macros.
* cppinit.c (is_hor_space, is_space): '\r' is not considered
whitespace.
* cppexp.c (cpp_parse_expression): Use cpp_skip_hspace, not
SKIP_WHITE_SPACE.
* cpphash.c (macarg): Disable line commands while expanding.

From-SVN: r25802

25 years agoedelsohn@mhpcc.edu -> edelsohn@gnu.org
David Edelsohn [Tue, 16 Mar 1999 11:08:24 +0000 (06:08 -0500)]
edelsohn@mhpcc.edu -> edelsohn@gnu.org

From-SVN: r25801

25 years agoc-lex.c (yylex): Remove warning for integer literals being larger than the largest...
Gavin Romig-Koch [Tue, 16 Mar 1999 08:33:24 +0000 (08:33 +0000)]
c-lex.c (yylex): Remove warning for integer literals being larger than the largest target int.

* c-lex.c (yylex) : Remove warning for integer literals being
larger than the largest target int.  Add warning for integer
literal being larger than than its choosen type.

From-SVN: r25800

25 years agoinvoke.texi: Add -mlong32 documentation.
Gavin Romig-Koch [Tue, 16 Mar 1999 08:04:00 +0000 (08:04 +0000)]
invoke.texi: Add -mlong32 documentation.

* invoke.texi: Add -mlong32 documentation.
* config/mips/mips.h (mips_explicit_type_size_string): New.
(TARGET_SWITCHES): Add 'long32'.
(TARGET_OPTIONS): Add 'explicit-type-size'.
(CC1_SPECS): Set -mexplicit-type-size.
        (LONG_MAX_SPEC): Change a use of 'no-long64' to 'long32'.
* config/mips/abi64.h (LONG_MAX_SPEC): Same.  Add 'mabi=32'.
* config/mips/mips.c (mips_explicit_type_size_string): New.
(override_options): Use it.
* config/mips/osfrose.h (CC1_SPECS): Set -mexplicit-type-size.
* config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC):
Pointer size now depends on both size longs and size of GP
registers.

From-SVN: r25799

25 years agoiris.h (CTORS_SECTION_ASM_OP,DTORS_SECTION_ASM_OP, [...]): Use Pmode == DImode rather...
Gavin Romig-Koch [Tue, 16 Mar 1999 07:25:31 +0000 (07:25 +0000)]
iris.h (CTORS_SECTION_ASM_OP,DTORS_SECTION_ASM_OP, [...]): Use Pmode == DImode rather than TARGET_LONG64.

* config/mips/iris.h (CTORS_SECTION_ASM_OP,DTORS_SECTION_ASM_OP,
dtors_section): Use Pmode == DImode rather than TARGET_LONG64.
* config/mips/mips.c (override_options): Allow -mlong64 and
-mint64 with -mips2 or less.
* config/mips/mips.h (MASK_LONG64): Fix comment.
(POINTER_SIZE): Use Pmode == DImode rather than TARGET_LONG64.
(Pmode): Make Pmode the smaller of longs or gp registers.
* invoke.texi: Note the new size for pointers.

From-SVN: r25798

25 years agoparse.y (java_stabilize_reference): Use save_expr instead of building a SAVE_EXPR...
Alexandre Petit-Bianco [Tue, 16 Mar 1999 03:38:15 +0000 (03:38 +0000)]
parse.y (java_stabilize_reference): Use save_expr instead of building a SAVE_EXPR node.

1999-03-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
* parse.y (java_stabilize_reference): Use save_expr instead of
building a SAVE_EXPR node.
(java_complete_lhs): Patch the resulting string of the `+='
operator (if necessary) and complete the RHS after having built
the cast.

From-SVN: r25797

25 years agoDaily bump.
Jeff Law [Tue, 16 Mar 1999 00:45:03 +0000 (17:45 -0700)]
Daily bump.

From-SVN: r25796

25 years agobit-pattern directly.
David Edelsohn [Mon, 15 Mar 1999 19:47:42 +0000 (19:47 +0000)]
bit-pattern directly.

        (ASM_OUTPUT_REG_{PUSH,POP}): Delete.
        * rs6000.c (first_reg_to_save): If profiling and context needed,
        allocate a reg to save static chain for all ABIs.  For AIX
        profiling, calculate parameter registers to save based on need.
        (output_function_profiler): Save and restore static chain around
        profile call for all ABIs.

From-SVN: r25795

25 years agolex.c: Don't include setjmp.h.
Kaveh R. Ghazi [Mon, 15 Mar 1999 19:07:25 +0000 (19:07 +0000)]
lex.c: Don't include setjmp.h.

        * lex.c: Don't include setjmp.h.
        (parse_float): New static function.
        (pf_args): New struct.
        (real_yylex): Use them in call to `do_float_handler'.

From-SVN: r25794

25 years agocppinit.c: Instead of one pending list...
Zack Weinberg [Mon, 15 Mar 1999 18:42:46 +0000 (18:42 +0000)]
cppinit.c: Instead of one pending list...

1999-03-15 21:39 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
* cppinit.c: Instead of one pending list, keep separate lists
for each category of pending option: -D/-U, -A, -include,
-imacros.  Move the four partial include-path lists into the
pending block.  Use head and tail pointers so we don't ever
have to reverse the lists.
(cpp_start_read): Break out blocks of code to their own
functions: install_predefs and initialize_dependency_output.
Use path_include for C_INCLUDE_PATH and friends as well as
CPATH.  Remove include_defaults gunk.  Warn about the
combination of -lang-chill and -trigraphs.  Optimize string
bashing.  Walk each pending list once, deallocating as we go.
(append_include_chain): Brought over from cppfiles.c.  Mark
dirs as system include dirs if and only if appending to
system include path. If opts->verbose, print a notice when a
dir is dropped from the include path because it doesn't
exist.  Fix memory leak: this function is not supposed to copy
its DIR argument.
(nreverse_pending, push_pending): Removed.
(APPEND): New macro for adding to pending lists.
(path_include): Can now add to any partial include path.
(base_name): Bring over from cccp.c.
(cpp_options_init): Allocate the pending block.
(cpp_handle_option): Add --version.  Exit after --help.  Fix
formatting.  Order -ifoo options by frequency of usage.
(install_predefs): New function, simplified version of code
that was in cpp_start_read.
(initialize_dependency_output): Likewise.  Understand OBJECT_SUFFIX.
* cppfiles.c (simplify_pathname): Export.
(merge_include_chains):  Don't nreverse the lists.  If
opts->verbose, print a notice when a duplicate dir is detected
and dropped from the include path.
(finclude): Fix excessive cleverness in setting
fp->system_header_p.
(actual_directory): Set x->sysp from
CPP_BUFFER (pfile)->system_header_p so that one system header
may include another with "".
(deps_output): Fix double adjustment of deps_size which would
cause all dependencies after the first two lines to be lost.
* cpplib.c (cpp_unassert): New function.
* cpplib.h: Lay out struct cpp_pending here.  Adjust
prototypes.  Add include_prefix_len to struct cpp_options.

From-SVN: r25793

25 years agomips.h (REGISTER_MOVE_COST): Make the cost of moving from HI/LO/HILO/MD into general...
Jim Wilson [Mon, 15 Mar 1999 15:08:51 +0000 (15:08 +0000)]
mips.h (REGISTER_MOVE_COST): Make the cost of moving from HI/LO/HILO/MD into general registers the same as...

Mon Mar 15 16:01:52 1999  Jim Wilson  <wilson@cygnus.com>
* config/misp/mips.h (REGISTER_MOVE_COST): Make the cost of moving
  from HI/LO/HILO/MD into general registers the same as for one
  of moving general registers to HI/LO/HILO/MD.

From-SVN: r25792

25 years agoUpdate BUGS, NEWS derived files
Craig Burley [Mon, 15 Mar 1999 14:15:50 +0000 (09:15 -0500)]
Update BUGS, NEWS derived files

From-SVN: r25791

25 years agoEditorial fixes to g77 docs
Craig Burley [Mon, 15 Mar 1999 14:15:16 +0000 (14:15 +0000)]
Editorial fixes to g77 docs

From-SVN: r25790

25 years agodecl.c (xref_basetypes): Set CLASSTYPE_VBASECLASSES here.
Mark Mitchell [Mon, 15 Mar 1999 13:42:56 +0000 (13:42 +0000)]
decl.c (xref_basetypes): Set CLASSTYPE_VBASECLASSES here.

* decl.c (xref_basetypes): Set CLASSTYPE_VBASECLASSES here.
* tree.c (layout_basetypes): Not here.
* search.c (dfs_search): Remove; no longer used.

From-SVN: r25789

25 years agoclass.c (make_class): Don't set CLASS_P here (because this function is also called...
Per Bothner [Mon, 15 Mar 1999 13:09:47 +0000 (05:09 -0800)]
class.c (make_class): Don't set CLASS_P here (because this function is also called by...

* class.c (make_class):  Don't set CLASS_P here (because
this function is also called by build_java_array_type).
(push_class):  Set CLASS_P here instead.
* parse.h (TYPE_CLASS_P):  Check for TYPE_ARRAY_P is redundant.
* jcf-dump.c (print_access_flags):  Take extra parameter to indicate
context.  If the context is class, perfer "super" over "synchronized".
* jcf-write.c (generate_classfile):  Don't add ACC_SUPER if interface.
* parse.y (create_class):  Don't call parser_check_super here;
it is not robust.  Always wait until later.
* parse.y (method_header):  For interfaces, set ACC_ABSTRACT (to
match what JDK 1.2 does), but don't set ACC_PUBLIC.

From-SVN: r25785

25 years agoclass.c (make_class): Don't set CLASS_P here (because this function is also called...
Per Bothner [Mon, 15 Mar 1999 13:09:44 +0000 (05:09 -0800)]
class.c (make_class): Don't set CLASS_P here (because this function is also called by...

d
* class.c (make_class):  Don't set CLASS_P here (because
this function is also called by build_java_array_type).
(push_class):  Set CLASS_P here instead.
* parse.h (TYPE_CLASS_P):  Check for TYPE_ARRAY_P is redundant.
* jcf-dump.c (print_access_flags):  Take extra parameter to indicate
context.  If the context is class, perfer "super" over "synchronized".
* jcf-write.c (generate_classfile):  Don't add ACC_SUPER if interface.
* parse.y (create_class):  Don't call parser_check_super here;
it is not robust.  Always wait until later.
* parse.y (method_header):  For interfaces, set ACC_ABSTRACT (to
match what JDK 1.2 does), but don't set ACC_PUBLIC.

From-SVN: r25784

25 years agoclass.c (make_class): Don't set CLASS_P here (because this function is also called...
Per Bothner [Mon, 15 Mar 1999 13:09:36 +0000 (05:09 -0800)]
class.c (make_class): Don't set CLASS_P here (because this function is also called by...

a
* class.c (make_class):  Don't set CLASS_P here (because
this function is also called by build_java_array_type).
(push_class):  Set CLASS_P here instead.
* parse.h (TYPE_CLASS_P):  Check for TYPE_ARRAY_P is redundant.
* jcf-dump.c (print_access_flags):  Take extra parameter to indicate
context.  If the context is class, perfer "super" over "synchronized".
* jcf-write.c (generate_classfile):  Don't add ACC_SUPER if interface.
* parse.y (create_class):  Don't call parser_check_super here;
it is not robust.  Always wait until later.
* parse.y (method_header):  For interfaces, set ACC_ABSTRACT (to
match what JDK 1.2 does), but don't set ACC_PUBLIC.

From-SVN: r25783

25 years agoclass.c (make_class): Don't set CLASS_P here (because this function is also called...
Per Bothner [Mon, 15 Mar 1999 13:09:32 +0000 (05:09 -0800)]
class.c (make_class): Don't set CLASS_P here (because this function is also called by...

T
* class.c (make_class):  Don't set CLASS_P here (because
this function is also called by build_java_array_type).
(push_class):  Set CLASS_P here instead.
* parse.h (TYPE_CLASS_P):  Check for TYPE_ARRAY_P is redundant.
* jcf-dump.c (print_access_flags):  Take extra parameter to indicate
context.  If the context is class, perfer "super" over "synchronized".
* jcf-write.c (generate_classfile):  Don't add ACC_SUPER if interface.
* parse.y (create_class):  Don't call parser_check_super here;
it is not robust.  Always wait until later.
* parse.y (method_header):  For interfaces, set ACC_ABSTRACT (to
match what JDK 1.2 does), but don't set ACC_PUBLIC.

From-SVN: r25782

25 years agodecl2.c (validate_nonmember_using_decl): Issue sensible error-messages on bogus quali...
Mark Mitchell [Mon, 15 Mar 1999 13:08:26 +0000 (13:08 +0000)]
decl2.c (validate_nonmember_using_decl): Issue sensible error-messages on bogus qualifiers.

* decl2.c (validate_nonmember_using_decl): Issue sensible
error-messages on bogus qualifiers.

From-SVN: r25781

25 years agoRemove leading and trailing double underscores from m32r specific attribute
Nick Clifton [Mon, 15 Mar 1999 12:49:36 +0000 (12:49 +0000)]
Remove leading and trailing double underscores from m32r specific attribute
names in order to match the documentation.

From-SVN: r25780

25 years agoreload.c (find_reloads): Add a REG_LABEL note if we substitute a LABEL_REF for someth...
Mark Mitchell [Mon, 15 Mar 1999 09:25:01 +0000 (09:25 +0000)]
reload.c (find_reloads): Add a REG_LABEL note if we substitute a LABEL_REF for something else.

Mon Mar 15 10:20:20 1999  Mark Mitchell  <mark@markmitchell.com>
        * reload.c (find_reloads): Add a REG_LABEL note if we substitute a
        LABEL_REF for something else.

From-SVN: r25777

25 years agofold-const.c (exact_real_inverse): Move variable `float_error' into the scope where...
Kaveh R. Ghazi [Mon, 15 Mar 1999 05:30:02 +0000 (05:30 +0000)]
fold-const.c (exact_real_inverse): Move variable `float_error' into the scope where it is used.

        * fold-const.c (exact_real_inverse): Move variable `float_error'
        into the scope where it is used.
        (const_binop_1): New static function.
        (cb_args): New struct.
        (const_binop): Use them in call to `do_float_handler'.
        (fold_convert_1): New static function.
        (fc_args): New struct.
        (fold_convert): Use them in call to `do_float_handler'.

From-SVN: r25776

25 years ago* call.c (add_function_candidate): Fix uninitialized variable.
Jason Merrill [Mon, 15 Mar 1999 04:17:26 +0000 (04:17 +0000)]
* call.c (add_function_candidate): Fix uninitialized variable.

From-SVN: r25775

25 years agortlanal.c (auto_inc_p): New function.
Michael Hayes [Mon, 15 Mar 1999 01:52:49 +0000 (01:52 +0000)]
rtlanal.c (auto_inc_p): New function.

* rtlanal.c (auto_inc_p): New function.
        * rtl.h (auto_inc_p): Prototype it.
* reload1.c (add_auto_inc_notes): New function.
(reload): Strip REG_INC notes and call add_auto_inc_notes
for each insn to restore them correctly.

From-SVN: r25774

25 years agoMakefile.in (procopen.o): List the actual dependencies.
Manfred Hollstein [Mon, 15 Mar 1999 01:34:02 +0000 (01:34 +0000)]
Makefile.in (procopen.o): List the actual dependencies.

8
* fixinc/Makefile.in (procopen.o): List the actual
dependencies.

From-SVN: r25773

25 years agoMakefile.in (procopen.o): List the actual dependencies.
Manfred Hollstein [Mon, 15 Mar 1999 01:33:59 +0000 (01:33 +0000)]
Makefile.in (procopen.o): List the actual dependencies.


* fixinc/Makefile.in (procopen.o): List the actual
dependencies.

From-SVN: r25772

25 years agoDaily bump.
Jeff Law [Mon, 15 Mar 1999 00:45:02 +0000 (17:45 -0700)]
Daily bump.

From-SVN: r25771

25 years agoMore tests for uninitialized variable warnings
Zack Weinberg [Sun, 14 Mar 1999 20:19:03 +0000 (20:19 +0000)]
More tests for uninitialized variable warnings

From-SVN: r25770

25 years ago* Makefile.in (search.o): Add dependency on varray.h.
Jason Merrill [Sun, 14 Mar 1999 17:43:56 +0000 (17:43 +0000)]
* Makefile.in (search.o): Add dependency on varray.h.

From-SVN: r25769

25 years agocse.c (check_fold_consts): New static function.
Kaveh R. Ghazi [Sun, 14 Mar 1999 14:02:10 +0000 (14:02 +0000)]
cse.c (check_fold_consts): New static function.

        * cse.c (check_fold_consts): New static function.
        (cfc_args): New struct.
        (simplify_relational_operation): Use them in call to
        `do_float_handler'.
        * toplev.c (do_float_handler): New function to wrap calls to
        setjmp/set_float_handler.
        * toplev.h (do_float_handler): Add extern prototype.
        * tree.c (build_real_from_int_cst_1): New static function.
        (brfic_args): New struct.
        (build_real_from_int_cst): Use them in call to
        `do_float_handler'.

From-SVN: r25768

25 years agoNew test, for spurious "variable may be clobbered by `longjmp' or `vfork'"
Zack Weinberg [Sun, 14 Mar 1999 09:18:03 +0000 (09:18 +0000)]
New test, for spurious "variable may be clobbered by `longjmp' or `vfork'"
warnings.

From-SVN: r25765

25 years agodecl.c (duplicate_decls): Use same_type_p.
Jason Merrill [Sun, 14 Mar 1999 01:29:36 +0000 (01:29 +0000)]
decl.c (duplicate_decls): Use same_type_p.

* decl.c (duplicate_decls): Use same_type_p.
* method.c (try_old_backref): Renamed from flush_repeats.  Use
same_type_p.  Don't try to handle repeats.  Return success.
(is_back_referenceable_type): Return 0 if TYPE_FOR_JAVA.  Support
calls from old-style code, too.
(check_ktype): Use same_type_p.
(check_btype): Use same_type_p.  Don't pull out TYPE_MAIN_VARIANT.
(build_qualified_name): Simplify logic.
(build_mangled_name_for_type_with_Gcode): Remove call to
type_canonical_variant.
(process_overload_item): Strip typedefs and quals at the top.
(build_mangled_name): Likewise.  Remove support for old-style
repeats, which have been disabled since 2.7.2.  Don't mess with
TREE_USED.
(build_decl_overload_real): Don't mess with TREE_USED.

From-SVN: r25758

25 years agoBump for snapshot
Jeffrey A Law [Sun, 14 Mar 1999 01:15:11 +0000 (18:15 -0700)]
Bump for snapshot

From-SVN: r25756

25 years agoDaily bump.
Jeff Law [Sun, 14 Mar 1999 00:46:04 +0000 (17:46 -0700)]
Daily bump.

From-SVN: r25755

25 years agolex.c (java_read_char): UNGET invalid non-initial utf8 character.
Per Bothner [Sat, 13 Mar 1999 19:21:39 +0000 (11:21 -0800)]
lex.c (java_read_char): UNGET invalid non-initial utf8 character.


* lex.c (java_read_char):  UNGET invalid non-initial utf8 character.
* lex.h (UNGETC):  Change misleading macro.

From-SVN: r25754

25 years agolex.c (java_read_char): UNGET invalid non-initial utf8 character.
Per Bothner [Sat, 13 Mar 1999 19:21:38 +0000 (11:21 -0800)]
lex.c (java_read_char): UNGET invalid non-initial utf8 character.

h
* lex.c (java_read_char):  UNGET invalid non-initial utf8 character.
* lex.h (UNGETC):  Change misleading macro.

From-SVN: r25753

25 years ago* haifa-sched.c (sched_analyze_1): Only clear reg_last_uses on a SET.
Richard Henderson [Sat, 13 Mar 1999 17:38:17 +0000 (09:38 -0800)]
* haifa-sched.c (sched_analyze_1): Only clear reg_last_uses on a SET.

From-SVN: r25752

25 years agoMore g77 tests
Craig Burley [Sat, 13 Mar 1999 15:33:56 +0000 (15:33 +0000)]
More g77 tests

From-SVN: r25751

25 years agoUpdate NEWS derived file
Craig Burley [Sat, 13 Mar 1999 15:15:07 +0000 (10:15 -0500)]
Update NEWS derived file

From-SVN: r25747

25 years agoFix INTEGER*8 conversion bugs
Craig Burley [Sat, 13 Mar 1999 15:14:29 +0000 (15:14 +0000)]
Fix INTEGER*8 conversion bugs

From-SVN: r25746

25 years agoNew g77 tests
Craig Burley [Sat, 13 Mar 1999 14:45:03 +0000 (14:45 +0000)]
New g77 tests

From-SVN: r25745

25 years agoUpdate BUGS, INSTALL, NEWS derived files
Craig Burley [Sat, 13 Mar 1999 12:17:46 +0000 (07:17 -0500)]
Update BUGS, INSTALL, NEWS derived files

From-SVN: r25744

25 years agoImprove g77 doc infrastructure
Craig Burley [Sat, 13 Mar 1999 12:04:03 +0000 (12:04 +0000)]
Improve g77 doc infrastructure

From-SVN: r25743

25 years agoarm.c (arm_split_constant): Don't try to force a constant to memory after arm_reorg...
Richard Earnshaw [Sat, 13 Mar 1999 11:40:25 +0000 (11:40 +0000)]
arm.c (arm_split_constant): Don't try to force a constant to memory after arm_reorg has run.

* arm.c (arm_split_constant): Don't try to force a constant to
memory after arm_reorg has run.
(after_arm_reorg): New static variable.
(arm_reorg): Set it.
(output_func_epilogue): Clear it.

From-SVN: r25742

25 years agoerror.c (cp_printers): Add 'F' escape character.
Nathan Sidwell [Sat, 13 Mar 1999 01:49:14 +0000 (01:49 +0000)]
error.c (cp_printers): Add 'F' escape character.

* error.c (cp_printers): Add 'F' escape character.
(dump_type_real): Remove TREE_LIST (fnargs) printing.
Functionality moved to dump_parameters.
(dump_type_suffix): Use dump_parameters and dump_exception_spec.
(dump_function_decl): Extend meaning of V parameter. Use
dump_parameters and dump_exception_spec.
(dump_parameters): New static function.
(dump_exception_spec): New static function.
(fndecl_as_string): Change argument semantics. Use
dump_function_decl directly.
* sig.c (build_signature_table_constructor): Use cp_error.

From-SVN: r25741

25 years agosemantics.c (finish_switch_cond): Handle error cases gracefully.
Martin v. Löwis [Sat, 13 Mar 1999 01:16:36 +0000 (01:16 +0000)]
semantics.c (finish_switch_cond): Handle error cases gracefully.

        * semantics.c (finish_switch_cond): Handle error cases gracefully.
        Detected by g++.law/enum5.C
        * typeck.c (build_modify_expr): Check for errors after resolving
        offsets. Detected by g++.brendan/static1.C
        * decl.c (complete_array_type): Ignore initial_value if it is an
        error. Detected by g++.benjamin/17930.C
        * typeck2.c (process_init_constructor): Return error if one argument
        is in error. Detected by g++.benjamin/13478.C

From-SVN: r25740

25 years agoDaily bump.
Jeff Law [Sat, 13 Mar 1999 00:45:03 +0000 (17:45 -0700)]
Daily bump.

From-SVN: r25739

25 years agoNew test case.
Martin v. Löwis [Fri, 12 Mar 1999 23:18:32 +0000 (23:18 +0000)]
New test case.

From-SVN: r25738

25 years agodecl.c (select_decl): Allow class templates when we need types.
Martin v. Löwis [Fri, 12 Mar 1999 23:17:05 +0000 (23:17 +0000)]
decl.c (select_decl): Allow class templates when we need types.

        * decl.c (select_decl): Allow class templates when we need types.
        * decl2.c (ambiguous_decl): Likewise.

From-SVN: r25737

25 years agoPatch from David Edelsohn. Use AIX float.h file.
David Edelsohn [Fri, 12 Mar 1999 20:28:04 +0000 (20:28 +0000)]
Patch from David Edelsohn.  Use AIX float.h file.

* configure.in ({rs6000,powerpc}-ibm-aix*): Set float_format to none.
* configure: Rebuilt.

From-SVN: r25734

25 years agoparse.y (java_stabilize_reference): Return NODE when patching a COMPOUND_EXPR.
Alexandre Petit-Bianco [Fri, 12 Mar 1999 18:19:04 +0000 (10:19 -0800)]
parse.y (java_stabilize_reference): Return NODE when patching a COMPOUND_EXPR.

1999-03-12  Alexandre Petit-Bianco  <apbianco@cygnus.com>
* parse.y (java_stabilize_reference): Return NODE when patching a
COMPOUND_EXPR.
(java_complete_lhs): Put parenthesis around truth values.
1999-03-12  Alexandre Petit-Bianco  <apbianco@cygnus.com>
* class.c (layout_class_method): Don't make rtl for interface
methods.
* parse.h (GET_TYPE_NAME): New macro.
* parse.y (if_then_statement:): Fixed indentation.
(if_then_else_statement:): Likewise.
(for_statement:): Fixed spacing.
(try_statement:): Fixed indentation.
(create_interface): Don't force interfaces to be abstract.
(method_header): Abstract methods are OK in interfaces.
(declare_local_variables): Fixed typo in comment.
(java_complete_expand_method): Fixed indentation.
(resolve_qualified_expression_name): Use GET_TYPE_NAME to report
non accessible fields.
(java_stabilize_reference): New function.
(java_complete_lhs): Fixed indentation. Use
java_stabilize_reference in compound assignement. Insert the
cast. If not processing `+' fix string constants before processing
binop.

From-SVN: r25733

25 years agolex.c (do_identifier): Correct call to enforce_access.
Mark Mitchell [Fri, 12 Mar 1999 17:16:53 +0000 (17:16 +0000)]
lex.c (do_identifier): Correct call to enforce_access.

* lex.c (do_identifier): Correct call to enforce_access.
* search.c (accessible_p): Tweak comment.
* decl2.c (validate_nonmember_using_decl): Issue sensible
error-messages on bogus qualifiers.

From-SVN: r25732

25 years agoWarning fixes:
Kaveh R. Ghazi [Fri, 12 Mar 1999 17:13:24 +0000 (17:13 +0000)]
Warning fixes:

        * constants.c (find_class_or_string_constant): Cast variable `j'
        to a `jword' when comparing against one.
        * expr.c (java_lang_expand_expr): Remove unused variables
        `has_finally_p' and `op0'.
        * gjavah.c (print_field_info): Cast a value to jint when comparing
        against one.  Likewise for a jlong.
        (add_namelet): Likewise cast a `sizeof' to an int when comparing
        against a signed quantity.
        * jcf-dump.c (print_signature_type): Remove unused variable `digit'.
        (print_signature): Don't needlessly dereference variable `str'
        * jcf-reader.c (get_attribute): Mark variables `max_stack' and
        `max_locals' with ATTRIBUTE_UNUSED.
        (jcf_parse_class): Likewise for variable `index'.
        * parse.h (reverse_jdep_list): Remove static prototype.
        * parse.y (build_jump_to_finally): Remove prototype and definition.
        (reverse_jdep_list): Add static prototype.
        * typeck.c (convert_ieee_real_to_integer): Remove unused variables
        `assignment' and `expr_decl'.
        * verify.c (verify_jvm_instructions): Remove unused label `bad_ldc'.

From-SVN: r25731

25 years agoMinor testsuite fixes for targets with 16-bit ints and targets without I/O.
Jim Wilson [Fri, 12 Mar 1999 16:19:54 +0000 (16:19 +0000)]
Minor testsuite fixes for targets with 16-bit ints and targets without I/O.

* execute/970312-1.c, execute/980605-1.c (f): Change printf to sprintf.
* execute/bf-sign-2.c (struct X): Add u15 field.
(main): Add check for u15.  Conditionalize u31 check depending on
whether ints are <32 bits or >=32 bits.

From-SVN: r25730

25 years agounroll.c (loop_iterations): Don't return a final value for EQ comparison loops.
J"orn Rennecke [Fri, 12 Mar 1999 12:46:36 +0000 (12:46 +0000)]
unroll.c (loop_iterations): Don't return a final value for EQ comparison loops.

* unroll.c (loop_iterations): Don't return a final value for EQ
comparison loops.

From-SVN: r25729

25 years agoPatch to fix reload abort while compiling hpux-x-m68k-aout gdb.
Jim Wilson [Fri, 12 Mar 1999 12:39:59 +0000 (12:39 +0000)]
Patch to fix reload abort while compiling hpux-x-m68k-aout gdb.

* reload1.c (calculate_needs_all_insns): When ignore equivalence
setting insn, clear need_elim, need_reload, and need_operand_change.

From-SVN: r25728

25 years agoMissing from fixincl-branch merge
Bruce Korb [Fri, 12 Mar 1999 08:57:04 +0000 (08:57 +0000)]
Missing from fixincl-branch merge

From-SVN: r25727

25 years agojcf-path.c (add_entry): alloca len+2 rather than len+1 bytes...
Andrew Haley [Fri, 12 Mar 1999 07:52:58 +0000 (07:52 +0000)]
jcf-path.c (add_entry): alloca len+2 rather than len+1 bytes...

1999-03-12  Andrew Haley  <aph@cygnus.com>
        * jcf-path.c (add_entry): alloca len+2 rather than len+1 bytes;
        we'll need a directory separator and a null character.

From-SVN: r25726

25 years agoMissing merges from fixincl-branch
Bruce Korb [Fri, 12 Mar 1999 07:44:19 +0000 (07:44 +0000)]
Missing merges from fixincl-branch

From-SVN: r25725

25 years agoNew test case.
Martin v. Löwis [Fri, 12 Mar 1999 05:18:20 +0000 (05:18 +0000)]
New test case.

From-SVN: r25724

25 years agoProblem fixed in g++.
Martin v. Löwis [Fri, 12 Mar 1999 03:41:32 +0000 (03:41 +0000)]
Problem fixed in g++.

From-SVN: r25723

25 years agoDaily bump.
Jeff Law [Fri, 12 Mar 1999 00:45:04 +0000 (17:45 -0700)]
Daily bump.

From-SVN: r25715

25 years agoexpr.c (expand_expr): Allow a CALL_EXPR with a mode wider than MAX_INTEGER_COMPUTATIO...
Jeffrey A Law [Fri, 12 Mar 1999 00:02:32 +0000 (00:02 +0000)]
expr.c (expand_expr): Allow a CALL_EXPR with a mode wider than MAX_INTEGER_COMPUTATION_MODE.

        * expr.c (expand_expr): Allow a CALL_EXPR with a mode wider than
        MAX_INTEGER_COMPUTATION_MODE.

From-SVN: r25714

25 years agoTests for various kinds of spurious uninit variable warning.
Zack Weinberg [Thu, 11 Mar 1999 16:00:04 +0000 (16:00 +0000)]
Tests for various kinds of spurious uninit variable warning.

`
Tests for various kinds of spurious uninit variable warning.
All are derived from cpplib; see comments in the files.

From-SVN: r25711

25 years agoTests for various kinds of spurious uninit variable warning.
Zack Weinberg [Thu, 11 Mar 1999 16:00:04 +0000 (16:00 +0000)]
Tests for various kinds of spurious uninit variable warning.

l
Tests for various kinds of spurious uninit variable warning.
All are derived from cpplib; see comments in the files.

From-SVN: r25710

25 years ago*** empty log message ***
Zack Weinberg [Thu, 11 Mar 1999 16:00:03 +0000 (16:00 +0000)]
*** empty log message ***

From-SVN: r25709

25 years agoAdd AUTOMATIC to list of unsupported extensions
Craig Burley [Thu, 11 Mar 1999 14:37:09 +0000 (14:37 +0000)]
Add AUTOMATIC to list of unsupported extensions

From-SVN: r25706

25 years ago* alpha.md (ev5_e0): Conflict loads and stores.
Richard Henderson [Thu, 11 Mar 1999 14:02:42 +0000 (06:02 -0800)]
* alpha.md (ev5_e0): Conflict loads and stores.

From-SVN: r25705

25 years agoalpha.h (HARD_REGNO_MODE_OK): Disallow QI/HImode in fp regs.
Richard Henderson [Thu, 11 Mar 1999 14:01:27 +0000 (06:01 -0800)]
alpha.h (HARD_REGNO_MODE_OK): Disallow QI/HImode in fp regs.

        * alpha.h (HARD_REGNO_MODE_OK): Disallow QI/HImode in fp regs.
        (MODES_TIEABLE_P): Update.

From-SVN: r25704