public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
To: Jakub Jelinek <jakub@redhat.com>
Cc: "Martin Liška" <mliska@suse.cz>, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] MPX: Fix option handling.
Date: Fri, 17 Mar 2017 12:17:00 -0000	[thread overview]
Message-ID: <yddfuicrtb3.fsf@CeBiTec.Uni-Bielefeld.DE> (raw)
In-Reply-To: <20170310131356.GW22703@tucnak> (Jakub Jelinek's message of "Fri,	10 Mar 2017 14:13:56 +0100")

Jakub Jelinek <jakub@redhat.com> writes:

> On Fri, Mar 10, 2017 at 02:09:20PM +0100, Martin Liška wrote:
>> Hello.
>> 
>> This is follow-up patch which I agreed on with Jakub.
>> It enables CHKP with LSAN and majority of UBSAN options.
>> 
>> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>> 
>> Ready to be installed?
>> Martin
>
>> >From a410d5e4e028d34dc00b4aa637cdcd3986b971d8 Mon Sep 17 00:00:00 2001
>> From: marxin <mliska@suse.cz>
>> Date: Fri, 10 Mar 2017 11:05:27 +0100
>> Subject: [PATCH] MPX: Fix option handling.
>> 
>> gcc/ChangeLog:
>> 
>> 2017-03-10  Martin Liska  <mliska@suse.cz>
>> 
>>         PR target/65705
>>         PR target/69804
>> 	* toplev.c (process_options): Enable MPX with LSAN and UBSAN
>> 	(except -fsanitize=bounds and -fsanitize=bounds-strict).
>
> Please avoid the ()s, that is confusing with ()s used to surround
> function etc. names.  Just use UBSAN,
> 	except ... strict.
>
>> 	* tree-chkp.c (chkp_walk_pointer_assignments): Verify that
>> 	FIELD != NULL.
>
>> +	  error_at (UNKNOWN_LOCATION,
>> +		    "-fcheck-pointer-bounds is not supported with "
>> +		    "-fsanitize=bounds-strict");
>> +	  flag_check_pointer_bounds = 0;
>
> Given the recent i18n discussions, perhaps this ought to be
> %<-fcheck-pointer-bounds%> and %<-fsanitize=bounds-strict%> and similarly
> elsewhere (of course not for Address/Thread Sanitizer words).
>
> Ok for trunk either way.

Unfortunately, that last change broke gcc.target/i386/pr65044.c:

FAIL: gcc.target/i386/pr65044.c  (test for errors, line )
FAIL: gcc.target/i386/pr65044.c (test for excess errors)

seen e.g. on Linux/x86_64 and Solaris/x86.

We have

Excess errors:
cc1: error: '-fcheck-pointer-bounds' is not supported with Address Sanitizer

while the test expects

/* { dg-error "-fcheck-pointer-bounds is not supported with Address Sanitizer" "" { target *-*-* } 0 } */

I guess that, given gcc-dg.exp hardcodes LANG=C, changing the dg-error
to just include the single quotes should be enough.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

  reply	other threads:[~2017-03-17 12:17 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-07 10:09 [PATCH 0/5] Fix various MPX issues marxin
2017-03-07 10:09 ` [PATCH 5/5] Support BIT_FIELD_REF in MPX (PR ipa/79764) marxin
2017-03-07 10:18   ` Rainer Orth
2017-03-07 14:49     ` Martin Liška
2017-03-07 15:00       ` Richard Biener
2017-03-07 10:09 ` [PATCH 1/5] Fix *_CST ICEs connected to MPX marxin
2017-03-07 10:17   ` Rainer Orth
2017-03-07 14:48     ` Martin Liška
2017-03-07 14:53       ` Richard Biener
2017-03-07 16:01         ` Martin Liška
2017-03-08 11:00           ` Richard Biener
2017-03-09 11:40             ` Martin Liška
2017-03-13 12:28               ` Richard Biener
2017-03-13 13:02                 ` Martin Liška
2017-03-13 13:08                   ` Richard Biener
2017-03-13 13:33                     ` Martin Liška
2017-03-14 23:58                       ` Ilya Enkovich
2017-03-15 10:12                         ` Martin Liška
2017-03-15 17:09                           ` Jeff Law
2017-03-07 10:09 ` [PATCH 3/5] Fix ICE in tree-chkp-opt.c (PR tree-optimization/79631) marxin
2017-03-09  9:36   ` Martin Liška
2017-03-09 10:05   ` Richard Biener
2017-03-09 10:12     ` Martin Liška
2017-03-07 10:09 ` [PATCH 4/5] Disable -fcheck-pointer-bounds with sanitizers marxin
2017-03-07 16:12   ` Jeff Law
2017-03-07 16:21   ` Jakub Jelinek
2017-03-09 10:02     ` Martin Liška
2017-03-10 13:09     ` [PATCH] MPX: Fix option handling Martin Liška
2017-03-10 13:14       ` Jakub Jelinek
2017-03-17 12:17         ` Rainer Orth [this message]
2017-03-21 11:21           ` Martin Liška
2017-03-07 10:09 ` [PATCH 2/5] Get bounds for a PARM_DECL (PR ipa/79761) marxin
2017-03-07 10:16   ` Rainer Orth
2017-03-07 14:48     ` Martin Liška
2017-03-07 14:57   ` Richard Biener
2017-03-07 16:07     ` Martin Liška
2017-03-07 16:17       ` Jeff Law
2017-03-08 11:01       ` Richard Biener
2017-03-09 14:19 ` [PATCH 6/N] Do not warn -Wsuggest-attribute=noreturn for main.chkp (PR, middle-end/78339) Martin Liška
2017-03-13 12:29   ` Richard Biener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yddfuicrtb3.fsf@CeBiTec.Uni-Bielefeld.DE \
    --to=ro@cebitec.uni-bielefeld.de \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=mliska@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).