From: Kaveh R. Ghazi Date: Sat, 8 May 2004 21:52:47 +0000 (+0000) Subject: alias.c (set_reg_known_value, [...]): Prototype. X-Git-Tag: releases/gcc-3.3.4~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7683932c4c548b830afc7b2f852fbfa789f35ae2;p=thirdparty%2Fgcc.git alias.c (set_reg_known_value, [...]): Prototype. * alias.c (set_reg_known_value, set_reg_known_equiv_p): Prototype. (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p, set_reg_known_equiv_p): Use traditional style function definitions. (set_reg_known_equiv_p): Change parameter from bool to int. Backport: 2003-06-13 Matt Kraai * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE. * unwind-pe.h (size_of_encoded_value): Do not define if NO_SIZE_OF_ENCODED_VALUE is defined. 2003-10-27 Kaveh R. Ghazi * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when appropriate. 2003-05-07 Richard Henderson * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr, not _Unwind_Word. cp: * Make-lang.in (cp/init.o): Depend on diagnostic.h. * except.c (do_free_exception): Prototype. * init.c: Include "diagnostic.h". f: Backport: 2004-02-24 Michael Matz * sta.c (ffesta_save_): Don't break aliasing rules. From-SVN: r81649 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6d22fce6dc1..efef8d2c6fef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,30 @@ +2004-05-08 Kaveh R. Ghazi + + * alias.c (set_reg_known_value, set_reg_known_equiv_p): + Prototype. + (get_reg_known_value, set_reg_known_value, + get_reg_known_equiv_p, set_reg_known_equiv_p): Use traditional + style function definitions. + (set_reg_known_equiv_p): Change parameter from bool to int. + + Backport: + + 2003-06-13 Matt Kraai + + * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE. + * unwind-pe.h (size_of_encoded_value): Do not define if + NO_SIZE_OF_ENCODED_VALUE is defined. + + 2003-10-27 Kaveh R. Ghazi + + * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when + appropriate. + + 2003-05-07 Richard Henderson + + * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr, + not _Unwind_Word. + 2004-05-08 Eric Botcazou * doc/install.texi (sparc-sun-solaris2*): Document bootstrap diff --git a/gcc/alias.c b/gcc/alias.c index 3213f33ed906..e320a6f0efc6 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -110,6 +110,8 @@ static tree decl_for_component_ref PARAMS ((tree)); static rtx adjust_offset_for_component_ref PARAMS ((tree, rtx)); static int nonoverlapping_memrefs_p PARAMS ((rtx, rtx)); static int write_dependence_p PARAMS ((rtx, rtx, int)); +static void set_reg_known_value PARAMS ((unsigned int, rtx)); +static void set_reg_known_equiv_p PARAMS ((unsigned int, int)); static int nonlocal_mentioned_p_1 PARAMS ((rtx *, void *)); static int nonlocal_mentioned_p PARAMS ((rtx)); @@ -1068,7 +1070,8 @@ clear_reg_alias_info (reg) /* If a value is known for REGNO, return it. */ rtx -get_reg_known_value (unsigned int regno) +get_reg_known_value (regno) + unsigned int regno; { if (regno >= FIRST_PSEUDO_REGISTER) { @@ -1082,7 +1085,9 @@ get_reg_known_value (unsigned int regno) /* Set it. */ static void -set_reg_known_value (unsigned int regno, rtx val) +set_reg_known_value (regno, val) + unsigned int regno; + rtx val; { if (regno >= FIRST_PSEUDO_REGISTER) { @@ -1095,7 +1100,8 @@ set_reg_known_value (unsigned int regno, rtx val) /* Similarly for reg_known_equiv_p. */ bool -get_reg_known_equiv_p (unsigned int regno) +get_reg_known_equiv_p (regno) + unsigned int regno; { if (regno >= FIRST_PSEUDO_REGISTER) { @@ -1107,7 +1113,9 @@ get_reg_known_equiv_p (unsigned int regno) } static void -set_reg_known_equiv_p (unsigned int regno, bool val) +set_reg_known_equiv_p (regno, val) + unsigned int regno; + int val; { if (regno >= FIRST_PSEUDO_REGISTER) { diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 86f60c9ac28b..85adf271e050 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2004-05-08 Kaveh R. Ghazi + + * Make-lang.in (cp/init.o): Depend on diagnostic.h. + * except.c (do_free_exception): Prototype. + * init.c: Include "diagnostic.h". + 2004-05-04 Volker Reichelt Backport: diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index afeb7aba4f80..e6640554ea88 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -250,7 +250,7 @@ cp/call.o: cp/call.c $(CXX_TREE_H) flags.h toplev.h $(RTL_H) $(EXPR_H) \ $(GGC_H) diagnostic.h gt-cp-call.h cp/friend.o: cp/friend.c $(CXX_TREE_H) flags.h $(RTL_H) toplev.h $(EXPR_H) cp/init.o: cp/init.c $(CXX_TREE_H) flags.h $(RTL_H) $(EXPR_H) toplev.h \ - $(GGC_H) except.h + diagnostic.h $(GGC_H) except.h cp/method.o: cp/method.c $(CXX_TREE_H) toplev.h $(GGC_H) $(RTL_H) $(EXPR_H) \ $(TM_P_H) $(TARGET_H) cp/cvt.o: cp/cvt.c $(CXX_TREE_H) cp/decl.h flags.h toplev.h convert.h diff --git a/gcc/cp/except.c b/gcc/cp/except.c index 6b32a5bd08dd..52b89705e4e4 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -53,6 +53,7 @@ static bool is_admissible_throw_operand PARAMS ((tree)); static int can_convert_eh PARAMS ((tree, tree)); static void check_handlers_1 PARAMS ((tree, tree)); static tree cp_protect_cleanup_actions PARAMS ((void)); +static tree do_free_exception PARAMS ((tree)); /* Sets up all the global eh stuff that needs to be initialized at the start of compilation. */ diff --git a/gcc/cp/init.c b/gcc/cp/init.c index f3fa9aa93f79..5a408030d7d9 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */ #include "output.h" #include "except.h" #include "toplev.h" +#include "diagnostic.h" #include "ggc.h" static void construct_virtual_base (tree, tree); diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 18528b2c0a1a..d10ee8c993b6 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,11 @@ +Sat May 8 17:50:43 2004 Kaveh R. Ghazi + + Backport: + + 2004-02-24 Michael Matz + + * sta.c (ffesta_save_): Don't break aliasing rules. + 2004-04-18 Gerald Pfeifer * g77.texi (Floating-point Errors): Avoid referencing diff --git a/gcc/f/sta.c b/gcc/f/sta.c index 0b4c11aa9efd..37c8b6798427 100644 --- a/gcc/f/sta.c +++ b/gcc/f/sta.c @@ -337,7 +337,7 @@ ffesta_save_ (ffelexToken t) { /* No handler in this list, try exec list if not tried yet. */ if (ffesta_current_possible_ - == (ffestaPossible_) &ffesta_possible_nonexecs_) + == (ffestaPossible_) &ffesta_possible_nonexecs_.first) { ffesta_current_possible_ = ffesta_possible_execs_.first; ffesta_current_handler_ = ffesta_current_possible_->handler; @@ -381,7 +381,7 @@ ffesta_save_ (ffelexToken t) { if (possible->handler == NULL) { - if (possible == (ffestaPossible_) &ffesta_possible_nonexecs_) + if (possible == (ffestaPossible_) &ffesta_possible_nonexecs_.first) { possible = first_exec = ffesta_possible_execs_.first; continue; diff --git a/gcc/unwind-c.c b/gcc/unwind-c.c index 2730536d5df3..fb2f720907be 100644 --- a/gcc/unwind-c.c +++ b/gcc/unwind-c.c @@ -23,6 +23,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "tconfig.h" #include "tsystem.h" #include "unwind.h" +#define NO_SIZE_OF_ENCODED_VALUE #include "unwind-pe.h" typedef struct diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index 0e59c7b2ba26..e0c8ed568c64 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -23,6 +23,9 @@ #include "tsystem.h" #include "dwarf2.h" #include "unwind.h" +#ifdef __USING_SJLJ_EXCEPTIONS__ +# define NO_SIZE_OF_ENCODED_VALUE +#endif #include "unwind-pe.h" #include "unwind-dw2-fde.h" #include "gthr.h" @@ -171,7 +174,7 @@ _Unwind_GetGR (struct _Unwind_Context *context, int index) _Unwind_Word _Unwind_GetCFA (struct _Unwind_Context *context) { - return (_Unwind_Word) context->cfa; + return (_Unwind_Ptr) context->cfa; } /* Overwrite the saved value for register REG in CONTEXT with VAL. */ diff --git a/gcc/unwind-pe.h b/gcc/unwind-pe.h index d32e506667d6..bfa455c4f32d 100644 --- a/gcc/unwind-pe.h +++ b/gcc/unwind-pe.h @@ -52,6 +52,8 @@ #define DW_EH_PE_indirect 0x80 +#ifndef NO_SIZE_OF_ENCODED_VALUE + /* Given an encoding, return the number of bytes the format occupies. This is only defined for fixed-size encodings, and so does not include leb128. */ @@ -76,6 +78,8 @@ size_of_encoded_value (unsigned char encoding) __gxx_abort (); } +#endif + #ifndef NO_BASE_OF_ENCODED_VALUE /* Given an encoding and an _Unwind_Context, return the base to which