aster). That is
because, at a high level, signed multiplication overflow is undefined
behavior while shift isn't. At a low level, gcc knows it can implement *4
as a shift anyway.
v[x + 4] = t[x + 4];
}
return 0;
}
--
Marc Glisse
k for that, so you may have to edit
gcc's source code directly.
If you compile with -g and look at debug statements, the information is
not completely lost after the pass that optimizes this to just VAR1 = 7,
but it still wouldn't be convenient to use that for your purpose.
--
Marc Glisse
r. Second, there are hundreds of places on the internet answering
this same question.
Is this expected behavior?
Yes.
--
Marc Glisse
by default]
Or does the "enabled by default" bit mean something other than I think it means?
It is the warning that is enabled by default (in other messages you would
see [-Wunused] or [-Wformat] etc to tell you which option controls this
warning).
--
Marc Glisse
ll me the errors of my ways?
Project layout:
Irrelevant.
Problem: class1source.cpp fails to compile on it's header with
"error: ‘shared_ptr’ does not name a type"
Have you heard of namespaces?
--
Marc Glisse
er libstdc++ or
libc++). Filing some new PRs may be in order, if there aren't already a
few about this.
--
Marc Glisse
a real reviewer now ;-)
We should show the flag that enables the warning, so that users can use the
-Wno- variant to disable it if they want. Or does "enabled by default" mean
that no such -Wno- flag exists?
Exactly. -std=c++11 is the right way to make this warning quiet.
--
Marc Glisse
:
/home/pritam/GCC_BUILDS/gcc_4.7/install/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cstdlib:76:8:
error: attempt to use poisoned "calloc"
Include before any gcc header, i.e. before things can be
poisoned.
--
Marc Glisse
ance -ftrapping-math for which a split
was discussed (PR 53805#c4).
--
Marc Glisse
signal failure.
I am not sure if it will be easy to write code that works for generic and
gimple. I'll see...
--
Marc Glisse
to y+3 and 5+y "simplifies" to
y+5, then it looks worth it to replace the expression with x?y+3:(y+5).
Would there be a convenient way to separate them, so it can tell me that
3+y should be replaced with y+3 but that it is not a simplification?
--
Marc Glisse
On Wed, 12 Mar 2014, Richard Biener wrote:
On Tue, 11 Mar 2014, Marc Glisse wrote:
On Mon, 3 Mar 2014, Richard Biener wrote:
How do you handle a
transformation that currently tries to recursively fold something else and
does the main transformation only if that simplified?
And doesn'
ST1
That's not the same, try X=1, CST1=1, CST2=0.
b) (X & ~CST) == 0 -> X <= CST
Uh, that can't be true for all constants, only some with a very specific
shape (7 is 2^3-1).
--
Marc Glisse
On Fri, 14 Mar 2014, Prathamesh Kulkarni wrote:
On Fri, Mar 14, 2014 at 9:25 PM, Marc Glisse wrote:
On Fri, 14 Mar 2014, Prathamesh Kulkarni wrote:
The patterns mentioned in the links were:
a) (X >> CST1) >= CST2 -> X >= CST2 << CST1
however, an expression Y >= CS
();
cerr << a << endl;
}
when I compil with : g++ -Wall fic.cpp
I think that there should be a warning.
-Wconversion
--
Marc Glisse
http://www.deliantra.net
==-- _ generation
---==---(_)__ __ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schm...@schmorp.de
-=/_/_//_/\_,_/ /_/\_\
arithmetic that assume that
arguments and results are not NaNs or +-Infs.
so I am not sure what you expect exactly.
--
Marc Glisse
ike CXX, but then it doesn't matter.
--
Marc Glisse
u.org/bugzilla/show_bug.cgi?id=50461
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51935
(second one has a patch)
--
Marc Glisse
On Thu, 8 Mar 2012, NightStrike wrote:
On Wed, Mar 7, 2012 at 10:12 AM, Marc Glisse wrote:
On Wed, 7 Mar 2012, NightStrike wrote:
Building gmp/mpfr/mpc in tree fails in the configure-stage1-mpc step
with the current version of mpfr version 3.1.0, out since last
October, and mpc, version 0.9
ompiled for sse. And the
software implementation was more precise than fsin. My conclusion was to
ignore fsin from then on.
--
Marc Glisse
-with-cxx in
the configure options. Or you can just assume that it is built as C++,
which is the default after all. People who have anything different should
have asked for it and thus know what to expect.
--
Marc Glisse
x27;t have stage 2 and haven't been tested with a
C++ compiler yet?
For build issues with other compilers, 50167 and 50177 are still open
(last time I looked, I couldn't find the meta-bug about switching to C++
in stage1 to add them as blockers).
--
Marc Glisse
).
--
Marc Glisse
On Tue, 10 Apr 2012, Rainer Orth wrote:
Marc Glisse writes:
Currently, they all use versions of g++ 4.4, but I could give it a try
with different versions of Sun/Oracle Studio CC.
They should all fail, versions up to 12.2 because of CC bugs (reported to
Oracle and fixed in 12.3 I think
On Tue, 10 Apr 2012, Rainer Orth wrote:
Marc Glisse writes:
Thanks for the heads-up, that saved me time and effort. Do you have CRs
for the CC bugs?
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7073578
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7073575
I think that was it
needed with g++ that uses
intermediate types/typedefs to print a short type, but it was a great way
to have the arguments at the same depth visible at a glance, and I still
use it occasionally (also on the output of c++filt).
--
Marc Glisse
mance penalty because of this, it is a serious
optimizer deficiency that should be fixed so all C++ users can benefit.
--
Marc Glisse
to report build errors?
No, please send any follow-up to gcc-h...@gcc.gnu.org only.
--
Marc Glisse
nedocs/gcc/Warning-Options.html#index-Winit_002dself-289
(it won't warn if you write that line in the global scope, but it does
inside a function)
--
Marc Glisse
l be
necessary because of platforms where size_t is unsigned short (I didn't
know those existed...) and because std::max is picky about having the same
type for both arguments (the papers about improving it for C++11 were
rejected).
--
Marc Glisse
On Wed, 9 May 2012, Gabriel Dos Reis wrote:
On Wed, May 9, 2012 at 3:41 AM, Marc Glisse wrote:
necessary because of platforms where size_t is unsigned short (I didn't know
those existed...)
Well, I suspect AVR might be such platform but I do not seem to have an
ABI document for AV
lue I compare?
Both. And you also need to look at the code that is nearby, not just this
one instruction. In short, don't bother. If you really want to know,
benchmark both versions.
--
Marc Glisse
2)))
(set (reg:DI 6) (sign_extend:DI (match_dup 5)))
and replacing it with your version that zero-extends to DI and does the
multiplication there.
--
Marc Glisse
/predefs.h: No such file or directory
[...]
and there's a lot more , what to do ??
export LIBRARY_PATH=/usr/lib/i386-linux-gnu
export C_INCLUDE_PATH=/usr/include/i386-linux-gnu
export CPLUS_INCLUDE_PATH=/usr/include/i386-linux-gnu
--
Marc Glisse
On Wed, 6 Jun 2012, mixpro wrote:
Marc Glisse-6 wrote:
export LIBRARY_PATH=/usr/lib/i386-linux-gnu
export C_INCLUDE_PATH=/usr/include/i386-linux-gnu
export CPLUS_INCLUDE_PATH=/usr/include/i386-linux-gnu
know i get :
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
You
you are doing it for gcc only, that could work)
I doubt you would be happy with a solution that requires calling
gimple_build_assign_with_ops((...)) (double parentheses), might as well
add MEM_STAT_INFO manually instead.
Nope, sorry :-(
--
Marc Glisse
ve to code
// file foo2.cc
extern "C" {
extern const int twosymb;
const int twosymb=2;
};
to get a symbol "twosymb" in foo2.o
Yes, that's one of the usual traps about C vs C++. Note that you can write
everything on the same line...
extern "C" const int twosymb = 2;
--
Marc Glisse
message.
(it is probably better to avoid the --with-*=/usr, they are unlikely to
help)
--
Marc Glisse
give up. If you get interested say in libstdc++,
you may then be motivated to fix some C++ front-end bug that affects it,
or some missed optimization where you noticed you had to write twisted C++
to get gcc to generate the best asm.
--
Marc Glisse
ago or so.
--
Marc Glisse
ago or so.
And committed the changes? I just updated (r192742) and am getting the
same errors.
Ah, I must have gotten confused with:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54844
Sorry...
--
Marc Glisse
r all temporaries on the stack but never used
for malloc'ed objects, that sounds good too.
Good luck with the useful wide_int work,
--
Marc Glisse
On Fri, 14 Dec 2012, Richard Earnshaw wrote:
Sun/Oracle has never, to my knowledge used GCC as it's primary compiler.
I believe they have (early solaris 10), but that was on x86_64, not sparc
(which is the one in the primary platform list).
--
Marc Glisse
;t know how modeling the rounding mode flag as a global variable
would work with the mode_switching pass.
Not a realistic suggestion though :-(
Take this message as encouragement to improve this in any way you can :-)
--
Marc Glisse
use of $GMPINC, but your revision is
recent enough to have the fix, so something is still wrong.
Maybe look through config.log for the corresponding test?
--
Marc Glisse
ld help more. You
should probably file a bug report and include the whole gcc/config.log
file.
(H.J. Lu noticed another gmp.h issue, but that's only for in-tree gmp and
you seem to have an external one)
--
Marc Glisse
On Wed, 9 Jan 2013, Ondřej Bílka wrote:
gcc currently does not even optimize following fragment:
int foo(){
char *x=malloc(64);
free(x);
}
Yes it does.
(not that more optimizations aren't possible, but it does this one)
--
Marc Glisse
On Mon, 14 Jan 2013, Mischa Baars wrote:
When running the example attached, you can see the compiler fails to
recognize not-a-number's properly.
Bug reports go to bugzilla.
NaN doesn't compare equal to anything. x==x is actually the usual way to
test if x is NaN.
--
Marc Glisse
de the asm, you don't have any
guarantee that once the asm starts the flags are still what you want.
Note that using unsigned types would avoid a lot of issues.
--
Marc Glisse
On Thu, 24 Jan 2013, Jeffrey Walton wrote:
How does one engage the C and C++ committees?
http://isocpp.org/forums
--
Marc Glisse
e that vec_concat is in the
same case. I took the "or scalar" as implicit when I read this chapter
last year, but making it explicit sounds like a good idea.
--
Marc Glisse
On Sun, 24 Feb 2013, Alec Teal wrote:
what has changed between 4.6 (stock) and 4.8 (my current version)...
http://gcc.gnu.org/gcc-4.8/changes.html
(look for GDB in this page)
--
Marc Glisse
://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC90
(and if it hadn't been supported then, you could have used a dichotomy)
--
Marc Glisse
The choice of a Deliantra, the free code+content MORPG
-==- _GNU_ http://www.deliantra.net
==-- _ generation
---==---(_)__ __ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED]
-=/_/_//_/\_,_/ /_/\_\
the code again later
when we add yet another attribute.
--
Marc Glisse
he way I hacked the Makefile structure. (I welcome
all comments and suggestions.) I haven't managed to build the IPA
(inter-procedure analyzer) module.
--
Regards, Marc
formance on AMD CPUs should be
higher than that on Intel CPUs.
--
Regards, Marc
a on Linux?
The dev's summit mentions SPECint2000 results, but I didn't find what
I was looking for.
http://www.gccsummit.org/2005/2005-GCC-Summit-Proceedings.pdf
--
Regards, Marc
On 01/28/2011 06:44 PM, Ian Lance Taylor wrote:
> Jean-Marc Saffroy writes:
>
>> error: insn does not satisfy its constraints:
>> (insn 1424 1423 141 (set (reg:DI 2 r2)
>> (plus:DI (reg:DI 2 r2)
>> (const_int 40 [0x28])))
>> /home/j
On 01/28/2011 09:45 PM, Ian Lance Taylor wrote:
> Jean-Marc Saffroy writes:
>
>> On 01/28/2011 06:44 PM, Ian Lance Taylor wrote:
>>> Jean-Marc Saffroy writes:
>>>
>>>> error: insn does not satisfy its constraints:
>>>> (insn 1424 1423 141
On 02/09/2011 08:27 AM, Hans-Peter Nilsson wrote:
> On Fri, 28 Jan 2011, Jean-Marc Saffroy wrote:
>> (define_constraint "I"
>> "Signed 6-bit integer constant for binops."
>> (and (match_code "const_int")
>>(match_test "IN_
On 02/23/2011 09:52 PM, Christian Grössler wrote:
> Hello,
>
> I have a problem with register allocation. Our architecture has some
> pointer registers "pX" (24bit)
> and some data registers "dX" (32bit). Since pointers are only 24bit,
> we're using PSImode for them.
>
> There are restrictions in
ent on
it -- one may prefer some other name.
Yours,
--
Jean-Marc Bourguet
from reload, or I didn't
give enough hints.
So I tried separating the add instructions for A-regs and D-regs into
different patterns with more restrictive predicates for each pattern (so
add for A regs can have large increments), but then I get other ICEs
which I don't understand (first assert in elimination_costs_in_insn fails).
Does anyone have a hint how I should approach this? Is a define_expand
required, or something else?
Cheers,
Jean-Marc
:
warning: end-of-loop code not reached
cc: Fatal error in /opt/SUNWspro/bin/../WS6U1/bin/acomp
Status 138
gmake[3]: *** [tree-ssa-structalias.o] Error 138
Building tree-ssa-structalias.o with an older gcc works fine. I'll try
to look at it more this afternoon and see if I can put in a patch
e/libiberty.h should define it as a PTR also,
since ansidecl.h declares it differently if you're an old-school C
compiler...
Marc
, something funky with varargs... Compiles
with older gcc just fine...
Marc
(const PTR p1, const PTR p2)
^
It goes on like this for quite a while. LOTS of inconsisencies of using
PTR one place and void * in another...
Marc Mengel <[EMAIL PROTECTED]>
So basically on alpha-dec-osf4.0 with Compaq C v6.1-120, I just
had to use an older gcc to build libiberty. Everything chokes with
PTR==(char *) vs (void *) all over the place...
Marc W. Mengel wrote:
This is probably very low priority, maybe a release note?
In the dim-and-musty-systems
ding compiler backends for GCC, I
> would need a bit of guidance / read material to get started. Do you have
> recommendations for anything? And is there interest in such work?
Hello,
I guess the upcoming presentation at FOSDEM "How to bring up GCC for
your new chip"[1] can help!
M
m).
If still needed, I volunteer for the gcc list!
Marc
` in the `contrib` directory, I
> tried it too, but sadly, it didn't work for me.
>
> Maybe I configured vim in some wrong way.
Hello,
there's also a clang-format config file in contrib/clang-format. We're
using this for gcc-rs.
Marc
e to
gcc-devroom-manager at fosdem dot org.
Organizers of the devroom can also be reached on IRC at
irc://irc.oftc.net/#gcc; see <https://gcc.gnu.org/wiki/GCConIRC>
### Program Committee
- Thomas Schwinge (tschwinge at baylibre.com)
- Jose E. Marchesi (jemarch at gnu.org)
- Marc Poulhiès (dkm at kataplop.net)
fy to
-prevent the warning), even in conjunction with macros. This also
+consider questionable. This also
enables some language-specific warnings described in @ref{C++ Dialect
--
Marc Glisse
Hello David,
> I am pleased to announce that the GCC Steering Committee has appointed
> Marc Poulhies as Ada co-maintainer.
Thank you :)
> Marc, please update your listing in the MAINTAINERS file.
I've updated the MAINTAINERS file accordingly in
f4ed610d02aaf8cfcdcb5cf03e0cde65f
re
using it (but judging by Jakub's last review for Philip's patch, the
config is maybe not exhaustive, or our setup is not correct).
Marc
ng of -ftrapping-math.
--
Marc Glisse
as 0,
and one for sparc, which has several.
--
Marc Glisse
since earlier.
What would be causing the difference? Is this intended? Link
<https://godbolt.org/z/eWxnYsK1z> for details. Thank you!
See LOGICAL_OP_NON_SHORT_CIRCUIT in fold-const.cc (and various discussions
on the topic in mailing lists and bugzilla).
--
Marc Glisse
e in Intel syntax.
The doc for -masm=dialect says:
Darwin does not support ‘intel’.
Assuming that's still true, and even with Mac Intel going away, it doesn't
help.
--
Marc Glisse
calls the true gcc with a different TMPDIR / -dumpdir each time.
--
Marc Glisse
at code so __is_void
becomes unused and can be removed?
--
Marc Glisse
versions give
the same result on negative 0 and NaN.
--
Marc Glisse
is is? And
is there any solution?
If 'a' is a global variable, how do you know 'printf' doesn't modify its
value? (you could know it for printf, but it really depends on the
function that is called)
--
Marc Glisse
, function g starts with
void g ()
{
size_type __dnew;
struct string a;
[...]
[local count: 1073741824]:
_26 = a._M_string_length;
if (_26 == 4611686018427387903)
which should not require any interprocedural logic.
--
Marc Glisse
T
fibonacci_heap.o -MMD -MP -MF ./.deps/fibonacci_heap.TPo
../../gcc/gcc/fibonacci_heap.cc
Note the "-g -O2". Why?
In addition to CFLAGS and BOOT_CFLAGS, you are missing CFLAGS_FOR_TARGET
(plus the same 3 for CXX). I don't know if that's still sufficient, but
that's what I used to set a few years ago.
--
Marc Glisse
d a pointer that can
alias anything
build_qualified_type to add const (probably useless)
build_aligned_type to specify that it is unaligned
--
Marc Glisse
r distribution package
manager as it's included in most repositories now. You can also build
and install it yourself from the sources:
https://github.com/AdaCore/gprbuild.
And finally, you may be interested by using alire
(https://github.com/alire-project/alire) as it makes it really easy to
install t
ren't more casts to result_type in this code, for
float it still uses double a lot)
--
Marc Glisse
ks like in gcobol.
>
> Please tell me what I should do.
I'll send you some instructions.
Marc
February 3, 2025 at 11:02 AM, "Mark Wielaard" mailto:m...@klomp.org?to=%22Mark%20Wielaard%22%20%3Cmark%40klomp.org%3E > wrote:
> > (Does anybody actually look at the messages, as promised in the e-mail?=
> >
> I think it is done multiple times each day. The current mo
201 - 292 of 292 matches
Mail list logo