NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/53178 CVS commit: [netbsd-8] src



The following reply was made to PR toolchain/53178; it has been noted by GNATS.

From: "Martin Husemann" <martin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/53178 CVS commit: [netbsd-8] src
Date: Wed, 18 Apr 2018 14:01:16 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Wed Apr 18 14:01:16 UTC 2018
 
 Modified Files:
 	src/external/gpl3/gcc/dist/gcc [netbsd-8]: genattrtab.c
 	src/tools [netbsd-8]: Makefile.gnuhost
 
 Log Message:
 Pull up following revision(s) (requested by maya in ticket #775):
 
 	tools/Makefile.gnuhost: revision 1.46-1.48
 	external/gpl3/gcc/dist/gcc/genattrtab.c: revision 1.2
 
 do the bracket nesting only for clang for now.
 
 Use the __clang__ preprocessor symbol to check for clang, since --version
 might barf. From joerg@
 
 Apply upstream commit:
 From: ppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
 Date: Wed, 27 Apr 2016 21:18:05 +0000
 Subject: [PATCH] Reduce nesting of parentheses in conditionals generated by
  genattrtab
 
 gcc/ChangeLog:
         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
         which defaults to true.  Emit an outer pair of parentheses only if
         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
         don't emit parentheses for the right-hand operand.
 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235536
 
 gcc/arm generates so many parens it hits a bracket depth limited which is
 enforced by clang. This reduces the number of parens generated and avoids the
 need to increase bracket depth.
 
 Fixes PR toolchain/53178 properly.
 
 Remove hack previously needed to build gcc/arm with clang.
 genattrtab.c:1.2 makes this unnecessary.
 
 Tested by thorpej.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.3 -r1.1.1.3.8.1 \
     src/external/gpl3/gcc/dist/gcc/genattrtab.c
 cvs rdiff -u -r1.44.8.1 -r1.44.8.2 src/tools/Makefile.gnuhost
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index