Commit Graph

11948 Commits

Author SHA1 Message Date
Per Bothner e2f79f3c03 cpplib.c (xcalloc): From from cppalloc.c.
* cpplib.c (xcalloc):  From from cppalloc.c.
* cpplib.c (cpp_push_buffer):  If recursion too deap, return NULL
rather than exiting with fatal.
(make_assertion, cpp_expand_to_buffer, push_macro_expansion,
do_include, cpp_start_rea):  Handle NULL return from cpp_push_buffer.
(output_line_command):  Update position even if no_output.
        (parse_clear_mark):  Use fatal instead of abort.

From-SVN: r12207
1996-06-07 00:30:20 -07:00
Per Bothner 426b6fa3ab cppalloc.c (memory_full): Don't use fatal; use fprintf+exit.
* cppalloc.c (memory_full):  Don't use fatal;  use fprintf+exit.
* cppalloc.c (xcalloc):  Move from here to cpplib.c.

From-SVN: r12206
1996-06-07 00:29:20 -07:00
Jeff Law fabe72bb89 h8300.c (h8300_monitor_function_p): New function.
* h8300/h8300.c (h8300_monitor_function_p): New function.
        (h8300_os_task_function_p): Likewise.
        (os_task, monitor): Variables to note if the current
        function is an os_task or monitor.
        (function_prologue): Set monitor and/or os_task as needed.  Handle
        os_task and monitor functions.
        (function_epilogue): Clear monitor and os_task.  Handle os_task and
        monitor functions.
        (h8300_valid_machine_decl_attribute): Accept "OS_Task" and
        "monitor".

From-SVN: r12205
1996-06-06 21:13:53 -06:00
Per Bothner c57a4b7c02 fix-header.c (read_scan_file): Use cpp_fatal.
* fix-header.c (read_scan_file):  Use cpp_fatal.
Use renamed function names, and return protocols.
* fix-header.c (check_macro_names):  Fix struct parse_file->cpp_reader.

From-SVN: r12204
1996-06-06 20:07:32 -07:00
Per Bothner 59de031165 cppmain.c (main): Use CPP_SET_WRITTEN and cpp_fatal.
* cppmain.c (main):  Use CPP_SET_WRITTEN and cpp_fatal.
Use renamed function names, and return protocols.

From-SVN: r12203
1996-06-06 20:06:57 -07:00
Per Bothner a94c94be24 cpplib.c (init_parse_option): Renamed to cpp_options_init.
* cpplib.c (init_parse_option):  Renamed to cpp_options_init.
(push_parse_file):  Renamed to ...
(cpp_start_read):  Change to return 1 on success, 0 on failure.
(init_parse_file):  Renamed to cpp_reader_init.
* cpplib.c (cpp_start_read, cpp_handle_options, cpp_finish,
parse_goto_mark, parse_move_mark):  Use cpp_fatal rather than fatal.
* cpplib.c (newline_fix):  Remove unused function.

From-SVN: r12202
1996-06-06 20:05:31 -07:00
Per Bothner 05a2b36fad cpperror.c (cpp_message): Generalize for "fatal" errors.
* cpperror.c (cpp_message):  Generalize for "fatal" errors.
(cpp_fatal):  New function (just calls cpp_message).

From-SVN: r12201
1996-06-06 20:04:54 -07:00
Per Bothner b23378c8ab * cpphash.c (cpp_lookup): Change struct parse_file -> cpp_reader.
From-SVN: r12200
1996-06-06 20:04:29 -07:00
Per Bothner 194d74937d cpplib.h (struct parse_file): Removed.
* cpplib.h (struct parse_file):  Removed.
(CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, CPP_OUT_BUFFER):  New macros.

From-SVN: r12199
1996-06-06 20:04:04 -07:00
Jim Wilson 1c20ae99ca (init_cumulative_args): Change EXPR_LIST to PARALLEL in comments.
(init_cumulative_args): Change EXPR_LIST to PARALLEL
in comments.
(function_arg): Generate PARALLEL instead of EXPR_LIST.

From-SVN: r12198
1996-06-06 16:44:49 -07:00
Jim Wilson bd625e2114 (FUNCTION_ARG): General PARALLEL instead of EXPR_LIST.
From-SVN: r12197
1996-06-06 16:40:38 -07:00
Jim Wilson bd16a708b9 (call_value): Handle PARALLEL in operands[0].
(call_value_multiple_internal2): New pattern.

From-SVN: r12196
1996-06-06 16:34:44 -07:00
Jim Wilson a20b7b051e (function_arg): Return PARALLEL for structure with aligned double fields.
(function_arg): Return PARALLEL for structure with
aligned double fields.
(type_dependent_reg): Delete.
(mips_function_value): Return PARALLEL for structure
with two floating point fields.

From-SVN: r12195
1996-06-06 16:29:34 -07:00
Jim Wilson 45afe7a2f5 (TYPE_DEPENDENT_REG): Delete.
From-SVN: r12194
1996-06-06 16:24:53 -07:00
Richard Kenner d653961594 (TARGET_SWITCHES): Group all floating point options.
When an fp option is selected, unset bits used for other mutually
exclusive fp options.
(OVERRIDE_OPTIONS): No longer need special case for SUPPORT_SUN_FPA, as the
bits used for 68881 and SKY are cleared by new entries in TARGET_SWITCHES.

From-SVN: r12193
1996-06-06 19:24:31 -04:00
Jim Wilson e5eeae6506 (expand_value_return): Handle PARALLEL return_reg.
From-SVN: r12192
1996-06-06 16:14:12 -07:00
Jim Wilson 5c4cdc9fdf (assign_parms): Handle PARALLEL parameter in ENTRY_PARM.
From-SVN: r12191
1996-06-06 16:13:24 -07:00
Jim Wilson ae73d3bec5 (emit_group_load, emit_group_store, use_group_regs): New
declarations.

From-SVN: r12190
1996-06-06 16:12:26 -07:00
Jim Wilson fffa9c1d2e (emit_group_load, emit_group_store): New functions.
(use_group_regs): New function.
(emit_push_insn): Handle PARALLEL parameter in REG.
(expand_assignment): Handle PARALLEL to_rtx.
(store_expr): Handle PARALLEL target.

From-SVN: r12189
1996-06-06 16:04:56 -07:00
Jim Wilson cacbd53270 (expand_call): Handle NIL in PARALLEL.
(expand_call): Handle NIL in PARALLEL.  Handle PARALLEL
parameter in REG.  Handle PARALLEL return value in VALREG.
(emit_library_call, emit_library_call_value): Abort for PARALLEL.
(store_one_arg): Delete code for handling EXPR_LIST.

From-SVN: r12188
1996-06-06 16:02:02 -07:00
Richard Kenner 1853aadde2 Whitespace, formatting, and spelling fixes in comments.
From-SVN: r12187
1996-06-06 18:44:52 -04:00
Richard Kenner 69685820b3 (assign_parms): Tighten up code that makes REG_EQUIV notes for parms.
From-SVN: r12186
1996-06-06 18:38:13 -04:00
Richard Kenner 5fd7f37d2e (fold): Don't do anything with evaluated SAVE_EXPR.
From-SVN: r12185
1996-06-06 18:21:16 -04:00
Richard Kenner 6db59ad5ad (movsi_const0, movhi): Favor clr with TARGET_5200.
(add[qhs]3): Don't use two addqw/subqw insns to add small integers to
an address register with TARGET_68060.
(stack push peephole): Use moveq.l with TARGET_5200 (when appropriate).

From-SVN: r12184
1996-06-06 17:53:49 -04:00
Richard Kenner 0d0dd44d1e (CPU_FPU_SPEC, CPP_SPEC, ASM_SPEC): Support m5200.
From-SVN: r12183
1996-06-06 17:42:11 -04:00
Richard Kenner 15338c41de Disable byte and word arithmetic, rotate, integer divide, dbcc,
etc. insns for TARGET_5200.

From-SVN: r12182
1996-06-06 17:41:07 -04:00
Richard Kenner 240922421d (const_method): Do not synthesize long constants with byte or word
operations with TARGET_5200.

From-SVN: r12181
1996-06-06 17:40:30 -04:00
Richard Kenner 106bee4b93 (MASK_5200, TARGET_5200): New macros.
(TARGET_SWITCHES): Add "m5200".
(LEGITIMATE_INDEX_P): Add TARGET_5200 to conditional expression.

From-SVN: r12180
1996-06-06 17:40:02 -04:00
Paul Eggert b9a48d63c5 (subdirs): Work around Solaris 2.5
/usr/xpgr/bin/sed problem with \+\+.

From-SVN: r12179
1996-06-06 21:31:55 +00:00
Jim Wilson e6f379d049 (grokdeclarator): Call pop_obstacks after creating
TYPE_DECL.

From-SVN: r12178
1996-06-06 12:15:24 -07:00
Mike Stump a0128b67f4 86th Cygnus<->FSF quick merge
From-SVN: r12177
1996-06-06 19:10:27 +00:00
Jim Wilson bb91b814bd (strength_reduce): If HAVE_cc0 defined, disable auto_inc_opt
if it would put an insn between a cc0 setter/user pair.

From-SVN: r12176
1996-06-06 12:05:21 -07:00
Michael Meissner 7d473b076d Make sure Solaris is recognized as little endian.
From-SVN: r12175
1996-06-06 17:04:03 +00:00
Michael Meissner d6a2af956f Fix typo.
From-SVN: r12174
1996-06-06 14:07:56 +00:00
Jim Wilson 3ddf29dea4 (ROUND_TYPE_ALIGN): Add check for TYPE_PACKED.
From-SVN: r12173
1996-06-05 17:44:38 -07:00
Jim Wilson 564890c985 (branch_true): Add comment about T-bit compares.
From-SVN: r12172
1996-06-05 17:19:36 -07:00
Jim Wilson 211a0f8598 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
From-SVN: r12171
1996-06-05 17:04:32 -07:00
Per Bothner d013f05e2d cpplib.h, cpplib.c: Remove support for !STATIC_BUFFERS.
* cpplib.h, cpplib.c:  Remove support for !STATIC_BUFFERS.
* cpplib.c (special_symbol, do_once, do_include, cpp_get_token):
Compare cpp_buffer against CPP_NULL_BUFFER, not NULL.
* cpplib.c (dump_special_to_buffer):  New function.
(initialize_builtins):  Use it.

From-SVN: r12170
1996-06-05 16:25:48 -07:00
Per Bothner af453bb064 cpplib.h, cpplib.c: Remove support for !STATIC_BUFFERS.
* cpplib.h, cpplib.c:  Remove support for !STATIC_BUFFERS.
* cpplib.h:  Use unsigned char rather than U_CHAR.
* cpplib.h (cpp_reader):  Add destructor #ifdef __cplusplus.
(cpp_cleanup):  New prototype.

From-SVN: r12169
1996-06-05 16:24:48 -07:00
Jeff Law c003becada * pa/pa.h (TEXT_SPACE_P): Fix thinko in last change.
From-SVN: r12168
1996-06-05 17:11:46 -06:00
Michael Meissner fba29a8c1e Turn off ELF shared libs for now by default; Add linker OS switch; more Solaris work
From-SVN: r12167
1996-06-05 20:37:49 +00:00
Ian Lance Taylor 25e0447f75 Fix typo: TYPE_ptrdiff_t to _TYPE_ptrdiff_t.
From-SVN: r12166
1996-06-05 20:36:21 +00:00
Per Bothner 8311a11f17 * varasm.c (output_constructor): Handle RANGE_EXPR in array index.
From-SVN: r12165
1996-06-05 12:55:01 -07:00
Richard Kenner 7d49f59f4f (*call_{address,symbolic}_struct_value_sp32): Allow operand 2 to be
const0_rtx.

From-SVN: r12164
1996-06-05 13:45:36 -04:00
Jason Merrill 6c931fc0f5 (make_decl_rtl): Don't update DECL_ASSEMBLER_NAME for
local statics.

From-SVN: r12163
1996-06-05 05:15:57 +00:00
Per Bothner 486086f342 config.guess: Combine mips-mips-riscos cases, and use cpp to distinguish sysv/svr4/bsd variants.
* config.guess:  Combine mips-mips-riscos cases, and use cpp to
distinguish sysv/svr4/bsd variants.

From-SVN: r12159
1996-06-04 21:12:46 -07:00
Jason Merrill f537695d63 (start_decl): Always set DECL_COMMON on statics.
From-SVN: r12158
1996-06-04 23:42:33 +00:00
Jason Merrill cd98bf12d5 (assemble_variable): Only treat vars with DECL_COMMON
as common.

From-SVN: r12157
1996-06-04 23:42:33 +00:00
Jeff Law c77c286a72 pa.c (reloc_needed): New function.
* pa/pa.c (reloc_needed): New function.
        * pa/pa.h (TEXT_SPACE_P): Variables/constants with initializers
        requiring relocs never live in the text space.

From-SVN: r12156
1996-06-04 12:58:08 -06:00
Ian Lance Taylor e4fa6b06f0 Align code at the start of loops and after branches.
Align code at the start of loops and after branches.  Don't accept
negative zero in fp_zero_operand.

From-SVN: r12155
1996-06-04 18:13:21 +00:00