From e4ec2cac3fd5c2d19dcece8c95644c30cb52e344 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 9 Feb 2002 02:18:12 +0000 Subject: hooks.c: New file. * hooks.c: New file. * hooks.h: New file. * Makefile.in (HOOKS_H): New. (TARGET_DEF_H): Added $(HOOKS_H). (OBJS): Added hooks.o. (cfgcleanup.o, bb-reorder.o): Added target.h. (hooks.o): Added dependencies. * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to... (TARGET_INITIALIZER): this. * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document. * target.h (struct gcc_target): Added cannot_modify_jumps_p. * bb-reorder.c: Include target.h. (reorder_basic_blocks): Skip if cannot modify jumps. * cfgcleanup.c: Include target.h. (try_optimize_cfg): Skip merge blocking if cannot modify jumps. From-SVN: r49627 --- gcc/target.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/target.h') diff --git a/gcc/target.h b/gcc/target.h index 38ce359..5ee9aa6 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -184,6 +184,10 @@ struct gcc_target /* True if "native" constructors and destructors are supported, false if we're using collect2 for the job. */ bool have_ctors_dtors; + + /* True if new jumps cannot be created, to replace existing ones or + not, at the current point in the compilation. */ + bool (* cannot_modify_jumps_p) PARAMS ((void)); }; extern struct gcc_target targetm; -- cgit v1.1