Ellipsis in varadic macro definitions

2020-08-02 Thread Philip R Brenan via Gcc
Hi *GCC*:

On page:

https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html#Variadic-Macros

you say:

#define eprintf(args…) fprintf (stderr, args)

but do you in fact mean:

#define eprintf(args...) fprintf (stderr, args)

The first variant produces:

error: expected ',' or ')', found "…"

 the second variant works well using GCC10.2 on Kubuntu 18.04.

-- 
Thanks,

Phil 

Philip R Brenan 


Question regarding usage of vec.h

2020-08-02 Thread Thomas Koenig via Gcc

Hi,

in a patch I am developing, I have the following code:

typedef struct {
  gfc_code *c;
  int branch_level;
  bool seen_goto;
  vec  extrema;
} do_t;

static vec doloop_list;

[...]


  do_t loop;

  doloop_list.safe_push (loop);
  doloop_list.last().extrema.reserve (1 << doloop_level);

where the last statement segfaults.  It also segfaults if
I replace the last line with

 doloop_list[0].extrema.reserve (1 << doloop_level);

Is there something glaringly obvious I am doing wrong, and
could this be easily fixed?

If not, I guess I'll just implement this using standard C
techniques (i.e. malloc/realloc). It will look a bit strange,
but, as a wise man once said, a patch that works beats
an elegant idea every time...

Best regards

Thomas


URGENT: Amendment needed to page on your website

2020-08-02 Thread Carly Thorpe via Gcc
Good Afternoon,



I hope this email finds you well.

It has come to my attention that your website contains a broken link to
Tiscali.co.uk, the link no longer exists meaning the relevant information
is no longer apparent as it once was. I have seen insight data and am aware
that your website was included in the list of referrers.

As a matter of urgency, I would like to kindly request that you update this
link as soon as possible.



The link is located on -
https://gcc.gnu.org/legacy-ml/gcc/2004-03/msg00061.html



under the anchor text -
http://www.tiscali.co.uk/products/broadband/home.html?code=sm-nl-11am



The link that should replace this is:

https://selectra.co.uk/tv-broadband/guides/market/tiscali



I would very much appreciate it if you could update me once this has been
completed. A member of our team will be making a follow-up call to ensure
receipt of this email so that this request can be handled effectively and
efficiently.



Thank you for your collaboration, and have a great day.



Kind Regards





Carly Thorpe

*Communications Officer*

t. 01704325062

w. www.selectra.co.uk


Re: Ellipsis in varadic macro definitions

2020-08-02 Thread Jonathan Wakely via Gcc
On Sun, 2 Aug 2020 at 15:49, Philip R Brenan via Gcc  wrote:
>
> Hi *GCC*:
>
> On page:
>
> https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html#Variadic-Macros
>
> you say:
>
> #define eprintf(args…) fprintf (stderr, args)
>
> but do you in fact mean:
>
> #define eprintf(args...) fprintf (stderr, args)
>
> The first variant produces:
>
> error: expected ',' or ')', found "…"
>
>  the second variant works well using GCC10.2 on Kubuntu 18.04.

Yes, the texinfo source uses @dots which gets turned into … in
the HTML, which isn't necessarily displayed as three separate dots in
the browser. I don't know why @dots is used rather than ...


Re: FWIW

2020-08-02 Thread Jonathan Wakely via Gcc
CC The gfortran list.

On Sat, 1 Aug 2020 at 23:38, Nino Pereira via Gcc  wrote:
>
> https://gcc.gnu.org/onlinedocs/gfortran/INT.html#INT
>
> has two occurrences of 'or' next to each other.
>
> Arguments:
> A   Shall be of type INTEGER, REAL, or COMPLEX or or a 
> boz-literal-constant.
>
> HTH,
>
> Nino


gcc-11-20200802 is now available

2020-08-02 Thread GCC Administrator via Gcc
Snapshot gcc-11-20200802 is now available on
  https://gcc.gnu.org/pub/gcc/snapshots/11-20200802/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 11 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch master 
revision 6e46b3f3da5c03bc529b3690dd0995927feb9142

You'll find:

 gcc-11-20200802.tar.xz   Complete GCC

  SHA256=cfa55b8c9631b54796b7c2eff1732c31fedf7d5a5310ea23e2b6ba007450493c
  SHA1=453d817d1728aa8cbb6d7e134c64323be86ca5f3

Diffs from 11-20200726 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-11
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.