gcc 6.3.0 compiling as user gives permission denied

2017-06-29 Thread Marek
ot;" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"; | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3693: error: in `/run/media/void/minnow/build/gcc-6.3.0/x86_64-lfs-linux-gnu/libgcc': configure:3695: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Marek

gcc 7.2.0 error: no include path in which to search for stdc-predef.h

2017-11-26 Thread Marek
files: cannot compile See `config.log' for more details. make[1]: *** [Makefile:12068: configure-target-libgcc] Error 1 make: *** [Makefile:880: all] Error 2 If gcc is able to recognize between sources in one dir and objects in another dir Does a patch exist to fix this? thanks, Marek

Re: gcc 7.2.0 error: no include path in which to search for stdc-predef.h

2017-12-01 Thread Marek
critical. Check for the last error entry in the file. I wonder where to find stdc-predef.h or whether it's generated by gcc during compile time. I'm also compiling against musl. Marek On Tue, Nov 28, 2017 at 12:19 AM, Jonathan Wakely wrote: > N.B. the gcc@gcc.gnu.org mailing lis

Fwd: gcc 7.2.0 error: no include path in which to search for stdc-predef.h

2017-12-04 Thread Marek
ror: unrecognized command line option '-qversion'; did you mean '--version'? g++: fatal error: no input files compilation terminated. On Fri, Dec 1, 2017 at 11:23 AM, Kai Ruottu wrote: > Kai Ruottu kirjoitti 1.12.2017 klo 12:02: >> >> Marek kirjoitti 1.12.201

AVR indirect_jump addresses limited to 16 bits

2005-03-19 Thread Marek Michalkiewicz
the AVR anyway, because return address is stored on the stack in the wrong byte order - big endian, even though the AVR is little endian. Anything else? Thanks, Marek

Re: AVR indirect_jump addresses limited to 16 bits

2005-03-19 Thread Marek Michalkiewicz
moved to the low 64K words somehow). Marek

Re: AVR indirect_jump addresses limited to 16 bits

2005-03-19 Thread Marek Michalkiewicz
piler, perhaps indirect_jump is needed for some other language? Thanks, Marek

Re: AVR indirect_jump addresses limited to 16 bits

2005-03-19 Thread Marek Michalkiewicz
: ldi r30,pm_lo8(label) ldi r31,pm_hi8(label) /* ... */ ijmp; PC <- 0:r31:r30 Note that this adds two jumps around the label, so we only want to do it infrequently - if the address of the label is loaded into a register (not if the only users of the label are direct jumps). Thanks, Marek

Re: AVR indirect_jump addresses limited to 16 bits

2005-03-20 Thread Marek Michalkiewicz
ure how to do this in GCC. Any suggestions? (The problem can be seen by adding something like "if (dest > 2) goto l3;" above the goto in the original example: in the assembler output, there is only one label corresponding to l3 which is both 1. referenced with pm() and 2. target of a branch for which .text_low would be out of range.) Marek

Re: AVR indirect_jump addresses limited to 16 bits

2005-03-21 Thread Marek Michalkiewicz
label) and the linker can do the rest of the magic (add jumps in a section below 64K words if the label is above). Cc: to Denis, as I may need help actually implementing these changes (you know binutils internals much better than I do). Thanks, Marek

specification for gcc compilers on sparc and powerpc

2005-04-04 Thread Marek Krzyzowski
Hello I appreciate your work and do not want to bother you, but I hope, that somebody will send me some helpful answer on my question. Is anyone can send me his 'specs' file (contains configuration for working compiler) ?? (this is standard localization: " /usr/lib/gcc-lib/name_of_compiler/lib/

specs file

2005-04-06 Thread Marek Krzyzowski
I as sorry I repeat my appeal, but if really nobody works on Sparc or PowerPC processors and nobody wants to send me 'specs' file from directory > " /usr/lib/gcc-lib/name_of_compiler/lib/version/specs " or similar ??? One more time, thank you for help! --

Re: [PATCH, v2] wwwdocs: e-mail subject lines for contributions

2020-01-22 Thread Marek Polacek
> > this create needless friction for folk working in both communities. > > +1 for "component: Summary [PRn]" FWIW. > > PR bz-component/n works well for C++. The problem is that so many > other PRs come under tree-optimization and rtl-optimization, which > eat up a lot of subject line characters without narrowing things down > very much. "cselib: ... [PRn]" is both shorter and more descriptive > than "PR rtl-optimization/n - ", etc. Yeah, the cselib version definitely looks preferable to me. What if a patch touches more than just the C++ FE, do we want "c,c++:"? Though kernel uses net: sched: act_ctinfo: fix memory leak locking/rwsem: Fix kernel crash when spinning on RWSEM_OWNER_UNKNOWN If a patch touches various spots in the optimizers, maybe we can just go with "tree-opt:" or "rtl:"? Further, I suppose multiple PRs fixed by a single patch would look like: c++: Implement DR 666 [PR57, PR12345] Marek

Re: Warning on move and dereference of unique_ptr in the same expression

2020-02-03 Thread Marek Polacek
using and > modifying in the same expression triggered? This should be defined in C++17, with P0145 in particular: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0145r3.pdf which says that the expression that names the function is sequenced before every argument expression and every default argument. Marek

Re: How do we write unused arguments?

2015-11-05 Thread Marek Polacek
clutter. If no > one comments, I'll start enforcing that in patch reviews. Currently no one > seems sure and everything is getting totally inconsistent. FWIW, I also like the last version best. Marek

Re: Extraneous newline emitted between error messages in GCC 6

2015-12-21 Thread Marek Polacek
ror: ‘b’ undeclared here (not in a function) > int y = b; > ^ > > $ Started with r229884: Reimplement diagnostic_show_locus, introducing rich_location classes. I think it is a bug and should be fixed. Marek

Re: void* vs void *

2016-01-29 Thread Marek Polacek
FE does not. The reason for this is probably to keep in sync with the C++ printer which doesn't put space before '*'; in dump_type_prefix we have 741 if (TYPE_PTR_P (t)) 742 pp_star (pp); so there's no pp_cxx_whitespace before '*'. I like the version with space more; maybe we could change this in the next stage1. Marek

Re: nonnull, -Wnonnull, and do/while

2016-02-16 Thread Marek Polacek
sn't seem like a false positive to me, but maybe someone else feels otherwise. Marek

Re: nonnull, -Wnonnull, and do/while

2016-02-16 Thread Marek Polacek
On Tue, Feb 16, 2016 at 11:11:21AM +0100, Jakub Jelinek wrote: > On Tue, Feb 16, 2016 at 11:04:38AM +0100, Marek Polacek wrote: > > On Tue, Feb 16, 2016 at 10:43:08AM +0100, Stefan Sobernig wrote: > > > Under a recent gcc 6 [*], we run into -Wnonnull warnings using the >

Re: increase alignment of global structs in increase_alignment pass

2016-02-23 Thread Marek Polacek
> - if (DECL_ALIGN (decl) >= alignment) > -continue; > + alignment = get_vec_alignment_for_decl (decl); > > - if (vect_can_force_dr_alignment_p (decl, alignment)) > + if (alignment && vect_can_force_dr_alignment_p (decl, alignment)) > { > - vnode->increase_alignment (TYPE_ALIGN (vectype)); > + vnode->increase_alignment (alignment); >dump_printf (MSG_NOTE, "Increasing alignment of decl: "); >dump_generic_expr (MSG_NOTE, TDF_SLIM, decl); >dump_printf (MSG_NOTE, "\n"); Marek

Re: Additional BOFs for the GNU Cauldron?

2016-09-02 Thread Marek Polacek
gt; If there's no strong interest in any of the above we can schedule > stuf as needed at the Cauldron itself as well. I'd be interested in all of them. Marek

Re: tree-prof parallel make check failures

2016-09-21 Thread Marek Polacek
ent test results. Has anyone noticed this or am I missing > something? I'm seeing those too and it's very bothering. I think Andi Kleen had some patches to fix these, but seems it needs to be fixed more. Marek

Re: Problem with 447.dealII in spec2006 because of r240707

2016-10-04 Thread Marek Polacek
ound this? > > Did you try -fpermissive ? Because that seems like it was listed ... -fpermissive ought to help, but really best would be to use NULL instead of '\0'... Marek

Re: History of GCC

2016-10-26 Thread Marek Polacek
I think you can learn a lot if you follow the Changes pages, so e.g. <https://gcc.gnu.org/gcc-6/changes.html>, and go back down the history until you reach the ancient <https://gcc.gnu.org/gcc-3.1/changes.html>. Marek

Re: [PATCH] tell gcc optimizer to never introduce new data races

2014-06-10 Thread Marek Polacek
> > + > > Why do we not want: -fmemory-model=safe? And should we not at the very > least also disable packed-store-data-races? Note that the option does not exist, even though it is mentioned in the documentation. Marek

Re: Got this one back (too large: 6.4 Mb) from gcc-results:

2014-07-03 Thread Marek Polacek
ll go away if/when we fix: https://gcc.gnu.org/ml/gcc-patches/2014-06/msg01624.html But I'm only guessing. Marek

Re: GCC version bikeshedding

2014-07-22 Thread Marek Polacek
e can start adding new features there. Gerald? Marek

Re: C as intermediate language, signed integer overflow and -ftrapv

2014-07-24 Thread Marek Polacek
;t call libubsan routines at all. Marek

Re: GCC version bikeshedding

2014-08-06 Thread Marek Polacek
preference too. FWIW, me too. This way we'll get in a few years to 10.0 that was also suggested. So please, can we finally settle on something? :) Marek

Re: GCC version bikeshedding

2014-08-06 Thread Marek Polacek
> only. > > So if we change to 5.1 (please not .0) then let's switch the default > optimization level to -O2! _That's_ a user-visible change across > the board. I'm planning to move the default C standard from gnu90 to gnu11 (Currently it's blocked on the -Wc90-c99-compat warning). That's a pretty big user-visible change as well, I suppose. Marek

Re: Turning a single warning into an error in dejagnu test

2014-08-27 Thread Marek Polacek
efault" options, and I > cannot use -Werror because that would break other tests in the > file. For C, I recently added the -Wint-conversion option, so with recent enough GCC you should be able to use -Werror=int-conversion. Marek

Re: GCC 4.9 internal compiler error

2014-09-29 Thread Marek Polacek
this line > https://sourceforge.net/p/open-axiom/code/HEAD/tree/trunk/src/include/storage.H#l273 Please provide a preprocessed source and file a bug. https://gcc.gnu.org/bugs/ Marek

Towards GNU11

2014-10-07 Thread Marek Polacek
rrays do not decay to pointers, slightly different rules for compatible types (?) might come in game as well. In turn, you can use all C99 and C11 features even with -pedantic. Comments? Regtested/bootstrapped on powerpc64-linux and x86_64-linux. 2014-10-07 Marek Polacek * doc/invoke.t

Re: Towards GNU11

2014-10-08 Thread Marek Polacek
f course, C++ packages should be out of the picture here. Marek

Re: Towards GNU11

2014-10-09 Thread Marek Polacek
feel that especially the inline semantics change should be addressed therein. Marek

Re: Towards GNU11

2014-10-10 Thread Marek Polacek
On Thu, Oct 09, 2014 at 02:34:51PM -0700, Mike Stump wrote: > On Oct 7, 2014, at 2:07 PM, Marek Polacek wrote: > > I'd like to kick off a discussion about moving the default standard > > for C from gnu89 to gnu11. > > I endorse the change of default. Thanks for chimi

Re: Towards GNU11

2014-10-14 Thread Marek Polacek
On Tue, Oct 07, 2014 at 11:07:56PM +0200, Marek Polacek wrote: > I'd like to kick off a discussion about moving the default standard > for C from gnu89 to gnu11. The consensus seems to be to go forward with this change. I will commit the patch in 24 hours unless I hear objectio

Re: Towards GNU11

2014-10-15 Thread Marek Polacek
On Tue, Oct 14, 2014 at 09:23:29AM +0200, Marek Polacek wrote: > The consensus seems to be to go forward with this change. I will > commit the patch in 24 hours unless I hear objections. I made the change. Please report any fallout to me. Enjoy. Marek

Re: Towards GNU11

2014-10-15 Thread Marek Polacek
> tonight or tomorrow. Please don't force yourself into doing that, it's more up to me to fix my fallout ;). Feel free to send me the partial patch and I will finish it tomorrow mornings (reproducing is easy with --target_board=unix/-m32). In any case, thanks. Marek

Re: Towards GNU11

2014-10-16 Thread Marek Polacek
target/i386/stackalign/return-2.c -mstackrealign (test for > excess errors) > FAIL: gcc.target/i386/vectorize4.c (test for excess errors) Sorry about these, should be fixed now. Marek

Re: Contributing to GCC

2014-10-17 Thread Marek Polacek
On Fri, Oct 17, 2014 at 09:55:28AM +0200, Krzesimir Nowak wrote: > I was asking, because, in the beginning at least, somebody will have > to commit the patch to trunk for me. I don't know if svn understands > git patches. No worries about that, we'll just apply the patch manually. Marek

Re: [RFC] Detect most integer overflows.

2014-10-23 Thread Marek Polacek
that because you don't have a copyright assignment with FSF. Marek

Re: Enabling -fextended-identifiers by default

2014-11-04 Thread Marek Polacek
mments or > objections? Sounds good to me. Marek

Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign

2014-11-08 Thread Marek Polacek
I feel the same way. More to type, worse readability, a lot more of line-wrapping. Sorry, Marek

Re: [RFC] UBSan unsafely uses VRP

2014-11-12 Thread Marek Polacek
un with >-O2 and -Os. > I wish we had some test to check that sanitizer optimizations are indeed > conservative. I think most of the tests we have are tested with various optimization levels. Marek

Re: [RFC] UBSan unsafely uses VRP

2014-11-12 Thread Marek Polacek
On Wed, Nov 12, 2014 at 01:04:58PM +0300, Marat Zakirov wrote: > > On 11/12/2014 11:45 AM, Marek Polacek wrote: > >Yes, but as said above, VRP is only run with >-O2 and -Os. > You meant >= -O2? Yes. Marek

Re: ICE in 4.8.2 with compound literal

2014-11-25 Thread Marek Polacek
eprocessed source if appropriate. > See for instructions. > Preprocessed source stored into /tmp/cc2RJY0y.out file, please attach this to > your bugreport. (If you need to create a BZ account, please mail overseers and I'll take care of that.) Thanks, Marek

Re: ICE in 4.8.2 with compound literal

2014-11-25 Thread Marek Polacek
or a very long time (gcc 3.x at least) I haven't read that in detail yet, but my patch just allowed the initializing even for gnu99/gnu11 (formerly, it was only allowed in the gnu89 mode). Marek

Re: GCC 4.9.2 -O3 gives a seg fault / GCC 4.8.2 -O3 works

2015-01-06 Thread Marek Polacek
Right: -fsanitize=nonnull-attribute is a GCC 5 only thing. Marek

Re: Announcing Marek Polacek as C front-end reviewer

2015-01-13 Thread Marek Polacek
On Mon, Jan 12, 2015 at 10:23:16PM -0700, Jeff Law wrote: > I'm pleased to announce that Marek Polacek has been appointed as a reviewer > for the C front-end. Thanks! > Marek, please add yourself as a reviewer for the C front end in the > MAINTAINERS file. 2015-01-

Re: Serious Regressions tables on https://gcc.gnu.org

2015-02-13 Thread Marek Polacek
in Change Columns at the bottom of the page. Marek

Re: array bounds, sanitizer, safe programming, and cilk array notation

2015-02-21 Thread Marek Polacek
27;static' which makes 'x' a proper array in the callee, e.g. I think even the 'static in parameter array declarators' (ugly) C99 extension isn't properly implemented yet (I don't think that the compiler makes any optimization based on it). So - if I understood this correctly - I think it's better to enhance ubsan than to add any kind of language extensions. Marek

Re: array bounds, sanitizer, safe programming, and cilk array notation

2015-02-21 Thread Marek Polacek
t to do with the UBs on the library side - those 7.* ones. > Does adding new forms of sanitization require upstream libsanitizer > changes as well or can arbitrary ubsan checks be added without needing > libsanitizer changes? I think we also need libubsan changes. But it is usually just about printing an error message along with some values - nothing terribly complex. Marek

Re: A bug (?) with inline functions at O0: undefined reference

2015-03-06 Thread Marek Polacek
the default is gnu11. See https://gcc.gnu.org/gcc-5/porting_to.html for more info. Marek

Re: Unnamed Struct / Union

2015-03-23 Thread Marek Polacek
gned bOriginator; > }; > } USB_WORD; > > is that expected behaviour ? Yes. Marek

Re: Change to C++11 by default?

2015-05-07 Thread Marek Polacek
fault (obviously... ;)). Marek

Re: Identifying Pure and Const Functions

2015-05-29 Thread Marek Polacek
On Fri, May 29, 2015 at 01:16:32PM +0530, Pritam Gharat wrote: > How do we identify whether a function is a pure or a const function? > Is there any flag associated with its cgraph_node or the tree node > (decl of cgraph_node)? You'll want to look into ipa-pure-const.c. Marek

Re: Implementing p0515 - spaceship operator

2018-08-30 Thread Marek Polacek
implement this (in libcpp + gcc/testsuite > only so far). > It needs to be parsed and handled in the C++ FE obviously, which is missing. Thanks. Tim, have you had any success with this, or should I (or somebody else) feel free to take it over? Marek

Re: Delayed warning

2019-04-29 Thread Marek Polacek
rning would > just get removed by the standard unreachable code elimination optimization. > > This would allow us to avoid false positives due to the IL not being > well enough optimized at the point where we discover something is > potentially amiss. FYI, I also raised the idea of delayed warnings in the C FE some time ago: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193#c3 Marek

Re: [PATCH] Deprecate -frepo option.

2019-09-06 Thread Marek Polacek
7;t this be Ignored? Also, https://gcc.gnu.org/gcc-10/changes.html should be updated, both in Caveats and the C++ section. But I can do that. Marek

Re: Boost build broken due to recent C++ change?

2019-09-24 Thread Marek Polacek
x/pr33930.C: Add dg-error. * g++.dg/cpp0x/ref-bind1.C: New test. * g++.dg/cpp0x/ref-bind2.C: New test. * g++.dg/cpp0x/ref-bind3.C: New test. * g++.old-deja/g++.pt/spec35.C: Remove dg-error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276058 138bc75d-0d04-0410-961f-82ee72b054a4 Please open a bug. Marek

Re: GCC 10.0 Status Report (2019-10-22), Stage 1 to end Nov 16th

2019-11-01 Thread Marek Polacek
t in gcc 10 ? Or gcc 11 ? However I fear doing that may break > some tests in the testsuite, I hope not too many. I plan to propose a switch to -std=gnu++17 in GCC 11. I think it's way too late for GCC 10. Dealing with the testsuite fallout, and rebuilding Fedora packages is of course part o

Re: GCC 10.0 Status Report (2019-10-22), Stage 1 to end Nov 16th

2019-11-01 Thread Marek Polacek
On Fri, Nov 01, 2019 at 09:31:07AM -0600, Jeff Law wrote: > On 11/1/19 9:08 AM, Marek Polacek wrote: > > On Fri, Nov 01, 2019 at 04:01:12PM +0100, Romain Geissler wrote: > >> Le mar. 22 oct. 2019 à 14:53, Richard Biener a écrit : > >>> > >>> Please mak

Re: Commit messages and the move to git

2019-11-05 Thread Marek Polacek
box. > > > My mail to the libstdc++ list should have noted that [PATCH] tags in > > the email subject should be omitted from the summary in the first line > > of the commit log. > > And git format-patch/git am automatically add and remove [PATCH] > appropriately. Wrt [PATCH]: if we keep it, do we want to have a system to distinguish C/C++/... patches? Do we want [C++ PATCH] or [PATCH][C++] or [C++][PATCH], something else? (I find the latter two a bit ugly.) Marek

Re: [RFC] Characters per line: from punch card (80) to line printer (132) (was: [Patch][OpenMP/OpenACC/Fortran] Fix mapping of optional (present|absent) arguments)

2019-12-05 Thread Marek Polacek
rter (and less meaningful) names. > Adding line breaks or picking shorter names doesn't help readability. > So I end up not using the feature. > > I'm loosely in favour of relaxing the rule for libstdc++ code. I don't > really care what the rest of GCC looks like ;-) Not using such a nice feature just because of formatting sounds really shameful. Would the compromise of 100 chars make things any better here? Marek

Re: [RFC] Characters per line: from punch card (80) to line printer (132) (was: [Patch][OpenMP/OpenACC/Fortran] Fix mapping of optional (present|absent) arguments)

2019-12-05 Thread Marek Polacek
I disagree, it is a nice feature, without quotes. It's Good Style not to leak variables into enclosing scopes. > If you have issues with scoping your functions are WAY too long already. I don't think that's the case here. -- Marek Polacek • Red Hat, Inc. • 300 A St, Boston, MA

Re: GCC static analysis branch now available on Compiler Explorer

2019-12-10 Thread Marek Polacek
a, > even though this is still on a branch? (with me as default assignee) I think so, we have it for e.g. JIT already, and it's probably just a matter of time before the analyzer is merged. -- Marek Polacek • Red Hat, Inc. • 300 A St, Boston, MA

Re: Warning annoyances in list_read.c

2017-03-27 Thread Marek Polacek
7;,': case '/': case '\n': \ > case '\t': case '\r': case ';' > > /* This macro assumes that we're operating on a variable. */ > > Indeed before applying this patch, someone will have to check that the > warnings do not occur because of missing breaks. > > Note that putting /* Fall through. */ before the use of the macro > CASE_SEPARATORS does not work. Is it a (known) bug? Yes, it's known that the "falls through" comments don't work if they're preceding a macro. Marek

Re: Warning annoyances in list_read.c

2017-03-27 Thread Marek Polacek
fixed it if I'd hit it. The warning had been discussed extensively on the ML, and you had the chance to chime in, too. There's a reason why the warning is only enabled by -Wextra and not by -Wall. > But that's okay. I now understand that it is acceptable for > a developer to commit a change that causes issues for other > developers, and said developer can turn a blind eye. Nonsense. Marek

Re: Warning annoyances in list_read.c

2017-03-27 Thread Marek Polacek
On Mon, Mar 27, 2017 at 07:33:05PM +0200, Toon Moene wrote: > On 03/27/2017 06:45 PM, Marek Polacek wrote: > > > On Mon, Mar 27, 2017 at 09:27:34AM -0700, Steve Kargl wrote: > > > > But that's okay. I now understand that it is acceptable for > > > a de

Re: Warning annoyances in list_read.c

2017-03-27 Thread Marek Polacek
On Mon, Mar 27, 2017 at 07:59:01PM +0200, Thomas Koenig wrote: > Am 27.03.2017 um 19:41 schrieb Marek Polacek: > > > Of course "the person" had bootstrapped and tested all the languages before > > adding the warning. If only any of you bothered to check the fortr

Re: Warning annoyances in list_read.c

2017-03-27 Thread Marek Polacek
On Mon, Mar 27, 2017 at 11:16:32AM -0700, Steve Kargl wrote: > On Mon, Mar 27, 2017 at 07:41:12PM +0200, Marek Polacek wrote: > > On Mon, Mar 27, 2017 at 07:33:05PM +0200, Toon Moene wrote: > > > On 03/27/2017 06:45 PM, Marek Polacek wrote: > > > > > > > O

Re: [RFC] GCC 8 Project proposal: Extensions supporting C Metaprogramming, pseudo-templates

2017-05-11 Thread Marek Polacek
ement requests for this in Bugzilla, because some > compilers are already more catholic in what they accept in constant > expressions (notably, Clang). Right, at least: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69960 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 Marek

Re: 'make check' questions

2017-05-11 Thread Marek Polacek
gt; or check-acats to cope with being run in parallel (i.e., will they ever see > > GCC_RUNTEST_PARALLELIZE_DIR set?) > > I don't usually build Ada, but testing with "make -j check" works for me > where is the parallelism I want I have export MAKEFLAGS='-j4' in my environment. Marek

Re: comparing parallel test runs

2017-05-17 Thread Marek Polacek
r -j loads, but it's unclear if it's enough > to address the problems with higher loads like you're using. I'm still seeing spurious tree-prof failures there (with -j48). Marek

Re: comparing parallel test runs

2017-05-18 Thread Marek Polacek
On Thu, May 18, 2017 at 05:22:50PM -0600, Martin Sebor wrote: > On 05/17/2017 11:19 PM, Andi Kleen wrote: > > Marek Polacek writes: > > > > > On Wed, May 17, 2017 at 09:13:40AM -0600, Jeff Law wrote: > > > > On 05/17/2017 04:23 AM, Aldy

Re: Help with rich_location and GIMPLE stmts

2017-05-19 Thread Marek Polacek
t to be on the > > operator token, and for the start/finish to range from the start of the > > lhs to the end of the rhs i.e. what we see for: > > > > ret = 999; > > ^ > > Yep, MODIFY_EXPRs created in FE go this way and it's fine. > > > > > > >> for return statements only a returned value is displayed. > > > > Is this running on SSA form? If so, I wonder if you're running into > > something like this: > > > > retval_N = PHI ; > > return retval_N; > > > > where it's using the location of that "return retval_N;" for all of the > > return statements in the function, rather than the individual source > > locations. > > Yep, but we properly assign each assignment to a SSA name that's going to > be merged in exit BB by PHI node: > > _8 = ret_2; > /tmp/m2.c:7:8: note: output_location > return ret; } > ^~~ > > Here the location comes from c_finish_return function where location > comes from a value that's returned. > > > > >> For conditions, only condition beginning is showed. > >> Is this known behavior or do I miss > >> something? > > > > c_parser_if_statement has: > > > > loc = c_parser_peek_token (parser)->location; > > > > which is that of the open-paren. Maybe we should build a location > > covering the range of the "if ( expression )" part of the if-statement? > > Adding Marek as C FE maintainer to reply the question. I suppose we could do better and I'd probably highlight just the expression part of "if ( expression )". But not sure how many use cases this range location would have. Marek

Re: Getting spurious FAILS in testsuite?

2017-06-01 Thread Marek Polacek
ng long unsigned int'\[^\n\r]*(\n|\r\n|\r)" } */ /* { dg-output "\[^\n\r]*value \[0-9.e+-]* is outside the range of representable values of type '__int128'\[^\n\r]*(\n|\r\n|\r)" { target { int128 } } } */ -/* { dg-output "\[^\n\r]*value -1 is outside the range of representable values of type '__int128 unsigned'\[^\n\r]*(\n|\r\n|\r)" { target { int128 } } } */ +/* { dg-output "\[^\n\r]*value -1 is outside the range of representable values of type '__int128 unsigned'" { target { int128 } } } */ Marek

Re: https://gcc.gnu.org/gcc-7/changes.html

2017-07-11 Thread Marek Polacek
On Tue, Jul 11, 2017 at 09:51:19AM -0700, Jonny Grant wrote: > Hello > https://gcc.gnu.org/gcc-7/changes.html > > snprintf (d, sizeof d, "%#02x", x & 0xff); > >^^ > Should be: sizeof(d) ? Why? Both are correct. Marek

Re: tests for GCC internal functions

2017-08-16 Thread Marek Polacek
weren't written to exercise the functions but > rather the plugin interface). Would adding a plugin for > this sort of thing be the right way to do it? Isn't -fself-test the thing you're looking for? Marek

Re: Segfault generated by gcc-7

2017-08-29 Thread Marek Polacek
h gcc-7) has been: > memcpy(&d_point, > p, > sizeof(d_point)); > > Does this make any sense to anybody? Not without a stand-alone testcase. See <https://gcc.gnu.org/bugs/> for more info. Marek

Re: FYI: Latest gcc-8 snapshot gives ICE with later isl's

2018-03-05 Thread Marek Polacek
304-obj/isl' > make[2]: *** [Makefile:6155: all-stage2-isl] Error 2 > make[2]: Leaving directory '/home/don/src/gcc-8-20180304-obj' > make[1]: *** [Makefile:25157: stage2-bubble] Error 2 > make[1]: Leaving directory '/home/don/src/gcc-8-20180304-obj' > make: *** [Makefile:947: all] Error 2 I bet this is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84670 which is already fixed. Marek

Re: Next question: sizeof(char buf[2042])

2018-06-20 Thread Marek Polacek
> > *It seems like a pretty brain damaged interpretation.* We'd need to see the code but the warning seems legit. What's the problem? Marek

Re: Wabi warnings during GCC build

2018-06-27 Thread Marek Polacek
eeds to be adjusted: WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi' I guess to -Wabi=11? Marek

Re: RFC: Idea for code size reduction

2009-01-23 Thread Philipp Marek
Hello everybody, On Friday 07 March 2008 Philipp Marek wrote: > Here you are. > > > code_overlap.pl - disassembles a binary, and outputs a list > (address, name, instruction, bytes) to STDOUT. > > bytes_saved.pl - takes such a list, and tries to estimate > the amoun

[ANN]: Redundancy remover

2009-02-27 Thread Philipp Marek
7709&w=2 -- Versioning your /etc, /home or even your whole installation? Try fsvs (fsvs.tigris.org)! -- Versioning your /etc, /home or even your whole installation? Try fsvs (fsvs.tigris.org)!Redundancy Remover == (C)opyright 2009 by Ph. Marek, phili

Preprocessor for assembler macros?

2009-03-08 Thread Philipp Marek
Hello everybody, I already asked that on gcc-help@ but got no answer, so I'm trying again here. I'm looking for a way to get inbetween the assembler macro processor and the assembler. I'd like to get the assembler sources mostly as-is, but with the macros used therein already expanded. I've a

Re: Preprocessor for assembler macros?

2009-03-09 Thread Philipp Marek
> gcc -S tmp.S for some reason prints to stdout, so gcc -S tmp.S > tmp.s > is what you need Thank you very much, I'll take a look. Regards, Phil -- Versioning your /etc, /home or even your whole installation? Try fsvs (fsvs.tigris.org)!

Re: Preprocessor for assembler macros?

2009-03-16 Thread Ph . Marek
Philipp Marek marek.priv.at> writes: > > gcc -S tmp.S for some reason prints to stdout, so gcc -S tmp.S > tmp.s > > is what you need > Thank you very much, I'll take a look. I tried very hard to achieve that; and one time it seemed to work, but I cannot make it work

use changes in STL library

2006-05-24 Thread Marek Zuk
downloaded repository and check if our programms if the changes work. Could you write us what command we should use? We'd like to emphasize that we don't want to recompile whole gcc on our computer, we just want to make use of changes we did in the repository. Thank you very much for a

use of changes in STL library

2006-05-24 Thread Marek Zuk
downloaded repository and check if our programms if the changes work. Could you write us what command we should use? We'd like to emphasize that we don't want to recompile whole gcc on our computer, we just want to make use of changes we did in the repository. Thank you very much for a

Re: use of changes in STL library

2006-05-25 Thread Marek Zuk
s in the easiest way? Thank you very much for your help. Marek Zuk Paolo Bonzini wrote: Could you write us what command we should use? We'd like to emphasize that we don't want to recompile whole gcc on our computer, we just want to make use of changes we did in the repository.

Re: GCC build error

2013-05-09 Thread Marek Polacek
`__cxa_throw_bad_array_length' > collect2: error: ld returned 1 exit status > make[5]: *** [jv-convert] Error 1 Should be already fixed by Jason. Marek

Re: Documentation for loop header copying

2013-07-19 Thread Marek Polacek
source tree. Marek

Re: New file extension

2013-07-29 Thread Marek Polacek
ose this applies to ubsan, e.g. (Haven't commited it to trunk yet, but so far the files still have the '.c' extension.) Will rename it then, though I like '.c' more ;). Marek

Re: New file extension

2013-07-30 Thread Marek Polacek
ke either. In gcc/, we have 362 .c files and 0 .cc files, so every new .cc file will step out of line... That might be pain for people who are used to do 'grep foo gcc/*.c' and suchlike. Marek

Re: New file extension

2013-07-30 Thread Marek Polacek
On Tue, Jul 30, 2013 at 07:13:22AM -0400, Diego Novillo wrote: > On Tue, Jul 30, 2013 at 5:04 AM, Marek Polacek wrote: > > On Mon, Jul 29, 2013 at 10:08:26PM +0200, Martin Jambor wrote: > >> I do not care very much but I disagree. Having some files with .c > >> suff

Re: New file extension

2013-07-30 Thread Marek Polacek
On Tue, Jul 30, 2013 at 08:35:12AM -0400, Andrew MacLeod wrote: > On 07/30/2013 08:27 AM, Marek Polacek wrote: > >On Tue, Jul 30, 2013 at 07:13:22AM -0400, Diego Novillo wrote: > >>On Tue, Jul 30, 2013 at 5:04 AM, Marek Polacek wrote: > >>>On Mon, Jul 29, 2013 at 1

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Marek Polacek
s, thus e.g. if (bar ()) goto A; /* ... */ A: __attribute__((cold)) /* ... */ I don't know whether that might be useful for what you want or not though... Marek

Re: c++/linker problems maybe?

2013-08-05 Thread Marek Polacek
GuiWindow(void const**)' > collect2: error: ld returned 1 exit status > make[2]: *** [src/k3b] Error 1 > make[1]: *** [src/CMakeFiles/k3b_bin.dir/all] Error 2 > make: *** [all] Error 2 It just seems the library containing the definition of KXmlGuiWindow::KXmlGuiWindow isn't properly linked in. Marek

  1   2   >