Re: svn commit: r324511 - head/contrib/binutils/bfd

2017-10-12 Thread Roman Divacky
Note that this allows to use C++ EH on a gcc built PPC64 world for applications built by clang++. Roman On Wed, Oct 11, 2017 at 02:39:20AM +, Justin Hibbits wrote: > Author: jhibbits > Date: Wed Oct 11 02:39:20 2017 > New Revision: 324511 > URL: https://svnweb.freebsd.org/changeset/base/32451

Re: svn commit: r320908 - head/sys/kern

2017-07-12 Thread Roman Divacky
Clang knows about %b modifier and can do some semantic analysis on it. Currently it type checks the first arg to be an int and the second to be a char*. Do you think it would be worth modifying the checks to include this new functionality? Do you think you would like to take a stab at it? Search

Re: svn commit: r320288 - head/sys/boot/i386/boot0

2017-06-23 Thread Roman Divacky
Nice! What about boot1.S from boot2? On Fri, Jun 23, 2017 at 06:41:49PM +, Ed Maste wrote: > Author: emaste > Date: Fri Jun 23 18:41:49 2017 > New Revision: 320288 > URL: https://svnweb.freebsd.org/changeset/base/320288 > > Log: > Allow Clang's integrated assembler to assemble boot0 > >

Re: svn commit: r315773 - head/sbin/devd

2017-03-23 Thread Roman Divacky
On Thu, Mar 23, 2017 at 02:36:51AM +, Warner Losh wrote: > Author: imp > Date: Thu Mar 23 02:36:51 2017 > New Revision: 315773 > URL: https://svnweb.freebsd.org/changeset/base/315773 > > Log: > Implement quote escaping. String values may now contain " if you > it is preceded by \. > >

Re: svn commit: r292236 - in head: contrib/mdocml lib lib/libc/sys lib/libsysdecode share/mk usr.bin/kdump usr.bin/truss

2015-12-15 Thread Roman Divacky
On Tue, Dec 15, 2015 at 12:05:07AM +, John Baldwin wrote: > Author: jhb > Date: Tue Dec 15 00:05:07 2015 > New Revision: 292236 > URL: https://svnweb.freebsd.org/changeset/base/292236 > > Log: > Start on a new library (libsysdecode) that provides routines for decoding > system call informa

Re: svn commit: r280767 - head/sbin/md5

2015-03-28 Thread Roman Divacky
> Modified: head/sbin/md5/md5.c > == > --- head/sbin/md5/md5.c Fri Mar 27 17:36:22 2015(r280766) > +++ head/sbin/md5/md5.c Fri Mar 27 18:23:06 2015(r280767) > @@ -91,7 +91,7 @@ typedef union { >

Re: svn commit: r278361 - in head/contrib/llvm: lib/Target/X86 patches

2015-02-08 Thread Roman Divacky
Fwiw, FastISel is only used for -O0, maybe the right way to "fix" the breakage is to not use -O0 ? On Sat, Feb 07, 2015 at 04:57:33PM +, Dimitry Andric wrote: > Author: dim > Date: Sat Feb 7 16:57:32 2015 > New Revision: 278361 > URL: https://svnweb.freebsd.org/changeset/base/278361 > > Log:

Re: svn commit: r277841 - head/contrib/amd/hlfsd

2015-01-28 Thread Roman Divacky
Given that this is a contributed code - have you sent the fix upstream? Also, upstream seems to have newer versions of this... On Wed, Jan 28, 2015 at 06:19:26PM +, Dimitry Andric wrote: > Author: dim > Date: Wed Jan 28 18:19:25 2015 > New Revision: 277841 > URL: https://svnweb.freebsd.org/cha

svn commit: r276499 - head/sys/conf

2015-01-01 Thread Roman Divacky
Author: rdivacky Date: Thu Jan 1 10:07:57 2015 New Revision: 276499 URL: https://svnweb.freebsd.org/changeset/base/276499 Log: LLVM integrated assembler can assemble these files just fine. Modified: head/sys/conf/Makefile.amd64 head/sys/conf/Makefile.i386 head/sys/conf/Makefile.pc98 Mod

svn commit: r275305 - head/sys/boot/i386/boot2

2014-11-30 Thread Roman Divacky
Author: rdivacky Date: Sun Nov 30 08:43:55 2014 New Revision: 275305 URL: https://svnweb.freebsd.org/changeset/base/275305 Log: Unbreak the code for non-digits below '0' by casting the expression to unsigned int. Pointed out by: bde Modified: head/sys/boot/i386/boot2/boot2.c Modified:

svn commit: r275237 - head/sys/boot/i386/boot2

2014-11-29 Thread Roman Divacky
Author: rdivacky Date: Sat Nov 29 08:59:26 2014 New Revision: 275237 URL: https://svnweb.freebsd.org/changeset/base/275237 Log: Shrink boot2 a bit more by factoring out common pattern of printf();return(-1); This shrinks it by 8bytes using clang35 and by 12bytes using clang34. Modified:

svn commit: r275191 - head/sys/boot/i386/boot2

2014-11-27 Thread Roman Divacky
Author: rdivacky Date: Thu Nov 27 18:43:44 2014 New Revision: 275191 URL: https://svnweb.freebsd.org/changeset/base/275191 Log: Revert part of r275059. Comparing unsigned 8 bit value against -'0' is always false so the conditional block is optimized away. Modified: head/sys/boot/i386/boot

svn commit: r275062 - head/sys/boot/i386/boot2

2014-11-25 Thread Roman Divacky
Author: rdivacky Date: Tue Nov 25 18:58:40 2014 New Revision: 275062 URL: https://svnweb.freebsd.org/changeset/base/275062 Log: Fix style(9). Suggested by: jkim Modified: head/sys/boot/i386/boot2/boot2.c Modified: head/sys/boot/i386/boot2/boot2.c

svn commit: r275061 - head/sys/boot/i386/boot2

2014-11-25 Thread Roman Divacky
Author: rdivacky Date: Tue Nov 25 18:53:17 2014 New Revision: 275061 URL: https://svnweb.freebsd.org/changeset/base/275061 Log: Fix style(9). Suggested by: jkim Modified: head/sys/boot/i386/boot2/boot2.c Modified: head/sys/boot/i386/boot2/boot2.c

svn commit: r275059 - head/sys/boot/i386/boot2

2014-11-25 Thread Roman Divacky
Author: rdivacky Date: Tue Nov 25 18:35:47 2014 New Revision: 275059 URL: https://svnweb.freebsd.org/changeset/base/275059 Log: Shrink boot2 by a couple more bytes. Reviewed by:jhb Tested by: me, dim Modified: head/sys/boot/i386/boot2/boot2.c Modified: head/sys/boot/i386/boot

Re: svn commit: r274340 - in head/sys: crypto/rijndael dev/random geom/bde

2014-11-21 Thread Roman Divacky
On Tue, Nov 11, 2014 at 10:48:36PM +1100, Bruce Evans wrote: > On Tue, 11 Nov 2014, [utf-8] Dag-Erling Sm??rgrav wrote: > > > "Bjoern A. Zeeb" writes: > >> This fails to compile on all gcc platforms. > >> > >> cc1: warnings being treated as errors > >> /scratch/tmp/bz/head.svn/sys/modules/geom/ge

Re: svn commit: r273334 - in head/sys: boot/common kern sys

2014-10-20 Thread Roman Divacky
> Note that LLVM appends the priority of the constructors to the name of > the .ctors section. Not so when compiling with GCC. The code currently > works for GCC and not for LLVM. Uhm? LLVM here creates ".ctors" section, nothing is appended. Can you be more specific on what you're seing? Ro

svn commit: r270522 - head/lib/libc++

2014-08-25 Thread Roman Divacky
Author: rdivacky Date: Mon Aug 25 08:40:36 2014 New Revision: 270522 URL: http://svnweb.freebsd.org/changeset/base/270522 Log: The standard we compile libc++ with is called c++11 not c++0x. Modified: head/lib/libc++/Makefile Modified: head/lib/libc++/Makefile

svn commit: r270148 - head/contrib/llvm/patches

2014-08-18 Thread Roman Divacky
Author: rdivacky Date: Mon Aug 18 18:07:28 2014 New Revision: 270148 URL: http://svnweb.freebsd.org/changeset/base/270148 Log: Add the patch commited in r270147. Added: head/contrib/llvm/patches/patch-r270147-llvm-r197824-r213427-r213960.diff Added: head/contrib/llvm/patches/patch-r270147-ll

svn commit: r270147 - in head/contrib/llvm: include/llvm/Support lib/Object lib/Target/PowerPC lib/Target/PowerPC/InstPrinter lib/Target/PowerPC/MCTargetDesc

2014-08-18 Thread Roman Divacky
Author: rdivacky Date: Mon Aug 18 18:05:55 2014 New Revision: 270147 URL: http://svnweb.freebsd.org/changeset/base/270147 Log: Backport r197824, r213427 and r213960 from LLVM trunk: r197824 | rdivacky | 2013-12-20 19:08:54 +0100 (Fri, 20 Dec 2013) | 2 lines Implement initial-exec T

svn commit: r255676 - in head/sys: amd64/linux32 i386/linux

2013-09-18 Thread Roman Divacky
Author: rdivacky Date: Wed Sep 18 18:49:26 2013 New Revision: 255676 URL: http://svnweb.freebsd.org/changeset/base/255676 Log: Regen. Approved by: re (delphij) Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_sy

svn commit: r255675 - in head/sys: amd64/linux32 compat/linux conf i386/linux kern modules/linux sys

2013-09-18 Thread Roman Divacky
Author: rdivacky Date: Wed Sep 18 18:48:33 2013 New Revision: 255675 URL: http://svnweb.freebsd.org/changeset/base/255675 Log: Revert r255672, it has some serious flaws, leaking file references etc. Approved by: re (delphij) Deleted: head/sys/compat/linux/linux_epoll.c head/sys/compat

svn commit: r255673 - in head/sys: amd64/linux32 i386/linux

2013-09-18 Thread Roman Divacky
Author: rdivacky Date: Wed Sep 18 17:58:03 2013 New Revision: 255673 URL: http://svnweb.freebsd.org/changeset/base/255673 Log: Regen. Approved by:re (delphij) Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_

svn commit: r255672 - in head/sys: amd64/linux32 compat/linux conf i386/linux kern modules/linux sys

2013-09-18 Thread Roman Divacky
(empty, because file is newly added) +++ head/sys/compat/linux/linux_epoll.c Wed Sep 18 17:56:04 2013 (r255672) @@ -0,0 +1,554 @@ +/*- + * Copyright (c) 2007 Roman Divacky + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are

Re: svn commit: r255273 - in head/sys/powerpc: aim include

2013-09-06 Thread Roman Divacky
On Thu, Sep 05, 2013 at 11:00:24PM +, Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Thu Sep 5 23:00:24 2013 > New Revision: 255273 > URL: http://svnweb.freebsd.org/changeset/base/255273 > > Log: > Align stacks of kernel threads correctly at 16-byte boundaries rather than > making s

svn commit: r254967 - in head/sys: conf modules/linux

2013-08-27 Thread Roman Divacky
Author: rdivacky Date: Tue Aug 27 18:35:04 2013 New Revision: 254967 URL: http://svnweb.freebsd.org/changeset/base/254967 Log: Assemble linux32_locore.s and ia32_sigtramp.S with clang integrated assembler. Support for .code32 and .code64 in llvm was implemented more than 2 years ago. Test

Re: svn commit: r253396 - in head: . share/mk sys/conf sys/sys tools/build/options

2013-07-16 Thread Roman Divacky
>- GDB can have issues with executables built with clang. Can you clarify that? Thanks, Roman ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...

svn commit: r253162 - head/usr.sbin/nvram

2013-07-10 Thread Roman Divacky
Author: rdivacky Date: Wed Jul 10 18:07:01 2013 New Revision: 253162 URL: http://svnweb.freebsd.org/changeset/base/253162 Log: Fix -Wmissing-variable-declarations compiler warning. Modified: head/usr.sbin/nvram/nvram.c Modified: head/usr.sbin/nvram/nvram.c ===

Re: svn commit: r248856 - head/share/mk

2013-03-29 Thread Roman Divacky
Thank you for all the work you've done to make this possible! Hopefully other archs (powerpc and mips?) will follow soon. On Thu, Mar 28, 2013 at 10:49:49PM +, Andrew Turner wrote: > Author: andrew > Date: Thu Mar 28 22:49:49 2013 > New Revision: 248856 > URL: http://svnweb.freebsd.org/change

Re: svn commit: r248119 - in head/sys/arm: arm include

2013-03-10 Thread Roman Divacky
Should clang define __FreeBSD_ARCH_armv6__ ? Any other define thats missing and should be defined? Roman On Sat, Mar 09, 2013 at 11:55:24PM +, Andrew Turner wrote: > Author: andrew > Date: Sat Mar 9 23:55:23 2013 > New Revision: 248119 > URL: http://svnweb.freebsd.org/changeset/base/248119 >

Re: svn commit: r246354 - head/share/mk

2013-02-05 Thread Roman Divacky
Just for comparison whats the size difference between clang built clang and gcc built clang on arm? On Tue, Feb 05, 2013 at 05:16:02AM +, Andrew Turner wrote: > Author: andrew > Date: Tue Feb 5 05:16:02 2013 > New Revision: 246354 > URL: http://svnweb.freebsd.org/changeset/base/246354 > > Lo

Re: svn commit: r243310 - head/share/mk

2012-11-19 Thread Roman Divacky
Maybe update share/examples/etc/make.conf too? On Mon, Nov 19, 2012 at 09:58:14PM +, Jung-uk Kim wrote: > Author: jkim > Date: Mon Nov 19 21:58:14 2012 > New Revision: 243310 > URL: http://svnweb.freebsd.org/changeset/base/243310 > > Log: > Add x86 CPUs supported by clang on head. > >

svn commit: r242890 - head/sys/dev/xen/netback

2012-11-11 Thread Roman Divacky
Author: rdivacky Date: Sun Nov 11 10:45:21 2012 New Revision: 242890 URL: http://svnweb.freebsd.org/changeset/base/242890 Log: Fix a typo. Modified: head/sys/dev/xen/netback/netback_unit_tests.c Modified: head/sys/dev/xen/netback/netback_unit_tests.c =

svn commit: r242889 - head/sys/dev/xen/netback

2012-11-11 Thread Roman Divacky
Author: rdivacky Date: Sun Nov 11 10:42:34 2012 New Revision: 242889 URL: http://svnweb.freebsd.org/changeset/base/242889 Log: Change the XNB_ASSERT from a statement expression to do-while(0) as its result is never used. Modified: head/sys/dev/xen/netback/netback_unit_tests.c Modified: hea

svn commit: r242854 - head/sys/netinet

2012-11-10 Thread Roman Divacky
Author: rdivacky Date: Sat Nov 10 10:41:00 2012 New Revision: 242854 URL: http://svnweb.freebsd.org/changeset/base/242854 Log: Initialize hdrlen to 0 to avoid clang warning in NOINET case. Modified: head/sys/netinet/tcp_timewait.c Modified: head/sys/netinet/tcp_timewait.c ===

svn commit: r242830 - head/sys/conf

2012-11-09 Thread Roman Divacky
Author: rdivacky Date: Fri Nov 9 17:46:07 2012 New Revision: 242830 URL: http://svnweb.freebsd.org/changeset/base/242830 Log: Dont compile some files in drm with -finline-limit=1350. GCC 4.2.1 doesnt need that and clang does not support that. This effectively reverts r126542. Modified: hea

svn commit: r242827 - head/sys/dev/twa

2012-11-09 Thread Roman Divacky
Author: rdivacky Date: Fri Nov 9 15:29:52 2012 New Revision: 242827 URL: http://svnweb.freebsd.org/changeset/base/242827 Log: Give tw_osl_dbg_printf format string to pacify clang warning. Modified: head/sys/dev/twa/tw_cl_misc.c Modified: head/sys/dev/twa/tw_cl_misc.c ===

svn commit: r242826 - head/sys/dev/asmc

2012-11-09 Thread Roman Divacky
Author: rdivacky Date: Fri Nov 9 14:58:26 2012 New Revision: 242826 URL: http://svnweb.freebsd.org/changeset/base/242826 Log: Give device_printf format string to pacify clang warning. Modified: head/sys/dev/asmc/asmc.c Modified: head/sys/dev/asmc/asmc.c =

svn commit: r242825 - head/sys/dev/drm

2012-11-09 Thread Roman Divacky
Author: rdivacky Date: Fri Nov 9 14:46:23 2012 New Revision: 242825 URL: http://svnweb.freebsd.org/changeset/base/242825 Log: Cast VIA_READ to (void) where the result is unused. Modified: head/sys/dev/drm/via_dma.c head/sys/dev/drm/via_dmablit.c Modified: head/sys/dev/drm/via_dma.c ==

svn commit: r242824 - head/sys/dev/mn

2012-11-09 Thread Roman Divacky
Author: rdivacky Date: Fri Nov 9 14:14:51 2012 New Revision: 242824 URL: http://svnweb.freebsd.org/changeset/base/242824 Log: Remove unused static mn_timeout. Modified: head/sys/dev/mn/if_mn.c Modified: head/sys/dev/mn/if_mn.c

svn commit: r242823 - head/sys/dev/aac

2012-11-09 Thread Roman Divacky
Author: rdivacky Date: Fri Nov 9 13:58:52 2012 New Revision: 242823 URL: http://svnweb.freebsd.org/changeset/base/242823 Log: Give panic format string to pacify clang warning. Modified: head/sys/dev/aac/aac_debug.c Modified: head/sys/dev/aac/aac_debug.c =

Re: svn commit: r242715 - head/sys/conf

2012-11-08 Thread Roman Divacky
> - clang fails to optimize division by (integer) 2 into multiplication >by (floating point with the correct type) 0.5 in the case of long >doubles on one supported arch (i386 IIRC). Both compilers optimize >all other cases, including floats and doubles on all arches. clang >with

Re: svn commit: r242080 - in head/contrib/llvm/tools/clang: include/clang/Basic lib/Sema

2012-10-25 Thread Roman Divacky
Why? I can understand cherry picking revisions that fix bugs FreeBSD users hit but why additional features? Why cant this wait for next proper llvm/clang import? On Thu, Oct 25, 2012 at 10:13:58AM +, Ed Schouten wrote: > Author: ed > Date: Thu Oct 25 10:13:58 2012 > New Revision: 242080 > UR

svn commit: r239733 - head/usr.sbin/nvram

2012-08-27 Thread Roman Divacky
Author: rdivacky Date: Mon Aug 27 14:51:26 2012 New Revision: 239733 URL: http://svn.freebsd.org/changeset/base/239733 Log: Dont cast from char* to struct chrp_header* which has a bigger alignment requirements. Copy it via union instead. Fixes a clang warning about alignment. Reviewed b

svn commit: r239654 - in head/gnu/usr.bin/binutils: as libbfd

2012-08-24 Thread Roman Divacky
Author: rdivacky Date: Fri Aug 24 16:37:00 2012 New Revision: 239654 URL: http://svn.freebsd.org/changeset/base/239654 Log: Dont use -Werror when building libbfd and gnu as on powerpc64 with clang as there are warnings. Reviewed by:nwhitehorn Modified: head/gnu/usr.bin/binutils/as/

Re: svn commit: r238863 - head/contrib/llvm/tools/clang/lib/Driver

2012-07-28 Thread Roman Divacky
It would be great to stay in sync with upstream. http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?r1=160103&r2=160231 On Sat, Jul 28, 2012 at 12:50:26PM +, Dimitry Andric wrote: > Author: dim > Date: Sat Jul 28 12:50:25 2012 > New Revision: 238863 > URL: http://svn.freebsd.o

Re: svn commit: r238818 - head/sys/dev/netmap

2012-07-26 Thread Roman Divacky
Why dont you use __builtin_prefetch() ? On Thu, Jul 26, 2012 at 09:37:58PM +, Luigi Rizzo wrote: > Author: luigi > Date: Thu Jul 26 21:37:58 2012 > New Revision: 238818 > URL: http://svn.freebsd.org/changeset/base/238818 > > Log: > define prefetch as a noop on !x86 > > Modified: > head/s

Re: svn commit: r236137 - head/contrib/gcc/config/i386

2012-05-27 Thread Roman Divacky
Fwiw, to enable the same thing in clang you want this simple patch: === --- Tools.cpp (revision 157545) +++ Tools.cpp (working copy) @@ -4794,6 +4794,7 @@ if (Args.hasArg(options::OPT_static)) { CmdArgs.push_back("-Bstatic

Re: svn commit: r230368 - head/tools/regression/usr.bin/cc

2012-01-20 Thread Roman Divacky
http://llvm.org/bugs/show_bug.cgi?id=11406 says this has been fixed, is this just problem with us having older clang in base? On Fri, Jan 20, 2012 at 06:57:22AM +, David Schultz wrote: > Author: das > Date: Fri Jan 20 06:57:21 2012 > New Revision: 230368 > URL: http://svn.freebsd.org/changeset

Re: svn commit: r226687 - head/sys/fs/nullfs

2011-10-24 Thread Roman Divacky
On Mon, Oct 24, 2011 at 01:53:32PM +, Konstantin Belousov wrote: > Author: kib > Date: Mon Oct 24 13:53:32 2011 > New Revision: 226687 > URL: http://svn.freebsd.org/changeset/base/226687 > > Log: > The only possible error return from null_nodeget() is due to insmntque1 > failure (the getne

Re: svn commit: r226430 - head/contrib/gcc/config/i386

2011-10-16 Thread Roman Divacky
Can this be MFCed to stable/9 ? I've seen clang erroring out because of this quite a lot. roman On Sun, Oct 16, 2011 at 10:14:33AM +, Stefan Farfeleder wrote: > Author: stefanf > Date: Sun Oct 16 10:14:33 2011 > New Revision: 226430 > URL: http://svn.freebsd.org/changeset/base/226430 > > Log

Re: svn commit: r226216 - head/share/mk

2011-10-10 Thread Roman Divacky
On Mon, Oct 10, 2011 at 03:39:29PM +, David Schultz wrote: > Author: das > Date: Mon Oct 10 15:39:29 2011 > New Revision: 226216 > URL: http://svn.freebsd.org/changeset/base/226216 > > Log: > Pass -std= flags in CFLAGS to mkdep. Without this, preprocessor tests > for particular compiler fe

Re: svn commit: r224523 - head/contrib/gcc/cp

2011-07-30 Thread Roman Divacky
Why are we compiling our in-tree gcc with assertions enabled in the first place? On Sat, Jul 30, 2011 at 05:27:29PM +, Martin Matuska wrote: > Author: mm > Date: Sat Jul 30 17:27:29 2011 > New Revision: 224523 > URL: http://svn.freebsd.org/changeset/base/224523 > > Log: > Fix invalid assert

Re: svn commit: r223493 - in head/usr.bin: ktrace ncplogin systat tftp vmstat

2011-06-24 Thread Roman Divacky
On Fri, Jun 24, 2011 at 07:18:44AM +, Kevin Lo wrote: > Author: kevlo > Date: Fri Jun 24 07:18:44 2011 > New Revision: 223493 > URL: http://svn.freebsd.org/changeset/base/223493 > > Log: > Remove duplicated header files You may be interested in this tool: http://code.google.com/p/i

Re: svn commit: r222183 - head/lib/clang

2011-05-22 Thread Roman Divacky
The problem here is deeper in my opinion. What FreeBSD calls amd64 the rest of the world (ie. linux) calls x86_64, I think that instead of this we should teach llvm/clang about "amd64". Maybe as a FreeBSD-only diff. The machine part of the triple is used in more places and this hack only is not th

Re: svn commit: r221348 - head/sys/boot/i386/boot2

2011-05-03 Thread Roman Divacky
On Tue, May 03, 2011 at 04:27:57AM -0500, Brooks Davis wrote: > On Tue, May 03, 2011 at 03:39:27PM +0200, Roman Divacky wrote: > > With the recent libobjc removal this means that we can compile > > all (no exceptions) of FreeBSD/{i386,amd64} with clang. > > > > Quit

Re: svn commit: r221348 - head/sys/boot/i386/boot2

2011-05-03 Thread Roman Divacky
With the recent libobjc removal this means that we can compile all (no exceptions) of FreeBSD/{i386,amd64} with clang. Quite a milestone in my opinion :) On Mon, May 02, 2011 at 09:13:08PM +, Dimitry Andric wrote: > Author: dim > Date: Mon May 2 21:13:08 2011 > New Revision: 221348 > URL: ht

Re: svn commit: r220755 - in head: . contrib/gcc/doc contrib/gcc/objc contrib/libobjc etc/mtree gnu/lib gnu/lib/libobjc gnu/usr.bin/cc gnu/usr.bin/cc/cc1obj gnu/usr.bin/cc/cc_tools gnu/usr.bin/cc/doc

2011-04-18 Thread Roman Divacky
please mark this in src/UPDATING, maybe bump freebsd_version too? On Sun, Apr 17, 2011 at 09:03:23PM +, Dimitry Andric wrote: > Author: dim > Date: Sun Apr 17 21:03:23 2011 > New Revision: 220755 > URL: http://svn.freebsd.org/changeset/base/220755 > > Log: > Remove libobjc and other Objecti

svn commit: r220392 - head/sys/boot/i386/boot2

2011-04-06 Thread Roman Divacky
Author: rdivacky Date: Wed Apr 6 17:54:12 2011 New Revision: 220392 URL: http://svn.freebsd.org/changeset/base/220392 Log: Move getc() body before xgetc() so gcc does not emit a warning about function having no body. Approved by:jhb Modified: head/sys/boot/i386/boot2/boot2.c Modi

svn commit: r220389 - head/sys/boot/i386/boot2

2011-04-06 Thread Roman Divacky
Author: rdivacky Date: Wed Apr 6 17:29:40 2011 New Revision: 220389 URL: http://svn.freebsd.org/changeset/base/220389 Log: Mark getc() as inline, this has no effect on gcc but helps clang. Approved by:jhb Modified: head/sys/boot/i386/boot2/boot2.c Modified: head/sys/boot/i386/boot2

svn commit: r220337 - head/sys/boot/i386/boot2

2011-04-04 Thread Roman Divacky
Author: rdivacky Date: Mon Apr 4 18:23:55 2011 New Revision: 220337 URL: http://svn.freebsd.org/changeset/base/220337 Log: Build boot2 with -mregparm=3, ie. pass upto 3 arguments via registers. This modifies CFLAGS and tweaks sio.S to use the new calling convention. The sio_init() and sio_p

Re: svn commit: r219699 - head/sys/kern

2011-03-16 Thread Roman Divacky
On Wed, Mar 16, 2011 at 04:22:59PM +, Ivan Voras wrote: > Author: ivoras > Date: Wed Mar 16 16:22:59 2011 > New Revision: 219699 > URL: http://svn.freebsd.org/changeset/base/219699 > > Log: > The hardware has caught up; improvements are now observed even at 128, > but stay conservative and

Re: svn commit: r219679 - head/sys/i386/include

2011-03-16 Thread Roman Divacky
On Wed, Mar 16, 2011 at 12:32:56PM -0400, Jung-uk Kim wrote: > On Tuesday 15 March 2011 08:45 pm, Maxim Dounin wrote: > > This isn't really different as long as GENERIC kernel used, as > > GENERIC defines I486_CPU. > > Fixed in r219698, sorry. > > Actually, I think we should remove i486 from GENE

svn commit: r219452 - in head/sys/boot: common i386/boot2

2011-03-10 Thread Roman Divacky
Author: rdivacky Date: Thu Mar 10 16:40:13 2011 New Revision: 219452 URL: http://svn.freebsd.org/changeset/base/219452 Log: Some more shrinking. obunch of variables are turned into uint8_t oinitial setting of namep[] in lookup() is removed as it's only overwritt

Re: svn commit: r219374 - in head/contrib/gcc: . config/i386 doc

2011-03-07 Thread Roman Divacky
On Mon, Mar 07, 2011 at 02:48:23PM +, Martin Matuska wrote: > Author: mm > Date: Mon Mar 7 14:48:22 2011 > New Revision: 219374 > URL: http://svn.freebsd.org/changeset/base/219374 > > Log: > Backport Intel Core 2 and AMD Geode CPU types from gcc-4.3 (GPLv2) > These options are supported i

svn commit: r219186 - head/sys/boot/i386/boot2

2011-03-02 Thread Roman Divacky
Author: rdivacky Date: Wed Mar 2 18:53:12 2011 New Revision: 219186 URL: http://svn.freebsd.org/changeset/base/219186 Log: This patch shrinks boot2 a little. oIt switches kname to be just a pointer instead of an array thus avoiding a couple of memcpy()s. oIt changes ioc

Re: svn commit: r218926 - head/sys/boot/i386/boot2

2011-02-21 Thread Roman Divacky
On Mon, Feb 21, 2011 at 07:46:02PM +, Dimitry Andric wrote: > Author: dim > Date: Mon Feb 21 19:46:02 2011 > New Revision: 218926 > URL: http://svn.freebsd.org/changeset/base/218926 > > Log: > In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable > from uint16_t back to ui

Re: svn commit: r218745 - head/sys/boot/i386/boot2

2011-02-17 Thread Roman Divacky
I have some more WIP patches that shrink stuff some more, plus I have clang/llvm changes that help too.. this will get fixed On Thu, Feb 17, 2011 at 01:52:11AM +, Alexander Best wrote: > On Wed Feb 16 11, Warner Losh wrote: > > Author: imp > > Date: Wed Feb 16 18:05:10 2011 > > New Revision: 2

Re: svn commit: r218716 - head/sys/boot/common

2011-02-15 Thread Roman Divacky
I put there u_int8_t for a reason. That reason being that it's basically struct direct->d_type which is u_int8_t and not uint8_t. On Tue, Feb 15, 2011 at 09:01:13PM +, Dimitry Andric wrote: > Author: dim > Date: Tue Feb 15 21:01:13 2011 > New Revision: 218716 > URL: http://svn.freebsd.org/chan

Re: svn commit: r217538 - in head/sys/dev: buslogic cs

2011-01-18 Thread Roman Divacky
On Wed, Jan 19, 2011 at 04:54:34AM +1100, Bruce Evans wrote: > On Tue, 18 Jan 2011, John Baldwin wrote: > > >On Tuesday, January 18, 2011 12:00:44 pm Bruce Evans wrote: > >>On Tue, 18 Jan 2011, John Baldwin wrote: > >> > >>>Log: > >>> Remove some always-true comparisons. > >>> > >>> Submitted by:

Re: svn commit: r216295 - in head/usr.sbin/bsnmpd: . tools tools/bsnmptools tools/libbsnmptools

2010-12-12 Thread Roman Divacky
On Sat, Dec 11, 2010 at 05:42:23PM +0200, Shteryana Shopova wrote: > Hi, > > This is now fixed. However I wouldn't expect bsnmpd(1) compiled with > clang to work - it didn't run last time I checked several months ago, > and I still get the same error - > > udo /usr/sbin/bsnmpd -d -c /root/snmpd.c

Re: svn commit: r216161 - in head/sys: amd64/amd64 i386/i386

2010-12-04 Thread Roman Divacky
On Fri, Dec 03, 2010 at 06:17:16PM -0500, Jung-uk Kim wrote: > On Friday 03 December 2010 06:02 pm, Jung-uk Kim wrote: > > On Friday 03 December 2010 05:43 pm, Jung-uk Kim wrote: > > > On Friday 03 December 2010 05:08 pm, John Baldwin wrote: > > > > On Friday, December 03, 2010 4:54:10 pm Jung-uk K

svn commit: r214210 - head/sys/boot/i386/boot2

2010-10-22 Thread Roman Divacky
Author: rdivacky Date: Fri Oct 22 18:07:21 2010 New Revision: 214210 URL: http://svn.freebsd.org/changeset/base/214210 Log: Avoid using memcpy() for copying 32bit chunks. This shrinks the resulting code a little. Approved by:rpaulo (mentor) Reviewed by:jhb Modified: head/sys/

Re: svn commit: r213793 - in head/sys/dev: ce cp

2010-10-13 Thread Roman Divacky
On Wed, Oct 13, 2010 at 05:17:50PM +, Rui Paulo wrote: > Author: rpaulo > Date: Wed Oct 13 17:17:50 2010 > New Revision: 213793 > URL: http://svn.freebsd.org/changeset/base/213793 > > Log: > Don't do a logical AND of the result of strcmp() with a constant. > > Found with: clang > > Mod

svn commit: r213786 - head/contrib/llvm/tools/clang/lib/Sema

2010-10-13 Thread Roman Divacky
Author: rdivacky Date: Wed Oct 13 17:01:33 2010 New Revision: 213786 URL: http://svn.freebsd.org/changeset/base/213786 Log: Actually, check for any kind of "C string type". Approved by:rpaulo (mentor) Modified: head/contrib/llvm/tools/clang/lib/Sema/SemaChecking.cpp Modified: head/c

svn commit: r213777 - head/contrib/llvm/tools/clang/lib/Sema

2010-10-13 Thread Roman Divacky
Author: rdivacky Date: Wed Oct 13 14:27:47 2010 New Revision: 213777 URL: http://svn.freebsd.org/changeset/base/213777 Log: Extend this check for const unsigned char *. Approved by:rpaulo (mentor) Modified: head/contrib/llvm/tools/clang/lib/Sema/SemaChecking.cpp Modified: head/contr

Re: svn commit: r213534 - in head: contrib/llvm contrib/llvm/autoconf contrib/llvm/include/llvm/ADT contrib/llvm/lib/CodeGen contrib/llvm/lib/Target/ARM contrib/llvm/lib/Target/X86 contrib/llvm/tools/

2010-10-07 Thread Roman Divacky
On Thu, Oct 07, 2010 at 08:31:07PM +, Dimitry Andric wrote: > Author: dim > Date: Thu Oct 7 20:31:07 2010 > New Revision: 213534 > URL: http://svn.freebsd.org/changeset/base/213534 > > Log: > Upgrade Clang and LLVM to the 2.8 release. See here for release notes: > http://llvm.org/release

Re: svn commit: r213326 - head/lib/libc/i386/string

2010-10-01 Thread Roman Divacky
On Fri, Oct 01, 2010 at 01:10:11PM +, Jilles Tjoelker wrote: > Author: jilles > Date: Fri Oct 1 13:10:11 2010 > New Revision: 213326 > URL: http://svn.freebsd.org/changeset/base/213326 > > Log: > libc: Remove the i386 assembler version of strlen(3). > > On anything modern, the C versio

svn commit: r212177 - in head/sys: amd64/include i386/include

2010-09-03 Thread Roman Divacky
Author: rdivacky Date: Fri Sep 3 14:25:17 2010 New Revision: 212177 URL: http://svn.freebsd.org/changeset/base/212177 Log: Change the parameter passed to the inline assembly to u_short as we are dealing with 16bit segment registers. Change mov to movw. Approved by:rpaulo (mentor)

Re: svn commit: r211573 - in head: contrib/llvm/tools/clang/lib/Driver contrib/llvm/tools/clang/lib/Frontend lib/clang

2010-08-22 Thread Roman Divacky
are they interested in this upstream? I think they can be and it would save us some effort on the next merge On Sat, Aug 21, 2010 at 03:46:34PM +, Rui Paulo wrote: > Author: rpaulo > Date: Sat Aug 21 15:46:33 2010 > New Revision: 211573 > URL: http://svn.freebsd.org/changeset/base/211573 > >

Re: svn commit: r210385 - head/gnu/lib/libobjc

2010-07-22 Thread Roman Divacky
On Thu, Jul 22, 2010 at 06:49:27PM +, Rui Paulo wrote: > Author: rpaulo > Date: Thu Jul 22 18:49:27 2010 > New Revision: 210385 > URL: http://svn.freebsd.org/changeset/base/210385 > > Log: > Disable building libobjc with clang as it's not yet supported. and it will NEVER be (because of miss

Re: svn commit: r210324 - head/lib/libelf

2010-07-21 Thread Roman Divacky
On Wed, Jul 21, 2010 at 08:54:46AM +, Kai Wang wrote: > Author: kaiw > Date: Wed Jul 21 08:54:46 2010 > New Revision: 210324 > URL: http://svn.freebsd.org/changeset/base/210324 > > Log: > - Correctly handle sections of type SHT_NOBITS. For these sections: > - elf_getdata() and elf_rawda

svn commit: r209162 - head/sys/boot/i386/pxeldr

2010-06-14 Thread Roman Divacky
Author: rdivacky Date: Mon Jun 14 17:02:19 2010 New Revision: 209162 URL: http://svn.freebsd.org/changeset/base/209162 Log: Pass the -N flag to linked via -Wl. Approved by: ed (mentor) Modified: head/sys/boot/i386/pxeldr/Makefile Modified: head/sys/boot/i386/pxeldr/Makefile ===

Re: svn commit: r209119 - head/sys/sys

2010-06-13 Thread Roman Divacky
On Sun, Jun 13, 2010 at 01:59:11PM +, m...@freebsd.org wrote: > On Sun, Jun 13, 2010 at 10:10 AM, Pawel Jakub Dawidek > wrote: > > On Sun, Jun 13, 2010 at 02:39:55AM +, Lawrence Stewart wrote: > >> Author: lstewart > >> Date: Sun Jun 13 02:39:55 2010 > >> New Revision: 209119 > >> URL: ht

svn commit: r208999 - in head/contrib/llvm: Xcode cmake projects tools/clang/INPUTS tools/clang/clang.xcodeproj tools/clang/win32 unittests win32

2010-06-10 Thread Roman Divacky
Author: rdivacky Date: Thu Jun 10 19:59:23 2010 New Revision: 208999 URL: http://svn.freebsd.org/changeset/base/208999 Log: Remove Xcode cmake win32 projects unittests from LLVM and clang.xcodeproj INPUTS win32 from clang. Requested by: jkim Approved by: ed (mentor) Deleted: head/co

svn commit: r208987 - in head/contrib/llvm/tools/clang: include/clang/Analysis/Analyses include/clang/Basic include/clang/Driver lib/Analysis lib/Driver lib/Frontend lib/Sema

2010-06-10 Thread Roman Divacky
Author: rdivacky Date: Thu Jun 10 16:13:32 2010 New Revision: 208987 URL: http://svn.freebsd.org/changeset/base/208987 Log: Introduce -fformat-extensions. A local FreeBSD extension used for additional printf modifiers in kernel. Approved by: ed (mentor) Modified: head/contrib/llvm/to

Re: svn commit: r208965 - head/tools/build/options

2010-06-09 Thread Roman Divacky
On Wed, Jun 09, 2010 at 08:11:35PM +, Roman Divacky wrote: > Author: rdivacky > Date: Wed Jun 9 20:11:35 2010 > New Revision: 208965 > URL: http://svn.freebsd.org/changeset/base/208965 > > Log: > Add WITHOUT_CLANG file with a description. > > Approved by:

svn commit: r208966 - head/share/man/man5

2010-06-09 Thread Roman Divacky
Author: rdivacky Date: Wed Jun 9 20:13:50 2010 New Revision: 208966 URL: http://svn.freebsd.org/changeset/base/208966 Log: Regen src.conf.5 Approved by: ed (mentor) Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5 ==

svn commit: r208965 - head/tools/build/options

2010-06-09 Thread Roman Divacky
Author: rdivacky Date: Wed Jun 9 20:11:35 2010 New Revision: 208965 URL: http://svn.freebsd.org/changeset/base/208965 Log: Add WITHOUT_CLANG file with a description. Approved by: ed (mentor) Added: head/tools/build/options/WITHOUT_CLANG (contents, props changed) Added: head/tools/bu

svn commit: r208964 - in head: . etc/mtree lib share/mk usr.bin

2010-06-09 Thread Roman Divacky
Author: rdivacky Date: Wed Jun 9 19:57:20 2010 New Revision: 208964 URL: http://svn.freebsd.org/changeset/base/208964 Log: Hook clang into the build on i386/amd64/powerpc. Approved by: ed (mentor) Modified: head/Makefile.inc1 head/etc/mtree/BSD.include.dist head/lib/Makefile head

svn commit: r208963 - in head: lib/clang lib/clang/include lib/clang/include/clang lib/clang/include/clang/AST lib/clang/include/clang/Basic lib/clang/include/clang/Driver lib/clang/include/llvm li...

2010-06-09 Thread Roman Divacky
Author: rdivacky Date: Wed Jun 9 19:32:20 2010 New Revision: 208963 URL: http://svn.freebsd.org/changeset/base/208963 Log: Import the build makefiles for clang/LLVM. Approved by: ed (mentor) Added: head/lib/clang/ head/lib/clang/Makefile (contents, props changed) head/lib/clang/c

svn commit: r208962 - head/contrib/llvm/tools/clang/lib/Frontend

2010-06-09 Thread Roman Divacky
Author: rdivacky Date: Wed Jun 9 19:15:58 2010 New Revision: 208962 URL: http://svn.freebsd.org/changeset/base/208962 Log: Remove the commented out piece that slipped as a mismerge. Approved by: ed (mentor) Modified: head/contrib/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp Modi

svn commit: r208961 - head/contrib/llvm/tools/clang/lib/Frontend

2010-06-09 Thread Roman Divacky
Author: rdivacky Date: Wed Jun 9 19:12:25 2010 New Revision: 208961 URL: http://svn.freebsd.org/changeset/base/208961 Log: Adjust include paths to FreeBSD. Remove /usr/local/include and add /usr/include/clang/$VERSION (currently VERSION is 2.0). Approved by: ed (mentor) Modified: hea

svn commit: r208959 - head/contrib/llvm/tools/clang/lib/Driver

2010-06-09 Thread Roman Divacky
Author: rdivacky Date: Wed Jun 9 19:09:49 2010 New Revision: 208959 URL: http://svn.freebsd.org/changeset/base/208959 Log: Change the default CPU to i486 on i386 (architecture). Approved by: ed (mentor) Modified: head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp Modified: head/contri

svn commit: r208958 - head/contrib/llvm/lib/System

2010-06-09 Thread Roman Divacky
Author: rdivacky Date: Wed Jun 9 19:08:17 2010 New Revision: 208958 URL: http://svn.freebsd.org/changeset/base/208958 Log: Comment out piece of code using __clear_cache() which FreeBSD does not have. This is only used for JIT on ARM so it's harmless. Approved by: ed (mentor) Modified:

svn commit: r208954 - in head/contrib/llvm: . docs test tools/clang tools/clang/docs tools/clang/test website

2010-06-09 Thread Roman Divacky
Author: rdivacky Date: Wed Jun 9 17:59:52 2010 New Revision: 208954 URL: http://svn.freebsd.org/changeset/base/208954 Log: Import LLVM/clang from vendor stripped of docs/ test/ website/ www/ examples/ in llvm/ and/or llvm/contrib/clang/ respectively. Approved by: ed (mentor) Approved

svn commit: r208256 - in head/libexec/rtld-elf: . amd64 arm i386 powerpc sparc64

2010-05-18 Thread Roman Divacky
Author: rdivacky Date: Tue May 18 08:55:23 2010 New Revision: 208256 URL: http://svn.freebsd.org/changeset/base/208256 Log: Only use the cache after the early stage of loading. This is because calling mmap() etc. may use GOT which is not set up yet. Use calloc() instead of mmap() in cases wh

Re: svn commit: r206497 - in head: sbin/geom/class sbin/geom/class/sched sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/modules/geom/geom_sched/gs_sched sys/modules/geom/geom_sched/gs

2010-04-13 Thread Roman Divacky
you dont seem to have commited the anticipatory scheduler gsched_as. why? On Mon, Apr 12, 2010 at 04:37:45PM +, Luigi Rizzo wrote: > Author: luigi > Date: Mon Apr 12 16:37:45 2010 > New Revision: 206497 > URL: http://svn.freebsd.org/changeset/base/206497 > > Log: > Bring in geom_sched, sup

Re: svn commit: r206424 - head/usr.bin/xlint/lint1

2010-04-11 Thread Roman Divacky
On Sun, Apr 11, 2010 at 07:16:12PM +1000, Bruce Evans wrote: > On Fri, 9 Apr 2010, Roman Divacky wrote: > > >Log: > > Rename the ALIGN macro to LINT_ALIGN so it does not clash with > > machine/param.h > > > > Bump the alignment to 16bytes because lint1 memo

svn commit: r206424 - head/usr.bin/xlint/lint1

2010-04-09 Thread Roman Divacky
Author: rdivacky Date: Fri Apr 9 15:21:11 2010 New Revision: 206424 URL: http://svn.freebsd.org/changeset/base/206424 Log: Rename the ALIGN macro to LINT_ALIGN so it does not clash with machine/param.h Bump the alignment to 16bytes because lint1 memory allocator is used for objects that

  1   2   >