Re: [PATCH] x86: Tune Skylake, Cannonlake and Icelake as Haswell

2018-07-14 Thread Gerald Pfeifer
On Fri, 13 Jul 2018, H.J. Lu wrote:
> I will do the same for GCC8 backport.

Can you please add a note to gcc-8/changes.html?  This seems big
enough to warrant a note in a part for GCC 8.2.

(At gcc-7/changes.html you can see how to go about this for minor
releases.)

Gerald


[PATCH, committed] Fix rtl check error in pdp11

2018-07-14 Thread Paul Koning
When building with checking enabled, there were check failures in 
pdp11_rtx_costs.  This patch fixes two errors.

Committed.

paul

ChangeLog:

2018-07-14  Paul Koning  

* config/pdp11/pdp11.c (pdp11_rtx_costs): Bugfixes.

Index: config/pdp11/pdp11.c
===
--- config/pdp11/pdp11.c(revision 262604)
+++ config/pdp11/pdp11.c(working copy)
@@ -1014,6 +1014,7 @@ pdp11_rtx_costs (rtx x, machine_mode mode, int out
   const int code = GET_CODE (x);
   const int asize = (mode == QImode) ? 2 : GET_MODE_SIZE (mode);
   rtx src, dest;
+  const char *fmt;
   
   switch (code)
 {
@@ -1035,6 +1036,14 @@ pdp11_rtx_costs (rtx x, machine_mode mode, int out
   *total = pdp11_addr_cost (x, mode, ADDR_SPACE_GENERIC, speed);
   return true;
 }
+  if (GET_RTX_LENGTH (code) == 0)
+{
+  if (speed)
+   *total = 0;
+  else
+   *total = 2;
+  return true;
+}
 
   /* Pick up source and dest.  We don't necessarily use the standard
  recursion in rtx_costs to figure the cost, because that would
@@ -1041,6 +1050,15 @@ pdp11_rtx_costs (rtx x, machine_mode mode, int out
  count the destination operand twice for three-operand insns.
  Also, this way we can catch special cases like move of zero, or
  add one.  */
+  fmt = GET_RTX_FORMAT (code);
+  if (fmt[0] != 'e' || (GET_RTX_LENGTH (code) > 1 && fmt[1] != 'e'))
+{
+  if (speed)
+   *total = 0;
+  else
+   *total = 2;
+  return true;
+}
   if (GET_RTX_LENGTH (code) > 1)
 src = XEXP (x, 1);
   dest = XEXP (x, 0);



[PATCH] RISC-V: Fix nested function trampolines.

2018-07-14 Thread Jim Wilson
This fixes an oversight.  I suspect that there was a RISC-V QEMU bug allowing
stacks to be executable by default, so we didn't see the problem until we
started running the gcc testsuite on hardware.  This was also confused by the
late ABI change to the cache flush support when upstreaming the glibc support.
And the linux kernel bug we just found a couple of days ago.  Anyways,
trampolines work now, if you have all of the right patches.

This was tested with a native riscv64-linux bootstrap and make check.  It
fixes 69 gcc failures, 49 gfortran failures, and 1 objc failure.  It also fixes
one gnat failure, which is how I happened to notice that gcc was broken too.

Kito/Ruslan - You may need a similar change to the config/riscv-freebsd.h file.
I don't have a setup where I can test that.

Committed.

Jim

gcc/
* config/riscv/linux.h (TARGET_ASM_FILE_END): New.
---
 gcc/config/riscv/linux.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h
index 85561846dad..e208c95fe13 100644
--- a/gcc/config/riscv/linux.h
+++ b/gcc/config/riscv/linux.h
@@ -66,3 +66,5 @@ along with GCC; see the file COPYING3.  If not see
   %{rdynamic:-export-dynamic} \
   -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
 %{static:-static}}"
+
+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
-- 
2.17.1


[wwwdocs] extensions.html - remove "rogue" MELT page

2018-07-14 Thread Gerald Pfeifer
I noticed that http://gcc-melt.org now redirects to
http://www.gcc-melt.org which looks like a default,
and empty, Wordpress installation.

I went ahead and applied the patch below.

Basile, should we generally remove this reference to GCC MELT?

Gerald

Index: extensions.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/extensions.html,v
retrieving revision 1.59
diff -u -r1.59 extensions.html
--- extensions.html 2 Jun 2018 21:16:09 -   1.59
+++ extensions.html 14 Jul 2018 20:14:45 -
@@ -21,7 +21,7 @@
 analysis, debugging, and performance tuning in concurrent code.
 
 
-http://gcc-melt.org";>GCC MELT
+GCC MELT
 
 MELT is a high-level domain specific language to ease the
   development of GCC extensions. It is available as a GCC experimental


[wwwdocs] gcc-4.3/changes.html - switch www.mpfr.org to https

2018-07-14 Thread Gerald Pfeifer
Applied.

Gerald

Index: gcc-4.3/changes.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/changes.html,v
retrieving revision 1.133
diff -u -r1.133 changes.html
--- gcc-4.3/changes.html2 Jun 2018 21:16:16 -   1.133
+++ gcc-4.3/changes.html14 Jul 2018 21:01:20 -
@@ -21,7 +21,7 @@
   
 GCC requires the https://gmplib.org/";>GMP and http://www.mpfr.org/";>MPFR libraries for building all
+href="https://www.mpfr.org";>MPFR libraries for building all
 the various front-end languages it supports.  See the https://gcc.gnu.org/install/prerequisites.html";>prerequisites
 page for version requirements.


Re: [PATCH] x86: Tune Skylake, Cannonlake and Icelake as Haswell

2018-07-14 Thread H.J. Lu
On Sat, Jul 14, 2018 at 06:09:47PM +0200, Gerald Pfeifer wrote:
> On Fri, 13 Jul 2018, H.J. Lu wrote:
> > I will do the same for GCC8 backport.
> 
> Can you please add a note to gcc-8/changes.html?  This seems big
> enough to warrant a note in a part for GCC 8.2.
> 
> (At gcc-7/changes.html you can see how to go about this for minor
> releases.)
> 

Like this?

H.J.
---
Index: changes.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/changes.html,v
retrieving revision 1.88
diff -u -p -r1.88 changes.html
--- changes.html14 Jun 2018 13:52:35 -  1.88
+++ changes.html14 Jul 2018 21:17:10 -
@@ -1312,5 +1312,23 @@ known to be fixed in the 8.1 release. Th
 complete (that is, it is possible that some PRs that have been fixed
 are not listed here).
 
+
+GCC 8.2
+
+This is the https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=8.2";>list
+of problem reports (PRs) from GCC's bug tracking system that are
+known to be fixed in the 8.1 release. This list might not be
+complete (that is, it is possible that some PRs that have been fixed
+are not listed here).
+
+Target Specific Changes
+
+IA-32/x86-64
+  
+ -mtune=native performance regression
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84413";>PR84413
+on Intel Skylake processors has been fixed.
+  
+
 
 


[wwwdocs] adjust www.itl.nist.gov to https in readings.html

2018-07-14 Thread Gerald Pfeifer
Applied.

Gerald

Index: readings.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/readings.html,v
retrieving revision 1.294
diff -u -r1.294 readings.html
--- readings.html   2 Jun 2018 21:16:10 -   1.294
+++ readings.html   14 Jul 2018 21:31:53 -
@@ -414,9 +414,9 @@
   Some packages aimed at Fortran compiler validation.
 
   
-http://www.itl.nist.gov/div897/ctg/fortran_form.htm";>FORTRAN
+https://www.itl.nist.gov/div897/ctg/fortran_form.htm";>FORTRAN
 77 test suite by the NIST Information Technology Laboratory
-(http://www.itl.nist.gov/div897/ctg/software.htm";>license)
+(https://www.itl.nist.gov/div897/ctg/software.htm";>license)
 contains legal and operational Fortran 77 code.
   
   


Re: [wwwdocs] extensions.html - remove "rogue" MELT page

2018-07-14 Thread Basile Starynkevitch




On 07/14/2018 10:17 PM, Gerald Pfeifer wrote:

I noticed that http://gcc-melt.org now redirects to
http://www.gcc-melt.org which looks like a default,
and empty, Wordpress installation.

I went ahead and applied the patch below.

Basile, should we generally remove this reference to GCC MELT?

Gerald

Index: extensions.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/extensions.html,v
retrieving revision 1.59
diff -u -r1.59 extensions.html
--- extensions.html 2 Jun 2018 21:16:09 -   1.59
+++ extensions.html 14 Jul 2018 20:14:45 -
@@ -21,7 +21,7 @@
  analysis, debugging, and performance tuning in concurrent code.
  
  
-http://gcc-melt.org";>GCC MELT

+GCC MELT
  
  MELT is a high-level domain specific language to ease the

development of GCC extensions. It is available as a GCC experimental


Yes. I am no more working on MELT, but I did begin to work on its successor:

https://github.com/bstarynk/bismon

Cheers

--
Basile STARYNKEVITCH   == http://starynkevitch.net/Basile
opinions are mine only - les opinions sont seulement miennes
Bourg La Reine, France



Re: [wwwdocs] extensions.html - remove "rogue" MELT page

2018-07-14 Thread Basile Starynkevitch




On 07/15/2018 07:12 AM, Basile Starynkevitch wrote:



On 07/14/2018 10:17 PM, Gerald Pfeifer wrote:

I noticed that http://gcc-melt.org now redirects to
http://www.gcc-melt.org which looks like a default,
and empty, Wordpress installation.

I went ahead and applied the patch below.

Basile, should we generally remove this reference to GCC MELT?

Gerald

Index: extensions.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/extensions.html,v
retrieving revision 1.59
diff -u -r1.59 extensions.html
--- extensions.html    2 Jun 2018 21:16:09 -    1.59
+++ extensions.html    14 Jul 2018 20:14:45 -
@@ -21,7 +21,7 @@
  analysis, debugging, and performance tuning in concurrent code.
    -http://gcc-melt.org";>GCC MELT
+GCC MELT
    MELT is a high-level domain specific language to ease 
the

    development of GCC extensions. It is available as a GCC experimental


Yes. I am no more working on MELT, but I did begin to work on its 
successor:


https://github.com/bstarynk/bismon



I forgot to tell that the old GCC MELT pages are still online, but the 
gcc-melt.org domain has vanished.


The old GCC MELT pages are available on 
http://starynkevitch.net/Basile/gcc-melt/


Cheers

--
Basile STARYNKEVITCH   == http://starynkevitch.net/Basile
opinions are mine only - les opinions sont seulement miennes
Bourg La Reine, France



[wwwdocs] Adjust a link to microsoft.com in gcc-4.7/changes.html

2018-07-14 Thread Gerald Pfeifer
Applied.

Gerald

Index: gcc-4.7/changes.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v
retrieving revision 1.148
diff -u -r1.148 changes.html
--- gcc-4.7/changes.html2 Jun 2018 21:16:17 -   1.148
+++ gcc-4.7/changes.html15 Jul 2018 05:54:58 -
@@ -636,7 +636,7 @@
   depends on the user environment settings; see the ulimit -c
   setting for POSIX shells, limit coredumpsize for C shells,
   and the https://msdn.microsoft.com/en-us/library/bb787181%28v=vs.85%29.aspx";
+  
href="https://docs.microsoft.com/en-us/windows/desktop/wer/collecting-user-mode-dumps";
   >WER user-mode dumps settings on Windows.
 The https://gcc.gnu.org/onlinedocs/gcc-4.7.1/gfortran/Debugging-Options.html#index-g_t_0040code_007bfno_002dbacktrace_007d-183";


Re: [PATCH] x86: Tune Skylake, Cannonlake and Icelake as Haswell

2018-07-14 Thread Gerald Pfeifer
On Sat, 14 Jul 2018, H.J. Lu wrote:
> Like this?

Yes, this looks fine.

Thanks!
Gerald