Re: [PATCH 1/5] Altera Nios II: GCC backend patches

2013-04-25 Thread Joseph S. Myers
+## libraries are not created on a Solaris build. All other library > +## combinations are created by default. > + > +# Uncomment to temporarily avoid building big endian and profiling libraries > during a Windows build. > +#ifeq ($(DEV_HOST_OS), win32) > +#BUILD_BE_MULTILIB ?= 0 > +#BUILD_PG_MULTILIB ?= 0 > +#endif I don't know where DEV_HOST_OS is supposed to come from, but this doesn't appear to make much sense for FSF GCC anyway. If you want options to have various possible sets of multilibs, model them on e.g. SH --with-multilib-list rather than having this Nios II-specific approach. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH 2/5] Altera Nios II: libgcc

2013-04-25 Thread Joseph S. Myers
ame. > + void *fnptr, > + void *chainptr) > +{ > + unsigned int fn = (unsigned int)fnptr; > + unsigned int chain = (unsigned int)chainptr; Missing spaces in casts. > + .file "crtn.asm" Such .file directives in libgcc assembly sources should generally be avoided; see <http://gcc.gnu.org/ml/gcc-patches/2008-07/msg00123.html> for rationale. -- Joseph S. Myers jos...@codesourcery.com

Re: GCC does not support *mmintrin.h with function specific opts

2013-04-25 Thread Joseph S. Myers
On Tue, 16 Apr 2013, Sriraman Tallam wrote: > Ok, it is on by default now. There is a way to turn it off, with > -mno-generate-builtins. Any new option needs documenting in invoke.texi. -- Joseph S. Myers jos...@codesourcery.com

Re: [C++/C Patch] Have -Wpointer-arith enable by -Wpedantic, as documented

2013-04-24 Thread Joseph S. Myers
arn calls, > which, in fact, also fixes a bug: we don't want to actually emit such warnings > for -Wpedantic -Wno-pointer-arith (as would happen before and after the > trivial tweak above) The C changes are OK. -- Joseph S. Myers jos...@codesourcery.com

Re: [Patch] Emit error for negative _Alignas alignment values

2013-04-24 Thread Joseph S. Myers
" at the end of each ChangeLog entry). -- Joseph S. Myers jos...@codesourcery.com

Re: [Patch ARM] Add support for Cortex-A53.

2013-04-02 Thread Joseph S. Myers
* config/arm/arm-tables.opt: Regenerate. > * config/arm/arm-cores.def: Add cortex-a53. This patch is missing an update to the list of valid ARM -mcpu= arguments in invoke.texi. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fold __builtin_constant_p immediately when in the first argument of __builtin_choose_expr (PR c/19449)

2013-04-02 Thread Joseph S. Myers
ion is actually going to be of a static array itself. -- Joseph S. Myers jos...@codesourcery.com

Re: [cilkplus-merge] rewrite __sec_reduce* builtin handling to use <.def> infrastructure

2013-03-27 Thread Joseph S. Myers
nts have been addressed. But this looks like the sort of thing I was expecting for cleaning up the built-in function handling. -- Joseph S. Myers jos...@codesourcery.com

Re: [patch] cilkplus array notation for C (clean, independent patchset, take 1)

2013-03-26 Thread Joseph S. Myers
it's valid in the caller but not the callee. If it's invalid in the caller as well, neither should check (except maybe in an assertion if felt appropriate in a particular case). -- Joseph S. Myers jos...@codesourcery.com

RE: [patch] cilkplus array notation for C (clean, independent patchset, take 1)

2013-03-26 Thread Joseph S. Myers
cture has a static type other than "tree", specific to the particular case in question; it may be an ad hoc type in GCC, or use GCC-specific infrastructure such as vec.h, or standard C++ library features where there aren't problems with interaction with garbage collection. If in doubt about how to represent something without using TREE_LIST, post details of the particular datastructure and how it is used to the gcc@ list. TREE_LISTs have TYPE, CHAIN, VALUE and PURPOSE pointers as well as a TREE_CODE. It's rare for all of these to be used, so they are generally particularly memory-inefficient. -- Joseph S. Myers jos...@codesourcery.com

Re: [Patch, fortran, 4.9] Use bool type instead gfc_try

2013-03-21 Thread Joseph S. Myers
the same except that C++ disallows decrement operators (prefix and postfix --) on bool and C allows them. (I don't know what C++ specifies regarding bool bit-fields or whether there are any incompatibilities there, but for non-bit-field objects you shouldn't have problems.) -- Joseph S. Myers jos...@codesourcery.com

Re: [patch] cilkplus array notation for C (clean, independent patchset, take 1)

2013-03-21 Thread Joseph S. Myers
pe, > tree rhs, >enum tree_code coder; >tree rname = NULL_TREE; >bool objc_ok = false; > - >if (errtype == ic_argpass) > { >tree selector; Avoid spurious changes like this not related to the substance of the patch. > + if (flag_enable_cilkplus && contains_array_notation_expr (cond)) > +{ > + error_at (start_locus, "array notation expression cannot be used in a " > + "loop's condition"); > + return; Use %' for English apostrophes in diagnostics, so that a proper apostrophe rather than neutral vertical ' can be used in appropriate locales. > + error_at (start_locus, "array notation expression cannot be used in a " > + "loop's increment expression."); Likewise, and remove the trailing ".". -- Joseph S. Myers jos...@codesourcery.com

Re: [patch] cilkplus array notation for C (clean, independent patchset, take 1)

2013-03-21 Thread Joseph S. Myers
, tree stride, tree type) > +{ > + tree array_ntn_tree = NULL_TREE; > + size_t stride_rank = 0, length_rank = 0, start_rank = 0; > + > + if (!TREE_TYPE (start_index) || !INTEGRAL_TYPE_P (TREE_TYPE (start_index))) I'd expect the argument would have to be an expression, so would always have a TYPE and the !TREE_TYPE (start_index) check should be unnecessary. If it is needed, explain further in the comment at the start of the function. Likewise for other checks for NULL types in this function. > +{ > + error_at (loc, > + "start-index of array notation triplet is not an integer."); Diagnostic should not end with ".". > + error_at (loc, "length of array notation triplet is not an integer."); Likewise. > + error_at (loc, "stride of array notation triplet is not an integer."); Likewise. > + error_at (loc, "rank of an array notation triplet's start-index is not > " > + "zero."); Likewise. > + error_at (loc, "rank of an array notation triplet's length is not > zero."); Likewise. > + error_at (loc, "rank of array notation triplet's stride is not zero."); Likewise. That's a coding style review of the first half or so of the patch, more later -- Joseph S. Myers jos...@codesourcery.com

RE: [PATCH] Fix PR50293 - LTO plugin with space in path

2013-03-05 Thread Joseph S. Myers
On Mon, 4 Mar 2013, Joey Ye wrote: > + char *new_spec = (char *)xmalloc (len + number_of_space + 1); Space in cast between "(char *)" and "xmalloc". OK with that change. -- Joseph S. Myers jos...@codesourcery.com

Re: *ping* - Re: Fix some texinfo 5.0 warnings in gcc/doc + libiberty

2013-03-05 Thread Joseph S. Myers
On Fri, 1 Mar 2013, Tobias Burnus wrote: > Joseph S. Myers wrote: > > OK, though for the libiberty patch it would be good if someone can find > > the make-obstacks-texi.sh script referred to in libiberty.texi, check it > > in and get obstacks.texi exactly in sync with the

Re: [PATCH] Move opts_{obstack,concat} from opts.c to opts-common.c (PR bootstrap/56509)

2013-03-04 Thread Joseph S. Myers
On Mon, 4 Mar 2013, Jakub Jelinek wrote: > 2013-03-04 Jakub Jelinek > > PR bootstrap/56509 > * opts.c (opts_obstack, opts_concat): Moved to... > * opts-common.c (opts_obstack, opts_concat): ... here. OK. -- Joseph S. Myers jos...@codesourcery.com

RE: [PATCH] Fix PR50293 - LTO plugin with space in path

2013-03-03 Thread Joseph S. Myers
g; As discussed above, not needed. > + for (j=0, k=0; j<=len; j++, k++) Spaces around "=" and "<=". > + if (orig[j] == ' ' || orig[j] == '\t') new_spec[k++] = '\\'; Put the "if" both on a separate line. > + else return orig; Put the "else" body on a separate line. -- Joseph S. Myers jos...@codesourcery.com

Re: *ping* - Re: Fix some texinfo 5.0 warnings in gcc/doc + libiberty

2013-03-01 Thread Joseph S. Myers
the output of that script run on current glibc sources. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fix PR56344

2013-02-27 Thread Joseph S. Myers
t should be passed? -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fix memory leaks in incpath.c

2013-02-26 Thread Joseph S. Myers
t; where appropriate and avoid leaking memory. OK. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fix memory leaks in options handling

2013-02-26 Thread Joseph S. Myers
tant times the size of the command line, is that to free data you'd then need to keep track of what was allocated and what was pointing into argv, or strdup everywhere a pointer into argv is used, and probably wouldn't actually end up saving any memory.) -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fix PR56344

2013-02-26 Thread Joseph S. Myers
gument in question rather than e.g. to the end of the function containing the problem call?) -- Joseph S. Myers jos...@codesourcery.com

Fix use of non-ASCII character in diagnostic in fortran/resolve.c

2013-02-23 Thread Joseph S. Myers
gfc_warning ("TODO: type-bound defined assignment(s) at %L not " "done because multiple part array references would " "occur in intermediate expressions.", &(*code)->loc); return; -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fix PR50293 - LTO plugin with space in path

2013-02-17 Thread Joseph S. Myers
of how the path, before the patch, got processed so that the spaces were wrongly interpreted. That might help make clearer whether the interface to this new function is actually correct, since the subsequent operations on the return value should act as an inverse to the operation carried o

Re: RFC: c-common PATCH to allow __int128_t literals

2013-02-13 Thread Joseph S. Myers
n the preprocessor needs to handle multiple precisions to deal with such types in preprocessor expressions. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fix thinko in handle_error_attribute (PR middle-end/56167)

2013-02-04 Thread Joseph S. Myers
n't have any error/warning attributes those with STRING_CST arguments. > > Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for > trunk? OK. -- Joseph S. Myers jos...@codesourcery.com

RE: [PING^2]RE: [PING] RE: [Ping]FW: [PATCH] Cilk Plus merging to trunk (2 of n)

2013-01-24 Thread Joseph S. Myers
in stage 1), and given how it's likely that such patches may interact and that comments from review of one patch may point out things you need to fix in later patches as well, it's not clear how useful sending a long patch series at one go will be. -- Joseph S. Myers jos...@codesourcery.com

RE: [PING^2]RE: [PING] RE: [Ping]FW: [PATCH] Cilk Plus merging to trunk (2 of n)

2013-01-24 Thread Joseph S. Myers
I intend to look at this once we're back in development stage 1 (for GCC 4.9). -- Joseph S. Myers jos...@codesourcery.com

Re: [C PATCH] Fix initialization of flexible array members (PR c/56078)

2013-01-24 Thread Joseph S. Myers
ror is right, initialization of nested flexible array > member is what is happening in the testcase and is invalid. OK. I agree that test is invalid. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Handle -fwrapv -ftrapv (PR tree-optimization/48766)

2013-01-14 Thread Joseph S. Myers
t; > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > > 2013-01-14 Jakub Jelinek > > PR tree-optimization/48766 > * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for > -ftrapv disable -fwrapv. OK. -- Joseph S. Myers jos...@codesourcery.com

Fix Thumb-1 jump table alignment length calculation (PR target/43961)

2013-01-13 Thread Joseph S. Myers
/ #define ASM_OUTPUT_CASE_END(FILE, NUM, JUMPTABLE) \ -- Joseph S. Myers jos...@codesourcery.com

Re: [C/C++ PATCH] shift with negative or too big count warning (PR c/48418)

2013-01-08 Thread Joseph S. Myers
nd changes are OK. Properly diagnostic messages inside ? : conditionals should be marked up with G_() to ensure that both cases are extracted for translation, though in this case it doesn't matter much given that the message wording should stay identical to other copies of the same messages. -- Joseph S. Myers jos...@codesourcery.com

Re: [committed] 2011 and 2012 Copyright year updates

2013-01-07 Thread Joseph S. Myers
On Mon, 7 Jan 2013, Richard Sandiford wrote: > "Joseph S. Myers" writes: > > On Sun, 6 Jan 2013, Richard Sandiford wrote: > > > >> Anyway, here's my attempt a script to convert to ranges and, if enabled, > >> to include the current year. The sc

Re: [PATCH] Enable non-complex math builtins from C99 for Bionic

2013-01-07 Thread Joseph S. Myers
and at this development stage I think it will need to wait until after 4.8 branches. -- Joseph S. Myers jos...@codesourcery.com

RE: [RFC] New feature to reuse one multilib among different targets

2013-01-07 Thread Joseph S. Myers
_dir): Also search multilib from multilib_reuse. > * gcc/genmultilib (tmpmultilib3): Refactor code. > (tmpmultilib4): Ditto. > (multilib_reuse): New multilib argument. This patch is OK. -- Joseph S. Myers jos...@codesourcery.com

Re: PING^2: [PATCH] Support -fuse-ld=bfd and -fuse-ld=gold

2013-01-07 Thread Joseph S. Myers
On Wed, 19 Dec 2012, H.J. Lu wrote: > +#ifdef CROSS_DIRECTORY_STRUCTURE > + = concat(target_machine, "-", ld_suffixes[i], NULL); Missing space before '('. The patch is OK with that fixed. -- Joseph S. Myers jos...@codesourcery.com

Re: [committed] 2011 and 2012 Copyright year updates

2013-01-07 Thread Joseph S. Myers
t --version notices should just say 2013 (including e.g. that in fixincludes/mkheaders.in). -- Joseph S. Myers jos...@codesourcery.com

Re: [RFC PATCH] Implementing ifunc target hook

2012-12-26 Thread Joseph S. Myers
On Wed, 26 Dec 2012, Alexander Ivchenko wrote: > The attached patch is indended to add the target hook for indicating > the support of ifunc on target. That's not a hook, it's a target macro. What is the rationale for this needing to be a target macro instead of a target hoo

Re: PING^2: [PATCH] Support -fuse-ld=bfd and -fuse-ld=gold

2012-12-19 Thread Joseph S. Myers
2-12/msg00484.html>, I don't see the need for the variables named with Var in common.opt, and I'd think proper help text would be better than using Undocumented. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Enable non-complex math builtins from C99 for Bionic

2012-12-19 Thread Joseph S. Myers
n system.h and moving the Linux implementation of the hook from builtins.c to some Linux-specific file since you can't assume OPTION_GLIBC or OPTION_BIONIC are defined for other targets. -- Joseph S. Myers jos...@codesourcery.com

Re: [C PATCH] Don't perform function array conversions on inline asm "m" constrainted inputs (PR c++/55619)

2012-12-19 Thread Joseph S. Myers
ser_asm_statement): Adjust callers. > * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs > and outputs here, and call default_function_array_conversion > on inputs that don't need to be addressable. > > * c-c++-common/pr55619.c: New test. OK. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fix up convert_for_assignment warnings (PR c/39464)

2012-12-18 Thread Joseph S. Myers
mvl and mvr types. > > * gcc.dg/pr39464.c: New test. OK. -- Joseph S. Myers jos...@codesourcery.com

RE: [RFC] New feature to reuse one multilib among different targets

2012-12-06 Thread Joseph S. Myers
We only care rule that has concrete multilib. "care about", I think, but this sentence still doesn't really make sense to me. What are the cases that aren't being cared about here, and why are they valid inputs? Surely, given a proper MULTILIB_REUSE setting, every rule in that setting should do something meaningful and rules that don't should result in errors? -- Joseph S. Myers jos...@codesourcery.com

Re: [patch, libgcc] Bug in fp-bit.c when NO_NANS is defined

2012-11-30 Thread Joseph S. Myers
h a macro from fp-bit. As I noted in <http://gcc.gnu.org/ml/gcc-patches/2012-03/msg00819.html>, I believe all the support in fp-bit for the IRIX variant of IBM long double can also be removed, and the associated code in real.[ch]. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Enable non-complex math builtins from C99 for Bionic

2012-11-30 Thread Joseph S. Myers
itecture, I guess the macro choosing a hook implementation would get defined in .h files rather than directly in .c.) -- Joseph S. Myers jos...@codesourcery.com

Re: [ARM] Turning off 64bits ops in Neon and gfortran/modulo-scheduling problem

2012-11-29 Thread Joseph S. Myers
nstead > of onlya8. This ChangeLog entry doesn't appear to mention the arm.opt change. Furthermore, the patch seems to be missing any .texi change to document the option; any new option needs documentation. You are also missing testcases for the testsuite to verify that both

Re: PATCH: Enable both ld and gold in GCC 4.8

2012-11-28 Thread Joseph S. Myers
ersion of the patch, with self-contained description / rationale. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fix PR35634

2012-11-27 Thread Joseph S. Myers
t_value, tree arith_type) The comment needs updating to explain the new parameter. -- Joseph S. Myers jos...@codesourcery.com

Re: [patch, pch] Fix pch failure on mips-mti-linux-gnu

2012-11-21 Thread Joseph S. Myers
seem to be needed in my final testing. -- Joseph S. Myers jos...@codesourcery.com

Re: [patch] [aarch64] add multiarch definitions for aarch64-linux-gnu

2012-11-19 Thread Joseph S. Myers
allow for big-endian, and use a different name in that case? -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Fix libgcc GCC_4.8.0 symver (PR bootstrap/55370)

2012-11-19 Thread Joseph S. Myers
d/regtested on x86_64-linux and i686-linux, ok for > trunk? OK. -- Joseph S. Myers jos...@codesourcery.com

Re: libquadmath: Update I/O parts from GLIBC

2012-11-18 Thread Joseph S. Myers
.h or other architecture-specific code. Most of the extra complexity in glibc is to get it from libc without depending on libm (since fegetround is in libm), but libquadmath depends on libm anyway. -- Joseph S. Myers jos...@codesourcery.com

Re: [patch] [powerpc] add multiarch definitions for powerpc-linux-gnu

2012-11-14 Thread Joseph S. Myers
On Thu, 15 Nov 2012, Matthias Klose wrote: > Am 14.11.2012 23:41, schrieb Joseph S. Myers: > > Your t-linux setting fails to allow for the possibility of the compiler > > being configured to default to soft-float (whether --with-float=soft, or > > --with-cpu etc. for a

Re: [patch] [powerpc] add multiarch definitions for powerpc-linux-gnu

2012-11-14 Thread Joseph S. Myers
multiarch name. -- Joseph S. Myers jos...@codesourcery.com

Re: [patch] [m68k] add multiarch definitions for m68k-linux-gnu

2012-11-14 Thread Joseph S. Myers
re need different multiarch names; you need to avoid using a name for one on a compiler configured for the other. (I think any configuration will always be --with-arch=m68k or --with-arch=cf so you should only need to consider M68K_ARCH rather than having per-multilib settings.) -- Jo

Re: [PATCH 0/2] Update soft-fp from GLIBC

2012-11-14 Thread Joseph S. Myers
e correct when that definition is added.) -- Joseph S. Myers jos...@codesourcery.com

Re: Patch RFA: Fix -fpie -fpic

2012-11-13 Thread Joseph S. Myers
, > -fno-PIE the compiler should act as though only the last of those > options were specified. That follows the usual formulat in which the > last option wins. > > This patch implements that. Bootstrapped and tested on > x86_64-unknown-linux-gnu. OK for mainline? OK. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Enable libsanitizer just on x86 linux for now

2012-11-13 Thread Joseph S. Myers
the common toplevel to that scheme as well.) That way, you don't have a toplevel change that needs merging to the src repository for every individual change to the systems supported in a particular subdirectory. -- Joseph S. Myers jos...@codesourcery.com

Re: Asan/Tsan Unit/Regression testing (was [asan] Emit GIMPLE direclty, small cleanups)

2012-11-12 Thread Joseph S. Myers
to work with a cross-GDB and cross-compiler. -- Joseph S. Myers jos...@codesourcery.com

RE: [RFC] New feature to reuse one multilib among different targets

2012-11-09 Thread Joseph S. Myers
in/sh". Suppose /bin/sh is not a POSIX shell but the user sets CONFIG_SHELL to something else (which is a POSIX shell). Will SHELL in the makefile get set to the POSIX shell the user specified as CONFIG_SHELL? That's what's needed to be able to use POSIX shell features in this script. -- Joseph S. Myers jos...@codesourcery.com

RE: [RFC] New feature to reuse one multilib among different targets

2012-11-08 Thread Joseph S. Myers
genmultilib (combo_to_dir): New function. > (options_output): New function. > (MULTILIB_REUSE): New argument. > * Makefile.in (s-mlib): Add a new argument MULTILIB_REUSE. > * gcc.c (multilib_reuse): New spec. > (set_multilib_dir): Use multilib_reuse. Documentation chan

Re: [PATCH] Add -fno-instrument-function

2012-11-03 Thread Joseph S. Myers
On Sat, 3 Nov 2012, Andi Kleen wrote: > "Joseph S. Myers" writes: > >> > >> 2012-10-31 Andi Kleen > >> > >>* g++.dg/fno-instrument-function.C: Add. > >>* gcc.dg/fno-instrument-function.c: Add. > > > > You have a

Re: [PATCH] Add -fno-instrument-function

2012-11-03 Thread Joseph S. Myers
/testsuite: > > 2012-10-31 Andi Kleen > > * g++.dg/fno-instrument-function.C: Add. > * gcc.dg/fno-instrument-function.c: Add. You have a C++ test but no corresponding C++ front-end change; how does that work? > +Link Time Optimization (LTO) to override the effe

Re: PR c/53063 more LangEnabledBy conversions.

2012-11-03 Thread Joseph S. Myers
that would be quite hard.) -- Joseph S. Myers jos...@codesourcery.com

Re: PR c/53063 Handle Wformat with LangEnabledBy

2012-11-03 Thread Joseph S. Myers
On Sat, 27 Oct 2012, Manuel L?pez-Ib??ez wrote: > On 19 October 2012 18:17, Joseph S. Myers wrote: > > On Wed, 17 Oct 2012, Manuel L?pez-Ib??ez wrote: > > > >> documentation but I can also implement -Wformat=0 being an alias for > >> -Wno-format and -Wformat=1

Re: [PATCH 02/13] Rename tree-asan.[ch] to asan.[ch]

2012-11-01 Thread Joseph S. Myers
ries. * Introducing a known bug in one patch in the series, where a subsequent patch in the series is the fix, unless the fix really depends on intermediate patches in the series -- Joseph S. Myers jos...@codesourcery.com

Re: [Patch] Update libquadmath from GLIBC

2012-10-31 Thread Joseph S. Myers
l still make sense for non-glibc or older-glibc systems, but hopefully the implementations can be closer to the glibc versions then. And supporting the various parts of the floating-point TS in glibc would be a lot of work.) -- Joseph S. Myers jos...@codesourcery.com

Re: [Patch] Update libquadmath from GLIBC

2012-10-31 Thread Joseph S. Myers
m glibc as well - strtod in particular has had major changes in glibc since it was last updated. -- Joseph S. Myers jos...@codesourcery.com

Re: [patch][RFC] Filename based shared library versioning on AIX

2012-10-30 Thread Joseph S. Myers
should include the changes to install.texi to document those options for people building GCC. -- Joseph S. Myers jos...@codesourcery.com

Re: Patch: add @direntry for gcov

2012-10-30 Thread Joseph S. Myers
On Tue, 30 Oct 2012, Tom Tromey wrote: > This patch adds a @direntry for gcov. > > I noticed that it was missing today, when I tried to find the gcov > manual from the info "dir" node. Then I found out that I had filed PR > 50899 for this ages ago. > > Ok

Re: PR c/53066 Wshadow should not warn for shadowing an extern function

2012-10-28 Thread Joseph S. Myers
handled as such, and include that header in the testcase; there are several existing examples of this in gcc.dg. -- Joseph S. Myers jos...@codesourcery.com

RE: [Ping]FW: [PATCH] Cilk Plus merging to trunk (2 of n)

2012-10-24 Thread Joseph S. Myers
t not int to measure that size. If you were measuring something on the target, you might need HOST_WIDE_INT (for example, a compiler on a 32-bit host can reasonably build objects for a 64-bit target that declare arrays with more than 2^31 elements, so size_t is not the right type to use i

Re: ARC port (5/5): rest of gcc/{,common/}config/arc/

2012-10-24 Thread Joseph S. Myers
your ASM_SPEC and LINK_SPEC, such as %{v}, %{version:-v}, %{b}, %{Wl,*:%*}., %{!dynamic-linker:...}. Remove them. -- Joseph S. Myers jos...@codesourcery.com

Re: ARC port (4/5): libgcc/config/arc/

2012-10-24 Thread Joseph S. Myers
If you need special t-* logit for fp-bit.c / dp-bit.c, rather than being able to use t-fdpbit, then you need comments explaining why the special logic rather than the generic code is used. -- Joseph S. Myers jos...@codesourcery.com

Re: ARC port (3/5): gcc/config/arc/arc.md

2012-10-24 Thread Joseph S. Myers
Same diagnostic comment regarding one fatal_error call here; in addition, diagnostic functions should not be called directly from .md files at all, because .md files aren't processed by exgettext to extract messages for translation. -- Joseph S. Myers jos...@codesourcery.com

Re: ARC port (2/5): gcc/config/arc/arc.c

2012-10-24 Thread Joseph S. Myers
Diagnostics should not end with '.' (or '\n', in some cases here); also avoid starting with a capital letter in cases such as "Operand". -- Joseph S. Myers jos...@codesourcery.com

Re: RFA: Add lock_lenth attribute to support the ARC port (Was: Re: Ping: RFA: add lock_length attribute to break branch-shortening cycles)

2012-10-24 Thread Joseph S. Myers
ize limit is 400 kB, not 100 kB. Hopefully that means you don't need to compress so many bits and can attach more as plain patches for future revisions. -- Joseph S. Myers jos...@codesourcery.com

Re: ARC port (1/5): configuration file patches

2012-10-24 Thread Joseph S. Myers
On Tue, 23 Oct 2012, Joern Rennecke wrote: > + tm_file="dbxelf.h elfos.h linux.h ${tm_file}" Should be using gnu-user.h linux.h glibc-stdint.h, not linux.h on its own. -- Joseph S. Myers jos...@codesourcery.com

Re: PR c/53063 Handle Wformat with LangEnabledBy

2012-10-23 Thread Joseph S. Myers
On Tue, 23 Oct 2012, Manuel López-Ibáñez wrote: > The problem is how to represent that Wformat-y2k is enabled by > -Wformat=X with X >= 2, while Wformat-zero-length is enabled by X >=1. > > One possiblity is to allow to specify a condition directly: I guess that's re

Re: [PATCH] [2/10] AArch64 Port

2012-10-23 Thread Joseph S. Myers
ically or dynamically linked. This model is not fully implemented and > +mostly treated as "small". Say @samp{small} instead of using "" quotes in Texinfo sources. -- Joseph S. Myers jos...@codesourcery.com

Ping^3 Re: Defining C99 predefined macros for whole translation unit

2012-10-23 Thread Joseph S. Myers
Ping^3. This patch <http://gcc.gnu.org/ml/gcc-patches/2012-09/msg01907.html> (non-C parts) is still pending review. -- Joseph S. Myers jos...@codesourcery.com

RE: [Ping]FW: [PATCH] Cilk Plus merging to trunk (2 of n)

2012-10-19 Thread Joseph S. Myers
later point is at which you check for such errors - but in any case, you need testcases for these diagnostics on those cases to show that they aren't being lost. In invoke.texi you have: +@opindex flag_enable_cilkplus But @opindex is for the user-visible options, not for internal variables.

Re: [patch] PR 54930: add -Wreturn-local-addr

2012-10-19 Thread Joseph S. Myers
an error with -Werror=return-local-addr. I've added > two tests checking the -Werror form works. The C front-end changes are OK. -- Joseph S. Myers jos...@codesourcery.com

Re: PR c/53063 Handle Wformat with LangEnabledBy

2012-10-19 Thread Joseph S. Myers
at= should take an arbitrary integer level (of which at present all those above 2 are equivalent to 2, just as -O for n > 3 is equivalent to -O3). -- Joseph S. Myers jos...@codesourcery.com

Re: PR c/53063 Use (Lang)EnabledBy for a bunch of options

2012-10-19 Thread Joseph S. Myers
zers. But since the _set structures generally correspond to what was set directly, whereas implicit setting by another option also replaces the -1 value, this might only work given the extension of _set structures to record the distance between the option passed by the user and the one set, no

Re: RFC: Merge the GUPC branch into the GCC 4.8 trunk (patch 01 of 16)

2012-10-18 Thread Joseph S. Myers
pilers without any need to link in any stubs. > The few additional tree nodes needed for UPC are defined > in a language dependent tree definition file. The UPC-specific Whatever those get gimplified to needs to be language-independent (that is, handled after gimplification entirely by language-independent parts of the compiler). -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Rs6000 infrastructure cleanup (switches), revised patch #4

2012-10-17 Thread Joseph S. Myers
options. Given that existing practice is passing pointers around, I'd think that's appropriate for any new such functions / macros, unless and until we have some clear notion of when functionality should or should not be a member function of gcc_options. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Rs6000 infrastructure cleanup (switches), revised patch #4

2012-10-16 Thread Joseph S. Myers
et_flags that refer to global options to end up not being lvalues at all. That helps ensure that option settings are only modified in limited places that have options pointers. It would be nice eventually for such things as "optimize" and "target" attributes to be able to swap options structures, and to work closer to how options on the command line are processed - for that, you want careful control on what places actually modify options at all. -- Joseph S. Myers jos...@codesourcery.com

Re: EnabledBy(Wa && Wb)

2012-10-16 Thread Joseph S. Myers
t-set-parameter): Use EnabledBy. > (Wunused-parameter): Likewise. > * opts.c (finish_options): Do not handle them explicitly. > * opt-functions.awk (search_var_name): New. OK. -- Joseph S. Myers jos...@codesourcery.com

Re: LangEnabledBy with arguments

2012-10-16 Thread Joseph S. Myers
.c (c_common_handle_option): Do not set them here. Add > comment. > (c_common_post_options): Likewise. > testsuite/ > * gcc.dg/Wstrict-overflow-24.c: New. OK. -- Joseph S. Myers jos...@codesourcery.com

Re: RFC: Merge the GUPC branch into the GCC 4.8 trunk (patch 01 of 16)

2012-10-15 Thread Joseph S. Myers
* Target changes, split out per target. * Changes to existing C front-end files (including c-family). * Changes to any other front ends, split out by front end. * New front-end files. * Changes to the language and target independent compiler (including build system code). * Library. * Compil

Re: RFC: Merge the GUPC branch into the GCC 4.8 trunk (patch 02 of 16)

2012-10-15 Thread Joseph S. Myers
indentation also looks suspicious - look at the @@ -8859,6 +9048,23 @@ declspecs_add_qual hunk, for example, where inconsistent indentation reveals that you are indenting with spaces in some places, except for one line using a TAB (all new lines should be indented with TABs for every 8 spaces). -- Joseph S. Myers jos...@codesourcery.com

Re: RFC: Merge the GUPC branch into the GCC 4.8 trunk (patch 01 of 16)

2012-10-15 Thread Joseph S. Myers
rangement to be an option to the C front end, I expect you shouldn't need upc/Make-lang.in either.) -- Joseph S. Myers jos...@codesourcery.com

Re: RFC: Merge the GUPC branch into the GCC 4.8 trunk (patch 0 of 16)

2012-10-15 Thread Joseph S. Myers
On Mon, 15 Oct 2012, Gary Funck wrote: > On 10/15/12 17:06:28, Joseph S. Myers wrote: > > On Mon, 15 Oct 2012, Gary Funck wrote: > > > Various UPC language related checks and operations > > > are called in the "C" front-end and middle-end. > > &g

Re: [c-family] Fix -fdump-ada-spec buglet in C++

2012-10-15 Thread Joseph S. Myers
Tested on x86_64-suse-linux, OK for mainline? OK. -- Joseph S. Myers jos...@codesourcery.com

Re: RFC: Merge the GUPC branch into the GCC 4.8 trunk (patch 0 of 16)

2012-10-15 Thread Joseph S. Myers
cks that return early for C (if needed). -- Joseph S. Myers jos...@codesourcery.com

Ping^2 Re: Defining C99 predefined macros for whole translation unit

2012-10-15 Thread Joseph S. Myers
Ping^2. This patch <http://gcc.gnu.org/ml/gcc-patches/2012-09/msg01907.html> (non-C parts) is still pending review. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Rs6000 infrastructure cleanup (switches), revised patch #4

2012-10-15 Thread Joseph S. Myers
ION_* for such bits. I don't know if with C++ it's possible to keep the names the same *and* ensure that compile time errors occur if bits from different variables are used together or a bit is used with the wrong variable *and* avoid any other issues occurring as a consequence of such changes. -- Joseph S. Myers jos...@codesourcery.com

Re: encoding all aliases options in .opt files

2012-10-13 Thread Joseph S. Myers
fused with -gdwarf-2. I don't think such cryptic forms should be encouraged. > Wstrict-aliasing 2 Ambiguous with the existing -Wstrict-aliasing option followed by a linker input file called 2. -- Joseph S. Myers jos...@codesourcery.com

Re: PR fortran/51727: make module files reproducible, question on C++ in gcc

2012-10-13 Thread Joseph S. Myers
ere is some autoconf configuration about whether to include a header, it's generally preferred to keep down the number of places with such a conditional on host features (encapsulating whatever features the header provides in some way so that other code can use them unconditionally). -- Joseph S. Myers jos...@codesourcery.com

<    3   4   5   6   7   8   9   10   11   12   >