platform/upstream/gcc.git
25 years agotoplev.c (documented_lang_options): Recognize -include, -imacros, -iwithprefix, ...
Zack Weinberg [Wed, 30 Sep 1998 18:15:13 +0000 (18:15 +0000)]
toplev.c (documented_lang_options): Recognize -include, -imacros, -iwithprefix, -iwithprefixbefore.

        * toplev.c (documented_lang_options): Recognize -include,
        -imacros, -iwithprefix, -iwithprefixbefore.
        * cpplib.c (cpp_start_read): Process -imacros and -include
        switches at the same time and in command-line order, after
        initializing the dependency-output code.  Emit properly nested
        #line directives for them.  Emit a #line for the main file
        before processing these switches, and don't do it again
        afterward.

From-SVN: r22689

25 years agoregs.h (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
Michael Hayes [Wed, 30 Sep 1998 18:09:47 +0000 (18:09 +0000)]
regs.h (HARD_REGNO_CALL_PART_CLOBBERED): New macro.

        * regs.h (HARD_REGNO_CALL_PART_CLOBBERED):  New macro.
        * local-alloc.c (find_free_reg): Use it.
        * global.c (find_reg): Likewise.
        * tm.texi: Document HARD_REGNO_CALL_PART_CLOBBERED.

From-SVN: r22688

25 years agoTypo in last commit.
Richard Henderson [Wed, 30 Sep 1998 18:04:51 +0000 (11:04 -0700)]
Typo in last commit.

From-SVN: r22687

25 years agofunction.c (purge_addressof_1): Use bitfield manipulation routines to handle mem...
Richard Henderson [Wed, 30 Sep 1998 18:03:48 +0000 (11:03 -0700)]
function.c (purge_addressof_1): Use bitfield manipulation routines to handle mem mode < reg mode.

        * function.c (purge_addressof_1): Use bitfield manipulation
        routines to handle mem mode < reg mode.

From-SVN: r22686

25 years agoreorg.c (try_merge_delay_insns): Account for resources referenced in each instruction...
Herman ten Brugge [Wed, 30 Sep 1998 18:01:38 +0000 (20:01 +0200)]
reorg.c (try_merge_delay_insns): Account for resources referenced in each instruction in INSN's delay list...

        * reorg.c (try_merge_delay_insns): Account for resources referenced
        in each instruction in INSN's delay list before trying to eliminate
        useless instructions.  Similarly when looking at a trial insn's delay
        slots.
        * reorg.c (check_annul_list_true_false): New function.
        (steal_delay_list_from_{target,fallthrough}): Call it and also
        refine tests for when we may annul if already filled a slot.
        (fill_slots_from_thread): Likewise.
        (delete_from_delay_slot): Return newly-created thread.
        (try_merge_delay_isns): Use its new return value.

From-SVN: r22685

25 years agoloop.c (check_dbra_loop): Use a vanilla loop reversal if the biv is used to compute...
Jeffrey A Law [Wed, 30 Sep 1998 17:32:15 +0000 (17:32 +0000)]
loop.c (check_dbra_loop): Use a vanilla loop reversal if the biv is used to compute a giv or as some...

        * loop.c (check_dbra_loop): Use a vanilla loop reversal if the biv is
        used to compute a giv or as some other non-counting use.

From-SVN: r22684

25 years ago* parse.c (emit_label): Fix return-type of prototype.
Kaveh R. Ghazi [Wed, 30 Sep 1998 17:24:36 +0000 (17:24 +0000)]
* parse.c (emit_label): Fix return-type of prototype.

From-SVN: r22683

25 years agoregs.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
Jeff Law [Wed, 30 Sep 1998 17:21:12 +0000 (11:21 -0600)]
regs.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.

        * regs.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
        * caller-save.c (init_caller_save): Use it.
        * tm.texi: Document HARD_REGNO_CALLER_SAVE_MODE.

From-SVN: r22682

25 years agoconfigure.in: Escape ^ in grep string.
Robert Lipe [Wed, 30 Sep 1998 17:19:00 +0000 (11:19 -0600)]
configure.in: Escape ^ in grep string.

        * configure.in: Escape ^ in grep string.
        * configure: Rebuilt.

From-SVN: r22681

25 years agoWarning fixes:
Kaveh R. Ghazi [Wed, 30 Sep 1998 16:49:55 +0000 (16:49 +0000)]
Warning fixes:

* actions.c (chill_handle_multi_case_label): Always return a value
in function returning non-void.
* except.c: Include OS headers before any local ones.
* typeck.c (layout_chill_range_type): Change type of variable
`negprecision' to int.
(apply_chill_array_layout): Initialize variables `stepsize' and
`start_bit'.
(layout_chill_struct_type): Change type of variable `min_align' to
unsigned int.
(smash_dummy_type): Change name of variable `main' to `main_tree'.

From-SVN: r22680

25 years agoWarning fixes:
Kaveh R. Ghazi [Wed, 30 Sep 1998 16:34:45 +0000 (16:34 +0000)]
Warning fixes:

* actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
  ensure enough bits for calculation.
* ch-tree.h (check_text_length): Remove unused parameter.
* convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
function sprintf into the appropriate type for printing.
* decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
format specifier.
(print_mode): Likewise.
(init_decl_processing): Cast the arguments of bcopy/bzero to char *.
* grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
the format specifier.
* inout.c (check_text_length): Remove unused parameter `type'.
(build_chill_associate): Initialize variables `arg1', `arg2',
`arg3', `arg4' and `arg5'.
(build_chill_modify): Likewise.
(scanformcont): Change type of variable `curr' to `unsigned char'.
* lex.c (maybe_downcase): Cast the argument of `tolower' to
`unsigned char'.
* satisfy.c (satisfy): Remove unused parameter in call to
`check_text_length'.
* tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
as a `long' in call to function `error'.
(decl_tasking_code_variable): Likewise.

From-SVN: r22679

25 years agoGrr, fix address.
Kaveh Ghazi [Wed, 30 Sep 1998 16:10:05 +0000 (16:10 +0000)]
Grr, fix address.

From-SVN: r22678

25 years agoWarning fixes:
Kaveh R. Ghazi [Wed, 30 Sep 1998 16:07:19 +0000 (16:07 +0000)]
Warning fixes:

        * grant.c (decode_decl_selective): Cast switch's enum argument to
        an int.
        (really_grant_this): Add default case in switch.
        * typeck.c (chill_resulting_class): Add default cases in switch.
        Also add `break' statements after each case.

From-SVN: r22677

25 years agoconfigure.in: Add --enable-cpplib option which uses cpplib for cpp...
Zack Weinberg [Wed, 30 Sep 1998 11:59:24 +0000 (05:59 -0600)]
configure.in: Add --enable-cpplib option which uses cpplib for cpp...

        * configure.in: Add --enable-cpplib option which uses cpplib
        for cpp, but doesn't link cpplib into cc1.  Make help text
        capitalization consistent.
        * configure: Rebuilt.

From-SVN: r22670

25 years agou77-test.f (main): Excise `hostnm' to avoid losing on systems which need -lsocket.
Dave Love [Wed, 30 Sep 1998 11:51:37 +0000 (11:51 +0000)]
u77-test.f (main): Excise `hostnm' to avoid losing on systems which need -lsocket.

1998-09-30  Dave Love  <d.love@dl.ac.uk>
* g77.f-torture/execute/u77-test.f (main): Excise `hostnm' to
avoid losing on systems which need -lsocket.

From-SVN: r22669

25 years agoMakefile.in (f2cext.c): Depend on g2c.h.
Dave Love [Wed, 30 Sep 1998 11:50:08 +0000 (11:50 +0000)]
Makefile.in (f2cext.c): Depend on g2c.h.

1998-09-30  Dave Love  <d.love@dl.ac.uk>
* Makefile.in (f2cext.c): Depend on g2c.h.

From-SVN: r22668

25 years agofunction.c (gen_mem_addressof): If the address REG is REG_USERVAR_P make the new...
Mark Mitchell [Wed, 30 Sep 1998 10:10:02 +0000 (10:10 +0000)]
function.c (gen_mem_addressof): If the address REG is REG_USERVAR_P make the new REG be so also.

* function.c (gen_mem_addressof): If the address REG is
REG_USERVAR_P make the new REG be so also.
* loop.c (scan_loop): Apply DeMorgan's laws and add documentation
in an attempt to clarify slightly.

From-SVN: r22667

25 years agoexpr.c (expand_expr): Handle COMPONENT_REF...
Jeffrey A Law [Wed, 30 Sep 1998 08:59:18 +0000 (08:59 +0000)]
expr.c (expand_expr): Handle COMPONENT_REF...

        * expr.c (expand_expr): Handle COMPONENT_REF, BIT_FIELD_REF ARRAY_REF
        and INDIRECT_REF in code to check MAX_INTEGER_COMPUTATION_MODE.

From-SVN: r22666

25 years agofix bad patch.
Catherine Moore [Wed, 30 Sep 1998 08:26:10 +0000 (08:26 +0000)]
fix bad patch.

From-SVN: r22665

25 years ago* All .h files pushed down into the objc/ subdirectory.
Jeffrey A Law [Wed, 30 Sep 1998 08:17:56 +0000 (08:17 +0000)]
* All .h files pushed down into the objc/ subdirectory.

        * Makefile.in (copy_headers): Corresponding changes.
        * configure.in (AC_INIT): Corresponding changes.
        * configure: Rebuilt.

From-SVN: r22664

25 years agoRebuilt.
Jeff Law [Wed, 30 Sep 1998 08:08:06 +0000 (02:08 -0600)]
Rebuilt.

From-SVN: r22663

25 years agoMakefile.in (all): Correct dependencies do --disable-multilibs works again.
Robert Lipe [Wed, 30 Sep 1998 08:05:57 +0000 (08:05 +0000)]
Makefile.in (all): Correct dependencies do --disable-multilibs works again.

* Makefile.in (all): Correct dependencies do --disable-multilibs
works again.
   (distclean): Correct typo.

From-SVN: r22662

25 years agoopen.c: Back out part of last Netlib update affecting scratch files which clashed...
Dave Love [Wed, 30 Sep 1998 02:45:44 +0000 (02:45 +0000)]
open.c: Back out part of last Netlib update affecting scratch files which clashed with...

1998-09-28  Dave Love  <d.love@dl.ac.uk>
* libI77/open.c: Back out part of last Netlib update affecting
scratch files which clashed with the g77 variations and broke
implicit endfile on rewind.

From-SVN: r22660

25 years agoMakefile.in: Rewrite.
Ben Elliston [Wed, 30 Sep 1998 02:13:15 +0000 (02:13 +0000)]
Makefile.in: Rewrite.

        * Makefile.in: Rewrite.
        * configure.in: Likewise.
        * configure: Regenerate.
        * All .c files.  Remove "objc" prefix when including objc header
        files.  Include tconfig.h, not ../tconfig.h.

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

25 years agoMakefile.in (TARGET_CONFIGDIRS): Add libobjc.
Jeffrey A Law [Wed, 30 Sep 1998 02:02:35 +0000 (02:02 +0000)]
Makefile.in (TARGET_CONFIGDIRS): Add libobjc.

        * Makefile.in (TARGET_CONFIGDIRS): Add libobjc.
        (ALL_TARGET_MODULES): Add all-target-libobjc.
        (CONFIGURE_TARGET_MODULES, CHECK_TARGET_MODULES): Similarly.
        (INSTALL_TARGET_MODULES, CLEAN_TARGET_MODULES): Similarly.
        (all-target-libchill): Add dependencies.
        * configure.in (target_libs): Add libchill.

From-SVN: r22658

25 years agoDaily bump.
Jeff Law [Wed, 30 Sep 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r22657

25 years agoconfigure.in (target_subdir): Remove duplicate line.
Manfred Hollstein [Tue, 29 Sep 1998 23:50:57 +0000 (23:50 +0000)]
configure.in (target_subdir): Remove duplicate line.


* configure.in (target_subdir): Remove duplicate line.

From-SVN: r22656

25 years agoFix typo that disabled loop unrolling for many targets.
Jim Wilson [Tue, 29 Sep 1998 20:04:10 +0000 (20:04 +0000)]
Fix typo that disabled loop unrolling for many targets.

* loop.c (get_condition): Fix typo in May 9 change.

From-SVN: r22650

25 years agoch-tree.h (build_compare_expr): Change first argument's type from `enum chill_tree_co...
Kaveh R. Ghazi [Tue, 29 Sep 1998 18:41:05 +0000 (18:41 +0000)]
ch-tree.h (build_compare_expr): Change first argument's type from `enum chill_tree_code' to `enum tree_code'.

        * ch-tree.h (build_compare_expr): Change first argument's type
        from `enum chill_tree_code' to `enum tree_code'.
        (build_compare_discrete_expr): Likewise.
        * expr.c (build_compare_set_expr): Likewise.
        (build_compare_string_expr): Likewise.
        (build_compare_expr): Likewise.
        (build_compare_discrete_expr): Likewise.  Also add default case in
        switch statement.
        (compare_int_csts): Add default case in switch statement.

From-SVN: r22643

25 years ago
Benjamin Kosnik [Tue, 29 Sep 1998 16:13:35 +0000 (16:13 +0000)]

new test

From-SVN: r22642

25 years ago*** empty log message ***
Benjamin Kosnik [Tue, 29 Sep 1998 16:13:14 +0000 (16:13 +0000)]
*** empty log message ***

From-SVN: r22641

25 years agoAdd entry for -fdump-unnumberd option.
Joern Rennecke [Tue, 29 Sep 1998 14:23:09 +0000 (15:23 +0100)]
Add entry for -fdump-unnumberd option.

From-SVN: r22640

25 years agoinvoke.texi (-fexceptions): Merge 2 different descriptions.
Andrew MacLeod [Tue, 29 Sep 1998 08:15:16 +0000 (08:15 +0000)]
invoke.texi (-fexceptions): Merge 2 different descriptions.

Tue Sep 29 11:11:38 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
        * invoke.texi (-fexceptions): Merge 2 different descriptions.

From-SVN: r22635

25 years agoDaily bump.
Jeff Law [Tue, 29 Sep 1998 00:45:01 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r22634

25 years agobitfld1.C: expected failure
Alexandre Oliva [Mon, 28 Sep 1998 21:24:13 +0000 (21:24 +0000)]
bitfld1.C: expected failure

* g++.old-deja/g++.other/bitfld1.C: expected failure
* g++.old-deja/g++.other/nested2.C: ditto
* g++.old-deja/g++.robertl/eb132.C: no longer an expected failure

From-SVN: r22633

25 years ago* semantics.c (finish_asm_stmt): Always permit volatile asms.
Anthony Green [Mon, 28 Sep 1998 20:23:27 +0000 (20:23 +0000)]
* semantics.c (finish_asm_stmt): Always permit volatile asms.

From-SVN: r22632

25 years agotoplev.c (documented_lang_options): Spelling corrections.
Kaveh R. Ghazi [Mon, 28 Sep 1998 19:13:25 +0000 (19:13 +0000)]
toplev.c (documented_lang_options): Spelling corrections.

        * toplev.c (documented_lang_options): Spelling corrections.
(`whoes' -> `whose')

From-SVN: r22631

25 years agodecl.c (grokdeclarator): Tighten checks for invalid destructors.
Mark Mitchell [Mon, 28 Sep 1998 17:34:33 +0000 (17:34 +0000)]
decl.c (grokdeclarator): Tighten checks for invalid destructors.

* decl.c (grokdeclarator): Tighten checks for invalid
destructors.  Improve error-messages and error-recovery.
* decl2.c (check_classfn): Don't assume that mangled destructor
names contain type information.

From-SVN: r22630

25 years agoconfigure.in: new flags --with-ld and --with-as...
Alexandre Oliva [Mon, 28 Sep 1998 15:52:01 +0000 (15:52 +0000)]
configure.in: new flags --with-ld and --with-as...

* configure.in: new flags --with-ld and --with-as, equivalent
to setting LD and AS environment variables.  Test whether
specified arguments are GNU commands, and report them with
checking messages.  Use the specified AS for configure
tests too.
* configure: ditto
* acconfig.h: add DEFAULT_ASSEMBLER and DEFAULT_LINKER
* config.in: ditto
* gcc.c (find_a_file): when looking for `as' and `ld', return
the DEFAULT program if it exists
* collect2.c (main): use DEFAULT_LINKER if it exists
* gcc.c (find_a_file): the test for existence of a full
pathname was reversed

From-SVN: r22629

25 years agoMake ASM_OUTPUT_MI_THUNK ELF only for now and always use jump
Michael Meissner [Mon, 28 Sep 1998 14:40:27 +0000 (14:40 +0000)]
Make ASM_OUTPUT_MI_THUNK ELF only for now and always use jump

From-SVN: r22628

25 years ago* tree.h (TYPE_BINFO): Document.
Mark Mitchell [Mon, 28 Sep 1998 14:23:17 +0000 (14:23 +0000)]
* tree.h (TYPE_BINFO): Document.

From-SVN: r22627

25 years agoi386-coff.h (dbxcoff.h): Added.
Stan Cox [Mon, 28 Sep 1998 11:05:13 +0000 (11:05 +0000)]
i386-coff.h (dbxcoff.h): Added.

From-SVN: r22626

25 years agofix last patch.
Catherine Moore [Mon, 28 Sep 1998 10:57:35 +0000 (10:57 +0000)]
fix last patch.

From-SVN: r22622

25 years agoApplied Jim's small patch to reload () for arm-elf.
Nick Clifton [Mon, 28 Sep 1998 10:33:41 +0000 (10:33 +0000)]
Applied Jim's small patch to reload () for arm-elf.

From-SVN: r22621

25 years agoc-common.c (c_get_alias_set): Tighten slightly for FUNCTION_TYPEs and ARRAY_TYPEs.
Mark Mitchell [Mon, 28 Sep 1998 07:44:12 +0000 (07:44 +0000)]
c-common.c (c_get_alias_set): Tighten slightly for FUNCTION_TYPEs and ARRAY_TYPEs.

* c-common.c (c_get_alias_set): Tighten slightly for FUNCTION_TYPEs
and ARRAY_TYPEs.  Tidy up.  Improve support for type-punning.
* expr.c (store_field): Add alias_set parameter.  Set the
MEM_ALIAS_SET accordingly, if the target is a MEM.
(expand_assignment): Use it.
(store_constructor_field): Pass 0.
(expand_expr): Likewise.

From-SVN: r22620

25 years agoflags.h: Add flag_data_sections.
Catherine Moore [Mon, 28 Sep 1998 06:24:06 +0000 (06:24 +0000)]
flags.h: Add flag_data_sections.

        * flags.h:  Add flag_data_sections.
        * toplev.c:  Add option -fdata-sections.  Add flag_data_sections.
        (compile_file):  Error if flag_data_sections not supported.
        * varasm.c (assemble_variable):  Handle flag_data_sections.
        * config/svr4.h:  Modify prefixes for UNIQUE_SECTION_NAME.
        * config/mips/elf.h:  Likewise.
        * config/mips/elf64.h:  Likewise.
        * invoke.texi:  Describe -fdata-sections.

From-SVN: r22619

25 years agoFix typos.
Jeff Law [Mon, 28 Sep 1998 03:24:01 +0000 (21:24 -0600)]
Fix typos.

From-SVN: r22616

25 years ago* news.texi: Update from Craig.
Jeffrey A Law [Mon, 28 Sep 1998 03:23:24 +0000 (03:23 +0000)]
* news.texi: Update from Craig.

From-SVN: r22615

25 years agoinvoke.texi (-ffloat-store): Clarify that this option does not affect intermediate...
Craig Burley [Mon, 28 Sep 1998 03:17:17 +0000 (03:17 +0000)]
invoke.texi (-ffloat-store): Clarify that this option does not affect intermediate results -- only variables.

        * invoke.texi (-ffloat-store): Clarify that this option
        does not affect intermediate results -- only variables.

From-SVN: r22614

25 years ago* cpp.texi: Update for Fortran usage from Craig.
Jeffrey A Law [Mon, 28 Sep 1998 03:14:40 +0000 (03:14 +0000)]
* cpp.texi: Update for Fortran usage from Craig.

From-SVN: r22613

25 years agoconfigure.in: Minor cleanups for building in the $(target_alias) subdir.
Jeffrey A Law [Mon, 28 Sep 1998 03:07:27 +0000 (03:07 +0000)]
configure.in: Minor cleanups for building in the $(target_alias) subdir.

        * configure.in: Minor cleanups for building in the $(target_alias)
        subdir.

From-SVN: r22612

25 years agoDaily bump.
Jeff Law [Mon, 28 Sep 1998 00:45:32 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r22611

25 years agoDaily bump.
Jeff Law [Sun, 27 Sep 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r22604

25 years agofix
Jason Merrill [Sat, 26 Sep 1998 02:24:42 +0000 (22:24 -0400)]
fix

From-SVN: r22601

25 years agoDaily bump.
Jeff Law [Sat, 26 Sep 1998 00:45:01 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r22600

25 years agobitfld1.C: built-in operator!= should be preferred over template operator!= for enum...
Alexandre Oliva [Fri, 25 Sep 1998 22:57:30 +0000 (22:57 +0000)]
bitfld1.C: built-in operator!= should be preferred over template operator!= for enum bitfields

* g++.old-deja/g++.other/bitfld1.C: built-in operator!= should be
preferred over template operator!= for enum bitfields

From-SVN: r22599

25 years agoupdate
Jason Merrill [Fri, 25 Sep 1998 21:46:25 +0000 (17:46 -0400)]
update

From-SVN: r22598

25 years agosearch.c (get_base_distance): Remove assert.
Jason Merrill [Fri, 25 Sep 1998 21:34:50 +0000 (21:34 +0000)]
search.c (get_base_distance): Remove assert.

* search.c (get_base_distance): Remove assert.
* decl2.c (build_anon_union_vars): Don't process a field with no
name.
(finish_anon_union): Also complain about local anon unions with no
members.

From-SVN: r22597

25 years ago- fixup botched commit
David Edelsohn [Fri, 25 Sep 1998 19:19:03 +0000 (15:19 -0400)]
- fixup botched commit

From-SVN: r22596

25 years agors6000.c (function_arg_boundary): Revert accidental change on September 18.
David Edelsohn [Fri, 25 Sep 1998 19:11:55 +0000 (19:11 +0000)]
rs6000.c (function_arg_boundary): Revert accidental change on September 18.

        * rs6000.c (function_arg_boundary): Revert accidental change on
        September 18.

From-SVN: r22595

25 years agoAdd OUTPUT_ASM_MI_THUNK; use r12 as temp for System V profiling, not r11
Michael Meissner [Fri, 25 Sep 1998 17:49:19 +0000 (17:49 +0000)]
Add OUTPUT_ASM_MI_THUNK; use r12 as temp for System V profiling, not r11

From-SVN: r22594

25 years ago- update comment to clarify that this file is specific to AIX and 32-bit mode.
David Edelsohn [Fri, 25 Sep 1998 14:56:26 +0000 (10:56 -0400)]
- update comment to clarify that this file is specific to AIX and 32-bit mode.

From-SVN: r22593

25 years agoFix nightly testing i386-coff libstdc++ build failure.
Jim Wilson [Fri, 25 Sep 1998 14:37:13 +0000 (14:37 +0000)]
Fix nightly testing i386-coff libstdc++ build failure.

* sdbout.c (sdbout_one_type): Don't look at TYPE_BINFO field of enums.

From-SVN: r22592

25 years ago* sh.c (gen_shl_sext): Fix case 5.
J"orn Rennecke [Fri, 25 Sep 1998 11:37:01 +0000 (11:37 +0000)]
* sh.c (gen_shl_sext): Fix case 5.

From-SVN: r22591

25 years agoNew test case.
Martin v. Löwis [Fri, 25 Sep 1998 11:17:12 +0000 (11:17 +0000)]
New test case.

From-SVN: r22590

25 years agodecl.c (lookup_namespace_name): If the name is a namespace, return it immediately.
Martin v. Löwis [Fri, 25 Sep 1998 11:07:29 +0000 (11:07 +0000)]
decl.c (lookup_namespace_name): If the name is a namespace, return it immediately.

1998-09-24  Martin von L�wis  <loewis@informatik.hu-berlin.de>
* decl.c (lookup_namespace_name): If the name is a namespace,
return it immediately.

From-SVN: r22589

25 years ago* reload1.c (reload_combine): Re-add line that got accidentally lost.
J"orn Rennecke [Fri, 25 Sep 1998 09:38:08 +0000 (09:38 +0000)]
* reload1.c (reload_combine): Re-add line that got accidentally lost.

From-SVN: r22588

25 years agoWarning fixes:
Kaveh R. Ghazi [Fri, 25 Sep 1998 09:00:04 +0000 (09:00 +0000)]
Warning fixes:

* cp-tree.h (define_case_label): Remove unused parameter.
(check_java_method): Likewise.
(grokclassfn): Likewise.
(expand_aggr_init): Likewise.
(build_x_delete): Likewise.
(maybe_end_member_template_processing): Likewise.
(unshare_base_binfos): Add prototype.
(string_conv_p): Likewise.
(my_friendly_abort): Mark with ATTRIBUTE_NORETURN.
* cvt.c (build_up_reference): Remove unused parameter
  `checkconst', all callers changed.
(build_type_conversion): Mark parameter `code' with
ATTRIBUTE_UNUSED.
(build_expr_type_conversion): Initialize variable `conv'.
* decl.c (push_namespace): Initialize variable `d'.
   (define_case_label): Remove unused parameter `decl', all callers
  changed.
* decl2.c (lang_decode_option): If !USE_CPPLIB, mark parameter
  `argc' with ATTRIBUTE_UNUSED.
(grokclassfn): Remove unused parameter `cname', all callers
  changed.
(check_java_method): Likewise for parameter `ctype'.
(copy_assignment_arg_p): Mark parameter `virtualp' with
ATTRIBUTE_UNUSED.
(finish_prevtable_vardecl): Likewise for parameter `prev'.
* expr.c (extract_init): Likewise for parameters `decl' and `init'.
* init.c (expand_aggr_init_1): Remove unused parameter
  `alias_this', all callers changed.
(expand_aggr_init): Likewise.
(expand_default_init): Likewise.
(build_new_1): Initialize variable `susp'.
(build_x_delete): Remove unused parameter `type', all callers
changed.
* lex.c (set_typedecl_interface_info): Mark parameter `prev' with
ATTRIBUTE_UNUSED.
(readescape): Use (unsigned) value in shift.
(real_yylex): Likewise.  Likewise.  Also cast `sizeof' to int when
comparing to a signed quantity.
* pt.c (maybe_end_member_template_processing): Remove unused
  parameter `decl', all callers changed.
(check_explicit_specialization): Add braces around empty body in
an else-statement.
(current_template_args): Initialize variable `args'.
(lookup_template_class): Likewise for variable `prev_local_enum'.
(tsubst_decl): Likewise for variable `r'.
(set_mangled_name_for_template_decl): Initialize variable
`context'.
* spew.c (scan_tokens): Change type of parameter `n' to unsigned.
Likewise for variable `i'.
(yylex): Initialize variable `trrr'.
* typeck.c (compparms): Mark variable `strict' with
ATTRIBUTE_UNUSED.
* xref.c (simplify_type): Cast argument of ctype function to
`unsigned char'.

From-SVN: r22587

25 years agoRemove XFAIL
Mark Mitchell [Fri, 25 Sep 1998 08:37:45 +0000 (08:37 +0000)]
Remove XFAIL

From-SVN: r22586

25 years agocccp.c (pedwarn_with_file_and_line): For !__STDC__ case...
Kaveh R. Ghazi [Fri, 25 Sep 1998 07:49:07 +0000 (07:49 +0000)]
cccp.c (pedwarn_with_file_and_line): For !__STDC__ case...

        * cccp.c (pedwarn_with_file_and_line): For !__STDC__ case, avoid
        accessing variables until they are initialized via va_arg().

From-SVN: r22585

25 years agoDaily bump.
Jeff Law [Fri, 25 Sep 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r22584

25 years agocp-tree.h (language_lvalue_valid): Remove.
Mark Mitchell [Thu, 24 Sep 1998 23:53:37 +0000 (23:53 +0000)]
cp-tree.h (language_lvalue_valid): Remove.

* cp-tree.h (language_lvalue_valid): Remove.
* decl.c (grokdeclarator): Don't disallow references to functions.
* tree.c (lvalue_p_1): New function, combining duplicated
code from ...
(lvalue_p): Use it.
(real_lvalue_p): Likewise.
* typeck.c (language_lvalue_valid): Remove.
(build_modify_expr): Treat FUNCTION_TYPEs as readonly, even though
they don't have TREE_READONLY set.
* typeck2.c (readonly_error): Add case for FUNCTION_DECLs.

From-SVN: r22583

25 years agoreload1.c (reload_combine): Initialize set before using.
David S. Miller [Thu, 24 Sep 1998 23:18:31 +0000 (23:18 +0000)]
reload1.c (reload_combine): Initialize set before using.

Thu Sep 24 22:12:16 1998  David S. Miller  <davem@pierdol.cobaltmicro.com>
* reload1.c (reload_combine): Initialize set before using.

From-SVN: r22582

25 years ago*** empty log message ***
Benjamin Kosnik [Thu, 24 Sep 1998 22:30:05 +0000 (22:30 +0000)]
*** empty log message ***

From-SVN: r22581

25 years agospew.c (yylex): Give diagnostic.
Benjamin Kosnik [Thu, 24 Sep 1998 22:29:31 +0000 (22:29 +0000)]
spew.c (yylex): Give diagnostic.


1998-09-24  Benjamin Kosnik  <bkoz@loony.cygnus.com>
* spew.c (yylex): Give diagnostic.
* hash.h (is_reserved_word): Add export.
* gxx.gperf: Ditto.
* lex.h (rid): Add RID_EXPORT.
* lex.c (init_parse): Ditto.

From-SVN: r22580

25 years agospew.c (yylex): Give diagnostic.
Benjamin Kosnik [Thu, 24 Sep 1998 22:29:29 +0000 (22:29 +0000)]
spew.c (yylex): Give diagnostic.


1998-09-24  Benjamin Kosnik  <bkoz@loony.cygnus.com>
* spew.c (yylex): Give diagnostic.
* hash.h (is_reserved_word): Add export.
* gxx.gperf: Ditto.
* lex.h (rid): Add RID_EXPORT.
* lex.c (init_parse): Ditto.

From-SVN: r22579

25 years agospew.c (yylex): Give diagnostic.
Benjamin Kosnik [Thu, 24 Sep 1998 22:29:28 +0000 (22:29 +0000)]
spew.c (yylex): Give diagnostic.


1998-09-24  Benjamin Kosnik  <bkoz@loony.cygnus.com>
* spew.c (yylex): Give diagnostic.
* hash.h (is_reserved_word): Add export.
* gxx.gperf: Ditto.
* lex.h (rid): Add RID_EXPORT.
* lex.c (init_parse): Ditto.

From-SVN: r22578

25 years agospew.c (yylex): Give diagnostic.
Benjamin Kosnik [Thu, 24 Sep 1998 22:29:27 +0000 (22:29 +0000)]
spew.c (yylex): Give diagnostic.


1998-09-24  Benjamin Kosnik  <bkoz@loony.cygnus.com>
* spew.c (yylex): Give diagnostic.
* hash.h (is_reserved_word): Add export.
* gxx.gperf: Ditto.
* lex.h (rid): Add RID_EXPORT.
* lex.c (init_parse): Ditto.

From-SVN: r22577

25 years agosdbout.c (sdbout_field_types): Don't emit the types of fields we won't be emitting.
Jason Merrill [Thu, 24 Sep 1998 18:54:38 +0000 (18:54 +0000)]
sdbout.c (sdbout_field_types): Don't emit the types of fields we won't be emitting.

* sdbout.c (sdbout_field_types): Don't emit the types of fields we
won't be emitting.

From-SVN: r22576

25 years agofix
Jason Merrill [Thu, 24 Sep 1998 18:21:09 +0000 (14:21 -0400)]
fix

From-SVN: r22575

25 years agoApplied Jim's patch to "insv" pattern
Nick Clifton [Thu, 24 Sep 1998 17:08:41 +0000 (17:08 +0000)]
Applied Jim's patch to "insv" pattern

From-SVN: r22574

25 years agosparc.c (function_value): Perform the equivalent of PROMOTE_MODE for ARCH64.
Jakub Jelinek [Thu, 24 Sep 1998 16:16:58 +0000 (18:16 +0200)]
sparc.c (function_value): Perform the equivalent of PROMOTE_MODE for ARCH64.

Thu Sep 24 15:08:08 1998  Jakub Jelinek  <jj@sunsite.ms.mff.cuni.cz>
* config/sparc/sparc.c (function_value): Perform the equivalent of
PROMOTE_MODE for ARCH64.
(eligible_for_epilogue_delay): Allow DImode operations in delay
slot of a return for ARCH64.

From-SVN: r22573

25 years ago* sh.md (sqrtsf2): Fix mode of sqrt.
J"orn Rennecke [Thu, 24 Sep 1998 14:20:37 +0000 (14:20 +0000)]
* sh.md (sqrtsf2): Fix mode of sqrt.

From-SVN: r22572

25 years agoreload1.c (choose_reload_regs): Also try inheritance when reload_in is a stack slot...
J"orn Rennecke [Thu, 24 Sep 1998 13:58:43 +0000 (13:58 +0000)]
reload1.c (choose_reload_regs): Also try inheritance when reload_in is a stack slot of a pseudo...

* reload1.c (choose_reload_regs): Also try inheritance when
reload_in is a stack slot of a pseudo, even if we already got a
reload reg.

From-SVN: r22571

25 years agoreload1.c (reload_cse_regs_1): Renamed from reload_cse_regs.
J"orn Rennecke [Thu, 24 Sep 1998 13:27:20 +0000 (13:27 +0000)]
reload1.c (reload_cse_regs_1): Renamed from reload_cse_regs.

* reload1.c (reload_cse_regs_1): Renamed from reload_cse_regs.
(reload_cse_regs): New function body: call reload_cse_regs_1,
reload_combine, reload_cse_move2add.
When doing expensive_optimizations, call reload_cse_regs_1 a
second time after reload_cse_move2add.
(reload_combine, reload_combine_note_store): New functions.
(reload_combine_note_use): New function.
(reload_cse_move2add, move2add_note_store): New functions.

From-SVN: r22570

25 years agoFix `make bootstrap' failures where libraries are compiled with wrong compiler.
Jim Wilson [Thu, 24 Sep 1998 11:13:50 +0000 (11:13 +0000)]
Fix `make bootstrap' failures where libraries are compiled with wrong compiler.

* Makefile.in (bootstrap): Set r and s before make all.  Use
BASE_FLAGS_TO_PASS in make all.
(cross): Likewise.

From-SVN: r22569

25 years agoreload.c (find_reloads): In code to promote RELOAD_FOR_X_ADDR_ADDR reloads to RELOAD_...
J"orn Rennecke [Thu, 24 Sep 1998 10:51:35 +0000 (10:51 +0000)]
reload.c (find_reloads): In code to promote RELOAD_FOR_X_ADDR_ADDR reloads to RELOAD_FOR_X_ADDRESS...

* reload.c (find_reloads): In code to promote RELOAD_FOR_X_ADDR_ADDR
reloads to RELOAD_FOR_X_ADDRESS reloads, test for reload sharing.
Properly keep track of first RELOAD_FOR_X_ADDRESS also for
more than 3 such reloads.
If there is not more than one RELOAD_FOR_X_ADDRESS, don't change
RELOAD_FOR_X_ADDR_ADDR reload.

From-SVN: r22568

25 years agoexpr.c (store_constructor): When initializing a field that is smaller than a word...
J"orn Rennecke [Thu, 24 Sep 1998 09:59:41 +0000 (09:59 +0000)]
expr.c (store_constructor): When initializing a field that is smaller than a word...

* expr.c (store_constructor): When initializing a field that is smaller
than a word, at the start of a word, try to widen it to a full word.
* cse.c (cse_insn): When we are about to change a register,
remove any invalid references to it.
(remove_invalid_subreg_refs): New function.
(mention_regs): Special treatment for SUBREGs.
(insert_regs): Don't strip SUBREG for call to mention_regs.
Check if reg_tick needs to be bumped up before that call.
(lookup_as_function): Try to match known word_mode constants when
looking for a norrower constant.
(canon_hash): Special treatment for SUBREGs.

From-SVN: r22567

25 years agog77.texi: Additions about `/*', trailing comments and cpp.
Dave Love [Thu, 24 Sep 1998 08:40:26 +0000 (08:40 +0000)]
g77.texi: Additions about `/*', trailing comments and cpp.

1998-09-23  Dave Love  <d.love@dl.ac.uk>
        * g77.texi: Additions about `/*', trailing comments and cpp.

From-SVN: r22566

25 years ago[multiple changes]
David S. Miller [Thu, 24 Sep 1998 02:44:55 +0000 (19:44 -0700)]
[multiple changes]

Thu Sep 24 01:35:34 1998  David S. Miller  <davem@pierdol.cobaltmicro.com>
* config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Define.
* config/sparc/sparc.c (sparc64_initialize_trampoline): If that is
defined, emit libcall to __enable_execute_stack.  Also fix opcodes
and offsets in actual stack trampoline code so they match the
commentary and actually work.
Thu Sep 24 01:19:02 1998  Jakub Jelinek  <jj@sunsite.ms.mff.cuni.cz>
* configure.in (sparcv9-*-solaris): Use t-sol2 and t-sol2-64 for
tmake_file.
(sparc64-*-linux): Use t-linux and sparc/t-linux64 for
tmake_file.  Set extra_parts to needed crt objects.
* configure: Rebuilt.
* config/sparc/linux64.h (SPARC_BI_ARCH): Define.
(TARGET_DEFAULT): Set if default is v9 or ultra.
(STARTFILE_SPEC32, STARTFILE_SPEC64): New macros.
(STARTFILE_SPEC): Set to those upon SPARC_BI_ARCH.
(ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_SPEC): Likewise.
(SUBTARGET_EXTRA_SPECS, LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
LINK_SPEC, LINK_ARCH_SPEC): Likewise.
(TARGET_VERSION): Define.
(MULTILIB_DEFAULT): Define.
* config/sparc/sparc.h (CPP_CPU_DEFAULT_SPEC): Rearrange so that
mixed 32/64 bit compilers based upon SPARC_BI_ARCH work.
(CPP_CPU64_DEFAULT_SPEC, CPP_CPU32_DEFAULT_SEC): Define
appropriately.
(TARGET_SWITCHES): Allow ptr32/ptr64 options once more.
* config/sparc/sparc.c (sparc_override_options): If arch and
pointer size disagree, emit diagnostic and fix it up.  If
SPARC_BI_ARCH and TARGET_ARCH32, set cmodel to CM_32.  Turn off
V8PLUS in 64-bit mode.
* config/sparc/t-linux64: New file.
* config/sparc/t-sol2-64: New file.
* config/sparc/t-sol2: Adjust build rules to use MULTILIB_CFLAGS.
* config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Define.
(ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC,
CPP_CPU32_DEFAULT_SPEC, CPP_CPU64_DEFAULT_SPEC): Define.
(ASM_SPEC, CPP_CPU_SPEC): Set appropriately based upon those.
(STARTFILE_SPEC32, STARTFILE_SPEC32, STARTFILE_ARCH_SPEC):
Define.
(STARTFILE_SPEC): Set approriately based upon those.
(CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Set based upon
disposition of DEFAULT_ARCH32_P.
(LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Define.
(LINK_ARCH_SPEC, LINK_ARCH_DEFAULT_SPEC): Set based upon those.
(CC1_SPEC, MULTILIB_DEFAULTS): Set based upon DEFAULT_ARCH32_P.
(MD_STARTFILE_PREFIX): Set correctly based upon SPARC_BI_ARCH.
* config/sparc/xm-sysv4-64.h (HOST_BITS_PER_LONG): Only set on
arch64/v9.
* config/sparc/xm-sp64.h (HOST_BITS_PER_LONG): Likewise.

From-SVN: r22565

25 years agoDaily bump.
Jeff Law [Thu, 24 Sep 1998 00:45:03 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r22564

25 years agortl.h (init_virtual_regs): New function.
Mark Mitchell [Wed, 23 Sep 1998 23:28:17 +0000 (23:28 +0000)]
rtl.h (init_virtual_regs): New function.

* rtl.h (init_virtual_regs): New function.
* emit-rtl.c (init_virtual_regs): Define.
(insn_emit): Use it.
* integrate.c (save_for_inline_copying): Likewise.

From-SVN: r22563

25 years agoAdd Jim's patches to improve reload behaviour.
Nick Clifton [Wed, 23 Sep 1998 16:44:39 +0000 (16:44 +0000)]
Add Jim's patches to improve reload behaviour.

From-SVN: r22561

25 years agoAdd comment provided by Jim Wilson.
Nick Clifton [Wed, 23 Sep 1998 16:24:09 +0000 (16:24 +0000)]
Add comment provided by Jim Wilson.

From-SVN: r22560

25 years agoalpha.c (get_aligned_mem): Revert Sep 20 change.
Richard Henderson [Wed, 23 Sep 1998 13:28:53 +0000 (06:28 -0700)]
alpha.c (get_aligned_mem): Revert Sep 20 change.

        * alpha.c (get_aligned_mem): Revert Sep 20 change.
        (alpha_set_memflags, alpha_set_memflags_1): Likewise.
        (alpha_align_insns): Properly calculate initial offset wrt max_align.

From-SVN: r22559

25 years agoarm.c (find_barrier): Revert change of Apr 23.
Richard Earnshaw [Wed, 23 Sep 1998 10:49:06 +0000 (10:49 +0000)]
arm.c (find_barrier): Revert change of Apr 23.

* arm.c (find_barrier): Revert change of Apr 23.  Handle table
jumps as a single entity, taking into account the size of the
table.

From-SVN: r22558

25 years ago* friend.c (do_friend): Make warning a full sentence.
Gerald Pfeifer [Wed, 23 Sep 1998 04:39:00 +0000 (06:39 +0200)]
* friend.c (do_friend): Make warning a full sentence.

From-SVN: r22555

25 years agoDaily bump.
Jeff Law [Wed, 23 Sep 1998 00:45:02 +0000 (18:45 -0600)]
Daily bump.

From-SVN: r22554

25 years agotree.def (SWITCH_EXPR): New tree node definition.
Alexandre Petit-Bianco [Tue, 22 Sep 1998 17:48:12 +0000 (10:48 -0700)]
tree.def (SWITCH_EXPR): New tree node definition.

8
* tree.def (SWITCH_EXPR): New tree node definition.

From-SVN: r22553

25 years agotree.def (SWITCH_EXPR): New tree node definition.
Alexandre Petit-Bianco [Tue, 22 Sep 1998 17:48:10 +0000 (10:48 -0700)]
tree.def (SWITCH_EXPR): New tree node definition.


* tree.def (SWITCH_EXPR): New tree node definition.

From-SVN: r22552