From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24241 invoked by alias); 26 Jul 2007 23:09:12 -0000 Received: (qmail 24232 invoked by uid 22791); 26 Jul 2007 23:09:11 -0000 X-Spam-Check-By: sourceware.org Received: from py-out-1112.google.com (HELO py-out-1112.google.com) (64.233.166.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 26 Jul 2007 23:09:09 +0000 Received: by py-out-1112.google.com with SMTP id a29so1542444pyi for ; Thu, 26 Jul 2007 16:09:07 -0700 (PDT) Received: by 10.65.126.16 with SMTP id d16mr4030463qbn.1185491346215; Thu, 26 Jul 2007 16:09:06 -0700 (PDT) Received: by 10.64.142.18 with HTTP; Thu, 26 Jul 2007 16:09:06 -0700 (PDT) Message-ID: Date: Thu, 26 Jul 2007 23:35:00 -0000 From: "=?EUC-KR?B?U2VvbmdiYWUgUGFyayAoudq8urnoLCDa0+D328Yp?=" To: gcc-patches , "Janis Johnson" , mark@codesourcery.com, nathan@codesourcery.com Subject: [PATCH] Wrong coverage attribution. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_136388_20827493.1185491346174" X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg01955.txt.bz2 ------=_Part_136388_20827493.1185491346174 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 690 Hi, gcc/ChangeLog: 2007-07-26 Seongbae Park * tree-eh.c (lower_try_finally_onedest): Reset the locus of moved goto. gcc/testsuite/ChangeLog: 2007-07-26 Seongbae Park * lib/gcov.exp (verify-lines): Recognize - and # as possible count. * g++.dg/gcov/gcov-4.C: New test. Attached patch fixes the problem shown in the testcase - this testcase fails in the current mainline because of GOTO moved to a different block during eh lowering. Bootstrap and regtest are in progress. If all tests look clean, ok for mainline and 4.2 branch ? -- #pragma ident "Seongbae Park, compiler, http://seongbae.blogspot.com" ------=_Part_136388_20827493.1185491346174 Content-Type: text/x-patch; name=bad-eh-lineno.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_f4lus1ph Content-Disposition: attachment; filename="bad-eh-lineno.patch" Content-length: 3177 SW5kZXg6IGdjYy90ZXN0c3VpdGUvZysrLmRnL2djb3YvZ2Nvdi00LkMKPT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PQotLS0gZ2NjL3Rlc3RzdWl0ZS9nKysuZGcv Z2Nvdi9nY292LTQuQwkocmV2aXNpb24gMCkKKysrIGdjYy90ZXN0c3VpdGUv ZysrLmRnL2djb3YvZ2Nvdi00LkMJKHJldmlzaW9uIDApCkBAIC0wLDAgKzEs NDEgQEAKKy8qIENoZWNrIHRoYXQgZXhlY3V0aW9uIGNvdW50cyBhbmQgYnJh bmNoIHByb2JhYmlsaXRpZXMgZm9yIHZhcmlvdXMgQworICAgY29uc3RydWN0 cyBhcmUgcmVwb3J0ZWQgY29ycmVjdGx5IGJ5IGdjb3YuICovCisKKyNpbmNs dWRlIDxzdGRpby5oPgorCisvKiB7IGRnLW9wdGlvbnMgIi1mcHJvZmlsZS1h cmNzIC1mdGVzdC1jb3ZlcmFnZSAtZm5vLWV4Y2VwdGlvbnMiIH0gKi8KKy8q IHsgZGctZG8gcnVuIHsgdGFyZ2V0IG5hdGl2ZSB9IH0gKi8KKworY2xhc3Mg Zm9vIHsKK3B1YmxpYzoKKyAgZm9vKCkgeyBwcmludGYoImZvbygpXG4iKTsg fTsKKyAgfmZvbygpIHsgcHJpbnRmKCJ+Zm9vKClcbiIpOyB9OworICB2b2lk IG1ldGhvZCh2b2lkKSB7IHByaW50ZigibWV0aG9kKClcbiIpOyB9OyAKK307 CisKK2ludCBmdW5jKGludCBpLCBpbnQgaikgX19hdHRyaWJ1dGVfXygobm9p bmxpbmUpKTsKKworaW50IGZ1bmMoaW50IGksIGludCBqKXsKKyAgaWYgKGop IHsKKyAgICBwcmludGYoInVucmVhY2hhYmxlXG4iKTsKKyAgICByZXR1cm4g MzsKKyAgfQorCisgIGZvbyBmOworCisgIGlmIChpID09IDEpIHsKKyAgICBm Lm1ldGhvZCgpOworICAgIGYubWV0aG9kKCk7CisgIH0gZWxzZSB7CisgICAg Zi5tZXRob2QoKTsKKyAgICBwcmludGYoInVucmVhY2hhYmxlXG4iKTsKKyAg ICByZXR1cm4gMjsgICAgICAgIC8qIGNvdW50KCMjIyMjKSAqLworICB9Cisg IGYubWV0aG9kKCk7CisgIHJldHVybiAwOworfQorCitpbnQgbWFpbigpIHsK KyAgcmV0dXJuIGZ1bmMoMSwgMCk7Cit9CisvKiB7IGRnLWZpbmFsIHsgcnVu LWdjb3YgZ2Nvdi00LkMgfSB9ICovCkluZGV4OiBnY2MvdGVzdHN1aXRlL2xp Yi9nY292LmV4cAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBnY2MvdGVz dHN1aXRlL2xpYi9nY292LmV4cAkocmV2aXNpb24gMTI2OTYzKQorKysgZ2Nj L3Rlc3RzdWl0ZS9saWIvZ2Nvdi5leHAJKHdvcmtpbmcgY29weSkKQEAgLTQy LDcgKzQyLDkgQEAgcHJvYyB2ZXJpZnktbGluZXMgeyB0ZXN0Y2FzZSBmaWxl IH0gewogICAgIHNldCBmYWlsZWQgMAogICAgIHNldCBmZCBbb3BlbiAkZmls ZSByXQogICAgIHdoaWxlIHsgW2dldHMgJGZkIGxpbmVdID49IDAgfSB7Ci0J aWYgW3JlZ2V4cCAiXiAqKFxbXjpdKik6ICooXFswLTlcXSspOi4qY291bnRc XCgoXFswLTlcXSspXFwpIiBcCisgICAgICAgICMgV2Ugd2FudCB0byBtYXRj aCBib3RoICItIiBhbmQgIiMjIyMjIiBhcyBjb3VudCBh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og fQo= ------=_Part_136388_20827493.1185491346174--