Re: Builtin expansion versus headers optimization: Reductions

2015-06-04 Thread Mikhail Maltsev
use library call instead of relying on HAVE_cmpstr[n]si, (except short strings). A better solution would be to implement something like movmem pattern (which is aware of value ranges, alignment, etc.) but for comparison patterns. I could try to write at least some prototype for this (if no one else has already started working on it). -- Regards, Mikhail Maltsev

Re: Builtin expansion versus headers optimization: Reductions

2015-06-05 Thread Mikhail Maltsev
non-ABI-compliant memory allocators which only guarantee 8-byte alignment, but char *bar() { char *data = __builtin_malloc(64); return data + ((unsigned long)data) % 8; } does get optimized to bar: .LFB1: .cfi_startproc movl$64, %edi jmp malloc .cfi_endproc

gcc@gcc.gnu.org

2015-06-06 Thread Mikhail Maltsev
depend on your version of GDB, it's settings, etc. There are similar issues on CentOS 6 in this test report https://gcc.gnu.org/ml/gcc-testresults/2015-03/msg03335.html (though it's i686). BTW, this failure also reproduces for me on current trunk. -- Regards, Mikhail Maltsev

Re: parallel make check: duplicated test results

2015-06-24 Thread Mikhail Maltsev
rom build to build). In contrast, manifest contains only the list of failures, i.e. it is more diff-friendly. 3. Address sanitizer prints process ID in failure message. I replace it by "[PID]", so it does not change across builds. By the way, what is the policy of test results mailing list? I actually run nightly builds of GCC trunk and could post them if that makes sense. (though it's plain old x86_64-unknown-linux-gnu multilib; I build and test C, C++, LTO, Fortran, Objective C and Go). -- Regards, Mikhail Maltsev

Re: C++ coding style inconsistencies

2015-06-25 Thread Mikhail Maltsev
t; where semantics does not imply negative values? 5. In general: which is better: to support consistency with surrounding code or to use the new conventions? Particularly, the rule about declaring variables at the place of first use (in a function where all other variables are declared in the beginning)? P.S. Sorry in advance for continuing a bikeshed discussion :). -- Regards, Mikhail Maltsev

Re: New build warning: implicit declaration of function ‘asprintf’ when building lto-plugin.o

2015-06-29 Thread Mikhail Maltsev
': /home/jenkins/workspace/build-gcc-trunk/src/lto-plugin/lto-plugin.c:930:16: warning: implicit declaration of function 'asprintf' [-Wimplicit-function-declaration] t = hi ? asprintf (&objname, "%s@0x%x%08x", file->name, lo, hi) This change seems somewhat related: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=223589 -- Regards, Mikhail Maltsev

times(2) used in timevars.c introduces significant measurement error

2015-07-12 Thread Mikhail Maltsev
ng tramp3d compilation, get_time is called 13172693 times. Thoughts? -- Regards, Mikhail Maltsev

Re: Moving to git

2015-08-21 Thread Mikhail Maltsev
ng locally, then user A will get a conflict, if he tries to pull (same result as with "git push -f"). -- Regards, Mikhail Maltsev

Re: Acceptance criteria for the git conversion

2015-09-01 Thread Mikhail Maltsev
this change (i.e. make a list of C++ files with .c extension, fix build scripts, run some tests), if it is acceptable. -- Regards, Mikhail Maltsev

Re: Acceptance criteria for the git conversion

2015-09-01 Thread Mikhail Maltsev
s on trunk and active development (feature) branches. -- Regards, Mikhail Maltsev

Re: Help with gcc-plugin (Traverse all loops inside function)

2015-09-15 Thread Mikhail Maltsev
red' of your 'pass_data' structure. Then 'loops_for_fn' should work. 'selfassign.c' is a good example of a plugin which creates an optimization pass (and 'dumb_plugin.c' is a good minimal example). -- Regards, Mikhail Maltsev

Re: Understand GCC test process

2015-10-07 Thread Mikhail Maltsev
g/onlinedocs/gccint/Source-Tree.html and gcc/Makefile.in in more detail. Finally, note that GCC has some means of test coverage analysis: you can configure/build it with "--disable-bootstrap --enable-coverage", run the tests and then use gcov. -- Regards, Mikhail Maltsev

Understanding GCC test results published by SUSE

2015-10-11 Thread Mikhail Maltsev
. Likewise, for libstdc++ benchmark. -- Regards, Mikhail Maltsev

Re: http access to ftp://gcc.gnu.org

2015-10-23 Thread Mikhail Maltsev
Apache Vary: Accept-Encoding 403 Forbidden Forbidden You don't have permission to access /ftp/ on this server. Apache Server at gcc.gnu.org Port 80 Just in case, my IP is 185.6.245.180. -- Regards, Mikhail Maltsev

GCC XML diagnostics

2015-11-04 Thread Mikhail Maltsev
ch can occur in GCC diagnostics (which are worth keeping in mind when designing the XML diagnostics format): https://github.com/miyuki-chan/gcc-xml-diagn/tree/master/examples Any advices about other test cases which are worth taking into account and the format itself? -- Regards, Mikhail Maltsev

Re: Hi! New to GCC

2016-01-09 Thread Mikhail Maltsev
easyhack&list_id=135581&resolution=--- -- Regards, Mikhail Maltsev

Re: Hi! New to GCC

2016-01-24 Thread Mikhail Maltsev
s, like contrib/lvimrc. Settings for emacs are available here: https://gcc.gnu.org/wiki/FormattingCodeForGCC > Should I star looking at the "easy hacks" ? Yes, probably it's a good point to start with. -- Regards, Mikhail Maltsev

Re: Help! Regarding Bug 17896

2016-01-25 Thread Mikhail Maltsev
|| Grep 'set_fixit_hint' in the source code to see an example of it's usage. Good luck! P.S. I also CC'd this message to one of major contributors to GCC diagnostics module, maybe he could add something. -- Regards, Mikhail Maltsev

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-01 Thread Mikhail Maltsev
ement stuff, // so we'll just use a fixed-size stack You actually don't need to use any complex memory management stuff. GCC provides a wrapper for malloc called 'xmalloc'. It works like normal malloc, but aborts in case of allocation failure. -- Regards, Mikhail Maltsev

Re: gengtype: conditional GTY ? (to add before GCC 6 release)

2016-02-12 Thread Mikhail Maltsev
. What do you think about refactoring iterators in GCC 7? -- Regards, Mikhail Maltsev

Re: gengtype: conditional GTY ? (to add before GCC 6 release)

2016-02-16 Thread Mikhail Maltsev
se a range idiom like in D. > Could you please elaborate on that? > > Ciao, > Michael. > -- Regards, Mikhail Maltsev

Re: [gimplefe] [gsoc16] Gimple Front End Project

2016-03-08 Thread Mikhail Maltsev
tyle comments (//), which C-family frontends already understand. > > Also note my suggestion that all GIMPLE sources should be valid C as well it > would be unfortunate to lose the option to torture unit tests. > I wonder how will this work with SSA form? -- Regards, Mikhail Maltsev

Re: CppCoreGuidelines warnings

2016-05-17 Thread Mikhail Maltsev
t; source. I might be wrong! Some of the C++ Core Guidelines checks are already implemented in clang-tidy: http://reviews.llvm.org/diffusion/L/browse/clang-tools-extra/trunk/clang-tidy/cppcoreguidelines/ -- Regards, Mikhail Maltsev

Re: ROP and JOP attack protection

2016-05-23 Thread Mikhail Maltsev
es/2015-11/msg01773.html -- Regards, Mikhail Maltsev

Re: How to improve the location of a gcc diagnostic

2016-06-23 Thread Mikhail Maltsev
ldn't this also go to the wiki? -- Mikhail Maltsev

Re: unhappiness with zero package security

2016-07-02 Thread Mikhail Maltsev
27; option. -- Mikhail Maltsev

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-07-11 Thread Mikhail Maltsev
r-rt (~ libgcc), for libc++ (~ libstdc++). All utilities (~ libiberty) live in the LLVM repo (include/llvm/ADT, include/llvm/Support, lib/Support). Other projects, like LLDB, are checked out into a subdirectory, and are always built from the combined tree. -- Regards, Mikhail Maltsev

Re: Lessons learned from compiler error/warnings tests

2016-09-09 Thread Mikhail Maltsev
m/blog/archives/499 > > and do not miss the comment by Joel Brobecker about what AdaCore uses > (internally?). > > And probably this talk is also somewhat relevant (Cauldron 2013 - DejaGNU BOF): https://www.youtube.com/watch?v=rjm-n9EgxiE -- Mikhail Maltsev

Re: Rename C files to .c in GCC source

2015-01-31 Thread Mikhail Maltsev
l non-relevant lines omitted) 31.01.2015 14:58 4 a 31.01.2015 14:58 4 B Renaming does work: Cygwin: $ mv ./a ./A $ ls A B Native: >rename a A >dir (...) 31.01.2015 14:58 4 A 31.01.2015 14:58 4 B -- Regards, Mikhail Maltsev

Re: Segmentation fault with unique_ptr

2015-02-15 Thread Mikhail Maltsev
this problem does not occur, but in general it's better not to rely on this. -- Regards, Mikhail Maltsev

Re: GSoc-2015: Modular GCC

2015-03-06 Thread Mikhail Maltsev
(Dehydra perhaps, or a dedicated plugin, or Ctags? Or turn this patch into a proper plugin? Maybe create a symbols database and identify dependencies to break?)." -- Regards, Mikhail Maltsev

Examples of GCC plugins

2015-03-14 Thread Mikhail Maltsev
x27;t mean removing something from testsuite, but rather adding a separate Makefile, not dependent on DejaGNU). Any thoughts on this? -- Regards, Mikhail Maltsev

Re: Proposal for the coarse grain unrolling heuristics and renaming for the enablement of better fine grain Loop transformation.

2015-03-15 Thread Mikhail Maltsev
s linear combinations of induction variables and constants) - no if's, no while's with non-trivial exit conditions. So, I think this idea is, unfortunately, not very realistic in terms of required efforts. P.S. I'm new in GCC community, but I hope that in general terms my description is close to reality. Please correct me, if something is wrong. -- Regards, Mikhail Maltsev

Proposal: implement API for registering custom built-in functions from dynamic plugins

2015-03-15 Thread Mikhail Maltsev
evaluation. * Custom instrumentation of source code (user or framework-specific fortification or performance profiling). Any thoughts on this? Is such API useful for GCC? -- Regards, Mikhail Maltsev

Re: GSoc-2015: Modular GCC (RFC on refactoring)

2015-03-17 Thread Mikhail Maltsev
UGIN_PRE_GENERICIZE) and searches for such casts. -- Regards, Mikhail Maltsev

Re: gcc wiki project

2015-03-26 Thread Mikhail Maltsev
ages. It is an HTML file with several js-scripts, which allow to sort the list by columns mentioned above (title, last edit date and author). I hope it will help working on wiki. When I get some more free time, I'll also add a list of broken links. -- Regards, Mikhail Maltsev

Re: Q.: inconsistent (?) warnings about functions called through non-compatible types

2015-03-30 Thread Mikhail Maltsev
The type char, the signed and unsigned integer types, and the floating types are collectively called the basic types. Even if the implementation defines two or more basic types to have the same representation, they are nevertheless different types. (6.2.5) Thus, the call of f() invokes undefined behavior. -- Regards, Mikhail Maltsev

Re: Connecting to gcc.gnu.org - keygen_fail

2015-04-14 Thread Mikhail Maltsev
x (well, Iceweasel actually) handle it correctly. SSL certificate is OK. Though it's strange. Why not "301 Moved Permanently"?... -- Regards, Mikhail Maltsev

Re: is it time to mass change from .c to .cc in gcc/ ?

2015-04-15 Thread Mikhail Maltsev
though > running that for each backport by hand would get a little old. > IIRC, SVN can dump the whole repository and import it again. So, if it's really desired, it's possible to rename the files "in the past" without loosing the history by filtering the dump (but git mirror must be rebuilt in this case). -- Regards, Mikhail Maltsev

[RFC] Documenting support functions and data structures

2015-04-15 Thread Mikhail Maltsev
eneral marshalling routines gcc/ggc* - marshalling routines, which use code generated by gengtype; used for precompiled headers I'm asking for advice on correct categorization, missing stuff, etc. -- Regards, Mikhail Maltsev

Re: is it time to mass change from .c to .cc in gcc/ ?

2015-04-15 Thread Mikhail Maltsev
gt; Just do it. Hmm, indeed... > Sent a patch for gccint.texi or create a webpage in the wiki > to draft it or just draft it in plain-text and send it to the mailing > list. Started with the latter. By the way, what is the policy concerning getting write access to the wiki? Regards, Mikhail Maltsev

Re: ANN: gcc-python-plugin 0.14

2015-05-07 Thread Mikhail Maltsev
ut the testsuite which is run when I run "make" passes without failures. -- Regards, Mikhail Maltsev diff --git a/.gitignore b/.gitignore index 09559f8..a34acf4 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,6 @@ docs/_build # Logfiles generated during the selftest suite: *.c.cpy

Problems with GCC Wiki

2015-05-07 Thread Mikhail Maltsev
rs of EditorGroup get deleted periodically)? -- Regards, Mikhail Maltsev

Re: LCOV of current GCC

2017-07-02 Thread Mikhail Maltsev
;> Excellent; thanks. > > Hello. > > I've just done that, periodically built LCOV can be found here: > > http://gcc.opensuse.org/gcc-lcov/ > >> >> For your periodic builds, please can you add "jit" to the enabled >> languages (it will also need --enable-host-shared). > > Done that and will be seen in next build. I do it every weekend. > >> >> Would be nice to add libiberty and libcpp to this, but maybe that needs >> extra work? > > Yep, it's currently done for gcc subfolder. Can be done in the future. > > Martin > >> >> Dave >> > -- Regards, Mikhail Maltsev

Re: Killing old dead bugs

2017-07-02 Thread Mikhail Maltsev
Hi. Yes, bug maintenance is appreciated. See this message and replies to it: https://gcc.gnu.org/ml/gcc/2016-04/msg00258.html . I'm not sure that there is a documented policy, but I might be wrong. -- Regards, Mikhail Maltsev

Re: GCC contribution

2018-03-29 Thread Mikhail Maltsev
rit a new class from the lang_hooks class in the frontend and override any of its virtual methods. -- Regards, Mikhail Maltsev