summaryrefslogtreecommitdiffstats
path: root/gcc/gensupport.c
Commit message (Collapse)AuthorAgeFilesLines
* * rtl.c (copy_rtx): Handle 'T' format letter.zack2001-07-031-1/+1
| | | | | | | | * gensupport.c (collect_insn_data): Likewise. * print-rtl.c (print_rtx): Print 'T' slots like 's'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43732 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/server.c (load_data, run_shell): Use xmalloc, xrealloc &ghazi2001-03-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | xcalloc in lieu of malloc, realloc & calloc. * gencheck.c (xmalloc): Use really_call_malloc, not malloc. * gengenrtl.c (xmalloc): Likewise. * gensupport.c (xcalloc, xrealloc, xmalloc): Use the really_call_* memory allocation routines. * stmt.c (check_for_full_enumeration_handling): Use really_call_calloc, not calloc. * system.h (really_call_malloc, really_call_calloc, really_call_realloc): Define. (malloc, realloc, calloc, strdup, bzero, bcmp, rindex): Poison. f: * fini.c (main): Use really_call_malloc, not malloc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40360 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/xm-lynx.h, config/xm-std32.h, config/a29k/xm-a29k.h,zack2001-03-021-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config/a29k/xm-unix.h, config/alpha/xm-alpha.h, config/arc/xm-arc.h, config/arm/xm-arm.h, config/c4x/xm-c4x.h, config/clipper/xm-clix.h, config/convex/xm-convex.h, config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h, config/elxsi/xm-elxsi.h, config/fr30/xm-fr30.h, config/h8300/xm-h8300.h, config/i370/xm-i370.h, config/i370/xm-linux.h, config/i370/xm-mvs.h, config/i370/xm-oe.h, config/i386/xm-aix.h, config/i386/xm-i386.h, config/i386/xm-osf.h, config/i860/xm-i860.h, config/i960/xm-i960.h, config/ia64/xm-ia64.h, config/m32r/xm-m32r.h, config/m68k/xm-m68k.h, config/m88k/xm-m88k.h, config/mcore/xm-mcore.h, config/mips/xm-mips.h, config/mn10200/xm-mn10200.h, config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h, config/pa/xm-linux.h, config/pa/xm-pa.h, config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h, config/pa/xm-papro.h, config/pj/xm-pj.h, config/romp/xm-romp.h, config/rs6000/xm-beos.h, config/rs6000/xm-rs6000.h, config/rs6000/xm-sysv4.h, config/sh/xm-sh.h, config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h, config/v850/xm-v850.h, config/vax/xm-vax.h, config/vax/xm-vms.h, config/we32k/xm-we32k.h: Do not define TRUE or FALSE. * config/i386/xm-aix.h, config/i386/xm-osf.h: Delete; made empty by above change. * config.gcc: Remove references to these files. * configure.in: Detect stdbool.h. * configure, config.in: Regenerate. * system.h: Include stddef.h here if available. Set HAVE__BOOL based on GCC_VERSION and __STDC_VERSION__. Then set up a sensible boolean type at the very end. * combine.c, cse.c, expr.c, fold-const.c, gensupport.c, f/com.c, config/mcore/mcore.c: Rename variables named 'true' and/or 'false'. * hash.h: Delete 'boolean' typedef and related #undefs. * f/proj.h: Delete 'bool' type. Don't include stddef.h here. * function.c, ggc-common.c, hash.h, hash.c, tlink.c, cp/decl.c, java/class.c, java/decl.c, java/java-tree.h: Replace all uses of 'boolean' with 'bool'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40176 138bc75d-0d04-0410-961f-82ee72b054a4
* * rtl.h (traverse_md_constants): Declare.amylaar2000-11-221-0/+15
| | | | | | | | | | | | | | | | | | | | | (struct md_constant): Define. * Makefile.in (HOST_RTL): Add hashtab.o . (OBJS): Add hashtab.o . (hashtab.o): New rule. (rtl.o): Depends on HASHTAB_H. * rtl.c (hashtab.h): #include. (md_constants): New static variable. (def_hash, def_name_eq_p, read_constants): New static functions. (traverse_md_constants): New function. (read_name): Do constant expansion. (read_rtx): Recognize define_constants. * gencodes.c (print_md_constant): New function. (main): Emit #defines for all constant definitions encountered. * md.texi (Constant Definitions): New node. * gensupport.c (xcalloc): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37635 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi2000-07-121-1/+2
| | | | | | | | | | | | | | | | * c-decl.c (set_current_function_name_declared, anon_aggr_type_p, lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED. * c-parse.in (stmt): Delete unused variables. * convert.c (convert_to_vector): Likewise. * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'. * tree.c (finish_vector_type): Prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34987 138bc75d-0d04-0410-961f-82ee72b054a4
* * gensupport.c (process_rtx): Make rtl checking stopcpopetz2000-07-111-2/+3
| | | | | | | | complaining about the define_insn while it is being converted from a define_insn_and_split. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34968 138bc75d-0d04-0410-961f-82ee72b054a4
* * gensupport.c (collect_insn_data): Record the maximum numberrth2000-05-271-1/+2
| | | | | | | of alternatives, not the last seen. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34206 138bc75d-0d04-0410-961f-82ee72b054a4
* top level:zack2000-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * diagnostic.c: Eliminate implicit int. * except.c, gcc.c: Add static prototypes. * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED. * gensupport.c (process_rtx): Use XVEC to initialize vector slot of 'split'. * print-rtl.c: If DEBUG_REGISTER_NAMES, define static debug_reg_names instead of static reg_names. If not, define global reg_names. * regclass.c: Don't define global reg_names unless DEBUG_REGISTER_NAMES is defined. * reload1.c (order_regs_for_reload): Remove unused variable. * varasm.c: Include output.h after defaults.h. Define eh_frame_section as function of no args, not of unspecified args. * gcc.c: Constify argbuf; arguments to store_arg, process_command, main; elements of struct command and struct switchstr; local variables in execute, process_command, main. cp: * except.c: Add static prototypes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34054 138bc75d-0d04-0410-961f-82ee72b054a4
* * genopinit.c: Use $ for escape sequences in optab patterns.zack2000-05-181-0/+37
| | | | | | | | | | | | | | Remove backslashes from optab patterns. Change $A, $B, $C to expand to (int) whatever instead of just whatever; remove explicit (int) from all optab patterns. * gensupport.c (xmalloc, xrealloc, xstrdup): Provide. * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c, genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c: Remove private copies of xmalloc, xrealloc, and git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34000 138bc75d-0d04-0410-961f-82ee72b054a4
* * gensupport.c (process_rtx): Copy and post-process each memberrth2000-05-081-2/+9
| | | | | | | of the define_insn rtvec individually. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33780 138bc75d-0d04-0410-961f-82ee72b054a4
* * rtl.def (DEFINE_COND_EXEC): New.rth2000-05-071-90/+710
| | | | | | | | | | | | | | | | | | | | | | | | | | | * md.texi: Document it. * gensupport.c (input_file): Remove. (struct queue_elem): Add lineno. (rtx_ready_queue): Remove. (errors): New. (predicable_default): New. (predicable_true, predicable_false): New. (define_attr_queue, define_attr_tail): New. (define_insn_queue, define_insn_tail): New. (define_cond_exec_queue, define_cond_exec_tail): New. (other_queue, other_tail): New. (queue_pattern): New. (process_rtx): Add patterns to the appropriate queues. (is_predicable, identify_predicable_attribute): New. (n_alternatives, collect_insn_data): New. (alter_predicate_for_insn, alter_test_for_insn): New. (shift_output_template, alter_output_for_insn): New. (process_one_cond_exec, process_define_cond_exec): New. (init_md_reader): Read the entire file. Process define_cond_exec. (read_md_rtx): Return elements from the queues. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33751 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (gensupport.o): Compile for the host.rth2000-05-061-7/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (host-prefix gensuuprt.o): Remove. (genflags.o): Depend on gensupport.h and OBSTACK_H. (genattrtab.o): Likewise. (gencodes.o): Depend on gensupport.h. (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise. (genpeep.o, genattr.o, genoutput.o): Likewise. * gensupport.c (obstack, rtl_obstack): New. (init_md_reader): Initialize rtl_obstack. * gensupport.h (rtl_obstack): Declare. (message_with_line): Declare. * genattr.c: Remove all traces of obstack manipulation. * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise. * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise. * genattrtab.c (obstack, rtl_obstack): Remove. (main): Don't init rtl_obstack. * genflags.c: Likewise. * genrecog.c (message_with_line): Move ... * gensupport.c: ... here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33742 138bc75d-0d04-0410-961f-82ee72b054a4
* * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.ghazi2000-05-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * diagnostic (vbuild_message_string, build_message_string, build_location_prefix, output_get_prefix, init_output_buffer, output_notice, vline_wrapper_message_with_location, v_message_with_decl, default_print_error_function): De-constify. (set_real_maximum_length): Prototype. * diagnostic.h (struct output_buffer, init_output_buffer, output_get_prefix, output_set_prefix): De-constify. * function.c (init_function_start): Constify. * gensupport.c (remove_constraints, process_rtx): Prototype. * gthr-posix.h: Indent uses of #pragma. * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table): Prototype. * predict.c (find_expected_value): Delete prototype. (expected_value_to_br_prob): Initialize variable `ev_reg'. * sbitmap.h (debug_sbitmap): Prototype. * ssa.c (compute_coalesced_reg_partition): Prototype. * stor-layout.c (debug_rli): Prototype. * tree.h (round_down): Prototype. (init_function_start): Constify. ch: * ch-tree.h (init_function_start): Constify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33675 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppexp.c (op_t): Make an int.jason2000-05-031-3/+3
| | | | | | | | | | | * rtlanal.c (dead_or_set_regno_p): Remove unused variable. * varasm.c (initializer_constant_valid_p): Fix parenthesis. * gensupport.c (process_rtx): Fix macros used. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33635 138bc75d-0d04-0410-961f-82ee72b054a4
* * gensupport.c: New file.cpopetz2000-05-031-0/+191
* gensupport.h: New file. * Makefile.in (HOST_RTL): Depend on gensupport. (gensupport.o) New rule. * genattr.c: Use gensupport for reading .md files. * genattrtab.c: Ditto. * gencodes.c: Ditto. * genconfig.c: Ditto. * genemit.c: Ditto. * genextract.c: Ditto. * genflags.c: Ditto. * genopinit.c: Ditto. * genoutput.c: Ditto. * genpeep.c: Ditto. * genrecog.c: Ditto. * rtl.def (define_insn_and_split): New DEF_RTL_EXPR. * md.texi (Insn Splitting): Document define_insn_and_split. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33633 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud