aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-unswitch.c
AgeCommit message (Expand)AuthorFilesLines
2004-11-22bitmap.h (struct bitmap_obstack): New obstack type.Nathan Sidwell1-0/+1
2004-10-25cfgloopmanip.c (loopify): Take two more arguments true_edge and false_edge.Kazu Hirata1-1/+2
2004-09-28backport: basic-block.h: Include vec.h, errors.h.Ben Elliston1-13/+12
2004-09-23cfgloop.h (update_single_exits_after_duplication): Declare.Zdenek Dvorak1-1/+1
2004-09-10Revert 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>Nathan Sidwell1-17/+23
2004-09-10lambda-mat.c (lambda_matrix_inverse_hard): Use gcc_assert and gcc_unreachable...Giovanni Bajo1-23/+17
2004-07-27expr.h (canonicalize_condition, [...]): Add an int argument.Richard Sandiford1-1/+1
2004-05-19Multiple fixes: PRs 14692, 15274 and 15463Zdenek Dvorak1-8/+18
2004-05-13loop-unswitch.c (unswitch_single_loop): Free bbs at the end.Andrew Pinski1-0/+2
2004-02-24toplev.c (dump_file_tbl): Rename from dump_file.Richard Henderson1-14/+14
2004-02-24cfgloop.h, [...]: Replace iv_analyse with iv_analyze.Kazu Hirata1-1/+1
2004-02-17loop-iv.c: New file.Zdenek Dvorak1-78/+152
2004-01-31alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,Kazu Hirata1-1/+1
2004-01-29Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.Zdenek Dvorak1-1/+0
2003-12-30backport: et-forest.h (et_forest_create, [...]): Declarations removed.Steven Bosscher1-11/+10
2003-12-27re PR rtl-optimization/13159 (FAIL: gcc.c-torture/compile/930621-1.c)Zdenek Dvorak1-0/+4
2003-12-11basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.Steven Bosscher1-5/+5
2003-09-14re PR rtl-optimization/10914 (unswitch loops does not work on powerpc)Zdenek Dvorak1-2/+2
2003-07-06jump.c: Convert prototypes to ISO C90.Andreas Jaeger1-36/+24
2003-07-05bt-load.c: Fix comment typos.Kazu Hirata1-1/+1
2003-07-03basic-block.h (create_basic_block, [...]): Kill.Jan Hubicka1-4/+4
2003-07-01basic-block.h: Fix comment typos.Kazu Hirata1-1/+1
2003-03-05basic-block.h (EDGE_IRREDUCIBLE_LOOP, [...]): New.Zdenek Dvorak1-10/+16
2003-02-08cfgloop.h (fix_loop_placement, [...]): Declare.Zdenek Dvorak1-0/+412
l/evp.h> #ifndef NO_ASN1_OLD int ASN1_verify(i2d_of_void *i2d, X509_ALGOR *a, ASN1_BIT_STRING *signature, char *data, EVP_PKEY *pkey) { EVP_MD_CTX ctx; const EVP_MD *type; unsigned char *p,*buf_in=NULL; int ret= -1,i,inl; EVP_MD_CTX_init(&ctx); i=OBJ_obj2nid(a->algorithm); type=EVP_get_digestbyname(OBJ_nid2sn(i)); if (type == NULL) { ASN1err(ASN1_F_ASN1_VERIFY,ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM); goto err; } inl=i2d(data,NULL); buf_in=OPENSSL_malloc((unsigned int)inl); if (buf_in == NULL) { ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_MALLOC_FAILURE); goto err; } p=buf_in; i2d(data,&p); EVP_VerifyInit_ex(&ctx,type, NULL); EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl); OPENSSL_cleanse(buf_in,(unsigned int)inl); OPENSSL_free(buf_in); if (EVP_VerifyFinal(&ctx,(unsigned char *)signature->data, (unsigned int)signature->length,pkey) <= 0) { ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_EVP_LIB); ret=0; goto err; } /* we don't need to zero the 'ctx' because we just checked * public information */ /* memset(&ctx,0,sizeof(ctx)); */ ret=1; err: EVP_MD_CTX_cleanup(&ctx); return(ret); } #endif int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey) { EVP_MD_CTX ctx; const EVP_MD *type; unsigned char *buf_in=NULL; int ret= -1,i,inl; EVP_MD_CTX_init(&ctx); i=OBJ_obj2nid(a->algorithm); type=EVP_get_digestbyname(OBJ_nid2sn(i)); if (type == NULL) { ASN1err(ASN1_F_ASN1_VERIFY,ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM); goto err; } if (!EVP_VerifyInit_ex(&ctx,type, NULL)) { ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_EVP_LIB); ret=0; goto err; } inl = ASN1_item_i2d(asn, &buf_in, it); if (buf_in == NULL) { ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_MALLOC_FAILURE); goto err; } EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl); OPENSSL_cleanse(buf_in,(unsigned int)inl); OPENSSL_free(buf_in); if (EVP_VerifyFinal(&ctx,(unsigned char *)signature->data, (unsigned int)signature->length,pkey) <= 0) { ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_EVP_LIB); ret=0; goto err; } /* we don't need to zero the 'ctx' because we just checked * public information */ /* memset(&ctx,0,sizeof(ctx)); */ ret=1; err: EVP_MD_CTX_cleanup(&ctx); return(ret); }