.
(PTA_GOLDMONT): Likewise.
As you can see, this is very much on purpose. See
https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01940.html for the
explanation that came with the patch.
--
Marc Glisse
r2, [r0, #4]@ unaligned
instead of
strdr1, r2, [r0]
--
Marc Glisse
t violates
the standard...
--
Marc Glisse
build recipe:
%define mpfr_version 2.4.2
%define mpc_version0.8.1
%define gmp_version4.3.2
I tried that with gcc 7.1.0 but the build failed complaining
mpfr was too old.
Could you be more precise about how the build failed? AFAIK mpfr-2.4.2 is
still supposed to work.
--
Marc Glisse
e a problem with gcc, maybe optimization creates a path that
corresponds to size==0 and fails to notice that it cannot be taken.
--
Marc Glisse
test of the loop, as can be seen in the dump
produced with -fdump-tree-optimized.
--
Marc Glisse
ou run "gcc -dumpspecs"? If so you could provide a
different specs file. Otherwise, you could check the patches that your
distribution applies to gcc, one of them likely has "pie" in its name.
Easiest is likely to build gcc from the official sources, which shouldn't
use pie by default.
--
Marc Glisse
arith-overflow.c.exe iteration 2 of
PASS: test-arith-overflow.c.exe iteration 4 of 5: verify_u
PASS: test-combination.
PASS: test-combination.c.exe it
[...]
The issue is more likely in the testsuite, but I assume you have a
workflow that allows working around the issue?
--
Marc Glisse
In preferences, you get to choose the behavior "After changing a bug".
Default is "Show next bug in my list".
--
Marc Glisse
don't have much experience there.
--
Marc Glisse
understand there's no mangled name for the class such that
echo | c++filt
outputs the class name (e.g. "Foo<10>"). That wouldn't make sense, since
there's no symbol for the class itself.
$ echo _Z1YI1XE | c++filt
Y
--
Marc Glisse
lity=hidden to
hide everything but a few carefully chosen interfaces.
--
Marc Glisse
ays_inline))
void foo(void){}
};
static inline __attribute__((always_inline,alias("foo")))
void bar(void);
Or you can use an asm label to specify some arbitrary name.
--
Marc Glisse
to help with that? (I
didn't really think about it, maybe it doesn't)
"don't do that" remains the most sensible answer.
--
Marc Glisse
few spaces. A single run of
clang-tidy would likely fix all of them for you.
--
Marc Glisse
r arith
instead?
When I removed their use in the intrinsic headers, I tried to remove them,
but Ada people asked us to keep them
https://gcc.gnu.org/ml/gcc-patches/2014-10/msg00843.html
--
Marc Glisse
nt to patch genmatch.c (near get_operand_type maybe?) so
it doesn't try to guess that the type of absu is the same as its argument.
You can also specify a type in transformations, look for :utype or :etype
in match.pd.
--
Marc Glisse
owns when compiled with GCC vs. ICC.
--
Marc Glisse
st (PR 86024 seems related, there are probably some closer
matches), but indeed more would be helpful.
--
Marc Glisse
On Sun, 8 Jul 2018, Jason Merrill wrote:
On Sun, Jul 8, 2018 at 6:40 PM, Marc Glisse wrote:
On Fri, 6 Jul 2018, Martin Sebor wrote:
On 07/05/2018 05:14 PM, Soul Studios wrote:
Simply because a struct has a constructor does not mean it isn't a
viable target/source for use with m
gory where we don't want to litter the
code with casts to quiet the warnings, I find -Wsign-compare way worse in
practice than -Wclass-memaccess.
--
Marc Glisse
someone has the time,
of course.
--
Marc Glisse
he opposite direction may be both easier and safer, even if it won't
handle everything:
P p+ N is nonnull if P or N is known to be nonnull
(and something similar for &p->field and others)
--
Marc Glisse
value_ranges_intersect_p with a singleton range, but that
function seems dead and broken). When POINTER_PLUS_EXPR is changed to take
a signed argument, your suggested test will need updating :-(
--
Marc Glisse
? Is there a good reason to use
__builtin_clzl instead on platforms where long and long long have the same
size?
In case it matters, this is strictly for compile-time computations
(templates, constexpr).
--
Marc Glisse
that's the best guarantee I could ask for about the existence
of __builtin_clzll.
--
Marc Glisse
LDFLAGS environment setting is partially effective
during gcc build?
Yes. For further stages, there is BOOT_LDFLAGS. There is also a configure
option with a similar name.
--with-stage1-ldflags=
--with-boot-ldflags=
see:
http://gcc.gnu.org/install/configure.html
--
Marc Glisse
at it
means:
#include
int main()
{
std::cout << "ok\n";
}
Can anybody else see this crazy breakage? May be a few days old, AFAICS.
4_6-branch is perfectly fine.
174683 here on linux x64 and everything is fine.
--
Marc Glisse
in gcc...
The alternative would be to store the full enum instead of a bitfield
(just for stage1 so that's not too bad), but some comments in the code
seem to advise against it.
--
Marc Glisse
it's only for C that
they are a GNU extension - so can't we just enable them unconditionally
when building as C++?)
Great, I didn't know that. That's a much better solution.
--
Marc Glisse
On Mon, 1 Aug 2011, Oleg Smolsky wrote:
BTW, some of these tweaks increase the binary size to 99K, yet there is no
performance increase.
I don't see this in the thread: did you use -march=native?
--
Marc Glisse
On Mon, 1 Aug 2011, Toon Moene wrote:
See:
http://gcc.gnu.org/ml/gcc-testresults/2011-08/msg00117.html
Er, the python thing only tells you your system has a broken symlink but
ignores it. Did you check in libgcc/config.log for the real error?
--
Marc Glisse
5." or GNU, or grep -v for
" [0-4]".
3) something else.
--
Marc Glisse
orter:
class string;
void f(const string&);
string x();
struct locale {
string y() const;
};
template void g(const locale& l) {
f(x()); // OK
f(l.y()); // FAIL in C++0X
}
g++ apparently instantiates more eagerly in C++0X than in C++03.
--
Marc Glisse
(first use in this
function)
Strange, this is expected with gcc-3.4 (although there is a workaround
in the development version of mpc) but not with gcc-4.6.
--
Marc Glisse
). It requires that you
first have:
int f(int);
and only then:
int f(int){return 0;}
--
Marc Glisse
you can manually force
instantiation in one translation unit and inhibit it in the others).
(sorry I didn't manage to circumvent the problem to a small piece of
code),
Er, what did you try?
--
Marc Glisse
, then I guess this patch will solve it:
http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01674.html
--
Marc Glisse
ic_design_a.html
which is good since the main point seems to be to share it between
implementations. Are there others on board?
--
Marc Glisse
On Sat, 1 Oct 2011, Andrew MacLeod wrote:
On 10/01/2011 02:55 AM, Marc Glisse wrote:
"The compiler must ensure that for any given object, it either ALWAYS
inlines lock free routines, OR calls the external routines. For any given
object, these cannot be intermixed."
Why? Y
is deleted, the FILE* is fclosed] or
even std::ostringstream or std::ostring-s shared between several passes.
Yes, those are the usual arguments for a finalizer.
--
Marc Glisse
On Thu, 20 Oct 2011, Basile Starynkevitch wrote:
On Thu, Oct 20, 2011 at 09:11:02AM +0200, Marc Glisse wrote:
On Thu, 20 Oct 2011, Basile Starynkevitch wrote:
PPL [Parma Polyhedra Library] data, like e.g. ppl_Constraint_t
[from header that is, using a C API] comes to mind. If
you want to
the naive question, but
std::vector can take an allocator parameter, gmp lets you specify an
allocation function...
(note that I have never looked at Ggc so my question may be off...)
--
Marc Glisse
hanks for
bearing with my questions.
--
Marc Glisse
an underscore for future normalization. I interpret that as: defining your
own suffix k should print a warning instead of an error.
I don't believe this is worth changing (if the error message is readable
enough) until there is a plan for actually using that suffix.
--
Marc Glisse
e exotic pieces of legal code that were broken by this
extension, so it had to go.
--
Marc Glisse
On Tue, 8 Nov 2011, Marc Glisse wrote:
On Tue, 8 Nov 2011, Ulrich Drepper wrote:
Complicated title, here's a bit of code:
#ifdef FIX
# define PARM2 , class T5
#else
# define PARMS2
#endif
template
struct cl1 {
};
template class T4 = cl1>
struct cl2 {
};
cl2<> var;
If co
that the register
allocator is doing a fairly poor job on SSE/AVX registers...
--
Marc Glisse
try to synchronize on some features.
--
Marc Glisse
On Thu, 5 Jan 2012, Marc Glisse wrote:
Do you have any suggestion on what libstdc++ can do when faced with C
libraries that will randomly declare gets or not depending on flags? It would
need knowledge of these exact flags so it can provide a replacement exactly
when it isn't declared (
gnore the rest).
Is that what's supposed to happen? I can use another mechanism than
attributes, but this looks suspicious.
--
Marc Glisse
apt quite a few functions to preserve it. Using an
attribute seems to make sense and would reuse more existing mechanisms
(though it may have drawbacks too).
--
Marc Glisse
r the math functions, this is normally more a libc feature, so you might
get very different results on different OS. Then again, by using
-ffast-math, you allow the math functions to return any random value, so I
can think of ways to make it even faster ;-)
--
Marc Glisse
r project,
and with recursive dependencies it would quickly get out of hand.
--
Marc Glisse
q.c
__has_builtin
$ clang -E q.c
--
Marc Glisse
Hello,
The following code is rejected by one compiler, while it is accepted by gcc
without any warning. Several people in comp.lang.c seem to think that it is a
bug in the first compiler which should ***not*** reject the program.
Message-ID:
http://groups.google.com/group/comp.lang.c/browse_frm/
ocs.sun.com/app/docs/doc/817-1984/chapter2-88783?a=view#chapter2-7
seems to recommend the -t linker flag.
--
Marc Glisse
ve the same characteristic, but it may indeed not
be worth the trouble.
--
Marc Glisse
On Tue, 6 Apr 2010, Jerome Quinn wrote:
undefined reference to `mp_get_memory_functions'
This means your version of GMP is too old. configure should probably catch
this.
--
Marc Glisse
n.com/app/docs/doc/805-3172/6j31br5j5
Do you mean its output is different enough that it is unusable here? Or
that it is not installed by default? (SUNWbtool is already listed as a
requirement in install/specific.html)
--
Marc Glisse
On Fri, 23 Apr 2010, Manuel López-Ibáñez wrote:
This seems to be the question running around the blogosphere for
several projects. And I would like to ask all people that read this
list but hardly say or do anything.
What reasons keep you from contributing to GCC?
Not sure we should spam this
s a bug in
-fstack-protector in that version that masks this.
Anyway, thanks both of you for helping to track it down. I'll forward this
along to the MPC maintainers.
This could be related to a call to sprintf(str,...,str,...), which
according to the doc is undefined behaviour.
--
Marc Glisse
In , GCC defines an additional overload of conj(x)
for non-complex arithmetic types, as specified in 26.3.9 [cmplx.over]
of the upcoming C++ Standard (Working Draft).
The Draft mandates certain type promotion of x.
In the (experimental) GCC implementation, conj(x) returns x as a
complex value (wit
at you can also try to ping Oracle with this pointer:
http://bugs.sun.com/view_bug.do?bug_id=6832717
--
Marc Glisse
the linker is gnu?
--
Marc Glisse
On Tue, 11 May 2010, Ian Lance Taylor wrote:
Marc Glisse writes:
On Tue, 11 May 2010, Jakub Jelinek wrote:
And you can use -Wl,-O1 (pass -O1 to the linker) to let the linker
determine optimal size of the hash table (minimum number of collisions
for reasonably sized section).
Was it
So, I used to contribute back to gcc regularly, got overwhelmed by
other stuff, but I'm back.
Case in point: I've added stuff to OpenBSD for secure handling of trampolines.
Since trampolines require an executable stack, we want to make sure we don't
have trampolines all over the place, hence a -ft
On Sat, May 29, 2010 at 03:49:48PM +0200, Steven Bosscher wrote:
> On Sat, May 29, 2010 at 3:45 PM, Marc Espie wrote:
>
> > Is there something I'm missing ? Is there a way I can still be the owner
> > of that patch and release it as I wish ?
>
> Yes. Read your co
/lib/gold-ld
to select the ld you want.
--
Marc Glisse
since an alternative is now available.
--
Marc Glisse
appen with X::v defined
separately)
--
Marc Glisse
Hi All.
I have some questions regarding GCOV, which is part of GCC.
I hope this is the right place (if not, suggestions are welcome).
Please add me (marc dot alff at comcast dot net) in your replies, as I
am not subscribed to this list.
Let me start with some background :
A project &quo
Hi
Nicholas Nethercote wrote:
> On Sat, 17 Jun 2006, Marc Alff wrote:
>
>> 2) Licensing
>>
>> For technical reasons, I can not use the gcov library itself,
>> and plan to implement code to read/write the files the GCOV program
>> needs.
>
> Then wh
e will merge these later today. The
> results look the same as the numbers were getting on x86 too.
Hello,
FYI, your changes are being merged : https://github.com/Rust-GCC/gccrs/pull/454
Thanks!
Marc
he problem is that 's0' is a single-precision float register and
it should be 'd0' instead.
Either I'm seriously missing something, in which case I would be most
obliged if someone sent me to the right direction; or it is a compiler
or documentation bug.
Thanks,
Zoltan
--
Marc Glisse
hanged.
https://gcc.gnu.org/bugs/ says that you should first try compiling your
code with -fsanitize=undefined, which tells you at runtime that your code
is broken.
Apart from that, bug reports should go to https://gcc.gnu.org/bugzilla/
and questions to gcc-h...@gcc.gnu.org.
--
Marc Glisse
antee about this anyway.
In the other case, it could affect correct
code before the trap.
-fnon-call-exceptions helps with the first testcase but not with the
second one. I don't know if that's by accident, but the flag seems
possibly relevant.
--
Marc Glisse
version of GMP first? gcd_1.c has only 103
lines in release 6.2.1.
A stack trace (UBSAN_OPTIONS=print_stacktrace=1) would make it easier to
guess where this is coming from.
--
Marc Glisse
be updated.
--
Marc Glisse
...);
No, curl_easy_setopt is a macro. If you look at the preprocessed code, you
get many statements doing the same wrong operation, and one warning for
each of them.
(wrong list, should be gcc-help, or an issue on bugzilla)
--
Marc Glisse
In article <[EMAIL PROTECTED]> you write:
>Thanks Jon,
>
>Can anyone throw more light on this.
>
Stop telling us what you want to do, explain to us WHY you want to do
it.
There are lots of different reasons for which you might want to know
more about temporary object generation, and we can probab
In article <[EMAIL PROTECTED]> you write:
>Daniel Berlin wrote:
>> I should note that svn treats it's remote connections as disposable, so
>> svn+ssh will probably connect more than once for things like remote
>> diffs. So if it takes a while to authenticate, this may not be your
>> best bet if yo
In article <[EMAIL PROTECTED]> you write:
>Complete alphabetical order is not in the cards for diff, at least for
>diffs involving server side (diffs that are client side are easily
>sorted by filename).
>This is because it would require losing the "streaminess" of the
>protocol (unlike cvs, the cl
In article <[EMAIL PROTECTED]> you write:
>AFAIK, Subversion uses UTC time internally, but always works with the
>local time of the user for the interface (I don't know what happens for
>ambiguous dates, due to summer/winter times). Anyway, Subversion has
>global revisions, so that doing a dichotom
Long term, gcc extensions mean a given piece of code will only be
compilable by gcc. If the extension is succesful enough, it may
even be adopted by other compilers, such as Intel CC. Happened
in the past.
Personally, I tend to not like gcc extensions. Especially the silent
variety. Now that the C
in is slower and less precise than the libc SSE2 implementation.
--
Marc Glisse
On Tue, 28 May 2013, Anton Titov wrote:
I'm trying to force gcc to trust me that my memory allocation function is
returning aligned memory. So far I tried everything I found with no luck.
Did you try using __builtin_assume_aligned?
--
Marc Glisse
you can't then assign that to an int, because it will overflow.
0x8000 will not fit in an int: it's undefined behaviour.
Implementation defined, and ok with gcc:
http://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html
--
Marc Glisse
relying on it. No?
OTOH, it may have been a proxy for __cplusplus for users for a good while.
People may still be using it even if the library no longer uses it.
What do folks think?
Please keep it. Removing it won't gain you anything, and people do rely on
it.
--
Marc Glisse
ow it goes :-)
Thanks,
--
Marc Glisse
eem easy to avoid...
No folding categories as in
http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01099.html ?
--
Marc Glisse
IT_FIELD_REF for vec_select and CONSTRUCTOR
for vec_duplicate, adding new nodes is always painful.
This enhancement could possibly help further optimizing larger scenarios such
as linear systems.
Regards
VP
--
Marc Glisse
to the gcc bugzilla and file an enhancement request (category
tree-optimization) if these problems are not there yet.
--
Marc Glisse
On Fri, 20 Sep 2013, Dennis Luehring wrote:
Am 20.09.2013 07:50, schrieb Marc Glisse:
(gcc-h...@gcc.gnu.org would have been a better list)
On Fri, 20 Sep 2013, Dennis Luehring wrote:
> gcc 4.8.1, -O3 -march=native -std=c++11
>
> small example program to check what does the
ine with integer_minus_onep returning true on -1U. Without the renaming
patch, there is a single use of integer_minus_onep (in fold-const.c), so
it shouldn't be hard to check all users, and IIRC we want it to return
true for -1U in this case (turning x*-1 into -x).
--
Marc Glisse
nline function where I expect gcc must optimize away the second copy of
the code.
Not that it wouldn't be good if there was no second copy for gcc to
optimize...
--
Marc Glisse
packages):
http://clang.debian.net/status.php?version=3.3&key=FUNCTION_RETURNS_VALUE
That's cool, if clang forces people to update their code to C99, maybe
we'll be able to switch gcc to use -std=gnu99 by default one day...
--
Marc Glisse
der at hand), a paragraph
at the beginning of the description of string.h. It does not apply to
strnlen_s. For strnlen, which is only in posix, I am not sure, but glibc
has the nonnull attribute.
--
Marc Glisse
on…
Did you really test on x86_64-linux? I am only seeing this -2.71e-20 when
using -mfpmath=387.
--
Marc Glisse
On Wed, 20 Nov 2013, Marc Glisse wrote:
On Wed, 20 Nov 2013, FX wrote:
I reduced my problem to the following code:
int main (void)
{
double x;
x = 1 / 3.;
__builtin_printf ("%.30lg %.30lg\n", __builtin_remainder(1., 1/3.), 1/3.);
__builtin_printf ("%.30lg %.30lg\n",
101 - 200 of 292 matches
Mail list logo