[Bug inline-asm/82001] [5/6/7 regression] wrong code when two functions differ only in inline asm register constraints

2017-09-15 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82001

Martin Liška  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Martin Liška  ---
Fixed on all active branches.

[Bug inline-asm/82001] [5/6/7 regression] wrong code when two functions differ only in inline asm register constraints

2017-09-15 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82001

--- Comment #7 from Martin Liška  ---
Author: marxin
Date: Fri Sep 15 12:14:19 2017
New Revision: 252812

URL: https://gcc.gnu.org/viewcvs?rev=252812=gcc=rev
Log:
Backport r251530

2017-09-15  Martin Liska  

Backport from mainline
2017-08-30  Martin Liska  

PR inline-asm/82001
* ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
Rename to ...
(func_checker::compare_asm_inputs_outputs): ... this function.
(func_checker::compare_gimple_asm): Use the function to compare
also ASM constrains.
* ipa-icf-gimple.h: Rename the function.
2017-09-15  Martin Liska  

Backport from mainline
2017-08-30  Martin Liska  

PR inline-asm/82001
* gcc.dg/ipa/pr82001.c: New test.

Added:
branches/gcc-5-branch/gcc/testsuite/gcc.dg/ipa/pr82001.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/ipa-icf-gimple.c
branches/gcc-5-branch/gcc/ipa-icf-gimple.h
branches/gcc-5-branch/gcc/testsuite/ChangeLog

[Bug inline-asm/82001] [5/6/7 regression] wrong code when two functions differ only in inline asm register constraints

2017-09-15 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82001

--- Comment #6 from Martin Liška  ---
Author: marxin
Date: Fri Sep 15 09:21:42 2017
New Revision: 252799

URL: https://gcc.gnu.org/viewcvs?rev=252799=gcc=rev
Log:
Backport r251530

2017-09-15  Martin Liska  

Backport from mainline
2017-08-30  Martin Liska  

PR inline-asm/82001
* ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
Rename to ...
(func_checker::compare_asm_inputs_outputs): ... this function.
(func_checker::compare_gimple_asm): Use the function to compare
also ASM constrains.
* ipa-icf-gimple.h: Rename the function.
2017-09-15  Martin Liska  

Backport from mainline
2017-08-30  Martin Liska  

PR inline-asm/82001
* gcc.dg/ipa/pr82001.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/ipa/pr82001.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/ipa-icf-gimple.c
branches/gcc-6-branch/gcc/ipa-icf-gimple.h
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug inline-asm/82001] [5/6/7 regression] wrong code when two functions differ only in inline asm register constraints

2017-09-15 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82001

--- Comment #5 from Martin Liška  ---
Author: marxin
Date: Fri Sep 15 08:19:15 2017
New Revision: 252788

URL: https://gcc.gnu.org/viewcvs?rev=252788=gcc=rev
Log:
Backport r251530

2017-09-15  Martin Liska  

Backport from mainline
2017-08-30  Martin Liska  

PR inline-asm/82001
* ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
Rename to ...
(func_checker::compare_asm_inputs_outputs): ... this function.
(func_checker::compare_gimple_asm): Use the function to compare
also ASM constrains.
* ipa-icf-gimple.h: Rename the function.
2017-09-15  Martin Liska  

Backport from mainline
2017-08-30  Martin Liska  

PR inline-asm/82001
* gcc.dg/ipa/pr82001.c: New test.

Added:
branches/gcc-7-branch/gcc/testsuite/gcc.dg/ipa/pr82001.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/ipa-icf-gimple.c
branches/gcc-7-branch/gcc/ipa-icf-gimple.h
branches/gcc-7-branch/gcc/testsuite/ChangeLog

[Bug inline-asm/82001] [5/6/7 regression] wrong code when two functions differ only in inline asm register constraints

2017-09-13 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82001

--- Comment #4 from Aldy Hernandez  ---
Author: aldyh
Date: Wed Sep 13 18:00:35 2017
New Revision: 252713

URL: https://gcc.gnu.org/viewcvs?rev=252713=gcc=rev
Log:
Fix IPA ICF with ASM statements (PR inline-asm/82001).

2017-08-30  Martin Liska  

PR inline-asm/82001
* ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
Rename to ...
(func_checker::compare_asm_inputs_outputs): ... this function.
(func_checker::compare_gimple_asm): Use the function to compare
also ASM constrains.
* ipa-icf-gimple.h: Rename the function.
2017-08-30  Martin Liska  

PR inline-asm/82001
* gcc.dg/ipa/pr82001.c: New test.

Added:
branches/range-gen2/gcc/testsuite/gcc.dg/ipa/pr82001.c
Modified:
branches/range-gen2/gcc/ChangeLog
branches/range-gen2/gcc/ipa-icf-gimple.c
branches/range-gen2/gcc/ipa-icf-gimple.h
branches/range-gen2/gcc/testsuite/ChangeLog

[Bug inline-asm/82001] [5/6/7 regression] wrong code when two functions differ only in inline asm register constraints

2017-08-30 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82001

Martin Liška  changed:

   What|Removed |Added

  Known to work||8.0
Summary|[5/6/7/8 regression] wrong  |[5/6/7 regression] wrong
   |code when two functions |code when two functions
   |differ only in inline asm   |differ only in inline asm
   |register constraints|register constraints
  Known to fail||5.4.0, 6.4.0, 7.2.0

--- Comment #3 from Martin Liška  ---
Fixed on trunk.